diff --git a/asset/google/__init__.py b/asset/google/__init__.py index f65701dd143ff..7aa71bb4e2f1f 100644 --- a/asset/google/__init__.py +++ b/asset/google/__init__.py @@ -16,7 +16,9 @@ try: import pkg_resources + pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/asset/google/cloud/__init__.py b/asset/google/cloud/__init__.py index f65701dd143ff..7aa71bb4e2f1f 100644 --- a/asset/google/cloud/__init__.py +++ b/asset/google/cloud/__init__.py @@ -16,7 +16,9 @@ try: import pkg_resources + pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/asset/google/cloud/asset.py b/asset/google/cloud/asset.py index 0aa16ee24654e..4087e02995fa4 100644 --- a/asset/google/cloud/asset.py +++ b/asset/google/cloud/asset.py @@ -20,8 +20,4 @@ from google.cloud.asset_v1beta1 import enums from google.cloud.asset_v1beta1 import types -__all__ = ( - 'enums', - 'types', - 'AssetServiceClient', -) +__all__ = ("enums", "types", "AssetServiceClient") diff --git a/asset/google/cloud/asset_v1beta1/__init__.py b/asset/google/cloud/asset_v1beta1/__init__.py index 6d4f99788c5b7..45331153fe888 100644 --- a/asset/google/cloud/asset_v1beta1/__init__.py +++ b/asset/google/cloud/asset_v1beta1/__init__.py @@ -26,8 +26,4 @@ class AssetServiceClient(asset_service_client.AssetServiceClient): enums = enums -__all__ = ( - 'enums', - 'types', - 'AssetServiceClient', -) +__all__ = ("enums", "types", "AssetServiceClient") diff --git a/asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py b/asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py index d3981effa5654..cdaf8819999c3 100644 --- a/asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py +++ b/asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py @@ -37,19 +37,18 @@ from google.longrunning import operations_pb2 from google.protobuf import timestamp_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-asset', ).version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-asset").version class AssetServiceClient(object): """Asset service definition.""" - SERVICE_ADDRESS = 'cloudasset.googleapis.com:443' + SERVICE_ADDRESS = "cloudasset.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.cloud.asset.v1beta1.AssetService' + _INTERFACE_NAME = "google.cloud.asset.v1beta1.AssetService" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -65,9 +64,8 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: AssetServiceClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file @@ -76,16 +74,17 @@ def from_service_account_file(cls, filename, *args, **kwargs): def project_path(cls, project): """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - 'projects/{project}', - project=project, + "projects/{project}", project=project ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -119,18 +118,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = asset_service_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -139,25 +139,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=asset_service_grpc_transport. - AssetServiceGrpcTransport, + default_class=asset_service_grpc_transport.AssetServiceGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = asset_service_grpc_transport.AssetServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -167,7 +166,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -176,15 +176,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def export_assets(self, - parent, - output_config, - read_time=None, - asset_types=None, - content_type=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def export_assets( + self, + parent, + output_config, + read_time=None, + asset_types=None, + content_type=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Exports assets with time and resource types to a given Cloud Storage location. The output format is newline-delimited JSON. This API @@ -253,15 +255,15 @@ def export_assets(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'export_assets' not in self._inner_api_calls: + if "export_assets" not in self._inner_api_calls: self._inner_api_calls[ - 'export_assets'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.export_assets, - default_retry=self._method_configs['ExportAssets'].retry, - default_timeout=self._method_configs['ExportAssets']. - timeout, - client_info=self._client_info, - ) + "export_assets" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.export_assets, + default_retry=self._method_configs["ExportAssets"].retry, + default_timeout=self._method_configs["ExportAssets"].timeout, + client_info=self._client_info, + ) request = asset_service_pb2.ExportAssetsRequest( parent=parent, @@ -270,8 +272,9 @@ def export_assets(self, asset_types=asset_types, content_type=content_type, ) - operation = self._inner_api_calls['export_assets']( - request, retry=retry, timeout=timeout, metadata=metadata) + operation = self._inner_api_calls["export_assets"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -280,14 +283,15 @@ def export_assets(self, ) def batch_get_assets_history( - self, - parent, - content_type, - read_time_window, - asset_names=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + parent, + content_type, + read_time_window, + asset_names=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Batch gets the update history of assets that overlap a time window. For RESOURCE content, this API outputs history with asset in both non-delete @@ -350,16 +354,15 @@ def batch_get_assets_history( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'batch_get_assets_history' not in self._inner_api_calls: + if "batch_get_assets_history" not in self._inner_api_calls: self._inner_api_calls[ - 'batch_get_assets_history'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.batch_get_assets_history, - default_retry=self. - _method_configs['BatchGetAssetsHistory'].retry, - default_timeout=self. - _method_configs['BatchGetAssetsHistory'].timeout, - client_info=self._client_info, - ) + "batch_get_assets_history" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.batch_get_assets_history, + default_retry=self._method_configs["BatchGetAssetsHistory"].retry, + default_timeout=self._method_configs["BatchGetAssetsHistory"].timeout, + client_info=self._client_info, + ) request = asset_service_pb2.BatchGetAssetsHistoryRequest( parent=parent, @@ -367,5 +370,6 @@ def batch_get_assets_history( read_time_window=read_time_window, asset_names=asset_names, ) - return self._inner_api_calls['batch_get_assets_history']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["batch_get_assets_history"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) diff --git a/asset/google/cloud/asset_v1beta1/gapic/asset_service_client_config.py b/asset/google/cloud/asset_v1beta1/gapic/asset_service_client_config.py index e5d759d6f4686..340e89de38b25 100644 --- a/asset/google/cloud/asset_v1beta1/gapic/asset_service_client_config.py +++ b/asset/google/cloud/asset_v1beta1/gapic/asset_service_client_config.py @@ -3,7 +3,7 @@ "google.cloud.asset.v1beta1.AssetService": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] + "non_idempotent": [], }, "retry_params": { "default": { @@ -13,21 +13,21 @@ "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 + "total_timeout_millis": 600000, } }, "methods": { "ExportAssets": { "timeout_millis": 600000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "BatchGetAssetsHistory": { "timeout_millis": 600000, "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/asset/google/cloud/asset_v1beta1/gapic/enums.py b/asset/google/cloud/asset_v1beta1/gapic/enums.py index eaa86d4861684..e00e748a42d4d 100644 --- a/asset/google/cloud/asset_v1beta1/gapic/enums.py +++ b/asset/google/cloud/asset_v1beta1/gapic/enums.py @@ -28,6 +28,7 @@ class NullValue(enum.IntEnum): Attributes: NULL_VALUE (int): Null value. """ + NULL_VALUE = 0 @@ -40,6 +41,7 @@ class ContentType(enum.IntEnum): RESOURCE (int): Resource metadata. IAM_POLICY (int): The actual IAM policy set on a resource. """ + CONTENT_TYPE_UNSPECIFIED = 0 RESOURCE = 1 IAM_POLICY = 2 diff --git a/asset/google/cloud/asset_v1beta1/gapic/transports/asset_service_grpc_transport.py b/asset/google/cloud/asset_v1beta1/gapic/transports/asset_service_grpc_transport.py index b9cc897241e70..e45c2b9780357 100644 --- a/asset/google/cloud/asset_v1beta1/gapic/transports/asset_service_grpc_transport.py +++ b/asset/google/cloud/asset_v1beta1/gapic/transports/asset_service_grpc_transport.py @@ -28,14 +28,14 @@ class AssetServiceGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', ) + _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) - def __init__(self, - channel=None, - credentials=None, - address='cloudasset.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="cloudasset.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -53,35 +53,30 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - 'asset_service_stub': - asset_service_pb2_grpc.AssetServiceStub(channel), + "asset_service_stub": asset_service_pb2_grpc.AssetServiceStub(channel) } # Because this API includes a method that returns a # long-running operation (proto: google.longrunning.Operation), # instantiate an LRO client. self._operations_client = google.api_core.operations_v1.OperationsClient( - channel) + channel + ) @classmethod - def create_channel(cls, - address='cloudasset.googleapis.com:443', - credentials=None): + def create_channel(cls, address="cloudasset.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -96,9 +91,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -124,7 +117,7 @@ def export_assets(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['asset_service_stub'].ExportAssets + return self._stubs["asset_service_stub"].ExportAssets @property def batch_get_assets_history(self): @@ -141,4 +134,4 @@ def batch_get_assets_history(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['asset_service_stub'].BatchGetAssetsHistory + return self._stubs["asset_service_stub"].BatchGetAssetsHistory diff --git a/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2.py b/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2.py index b503e9f2adad4..b28792b1bf648 100644 --- a/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2.py +++ b/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2.py @@ -2,55 +2,65 @@ # source: google/cloud/asset_v1beta1/proto/asset_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.asset_v1beta1.proto import assets_pb2 as google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.asset_v1beta1.proto import ( + assets_pb2 as google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/asset_v1beta1/proto/asset_service.proto', - package='google.cloud.asset.v1beta1', - syntax='proto3', - serialized_pb=_b('\n4google/cloud/asset_v1beta1/proto/asset_service.proto\x12\x1agoogle.cloud.asset.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/asset_v1beta1/proto/assets.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x01\n\x13\x45xportAssetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12=\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\'.google.cloud.asset.v1beta1.ContentType\x12?\n\routput_config\x18\x05 \x01(\x0b\x32(.google.cloud.asset.v1beta1.OutputConfig\"\x86\x01\n\x14\x45xportAssetsResponse\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\routput_config\x18\x02 \x01(\x0b\x32(.google.cloud.asset.v1beta1.OutputConfig\"\xc4\x01\n\x1c\x42\x61tchGetAssetsHistoryRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0b\x61sset_names\x18\x02 \x03(\t\x12=\n\x0c\x63ontent_type\x18\x03 \x01(\x0e\x32\'.google.cloud.asset.v1beta1.ContentType\x12@\n\x10read_time_window\x18\x04 \x01(\x0b\x32&.google.cloud.asset.v1beta1.TimeWindow\"Z\n\x1d\x42\x61tchGetAssetsHistoryResponse\x12\x39\n\x06\x61ssets\x18\x01 \x03(\x0b\x32).google.cloud.asset.v1beta1.TemporalAsset\"d\n\x0cOutputConfig\x12\x45\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.asset.v1beta1.GcsDestinationH\x00\x42\r\n\x0b\x64\x65stination\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t*I\n\x0b\x43ontentType\x12\x1c\n\x18\x43ONTENT_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08RESOURCE\x10\x01\x12\x0e\n\nIAM_POLICY\x10\x02\x32\xe0\x03\n\x0c\x41ssetService\x12\xc9\x01\n\x0c\x45xportAssets\x12/.google.cloud.asset.v1beta1.ExportAssetsRequest\x1a\x1d.google.longrunning.Operation\"i\x82\xd3\xe4\x93\x02\x63\")/v1beta1/{parent=projects/*}:exportAssets:\x01*Z3\"./v1beta1/{parent=organizations/*}:exportAssets:\x01*\x12\x83\x02\n\x15\x42\x61tchGetAssetsHistory\x12\x38.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest\x1a\x39.google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse\"u\x82\xd3\xe4\x93\x02o\x12\x32/v1beta1/{parent=projects/*}:batchGetAssetsHistoryZ9\x12\x37/v1beta1/{parent=organizations/*}:batchGetAssetsHistoryB\xb0\x01\n\x1e\x63om.google.cloud.asset.v1beta1B\x11\x41ssetServiceProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\xaa\x02\x1aGoogle.Cloud.Asset.V1Beta1\xca\x02\x1aGoogle\\Cloud\\Asset\\V1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/asset_v1beta1/proto/asset_service.proto", + package="google.cloud.asset.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n4google/cloud/asset_v1beta1/proto/asset_service.proto\x12\x1agoogle.cloud.asset.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/asset_v1beta1/proto/assets.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xe9\x01\n\x13\x45xportAssetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12=\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\'.google.cloud.asset.v1beta1.ContentType\x12?\n\routput_config\x18\x05 \x01(\x0b\x32(.google.cloud.asset.v1beta1.OutputConfig"\x86\x01\n\x14\x45xportAssetsResponse\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\routput_config\x18\x02 \x01(\x0b\x32(.google.cloud.asset.v1beta1.OutputConfig"\xc4\x01\n\x1c\x42\x61tchGetAssetsHistoryRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0b\x61sset_names\x18\x02 \x03(\t\x12=\n\x0c\x63ontent_type\x18\x03 \x01(\x0e\x32\'.google.cloud.asset.v1beta1.ContentType\x12@\n\x10read_time_window\x18\x04 \x01(\x0b\x32&.google.cloud.asset.v1beta1.TimeWindow"Z\n\x1d\x42\x61tchGetAssetsHistoryResponse\x12\x39\n\x06\x61ssets\x18\x01 \x03(\x0b\x32).google.cloud.asset.v1beta1.TemporalAsset"d\n\x0cOutputConfig\x12\x45\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.asset.v1beta1.GcsDestinationH\x00\x42\r\n\x0b\x64\x65stination"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t*I\n\x0b\x43ontentType\x12\x1c\n\x18\x43ONTENT_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08RESOURCE\x10\x01\x12\x0e\n\nIAM_POLICY\x10\x02\x32\xe0\x03\n\x0c\x41ssetService\x12\xc9\x01\n\x0c\x45xportAssets\x12/.google.cloud.asset.v1beta1.ExportAssetsRequest\x1a\x1d.google.longrunning.Operation"i\x82\xd3\xe4\x93\x02\x63")/v1beta1/{parent=projects/*}:exportAssets:\x01*Z3"./v1beta1/{parent=organizations/*}:exportAssets:\x01*\x12\x83\x02\n\x15\x42\x61tchGetAssetsHistory\x12\x38.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest\x1a\x39.google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse"u\x82\xd3\xe4\x93\x02o\x12\x32/v1beta1/{parent=projects/*}:batchGetAssetsHistoryZ9\x12\x37/v1beta1/{parent=organizations/*}:batchGetAssetsHistoryB\xb0\x01\n\x1e\x63om.google.cloud.asset.v1beta1B\x11\x41ssetServiceProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\xaa\x02\x1aGoogle.Cloud.Asset.V1Beta1\xca\x02\x1aGoogle\\Cloud\\Asset\\V1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _CONTENTTYPE = _descriptor.EnumDescriptor( - name='ContentType', - full_name='google.cloud.asset.v1beta1.ContentType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CONTENT_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESOURCE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IAM_POLICY', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1028, - serialized_end=1101, + name="ContentType", + full_name="google.cloud.asset.v1beta1.ContentType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CONTENT_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RESOURCE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IAM_POLICY", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1028, + serialized_end=1101, ) _sym_db.RegisterEnumDescriptor(_CONTENTTYPE) @@ -60,277 +70,438 @@ IAM_POLICY = 2 - _EXPORTASSETSREQUEST = _descriptor.Descriptor( - name='ExportAssetsRequest', - full_name='google.cloud.asset.v1beta1.ExportAssetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.asset.v1beta1.ExportAssetsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='read_time', full_name='google.cloud.asset.v1beta1.ExportAssetsRequest.read_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset_types', full_name='google.cloud.asset.v1beta1.ExportAssetsRequest.asset_types', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_type', full_name='google.cloud.asset.v1beta1.ExportAssetsRequest.content_type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_config', full_name='google.cloud.asset.v1beta1.ExportAssetsRequest.output_config', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=232, - serialized_end=465, + name="ExportAssetsRequest", + full_name="google.cloud.asset.v1beta1.ExportAssetsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.asset.v1beta1.ExportAssetsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="read_time", + full_name="google.cloud.asset.v1beta1.ExportAssetsRequest.read_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="asset_types", + full_name="google.cloud.asset.v1beta1.ExportAssetsRequest.asset_types", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content_type", + full_name="google.cloud.asset.v1beta1.ExportAssetsRequest.content_type", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.cloud.asset.v1beta1.ExportAssetsRequest.output_config", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=232, + serialized_end=465, ) _EXPORTASSETSRESPONSE = _descriptor.Descriptor( - name='ExportAssetsResponse', - full_name='google.cloud.asset.v1beta1.ExportAssetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='read_time', full_name='google.cloud.asset.v1beta1.ExportAssetsResponse.read_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_config', full_name='google.cloud.asset.v1beta1.ExportAssetsResponse.output_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=468, - serialized_end=602, + name="ExportAssetsResponse", + full_name="google.cloud.asset.v1beta1.ExportAssetsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="read_time", + full_name="google.cloud.asset.v1beta1.ExportAssetsResponse.read_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.cloud.asset.v1beta1.ExportAssetsResponse.output_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=468, + serialized_end=602, ) _BATCHGETASSETSHISTORYREQUEST = _descriptor.Descriptor( - name='BatchGetAssetsHistoryRequest', - full_name='google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset_names', full_name='google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.asset_names', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_type', full_name='google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.content_type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='read_time_window', full_name='google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.read_time_window', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=605, - serialized_end=801, + name="BatchGetAssetsHistoryRequest", + full_name="google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="asset_names", + full_name="google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.asset_names", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content_type", + full_name="google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.content_type", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="read_time_window", + full_name="google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.read_time_window", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=605, + serialized_end=801, ) _BATCHGETASSETSHISTORYRESPONSE = _descriptor.Descriptor( - name='BatchGetAssetsHistoryResponse', - full_name='google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='assets', full_name='google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse.assets', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=803, - serialized_end=893, + name="BatchGetAssetsHistoryResponse", + full_name="google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="assets", + full_name="google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse.assets", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=803, + serialized_end=893, ) _OUTPUTCONFIG = _descriptor.Descriptor( - name='OutputConfig', - full_name='google.cloud.asset.v1beta1.OutputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_destination', full_name='google.cloud.asset.v1beta1.OutputConfig.gcs_destination', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='destination', full_name='google.cloud.asset.v1beta1.OutputConfig.destination', - index=0, containing_type=None, fields=[]), - ], - serialized_start=895, - serialized_end=995, + name="OutputConfig", + full_name="google.cloud.asset.v1beta1.OutputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_destination", + full_name="google.cloud.asset.v1beta1.OutputConfig.gcs_destination", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="destination", + full_name="google.cloud.asset.v1beta1.OutputConfig.destination", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=895, + serialized_end=995, ) _GCSDESTINATION = _descriptor.Descriptor( - name='GcsDestination', - full_name='google.cloud.asset.v1beta1.GcsDestination', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.asset.v1beta1.GcsDestination.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=997, - serialized_end=1026, + name="GcsDestination", + full_name="google.cloud.asset.v1beta1.GcsDestination", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.asset.v1beta1.GcsDestination.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=997, + serialized_end=1026, ) -_EXPORTASSETSREQUEST.fields_by_name['read_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_EXPORTASSETSREQUEST.fields_by_name['content_type'].enum_type = _CONTENTTYPE -_EXPORTASSETSREQUEST.fields_by_name['output_config'].message_type = _OUTPUTCONFIG -_EXPORTASSETSRESPONSE.fields_by_name['read_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_EXPORTASSETSRESPONSE.fields_by_name['output_config'].message_type = _OUTPUTCONFIG -_BATCHGETASSETSHISTORYREQUEST.fields_by_name['content_type'].enum_type = _CONTENTTYPE -_BATCHGETASSETSHISTORYREQUEST.fields_by_name['read_time_window'].message_type = google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2._TIMEWINDOW -_BATCHGETASSETSHISTORYRESPONSE.fields_by_name['assets'].message_type = google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2._TEMPORALASSET -_OUTPUTCONFIG.fields_by_name['gcs_destination'].message_type = _GCSDESTINATION -_OUTPUTCONFIG.oneofs_by_name['destination'].fields.append( - _OUTPUTCONFIG.fields_by_name['gcs_destination']) -_OUTPUTCONFIG.fields_by_name['gcs_destination'].containing_oneof = _OUTPUTCONFIG.oneofs_by_name['destination'] -DESCRIPTOR.message_types_by_name['ExportAssetsRequest'] = _EXPORTASSETSREQUEST -DESCRIPTOR.message_types_by_name['ExportAssetsResponse'] = _EXPORTASSETSRESPONSE -DESCRIPTOR.message_types_by_name['BatchGetAssetsHistoryRequest'] = _BATCHGETASSETSHISTORYREQUEST -DESCRIPTOR.message_types_by_name['BatchGetAssetsHistoryResponse'] = _BATCHGETASSETSHISTORYRESPONSE -DESCRIPTOR.message_types_by_name['OutputConfig'] = _OUTPUTCONFIG -DESCRIPTOR.message_types_by_name['GcsDestination'] = _GCSDESTINATION -DESCRIPTOR.enum_types_by_name['ContentType'] = _CONTENTTYPE +_EXPORTASSETSREQUEST.fields_by_name[ + "read_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_EXPORTASSETSREQUEST.fields_by_name["content_type"].enum_type = _CONTENTTYPE +_EXPORTASSETSREQUEST.fields_by_name["output_config"].message_type = _OUTPUTCONFIG +_EXPORTASSETSRESPONSE.fields_by_name[ + "read_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_EXPORTASSETSRESPONSE.fields_by_name["output_config"].message_type = _OUTPUTCONFIG +_BATCHGETASSETSHISTORYREQUEST.fields_by_name["content_type"].enum_type = _CONTENTTYPE +_BATCHGETASSETSHISTORYREQUEST.fields_by_name[ + "read_time_window" +].message_type = ( + google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2._TIMEWINDOW +) +_BATCHGETASSETSHISTORYRESPONSE.fields_by_name[ + "assets" +].message_type = ( + google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_assets__pb2._TEMPORALASSET +) +_OUTPUTCONFIG.fields_by_name["gcs_destination"].message_type = _GCSDESTINATION +_OUTPUTCONFIG.oneofs_by_name["destination"].fields.append( + _OUTPUTCONFIG.fields_by_name["gcs_destination"] +) +_OUTPUTCONFIG.fields_by_name[ + "gcs_destination" +].containing_oneof = _OUTPUTCONFIG.oneofs_by_name["destination"] +DESCRIPTOR.message_types_by_name["ExportAssetsRequest"] = _EXPORTASSETSREQUEST +DESCRIPTOR.message_types_by_name["ExportAssetsResponse"] = _EXPORTASSETSRESPONSE +DESCRIPTOR.message_types_by_name[ + "BatchGetAssetsHistoryRequest" +] = _BATCHGETASSETSHISTORYREQUEST +DESCRIPTOR.message_types_by_name[ + "BatchGetAssetsHistoryResponse" +] = _BATCHGETASSETSHISTORYRESPONSE +DESCRIPTOR.message_types_by_name["OutputConfig"] = _OUTPUTCONFIG +DESCRIPTOR.message_types_by_name["GcsDestination"] = _GCSDESTINATION +DESCRIPTOR.enum_types_by_name["ContentType"] = _CONTENTTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ExportAssetsRequest = _reflection.GeneratedProtocolMessageType('ExportAssetsRequest', (_message.Message,), dict( - DESCRIPTOR = _EXPORTASSETSREQUEST, - __module__ = 'google.cloud.asset_v1beta1.proto.asset_service_pb2' - , - __doc__ = """Export asset request. +ExportAssetsRequest = _reflection.GeneratedProtocolMessageType( + "ExportAssetsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_EXPORTASSETSREQUEST, + __module__="google.cloud.asset_v1beta1.proto.asset_service_pb2", + __doc__="""Export asset request. Attributes: @@ -358,15 +529,18 @@ will be output to. All results will be in newline delimited JSON format. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.ExportAssetsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.ExportAssetsRequest) + ), +) _sym_db.RegisterMessage(ExportAssetsRequest) -ExportAssetsResponse = _reflection.GeneratedProtocolMessageType('ExportAssetsResponse', (_message.Message,), dict( - DESCRIPTOR = _EXPORTASSETSRESPONSE, - __module__ = 'google.cloud.asset_v1beta1.proto.asset_service_pb2' - , - __doc__ = """The export asset response. This message is returned by the +ExportAssetsResponse = _reflection.GeneratedProtocolMessageType( + "ExportAssetsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_EXPORTASSETSRESPONSE, + __module__="google.cloud.asset_v1beta1.proto.asset_service_pb2", + __doc__="""The export asset response. This message is returned by the [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned [google.longrunning.Operation.response][google.longrunning.Operation.response] @@ -380,15 +554,18 @@ Output configuration indicating where the results were output to. All results are in JSON format. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.ExportAssetsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.ExportAssetsResponse) + ), +) _sym_db.RegisterMessage(ExportAssetsResponse) -BatchGetAssetsHistoryRequest = _reflection.GeneratedProtocolMessageType('BatchGetAssetsHistoryRequest', (_message.Message,), dict( - DESCRIPTOR = _BATCHGETASSETSHISTORYREQUEST, - __module__ = 'google.cloud.asset_v1beta1.proto.asset_service_pb2' - , - __doc__ = """Batch get assets history request. +BatchGetAssetsHistoryRequest = _reflection.GeneratedProtocolMessageType( + "BatchGetAssetsHistoryRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHGETASSETSHISTORYREQUEST, + __module__="google.cloud.asset_v1beta1.proto.asset_service_pb2", + __doc__="""Batch get assets history request. Attributes: @@ -412,30 +589,36 @@ time is required. The returned results contain all temporal assets whose time window overlap with read\_time\_window. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest) + ), +) _sym_db.RegisterMessage(BatchGetAssetsHistoryRequest) -BatchGetAssetsHistoryResponse = _reflection.GeneratedProtocolMessageType('BatchGetAssetsHistoryResponse', (_message.Message,), dict( - DESCRIPTOR = _BATCHGETASSETSHISTORYRESPONSE, - __module__ = 'google.cloud.asset_v1beta1.proto.asset_service_pb2' - , - __doc__ = """Batch get assets history response. +BatchGetAssetsHistoryResponse = _reflection.GeneratedProtocolMessageType( + "BatchGetAssetsHistoryResponse", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHGETASSETSHISTORYRESPONSE, + __module__="google.cloud.asset_v1beta1.proto.asset_service_pb2", + __doc__="""Batch get assets history response. Attributes: assets: A list of assets with valid time windows. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse) + ), +) _sym_db.RegisterMessage(BatchGetAssetsHistoryResponse) -OutputConfig = _reflection.GeneratedProtocolMessageType('OutputConfig', (_message.Message,), dict( - DESCRIPTOR = _OUTPUTCONFIG, - __module__ = 'google.cloud.asset_v1beta1.proto.asset_service_pb2' - , - __doc__ = """Output configuration for export assets destination. +OutputConfig = _reflection.GeneratedProtocolMessageType( + "OutputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_OUTPUTCONFIG, + __module__="google.cloud.asset_v1beta1.proto.asset_service_pb2", + __doc__="""Output configuration for export assets destination. Attributes: @@ -444,15 +627,18 @@ gcs_destination: Destination on Cloud Storage. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.OutputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.OutputConfig) + ), +) _sym_db.RegisterMessage(OutputConfig) -GcsDestination = _reflection.GeneratedProtocolMessageType('GcsDestination', (_message.Message,), dict( - DESCRIPTOR = _GCSDESTINATION, - __module__ = 'google.cloud.asset_v1beta1.proto.asset_service_pb2' - , - __doc__ = """A Cloud Storage location. +GcsDestination = _reflection.GeneratedProtocolMessageType( + "GcsDestination", + (_message.Message,), + dict( + DESCRIPTOR=_GCSDESTINATION, + __module__="google.cloud.asset_v1beta1.proto.asset_service_pb2", + __doc__="""A Cloud Storage location. Attributes: @@ -464,44 +650,61 @@ `__ for more information. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.GcsDestination) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.GcsDestination) + ), +) _sym_db.RegisterMessage(GcsDestination) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.asset.v1beta1B\021AssetServiceProtoP\001Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\252\002\032Google.Cloud.Asset.V1Beta1\312\002\032Google\\Cloud\\Asset\\V1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.asset.v1beta1B\021AssetServiceProtoP\001Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\252\002\032Google.Cloud.Asset.V1Beta1\312\002\032Google\\Cloud\\Asset\\V1beta1" + ), +) _ASSETSERVICE = _descriptor.ServiceDescriptor( - name='AssetService', - full_name='google.cloud.asset.v1beta1.AssetService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1104, - serialized_end=1584, - methods=[ - _descriptor.MethodDescriptor( - name='ExportAssets', - full_name='google.cloud.asset.v1beta1.AssetService.ExportAssets', + name="AssetService", + full_name="google.cloud.asset.v1beta1.AssetService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_EXPORTASSETSREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002c\")/v1beta1/{parent=projects/*}:exportAssets:\001*Z3\"./v1beta1/{parent=organizations/*}:exportAssets:\001*')), - ), - _descriptor.MethodDescriptor( - name='BatchGetAssetsHistory', - full_name='google.cloud.asset.v1beta1.AssetService.BatchGetAssetsHistory', - index=1, - containing_service=None, - input_type=_BATCHGETASSETSHISTORYREQUEST, - output_type=_BATCHGETASSETSHISTORYRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002o\0222/v1beta1/{parent=projects/*}:batchGetAssetsHistoryZ9\0227/v1beta1/{parent=organizations/*}:batchGetAssetsHistory')), - ), -]) + options=None, + serialized_start=1104, + serialized_end=1584, + methods=[ + _descriptor.MethodDescriptor( + name="ExportAssets", + full_name="google.cloud.asset.v1beta1.AssetService.ExportAssets", + index=0, + containing_service=None, + input_type=_EXPORTASSETSREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002c")/v1beta1/{parent=projects/*}:exportAssets:\001*Z3"./v1beta1/{parent=organizations/*}:exportAssets:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="BatchGetAssetsHistory", + full_name="google.cloud.asset.v1beta1.AssetService.BatchGetAssetsHistory", + index=1, + containing_service=None, + input_type=_BATCHGETASSETSHISTORYREQUEST, + output_type=_BATCHGETASSETSHISTORYRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002o\0222/v1beta1/{parent=projects/*}:batchGetAssetsHistoryZ9\0227/v1beta1/{parent=organizations/*}:batchGetAssetsHistory" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_ASSETSERVICE) -DESCRIPTOR.services_by_name['AssetService'] = _ASSETSERVICE +DESCRIPTOR.services_by_name["AssetService"] = _ASSETSERVICE # @@protoc_insertion_point(module_scope) diff --git a/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2_grpc.py b/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2_grpc.py index bb194155ee302..aeb4ba9efd111 100644 --- a/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2_grpc.py +++ b/asset/google/cloud/asset_v1beta1/proto/asset_service_pb2_grpc.py @@ -1,71 +1,76 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.asset_v1beta1.proto import asset_service_pb2 as google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.asset_v1beta1.proto import ( + asset_service_pb2 as google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class AssetServiceStub(object): - """Asset service definition. + """Asset service definition. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ExportAssets = channel.unary_unary( - '/google.cloud.asset.v1beta1.AssetService/ExportAssets', - request_serializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.ExportAssetsRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.ExportAssets = channel.unary_unary( + "/google.cloud.asset.v1beta1.AssetService/ExportAssets", + request_serializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.ExportAssetsRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.BatchGetAssetsHistory = channel.unary_unary( - '/google.cloud.asset.v1beta1.AssetService/BatchGetAssetsHistory', - request_serializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryResponse.FromString, + self.BatchGetAssetsHistory = channel.unary_unary( + "/google.cloud.asset.v1beta1.AssetService/BatchGetAssetsHistory", + request_serializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryResponse.FromString, ) class AssetServiceServicer(object): - """Asset service definition. + """Asset service definition. """ - def ExportAssets(self, request, context): - """Exports assets with time and resource types to a given Cloud Storage + def ExportAssets(self, request, context): + """Exports assets with time and resource types to a given Cloud Storage location. The output format is newline-delimited JSON. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing you to keep track of the export. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def BatchGetAssetsHistory(self, request, context): - """Batch gets the update history of assets that overlap a time window. + def BatchGetAssetsHistory(self, request, context): + """Batch gets the update history of assets that overlap a time window. For RESOURCE content, this API outputs history with asset in both non-delete or deleted status. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_AssetServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ExportAssets': grpc.unary_unary_rpc_method_handler( - servicer.ExportAssets, - request_deserializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.ExportAssetsRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'BatchGetAssetsHistory': grpc.unary_unary_rpc_method_handler( - servicer.BatchGetAssetsHistory, - request_deserializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryRequest.FromString, - response_serializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.asset.v1beta1.AssetService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ExportAssets": grpc.unary_unary_rpc_method_handler( + servicer.ExportAssets, + request_deserializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.ExportAssetsRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "BatchGetAssetsHistory": grpc.unary_unary_rpc_method_handler( + servicer.BatchGetAssetsHistory, + request_deserializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryRequest.FromString, + response_serializer=google_dot_cloud_dot_asset__v1beta1_dot_proto_dot_asset__service__pb2.BatchGetAssetsHistoryResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.asset.v1beta1.AssetService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py b/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py index 32907446e2629..9755036c3e4b2 100644 --- a/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py +++ b/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/asset_v1beta1/proto/assets.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,234 +23,405 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/asset_v1beta1/proto/assets.proto', - package='google.cloud.asset.v1beta1', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/asset_v1beta1/proto/assets.proto\x12\x1agoogle.cloud.asset.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8a\x01\n\rTemporalAsset\x12\x36\n\x06window\x18\x01 \x01(\x0b\x32&.google.cloud.asset.v1beta1.TimeWindow\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\x12\x30\n\x05\x61sset\x18\x03 \x01(\x0b\x32!.google.cloud.asset.v1beta1.Asset\"j\n\nTimeWindow\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x01\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x36\n\x08resource\x18\x03 \x01(\x0b\x32$.google.cloud.asset.v1beta1.Resource\x12)\n\niam_policy\x18\x04 \x01(\x0b\x32\x15.google.iam.v1.Policy\"\xa0\x01\n\x08Resource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1e\n\x16\x64iscovery_document_uri\x18\x02 \x01(\t\x12\x16\n\x0e\x64iscovery_name\x18\x03 \x01(\t\x12\x14\n\x0cresource_url\x18\x04 \x01(\t\x12\x0e\n\x06parent\x18\x05 \x01(\t\x12%\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\xa9\x01\n\x1e\x63om.google.cloud.asset.v1beta1B\nAssetProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\xaa\x02\x1aGoogle.Cloud.Asset.V1Beta1\xca\x02\x1aGoogle\\Cloud\\Asset\\V1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/asset_v1beta1/proto/assets.proto", + package="google.cloud.asset.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/asset_v1beta1/proto/assets.proto\x12\x1agoogle.cloud.asset.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x8a\x01\n\rTemporalAsset\x12\x36\n\x06window\x18\x01 \x01(\x0b\x32&.google.cloud.asset.v1beta1.TimeWindow\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\x12\x30\n\x05\x61sset\x18\x03 \x01(\x0b\x32!.google.cloud.asset.v1beta1.Asset"j\n\nTimeWindow\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x8c\x01\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x36\n\x08resource\x18\x03 \x01(\x0b\x32$.google.cloud.asset.v1beta1.Resource\x12)\n\niam_policy\x18\x04 \x01(\x0b\x32\x15.google.iam.v1.Policy"\xa0\x01\n\x08Resource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1e\n\x16\x64iscovery_document_uri\x18\x02 \x01(\t\x12\x16\n\x0e\x64iscovery_name\x18\x03 \x01(\t\x12\x14\n\x0cresource_url\x18\x04 \x01(\t\x12\x0e\n\x06parent\x18\x05 \x01(\t\x12%\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\xa9\x01\n\x1e\x63om.google.cloud.asset.v1beta1B\nAssetProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\xaa\x02\x1aGoogle.Cloud.Asset.V1Beta1\xca\x02\x1aGoogle\\Cloud\\Asset\\V1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, + google_dot_protobuf_dot_any__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _TEMPORALASSET = _descriptor.Descriptor( - name='TemporalAsset', - full_name='google.cloud.asset.v1beta1.TemporalAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='window', full_name='google.cloud.asset.v1beta1.TemporalAsset.window', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='deleted', full_name='google.cloud.asset.v1beta1.TemporalAsset.deleted', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset', full_name='google.cloud.asset.v1beta1.TemporalAsset.asset', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=226, - serialized_end=364, + name="TemporalAsset", + full_name="google.cloud.asset.v1beta1.TemporalAsset", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="window", + full_name="google.cloud.asset.v1beta1.TemporalAsset.window", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="deleted", + full_name="google.cloud.asset.v1beta1.TemporalAsset.deleted", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="asset", + full_name="google.cloud.asset.v1beta1.TemporalAsset.asset", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=226, + serialized_end=364, ) _TIMEWINDOW = _descriptor.Descriptor( - name='TimeWindow', - full_name='google.cloud.asset.v1beta1.TimeWindow', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.asset.v1beta1.TimeWindow.start_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.asset.v1beta1.TimeWindow.end_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=366, - serialized_end=472, + name="TimeWindow", + full_name="google.cloud.asset.v1beta1.TimeWindow", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.asset.v1beta1.TimeWindow.start_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.asset.v1beta1.TimeWindow.end_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=366, + serialized_end=472, ) _ASSET = _descriptor.Descriptor( - name='Asset', - full_name='google.cloud.asset.v1beta1.Asset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.asset.v1beta1.Asset.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset_type', full_name='google.cloud.asset.v1beta1.Asset.asset_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource', full_name='google.cloud.asset.v1beta1.Asset.resource', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='iam_policy', full_name='google.cloud.asset.v1beta1.Asset.iam_policy', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=475, - serialized_end=615, + name="Asset", + full_name="google.cloud.asset.v1beta1.Asset", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.asset.v1beta1.Asset.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="asset_type", + full_name="google.cloud.asset.v1beta1.Asset.asset_type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource", + full_name="google.cloud.asset.v1beta1.Asset.resource", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="iam_policy", + full_name="google.cloud.asset.v1beta1.Asset.iam_policy", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=475, + serialized_end=615, ) _RESOURCE = _descriptor.Descriptor( - name='Resource', - full_name='google.cloud.asset.v1beta1.Resource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.asset.v1beta1.Resource.version', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='discovery_document_uri', full_name='google.cloud.asset.v1beta1.Resource.discovery_document_uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='discovery_name', full_name='google.cloud.asset.v1beta1.Resource.discovery_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_url', full_name='google.cloud.asset.v1beta1.Resource.resource_url', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.asset.v1beta1.Resource.parent', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='google.cloud.asset.v1beta1.Resource.data', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=618, - serialized_end=778, + name="Resource", + full_name="google.cloud.asset.v1beta1.Resource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.asset.v1beta1.Resource.version", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="discovery_document_uri", + full_name="google.cloud.asset.v1beta1.Resource.discovery_document_uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="discovery_name", + full_name="google.cloud.asset.v1beta1.Resource.discovery_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_url", + full_name="google.cloud.asset.v1beta1.Resource.resource_url", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.asset.v1beta1.Resource.parent", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data", + full_name="google.cloud.asset.v1beta1.Resource.data", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=618, + serialized_end=778, ) -_TEMPORALASSET.fields_by_name['window'].message_type = _TIMEWINDOW -_TEMPORALASSET.fields_by_name['asset'].message_type = _ASSET -_TIMEWINDOW.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TIMEWINDOW.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ASSET.fields_by_name['resource'].message_type = _RESOURCE -_ASSET.fields_by_name['iam_policy'].message_type = google_dot_iam_dot_v1_dot_policy__pb2.google_dot_iam_dot_v1_dot_policy__pb2._POLICY -_RESOURCE.fields_by_name['data'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -DESCRIPTOR.message_types_by_name['TemporalAsset'] = _TEMPORALASSET -DESCRIPTOR.message_types_by_name['TimeWindow'] = _TIMEWINDOW -DESCRIPTOR.message_types_by_name['Asset'] = _ASSET -DESCRIPTOR.message_types_by_name['Resource'] = _RESOURCE +_TEMPORALASSET.fields_by_name["window"].message_type = _TIMEWINDOW +_TEMPORALASSET.fields_by_name["asset"].message_type = _ASSET +_TIMEWINDOW.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMEWINDOW.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ASSET.fields_by_name["resource"].message_type = _RESOURCE +_ASSET.fields_by_name[ + "iam_policy" +].message_type = ( + google_dot_iam_dot_v1_dot_policy__pb2.google_dot_iam_dot_v1_dot_policy__pb2._POLICY +) +_RESOURCE.fields_by_name[ + "data" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +DESCRIPTOR.message_types_by_name["TemporalAsset"] = _TEMPORALASSET +DESCRIPTOR.message_types_by_name["TimeWindow"] = _TIMEWINDOW +DESCRIPTOR.message_types_by_name["Asset"] = _ASSET +DESCRIPTOR.message_types_by_name["Resource"] = _RESOURCE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TemporalAsset = _reflection.GeneratedProtocolMessageType('TemporalAsset', (_message.Message,), dict( - DESCRIPTOR = _TEMPORALASSET, - __module__ = 'google.cloud.asset_v1beta1.proto.assets_pb2' - , - __doc__ = """Temporal asset. In addition to the asset, the temporal asset includes +TemporalAsset = _reflection.GeneratedProtocolMessageType( + "TemporalAsset", + (_message.Message,), + dict( + DESCRIPTOR=_TEMPORALASSET, + __module__="google.cloud.asset_v1beta1.proto.assets_pb2", + __doc__="""Temporal asset. In addition to the asset, the temporal asset includes the status of the asset and valid from and to time of it. @@ -260,15 +433,18 @@ asset: Asset. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.TemporalAsset) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.TemporalAsset) + ), +) _sym_db.RegisterMessage(TemporalAsset) -TimeWindow = _reflection.GeneratedProtocolMessageType('TimeWindow', (_message.Message,), dict( - DESCRIPTOR = _TIMEWINDOW, - __module__ = 'google.cloud.asset_v1beta1.proto.assets_pb2' - , - __doc__ = """A time window of [start\_time, end\_time). +TimeWindow = _reflection.GeneratedProtocolMessageType( + "TimeWindow", + (_message.Message,), + dict( + DESCRIPTOR=_TIMEWINDOW, + __module__="google.cloud.asset_v1beta1.proto.assets_pb2", + __doc__="""A time window of [start\_time, end\_time). Attributes: @@ -278,15 +454,18 @@ End time of the time window (exclusive). Current timestamp if not specified. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.TimeWindow) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.TimeWindow) + ), +) _sym_db.RegisterMessage(TimeWindow) -Asset = _reflection.GeneratedProtocolMessageType('Asset', (_message.Message,), dict( - DESCRIPTOR = _ASSET, - __module__ = 'google.cloud.asset_v1beta1.proto.assets_pb2' - , - __doc__ = """Cloud asset. This includes all Google Cloud Platform resources, Cloud +Asset = _reflection.GeneratedProtocolMessageType( + "Asset", + (_message.Message,), + dict( + DESCRIPTOR=_ASSET, + __module__="google.cloud.asset_v1beta1.proto.assets_pb2", + __doc__="""Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM policies, and other non-GCP assets. @@ -306,15 +485,18 @@ resource. For each resource, there must be at most one Cloud IAM policy set on it. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.Asset) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.Asset) + ), +) _sym_db.RegisterMessage(Asset) -Resource = _reflection.GeneratedProtocolMessageType('Resource', (_message.Message,), dict( - DESCRIPTOR = _RESOURCE, - __module__ = 'google.cloud.asset_v1beta1.proto.assets_pb2' - , - __doc__ = """Representation of a cloud resource. +Resource = _reflection.GeneratedProtocolMessageType( + "Resource", + (_message.Message,), + dict( + DESCRIPTOR=_RESOURCE, + __module__="google.cloud.asset_v1beta1.proto.assets_pb2", + __doc__="""Representation of a cloud resource. Attributes: @@ -349,11 +531,17 @@ The content of the resource, in which some sensitive fields are scrubbed away and may not be present. """, - # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.Resource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.asset.v1beta1.Resource) + ), +) _sym_db.RegisterMessage(Resource) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.asset.v1beta1B\nAssetProtoP\001Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\252\002\032Google.Cloud.Asset.V1Beta1\312\002\032Google\\Cloud\\Asset\\V1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.asset.v1beta1B\nAssetProtoP\001Z?google.golang.org/genproto/googleapis/cloud/asset/v1beta1;asset\252\002\032Google.Cloud.Asset.V1Beta1\312\002\032Google\\Cloud\\Asset\\V1beta1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/asset/google/cloud/asset_v1beta1/proto/assets_pb2_grpc.py b/asset/google/cloud/asset_v1beta1/proto/assets_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/asset/google/cloud/asset_v1beta1/proto/assets_pb2_grpc.py +++ b/asset/google/cloud/asset_v1beta1/proto/assets_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/asset/google/cloud/asset_v1beta1/types.py b/asset/google/cloud/asset_v1beta1/types.py index eb4c3d9023c9c..d23cc19a458da 100644 --- a/asset/google/cloud/asset_v1beta1/types.py +++ b/asset/google/cloud/asset_v1beta1/types.py @@ -43,10 +43,7 @@ status_pb2, ] -_local_modules = [ - asset_service_pb2, - assets_pb2, -] +_local_modules = [asset_service_pb2, assets_pb2] names = [] @@ -56,7 +53,7 @@ names.append(name) for module in _local_modules: for name, message in get_messages(module).items(): - message.__module__ = 'google.cloud.asset_v1beta1.types' + message.__module__ = "google.cloud.asset_v1beta1.types" setattr(sys.modules[__name__], name, message) names.append(name) diff --git a/asset/tests/unit/gapic/v1beta1/test_asset_service_client_v1beta1.py b/asset/tests/unit/gapic/v1beta1/test_asset_service_client_v1beta1.py index 4c2b65d11cdff..1cc4177bb164b 100644 --- a/asset/tests/unit/gapic/v1beta1/test_asset_service_client_v1beta1.py +++ b/asset/tests/unit/gapic/v1beta1/test_asset_service_client_v1beta1.py @@ -55,10 +55,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -70,21 +67,21 @@ class TestAssetServiceClient(object): def test_export_assets(self): # Setup Expected Response expected_response = {} - expected_response = asset_service_pb2.ExportAssetsResponse( - **expected_response) + expected_response = asset_service_pb2.ExportAssetsResponse(**expected_response) operation = operations_pb2.Operation( - name='operations/test_export_assets', done=True) + name="operations/test_export_assets", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = asset_v1beta1.AssetServiceClient() # Setup Request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") output_config = {} response = client.export_assets(parent, output_config) @@ -93,7 +90,8 @@ def test_export_assets(self): assert len(channel.requests) == 1 expected_request = asset_service_pb2.ExportAssetsRequest( - parent=parent, output_config=output_config) + parent=parent, output_config=output_config + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -101,18 +99,19 @@ def test_export_assets_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_export_assets_exception', done=True) + name="operations/test_export_assets_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = asset_v1beta1.AssetServiceClient() # Setup Request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") output_config = {} response = client.export_assets(parent, output_config) @@ -123,45 +122,45 @@ def test_batch_get_assets_history(self): # Setup Expected Response expected_response = {} expected_response = asset_service_pb2.BatchGetAssetsHistoryResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = asset_v1beta1.AssetServiceClient() # Setup Request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") content_type = enums.ContentType.CONTENT_TYPE_UNSPECIFIED read_time_window = {} - response = client.batch_get_assets_history(parent, content_type, - read_time_window) + response = client.batch_get_assets_history( + parent, content_type, read_time_window + ) assert expected_response == response assert len(channel.requests) == 1 expected_request = asset_service_pb2.BatchGetAssetsHistoryRequest( - parent=parent, - content_type=content_type, - read_time_window=read_time_window) + parent=parent, content_type=content_type, read_time_window=read_time_window + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_batch_get_assets_history_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = asset_v1beta1.AssetServiceClient() # Setup request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") content_type = enums.ContentType.CONTENT_TYPE_UNSPECIFIED read_time_window = {} with pytest.raises(CustomException): - client.batch_get_assets_history(parent, content_type, - read_time_window) + client.batch_get_assets_history(parent, content_type, read_time_window) diff --git a/automl/google/cloud/automl.py b/automl/google/cloud/automl.py index def01415d72cc..4bf998b12ad2e 100644 --- a/automl/google/cloud/automl.py +++ b/automl/google/cloud/automl.py @@ -21,9 +21,4 @@ from google.cloud.automl_v1beta1 import enums from google.cloud.automl_v1beta1 import types -__all__ = ( - 'enums', - 'types', - 'PredictionServiceClient', - 'AutoMlClient', -) +__all__ = ("enums", "types", "PredictionServiceClient", "AutoMlClient") diff --git a/automl/google/cloud/automl_v1beta1/__init__.py b/automl/google/cloud/automl_v1beta1/__init__.py index 59d3df8458f2e..aae6b72f5b6e2 100644 --- a/automl/google/cloud/automl_v1beta1/__init__.py +++ b/automl/google/cloud/automl_v1beta1/__init__.py @@ -22,8 +22,7 @@ from google.cloud.automl_v1beta1.gapic import prediction_service_client -class PredictionServiceClient( - prediction_service_client.PredictionServiceClient): +class PredictionServiceClient(prediction_service_client.PredictionServiceClient): __doc__ = prediction_service_client.PredictionServiceClient.__doc__ enums = enums @@ -33,9 +32,4 @@ class AutoMlClient(auto_ml_client.AutoMlClient): enums = enums -__all__ = ( - 'enums', - 'types', - 'PredictionServiceClient', - 'AutoMlClient', -) +__all__ = ("enums", "types", "PredictionServiceClient", "AutoMlClient") diff --git a/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py b/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py index 72cecb1b00478..7c872854a67dc 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py +++ b/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py @@ -46,8 +46,7 @@ from google.longrunning import operations_pb2 as longrunning_operations_pb2 from google.protobuf import empty_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-automl', ).version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-automl").version class AutoMlClient(object): @@ -63,12 +62,12 @@ class AutoMlClient(object): then the id for the item is ``{dataset_id}``. """ - SERVICE_ADDRESS = 'automl.googleapis.com:443' + SERVICE_ADDRESS = "automl.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.cloud.automl.v1beta1.AutoMl' + _INTERFACE_NAME = "google.cloud.automl.v1beta1.AutoMl" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -84,9 +83,8 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: AutoMlClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file @@ -95,7 +93,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): def location_path(cls, project, location): """Return a fully-qualified location string.""" return google.api_core.path_template.expand( - 'projects/{project}/locations/{location}', + "projects/{project}/locations/{location}", project=project, location=location, ) @@ -104,7 +102,7 @@ def location_path(cls, project, location): def dataset_path(cls, project, location, dataset): """Return a fully-qualified dataset string.""" return google.api_core.path_template.expand( - 'projects/{project}/locations/{location}/datasets/{dataset}', + "projects/{project}/locations/{location}/datasets/{dataset}", project=project, location=location, dataset=dataset, @@ -114,7 +112,7 @@ def dataset_path(cls, project, location, dataset): def model_path(cls, project, location, model): """Return a fully-qualified model string.""" return google.api_core.path_template.expand( - 'projects/{project}/locations/{location}/models/{model}', + "projects/{project}/locations/{location}/models/{model}", project=project, location=location, model=model, @@ -124,19 +122,21 @@ def model_path(cls, project, location, model): def model_evaluation_path(cls, project, location, model, model_evaluation): """Return a fully-qualified model_evaluation string.""" return google.api_core.path_template.expand( - 'projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}', + "projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}", project=project, location=location, model=model, model_evaluation=model_evaluation, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -170,18 +170,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = auto_ml_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -195,19 +196,19 @@ def __init__(self, else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = auto_ml_grpc_transport.AutoMlGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -217,7 +218,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -226,12 +228,14 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def create_dataset(self, - parent, - dataset, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def create_dataset( + self, + parent, + dataset, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates a dataset. @@ -273,28 +277,28 @@ def create_dataset(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'create_dataset' not in self._inner_api_calls: + if "create_dataset" not in self._inner_api_calls: self._inner_api_calls[ - 'create_dataset'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_dataset, - default_retry=self._method_configs['CreateDataset'].retry, - default_timeout=self._method_configs['CreateDataset']. - timeout, - client_info=self._client_info, - ) + "create_dataset" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_dataset, + default_retry=self._method_configs["CreateDataset"].retry, + default_timeout=self._method_configs["CreateDataset"].timeout, + client_info=self._client_info, + ) - request = service_pb2.CreateDatasetRequest( - parent=parent, - dataset=dataset, + request = service_pb2.CreateDatasetRequest(parent=parent, dataset=dataset) + return self._inner_api_calls["create_dataset"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['create_dataset']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_dataset(self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def get_dataset( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets a dataset. @@ -329,26 +333,30 @@ def get_dataset(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_dataset' not in self._inner_api_calls: + if "get_dataset" not in self._inner_api_calls: self._inner_api_calls[ - 'get_dataset'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_dataset, - default_retry=self._method_configs['GetDataset'].retry, - default_timeout=self._method_configs['GetDataset'].timeout, - client_info=self._client_info, - ) + "get_dataset" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_dataset, + default_retry=self._method_configs["GetDataset"].retry, + default_timeout=self._method_configs["GetDataset"].timeout, + client_info=self._client_info, + ) + + request = service_pb2.GetDatasetRequest(name=name) + return self._inner_api_calls["get_dataset"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) - request = service_pb2.GetDatasetRequest(name=name, ) - return self._inner_api_calls['get_dataset']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_datasets(self, - parent, - filter_=None, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def list_datasets( + self, + parent, + filter_=None, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists datasets in a project. @@ -411,40 +419,41 @@ def list_datasets(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_datasets' not in self._inner_api_calls: + if "list_datasets" not in self._inner_api_calls: self._inner_api_calls[ - 'list_datasets'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_datasets, - default_retry=self._method_configs['ListDatasets'].retry, - default_timeout=self._method_configs['ListDatasets']. - timeout, - client_info=self._client_info, - ) + "list_datasets" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_datasets, + default_retry=self._method_configs["ListDatasets"].retry, + default_timeout=self._method_configs["ListDatasets"].timeout, + client_info=self._client_info, + ) request = service_pb2.ListDatasetsRequest( - parent=parent, - filter=filter_, - page_size=page_size, + parent=parent, filter=filter_, page_size=page_size ) iterator = google.api_core.page_iterator.GRPCIterator( client=None, method=functools.partial( - self._inner_api_calls['list_datasets'], + self._inner_api_calls["list_datasets"], retry=retry, timeout=timeout, - metadata=metadata), + metadata=metadata, + ), request=request, - items_field='datasets', - request_token_field='page_token', - response_token_field='next_page_token', + items_field="datasets", + request_token_field="page_token", + response_token_field="next_page_token", ) return iterator - def delete_dataset(self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def delete_dataset( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deletes a dataset and all of its contents. Returns empty response in the ``response`` field when it completes, and ``delete_details`` in the @@ -490,19 +499,20 @@ def delete_dataset(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'delete_dataset' not in self._inner_api_calls: + if "delete_dataset" not in self._inner_api_calls: self._inner_api_calls[ - 'delete_dataset'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_dataset, - default_retry=self._method_configs['DeleteDataset'].retry, - default_timeout=self._method_configs['DeleteDataset']. - timeout, - client_info=self._client_info, - ) + "delete_dataset" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_dataset, + default_retry=self._method_configs["DeleteDataset"].retry, + default_timeout=self._method_configs["DeleteDataset"].timeout, + client_info=self._client_info, + ) - request = service_pb2.DeleteDatasetRequest(name=name, ) - operation = self._inner_api_calls['delete_dataset']( - request, retry=retry, timeout=timeout, metadata=metadata) + request = service_pb2.DeleteDatasetRequest(name=name) + operation = self._inner_api_calls["delete_dataset"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -510,12 +520,14 @@ def delete_dataset(self, metadata_type=proto_operations_pb2.OperationMetadata, ) - def import_data(self, - name, - input_config, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def import_data( + self, + name, + input_config, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Imports data into a dataset. Returns an empty response in the ``response`` field when it completes. @@ -568,21 +580,20 @@ def import_data(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'import_data' not in self._inner_api_calls: + if "import_data" not in self._inner_api_calls: self._inner_api_calls[ - 'import_data'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.import_data, - default_retry=self._method_configs['ImportData'].retry, - default_timeout=self._method_configs['ImportData'].timeout, - client_info=self._client_info, - ) + "import_data" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.import_data, + default_retry=self._method_configs["ImportData"].retry, + default_timeout=self._method_configs["ImportData"].timeout, + client_info=self._client_info, + ) - request = service_pb2.ImportDataRequest( - name=name, - input_config=input_config, + request = service_pb2.ImportDataRequest(name=name, input_config=input_config) + operation = self._inner_api_calls["import_data"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - operation = self._inner_api_calls['import_data']( - request, retry=retry, timeout=timeout, metadata=metadata) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -590,12 +601,14 @@ def import_data(self, metadata_type=proto_operations_pb2.OperationMetadata, ) - def export_data(self, - name, - output_config, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def export_data( + self, + name, + output_config, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Exports dataset's data to a Google Cloud Storage bucket. Returns an empty response in the ``response`` field when it completes. @@ -647,21 +660,20 @@ def export_data(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'export_data' not in self._inner_api_calls: + if "export_data" not in self._inner_api_calls: self._inner_api_calls[ - 'export_data'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.export_data, - default_retry=self._method_configs['ExportData'].retry, - default_timeout=self._method_configs['ExportData'].timeout, - client_info=self._client_info, - ) + "export_data" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.export_data, + default_retry=self._method_configs["ExportData"].retry, + default_timeout=self._method_configs["ExportData"].timeout, + client_info=self._client_info, + ) - request = service_pb2.ExportDataRequest( - name=name, - output_config=output_config, + request = service_pb2.ExportDataRequest(name=name, output_config=output_config) + operation = self._inner_api_calls["export_data"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - operation = self._inner_api_calls['export_data']( - request, retry=retry, timeout=timeout, metadata=metadata) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -669,12 +681,14 @@ def export_data(self, metadata_type=proto_operations_pb2.OperationMetadata, ) - def create_model(self, - parent, - model, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def create_model( + self, + parent, + model, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates a model. Returns a Model in the ``response`` field when it completes. When you create a model, several model evaluations are @@ -728,22 +742,20 @@ def create_model(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'create_model' not in self._inner_api_calls: + if "create_model" not in self._inner_api_calls: self._inner_api_calls[ - 'create_model'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_model, - default_retry=self._method_configs['CreateModel'].retry, - default_timeout=self._method_configs['CreateModel']. - timeout, - client_info=self._client_info, - ) + "create_model" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_model, + default_retry=self._method_configs["CreateModel"].retry, + default_timeout=self._method_configs["CreateModel"].timeout, + client_info=self._client_info, + ) - request = service_pb2.CreateModelRequest( - parent=parent, - model=model, + request = service_pb2.CreateModelRequest(parent=parent, model=model) + operation = self._inner_api_calls["create_model"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - operation = self._inner_api_calls['create_model']( - request, retry=retry, timeout=timeout, metadata=metadata) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -751,11 +763,13 @@ def create_model(self, metadata_type=proto_operations_pb2.OperationMetadata, ) - def get_model(self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_model( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets a model. @@ -790,26 +804,30 @@ def get_model(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_model' not in self._inner_api_calls: + if "get_model" not in self._inner_api_calls: self._inner_api_calls[ - 'get_model'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_model, - default_retry=self._method_configs['GetModel'].retry, - default_timeout=self._method_configs['GetModel'].timeout, - client_info=self._client_info, - ) + "get_model" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_model, + default_retry=self._method_configs["GetModel"].retry, + default_timeout=self._method_configs["GetModel"].timeout, + client_info=self._client_info, + ) - request = service_pb2.GetModelRequest(name=name, ) - return self._inner_api_calls['get_model']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_models(self, - parent, - filter_=None, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + request = service_pb2.GetModelRequest(name=name) + return self._inner_api_calls["get_model"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def list_models( + self, + parent, + filter_=None, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists models. @@ -875,39 +893,41 @@ def list_models(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_models' not in self._inner_api_calls: + if "list_models" not in self._inner_api_calls: self._inner_api_calls[ - 'list_models'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_models, - default_retry=self._method_configs['ListModels'].retry, - default_timeout=self._method_configs['ListModels'].timeout, - client_info=self._client_info, - ) + "list_models" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_models, + default_retry=self._method_configs["ListModels"].retry, + default_timeout=self._method_configs["ListModels"].timeout, + client_info=self._client_info, + ) request = service_pb2.ListModelsRequest( - parent=parent, - filter=filter_, - page_size=page_size, + parent=parent, filter=filter_, page_size=page_size ) iterator = google.api_core.page_iterator.GRPCIterator( client=None, method=functools.partial( - self._inner_api_calls['list_models'], + self._inner_api_calls["list_models"], retry=retry, timeout=timeout, - metadata=metadata), + metadata=metadata, + ), request=request, - items_field='model', - request_token_field='page_token', - response_token_field='next_page_token', + items_field="model", + request_token_field="page_token", + response_token_field="next_page_token", ) return iterator - def delete_model(self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def delete_model( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and does not change the status of the deployed model @@ -955,19 +975,20 @@ def delete_model(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'delete_model' not in self._inner_api_calls: + if "delete_model" not in self._inner_api_calls: self._inner_api_calls[ - 'delete_model'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_model, - default_retry=self._method_configs['DeleteModel'].retry, - default_timeout=self._method_configs['DeleteModel']. - timeout, - client_info=self._client_info, - ) + "delete_model" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_model, + default_retry=self._method_configs["DeleteModel"].retry, + default_timeout=self._method_configs["DeleteModel"].timeout, + client_info=self._client_info, + ) - request = service_pb2.DeleteModelRequest(name=name, ) - operation = self._inner_api_calls['delete_model']( - request, retry=retry, timeout=timeout, metadata=metadata) + request = service_pb2.DeleteModelRequest(name=name) + operation = self._inner_api_calls["delete_model"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -975,11 +996,13 @@ def delete_model(self, metadata_type=proto_operations_pb2.OperationMetadata, ) - def deploy_model(self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def deploy_model( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deploys model. Returns a ``DeployModelResponse`` in the ``response`` field when it completes. @@ -1015,25 +1038,28 @@ def deploy_model(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'deploy_model' not in self._inner_api_calls: + if "deploy_model" not in self._inner_api_calls: self._inner_api_calls[ - 'deploy_model'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.deploy_model, - default_retry=self._method_configs['DeployModel'].retry, - default_timeout=self._method_configs['DeployModel']. - timeout, - client_info=self._client_info, - ) + "deploy_model" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.deploy_model, + default_retry=self._method_configs["DeployModel"].retry, + default_timeout=self._method_configs["DeployModel"].timeout, + client_info=self._client_info, + ) - request = service_pb2.DeployModelRequest(name=name, ) - return self._inner_api_calls['deploy_model']( - request, retry=retry, timeout=timeout, metadata=metadata) + request = service_pb2.DeployModelRequest(name=name) + return self._inner_api_calls["deploy_model"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) - def undeploy_model(self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def undeploy_model( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Undeploys model. Returns an ``UndeployModelResponse`` in the ``response`` field when it completes. @@ -1069,25 +1095,28 @@ def undeploy_model(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'undeploy_model' not in self._inner_api_calls: + if "undeploy_model" not in self._inner_api_calls: self._inner_api_calls[ - 'undeploy_model'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.undeploy_model, - default_retry=self._method_configs['UndeployModel'].retry, - default_timeout=self._method_configs['UndeployModel']. - timeout, - client_info=self._client_info, - ) + "undeploy_model" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.undeploy_model, + default_retry=self._method_configs["UndeployModel"].retry, + default_timeout=self._method_configs["UndeployModel"].timeout, + client_info=self._client_info, + ) - request = service_pb2.UndeployModelRequest(name=name, ) - return self._inner_api_calls['undeploy_model']( - request, retry=retry, timeout=timeout, metadata=metadata) + request = service_pb2.UndeployModelRequest(name=name) + return self._inner_api_calls["undeploy_model"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) - def get_model_evaluation(self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_model_evaluation( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets a model evaluation. @@ -1122,28 +1151,30 @@ def get_model_evaluation(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_model_evaluation' not in self._inner_api_calls: + if "get_model_evaluation" not in self._inner_api_calls: self._inner_api_calls[ - 'get_model_evaluation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_model_evaluation, - default_retry=self._method_configs['GetModelEvaluation']. - retry, - default_timeout=self._method_configs['GetModelEvaluation']. - timeout, - client_info=self._client_info, - ) + "get_model_evaluation" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_model_evaluation, + default_retry=self._method_configs["GetModelEvaluation"].retry, + default_timeout=self._method_configs["GetModelEvaluation"].timeout, + client_info=self._client_info, + ) + + request = service_pb2.GetModelEvaluationRequest(name=name) + return self._inner_api_calls["get_model_evaluation"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) - request = service_pb2.GetModelEvaluationRequest(name=name, ) - return self._inner_api_calls['get_model_evaluation']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_model_evaluations(self, - parent, - filter_=None, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def list_model_evaluations( + self, + parent, + filter_=None, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists model evaluations. @@ -1211,32 +1242,30 @@ def list_model_evaluations(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_model_evaluations' not in self._inner_api_calls: + if "list_model_evaluations" not in self._inner_api_calls: self._inner_api_calls[ - 'list_model_evaluations'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_model_evaluations, - default_retry=self._method_configs['ListModelEvaluations']. - retry, - default_timeout=self. - _method_configs['ListModelEvaluations'].timeout, - client_info=self._client_info, - ) + "list_model_evaluations" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_model_evaluations, + default_retry=self._method_configs["ListModelEvaluations"].retry, + default_timeout=self._method_configs["ListModelEvaluations"].timeout, + client_info=self._client_info, + ) request = service_pb2.ListModelEvaluationsRequest( - parent=parent, - filter=filter_, - page_size=page_size, + parent=parent, filter=filter_, page_size=page_size ) iterator = google.api_core.page_iterator.GRPCIterator( client=None, method=functools.partial( - self._inner_api_calls['list_model_evaluations'], + self._inner_api_calls["list_model_evaluations"], retry=retry, timeout=timeout, - metadata=metadata), + metadata=metadata, + ), request=request, - items_field='model_evaluation', - request_token_field='page_token', - response_token_field='next_page_token', + items_field="model_evaluation", + request_token_field="page_token", + response_token_field="next_page_token", ) return iterator diff --git a/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client_config.py b/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client_config.py index ce0e319ca99af..ce555cb08ebfa 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client_config.py +++ b/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client_config.py @@ -3,7 +3,7 @@ "google.cloud.automl.v1beta1.AutoMl": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] + "non_idempotent": [], }, "retry_params": { "default": { @@ -13,81 +13,81 @@ "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 + "total_timeout_millis": 600000, } }, "methods": { "CreateDataset": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetDataset": { "timeout_millis": 5000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListDatasets": { "timeout_millis": 5000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeleteDataset": { "timeout_millis": 5000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ImportData": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ExportData": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "CreateModel": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetModel": { "timeout_millis": 5000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListModels": { "timeout_millis": 5000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeleteModel": { "timeout_millis": 5000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeployModel": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "UndeployModel": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetModelEvaluation": { "timeout_millis": 5000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListModelEvaluations": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/automl/google/cloud/automl_v1beta1/gapic/enums.py b/automl/google/cloud/automl_v1beta1/gapic/enums.py index 51e4771636627..b98cd0818972d 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/enums.py +++ b/automl/google/cloud/automl_v1beta1/gapic/enums.py @@ -27,6 +27,7 @@ class ClassificationType(enum.IntEnum): MULTICLASS (int): At most one label is allowed per example. MULTILABEL (int): Multiple labels are allowed for one example. """ + CLASSIFICATION_TYPE_UNSPECIFIED = 0 MULTICLASS = 1 MULTILABEL = 2 @@ -42,6 +43,7 @@ class DeploymentState(enum.IntEnum): DEPLOYED (int): Model is deployed. UNDEPLOYED (int): Model is not deployed. """ + DEPLOYMENT_STATE_UNSPECIFIED = 0 DEPLOYED = 1 UNDEPLOYED = 2 diff --git a/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py b/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py index bc5ff579ec7f1..8a7d01e61049d 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py +++ b/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py @@ -28,24 +28,25 @@ from google.cloud.automl_v1beta1.gapic import enums from google.cloud.automl_v1beta1.gapic import prediction_service_client_config -from google.cloud.automl_v1beta1.gapic.transports import prediction_service_grpc_transport +from google.cloud.automl_v1beta1.gapic.transports import ( + prediction_service_grpc_transport, +) from google.cloud.automl_v1beta1.proto import data_items_pb2 from google.cloud.automl_v1beta1.proto import prediction_service_pb2 from google.cloud.automl_v1beta1.proto import prediction_service_pb2_grpc -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-automl', ).version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-automl").version class PredictionServiceClient(object): """AutoML Prediction API.""" - SERVICE_ADDRESS = 'automl.googleapis.com:443' + SERVICE_ADDRESS = "automl.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.cloud.automl.v1beta1.PredictionService' + _INTERFACE_NAME = "google.cloud.automl.v1beta1.PredictionService" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -61,9 +62,8 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: PredictionServiceClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file @@ -72,18 +72,20 @@ def from_service_account_file(cls, filename, *args, **kwargs): def model_path(cls, project, location, model): """Return a fully-qualified model string.""" return google.api_core.path_template.expand( - 'projects/{project}/locations/{location}/models/{model}', + "projects/{project}/locations/{location}/models/{model}", project=project, location=location, model=model, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -117,18 +119,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = prediction_service_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -137,25 +140,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=prediction_service_grpc_transport. - PredictionServiceGrpcTransport, + default_class=prediction_service_grpc_transport.PredictionServiceGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = prediction_service_grpc_transport.PredictionServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -165,7 +167,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -174,13 +177,15 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def predict(self, - name, - payload, - params=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def predict( + self, + name, + payload, + params=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Perform a prediction. @@ -232,19 +237,19 @@ def predict(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'predict' not in self._inner_api_calls: + if "predict" not in self._inner_api_calls: self._inner_api_calls[ - 'predict'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.predict, - default_retry=self._method_configs['Predict'].retry, - default_timeout=self._method_configs['Predict'].timeout, - client_info=self._client_info, - ) + "predict" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.predict, + default_retry=self._method_configs["Predict"].retry, + default_timeout=self._method_configs["Predict"].timeout, + client_info=self._client_info, + ) request = prediction_service_pb2.PredictRequest( - name=name, - payload=payload, - params=params, + name=name, payload=payload, params=params + ) + return self._inner_api_calls["predict"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['predict']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py b/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py index 225cbca854136..aee4b80446f86 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py +++ b/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py @@ -3,7 +3,7 @@ "google.cloud.automl.v1beta1.PredictionService": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] + "non_idempotent": [], }, "retry_params": { "default": { @@ -13,16 +13,16 @@ "initial_rpc_timeout_millis": 60000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 600000 + "total_timeout_millis": 600000, } }, "methods": { "Predict": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", } - } + }, } } } diff --git a/automl/google/cloud/automl_v1beta1/gapic/transports/auto_ml_grpc_transport.py b/automl/google/cloud/automl_v1beta1/gapic/transports/auto_ml_grpc_transport.py index 3f197157afad7..fea046b8ca4e8 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/transports/auto_ml_grpc_transport.py +++ b/automl/google/cloud/automl_v1beta1/gapic/transports/auto_ml_grpc_transport.py @@ -28,14 +28,14 @@ class AutoMlGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', ) + _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) - def __init__(self, - channel=None, - credentials=None, - address='automl.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="automl.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -53,34 +53,28 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. - self._stubs = { - 'auto_ml_stub': service_pb2_grpc.AutoMlStub(channel), - } + self._stubs = {"auto_ml_stub": service_pb2_grpc.AutoMlStub(channel)} # Because this API includes a method that returns a # long-running operation (proto: google.longrunning.Operation), # instantiate an LRO client. self._operations_client = google.api_core.operations_v1.OperationsClient( - channel) + channel + ) @classmethod - def create_channel(cls, - address='automl.googleapis.com:443', - credentials=None): + def create_channel(cls, address="automl.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -95,9 +89,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -120,7 +112,7 @@ def create_dataset(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].CreateDataset + return self._stubs["auto_ml_stub"].CreateDataset @property def get_dataset(self): @@ -133,7 +125,7 @@ def get_dataset(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].GetDataset + return self._stubs["auto_ml_stub"].GetDataset @property def list_datasets(self): @@ -146,7 +138,7 @@ def list_datasets(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].ListDatasets + return self._stubs["auto_ml_stub"].ListDatasets @property def delete_dataset(self): @@ -161,7 +153,7 @@ def delete_dataset(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].DeleteDataset + return self._stubs["auto_ml_stub"].DeleteDataset @property def import_data(self): @@ -175,7 +167,7 @@ def import_data(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].ImportData + return self._stubs["auto_ml_stub"].ImportData @property def export_data(self): @@ -189,7 +181,7 @@ def export_data(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].ExportData + return self._stubs["auto_ml_stub"].ExportData @property def create_model(self): @@ -205,7 +197,7 @@ def create_model(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].CreateModel + return self._stubs["auto_ml_stub"].CreateModel @property def get_model(self): @@ -218,7 +210,7 @@ def get_model(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].GetModel + return self._stubs["auto_ml_stub"].GetModel @property def list_models(self): @@ -231,7 +223,7 @@ def list_models(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].ListModels + return self._stubs["auto_ml_stub"].ListModels @property def delete_model(self): @@ -248,7 +240,7 @@ def delete_model(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].DeleteModel + return self._stubs["auto_ml_stub"].DeleteModel @property def deploy_model(self): @@ -262,7 +254,7 @@ def deploy_model(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].DeployModel + return self._stubs["auto_ml_stub"].DeployModel @property def undeploy_model(self): @@ -276,7 +268,7 @@ def undeploy_model(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].UndeployModel + return self._stubs["auto_ml_stub"].UndeployModel @property def get_model_evaluation(self): @@ -289,7 +281,7 @@ def get_model_evaluation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].GetModelEvaluation + return self._stubs["auto_ml_stub"].GetModelEvaluation @property def list_model_evaluations(self): @@ -302,4 +294,4 @@ def list_model_evaluations(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['auto_ml_stub'].ListModelEvaluations + return self._stubs["auto_ml_stub"].ListModelEvaluations diff --git a/automl/google/cloud/automl_v1beta1/gapic/transports/prediction_service_grpc_transport.py b/automl/google/cloud/automl_v1beta1/gapic/transports/prediction_service_grpc_transport.py index e837dc2bc03b8..68d95e9423a11 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/transports/prediction_service_grpc_transport.py +++ b/automl/google/cloud/automl_v1beta1/gapic/transports/prediction_service_grpc_transport.py @@ -27,14 +27,14 @@ class PredictionServiceGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', ) + _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) - def __init__(self, - channel=None, - credentials=None, - address='automl.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="automl.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -52,29 +52,25 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - 'prediction_service_stub': - prediction_service_pb2_grpc.PredictionServiceStub(channel), + "prediction_service_stub": prediction_service_pb2_grpc.PredictionServiceStub( + channel + ) } @classmethod - def create_channel(cls, - address='automl.googleapis.com:443', - credentials=None): + def create_channel(cls, address="automl.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -89,9 +85,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -114,4 +108,4 @@ def predict(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['prediction_service_stub'].Predict + return self._stubs["prediction_service_stub"].Predict diff --git a/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py b/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py index 5f602a2ee710a..047ae237e8f45 100644 --- a/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py @@ -2,103 +2,175 @@ # source: google/cloud/automl_v1beta1/proto/annotation_payload.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import classification_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2 -from google.cloud.automl_v1beta1.proto import translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2 +from google.cloud.automl_v1beta1.proto import ( + classification_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/annotation_payload.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x36google/cloud/automl_v1beta1/proto/classification.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto\"\xeb\x01\n\x11\x41nnotationPayload\x12I\n\x0btranslation\x18\x02 \x01(\x0b\x32\x32.google.cloud.automl.v1beta1.TranslationAnnotationH\x00\x12O\n\x0e\x63lassification\x18\x03 \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.ClassificationAnnotationH\x00\x12\x1a\n\x12\x61nnotation_spec_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x08\n\x06\x64\x65tailBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/annotation_payload.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x36google/cloud/automl_v1beta1/proto/classification.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto"\xeb\x01\n\x11\x41nnotationPayload\x12I\n\x0btranslation\x18\x02 \x01(\x0b\x32\x32.google.cloud.automl.v1beta1.TranslationAnnotationH\x00\x12O\n\x0e\x63lassification\x18\x03 \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.ClassificationAnnotationH\x00\x12\x1a\n\x12\x61nnotation_spec_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x08\n\x06\x64\x65tailBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR, + ], +) _ANNOTATIONPAYLOAD = _descriptor.Descriptor( - name='AnnotationPayload', - full_name='google.cloud.automl.v1beta1.AnnotationPayload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='translation', full_name='google.cloud.automl.v1beta1.AnnotationPayload.translation', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='classification', full_name='google.cloud.automl.v1beta1.AnnotationPayload.classification', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='annotation_spec_id', full_name='google.cloud.automl.v1beta1.AnnotationPayload.annotation_spec_id', index=2, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.automl.v1beta1.AnnotationPayload.display_name', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='detail', full_name='google.cloud.automl.v1beta1.AnnotationPayload.detail', - index=0, containing_type=None, fields=[]), - ], - serialized_start=231, - serialized_end=466, + name="AnnotationPayload", + full_name="google.cloud.automl.v1beta1.AnnotationPayload", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="translation", + full_name="google.cloud.automl.v1beta1.AnnotationPayload.translation", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="classification", + full_name="google.cloud.automl.v1beta1.AnnotationPayload.classification", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="annotation_spec_id", + full_name="google.cloud.automl.v1beta1.AnnotationPayload.annotation_spec_id", + index=2, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.automl.v1beta1.AnnotationPayload.display_name", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="detail", + full_name="google.cloud.automl.v1beta1.AnnotationPayload.detail", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=231, + serialized_end=466, ) -_ANNOTATIONPAYLOAD.fields_by_name['translation'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONANNOTATION -_ANNOTATIONPAYLOAD.fields_by_name['classification'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2._CLASSIFICATIONANNOTATION -_ANNOTATIONPAYLOAD.oneofs_by_name['detail'].fields.append( - _ANNOTATIONPAYLOAD.fields_by_name['translation']) -_ANNOTATIONPAYLOAD.fields_by_name['translation'].containing_oneof = _ANNOTATIONPAYLOAD.oneofs_by_name['detail'] -_ANNOTATIONPAYLOAD.oneofs_by_name['detail'].fields.append( - _ANNOTATIONPAYLOAD.fields_by_name['classification']) -_ANNOTATIONPAYLOAD.fields_by_name['classification'].containing_oneof = _ANNOTATIONPAYLOAD.oneofs_by_name['detail'] -DESCRIPTOR.message_types_by_name['AnnotationPayload'] = _ANNOTATIONPAYLOAD +_ANNOTATIONPAYLOAD.fields_by_name[ + "translation" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONANNOTATION +) +_ANNOTATIONPAYLOAD.fields_by_name[ + "classification" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2._CLASSIFICATIONANNOTATION +) +_ANNOTATIONPAYLOAD.oneofs_by_name["detail"].fields.append( + _ANNOTATIONPAYLOAD.fields_by_name["translation"] +) +_ANNOTATIONPAYLOAD.fields_by_name[ + "translation" +].containing_oneof = _ANNOTATIONPAYLOAD.oneofs_by_name["detail"] +_ANNOTATIONPAYLOAD.oneofs_by_name["detail"].fields.append( + _ANNOTATIONPAYLOAD.fields_by_name["classification"] +) +_ANNOTATIONPAYLOAD.fields_by_name[ + "classification" +].containing_oneof = _ANNOTATIONPAYLOAD.oneofs_by_name["detail"] +DESCRIPTOR.message_types_by_name["AnnotationPayload"] = _ANNOTATIONPAYLOAD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AnnotationPayload = _reflection.GeneratedProtocolMessageType('AnnotationPayload', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATIONPAYLOAD, - __module__ = 'google.cloud.automl_v1beta1.proto.annotation_payload_pb2' - , - __doc__ = """Contains annotation information that is relevant to AutoML. +AnnotationPayload = _reflection.GeneratedProtocolMessageType( + "AnnotationPayload", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATIONPAYLOAD, + __module__="google.cloud.automl_v1beta1.proto.annotation_payload_pb2", + __doc__="""Contains annotation information that is relevant to AutoML. Attributes: @@ -122,11 +194,17 @@ dataset, the returned value could be different as model owner could update the display\_name between any two model training. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.AnnotationPayload) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.AnnotationPayload) + ), +) _sym_db.RegisterMessage(AnnotationPayload) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/classification_pb2.py b/automl/google/cloud/automl_v1beta1/proto/classification_pb2.py index ac949b202e351..1cd2b1989a3ff 100644 --- a/automl/google/cloud/automl_v1beta1/proto/classification_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/classification_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/automl_v1beta1/proto/classification.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,36 +20,39 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/classification.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n6google/cloud/automl_v1beta1/proto/classification.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\")\n\x18\x43lassificationAnnotation\x12\r\n\x05score\x18\x01 \x01(\x02\"\x9d\x05\n\x1f\x43lassificationEvaluationMetrics\x12\x0e\n\x06\x61u_prc\x18\x01 \x01(\x02\x12\x13\n\x0b\x62\x61se_au_prc\x18\x02 \x01(\x02\x12u\n\x18\x63onfidence_metrics_entry\x18\x03 \x03(\x0b\x32S.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry\x12\x66\n\x10\x63onfusion_matrix\x18\x04 \x01(\x0b\x32L.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix\x12\x1a\n\x12\x61nnotation_spec_id\x18\x05 \x03(\t\x1a\xac\x01\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x11\n\tprecision\x18\x03 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x04 \x01(\x02\x12\x12\n\nrecall_at1\x18\x05 \x01(\x02\x12\x15\n\rprecision_at1\x18\x06 \x01(\x02\x12\x14\n\x0c\x66\x31_score_at1\x18\x07 \x01(\x02\x1a\xaa\x01\n\x0f\x43onfusionMatrix\x12\x1a\n\x12\x61nnotation_spec_id\x18\x01 \x03(\t\x12]\n\x03row\x18\x02 \x03(\x0b\x32P.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row\x1a\x1c\n\x03Row\x12\x15\n\rexample_count\x18\x01 \x03(\x05*Y\n\x12\x43lassificationType\x12#\n\x1f\x43LASSIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nMULTICLASS\x10\x01\x12\x0e\n\nMULTILABEL\x10\x02\x42y\n\x1f\x63om.google.cloud.automl.v1beta1B\x13\x43lassificationProtoZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + name="google/cloud/automl_v1beta1/proto/classification.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n6google/cloud/automl_v1beta1/proto/classification.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto")\n\x18\x43lassificationAnnotation\x12\r\n\x05score\x18\x01 \x01(\x02"\x9d\x05\n\x1f\x43lassificationEvaluationMetrics\x12\x0e\n\x06\x61u_prc\x18\x01 \x01(\x02\x12\x13\n\x0b\x62\x61se_au_prc\x18\x02 \x01(\x02\x12u\n\x18\x63onfidence_metrics_entry\x18\x03 \x03(\x0b\x32S.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry\x12\x66\n\x10\x63onfusion_matrix\x18\x04 \x01(\x0b\x32L.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix\x12\x1a\n\x12\x61nnotation_spec_id\x18\x05 \x03(\t\x1a\xac\x01\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x11\n\tprecision\x18\x03 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x04 \x01(\x02\x12\x12\n\nrecall_at1\x18\x05 \x01(\x02\x12\x15\n\rprecision_at1\x18\x06 \x01(\x02\x12\x14\n\x0c\x66\x31_score_at1\x18\x07 \x01(\x02\x1a\xaa\x01\n\x0f\x43onfusionMatrix\x12\x1a\n\x12\x61nnotation_spec_id\x18\x01 \x03(\t\x12]\n\x03row\x18\x02 \x03(\x0b\x32P.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row\x1a\x1c\n\x03Row\x12\x15\n\rexample_count\x18\x01 \x03(\x05*Y\n\x12\x43lassificationType\x12#\n\x1f\x43LASSIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nMULTICLASS\x10\x01\x12\x0e\n\nMULTILABEL\x10\x02\x42y\n\x1f\x63om.google.cloud.automl.v1beta1B\x13\x43lassificationProtoZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _CLASSIFICATIONTYPE = _descriptor.EnumDescriptor( - name='ClassificationType', - full_name='google.cloud.automl.v1beta1.ClassificationType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CLASSIFICATION_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MULTICLASS', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MULTILABEL', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=832, - serialized_end=921, + name="ClassificationType", + full_name="google.cloud.automl.v1beta1.ClassificationType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CLASSIFICATION_TYPE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="MULTICLASS", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MULTILABEL", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=832, + serialized_end=921, ) _sym_db.RegisterEnumDescriptor(_CLASSIFICATIONTYPE) @@ -57,251 +62,430 @@ MULTILABEL = 2 - _CLASSIFICATIONANNOTATION = _descriptor.Descriptor( - name='ClassificationAnnotation', - full_name='google.cloud.automl.v1beta1.ClassificationAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.automl.v1beta1.ClassificationAnnotation.score', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=117, - serialized_end=158, + name="ClassificationAnnotation", + full_name="google.cloud.automl.v1beta1.ClassificationAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.automl.v1beta1.ClassificationAnnotation.score", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=117, + serialized_end=158, ) _CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY = _descriptor.Descriptor( - name='ConfidenceMetricsEntry', - full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='confidence_threshold', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.confidence_threshold', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recall', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='precision', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='f1_score', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.f1_score', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recall_at1', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='precision_at1', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='f1_score_at1', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.f1_score_at1', index=6, - number=7, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=485, - serialized_end=657, + name="ConfidenceMetricsEntry", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="confidence_threshold", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.confidence_threshold", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="recall", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="precision", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="f1_score", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.f1_score", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="recall_at1", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="precision_at1", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="f1_score_at1", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.f1_score_at1", + index=6, + number=7, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=485, + serialized_end=657, ) _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW = _descriptor.Descriptor( - name='Row', - full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='example_count', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.example_count', index=0, - number=1, type=5, cpp_type=1, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=830, + name="Row", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="example_count", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.example_count", + index=0, + number=1, + type=5, + cpp_type=1, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=830, ) _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX = _descriptor.Descriptor( - name='ConfusionMatrix', - full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_spec_id', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.annotation_spec_id', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.row', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=660, - serialized_end=830, + name="ConfusionMatrix", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_spec_id", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.annotation_spec_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.row", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=660, + serialized_end=830, ) _CLASSIFICATIONEVALUATIONMETRICS = _descriptor.Descriptor( - name='ClassificationEvaluationMetrics', - full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='au_prc', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.au_prc', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='base_au_prc', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.base_au_prc', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence_metrics_entry', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.confidence_metrics_entry', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confusion_matrix', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.confusion_matrix', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='annotation_spec_id', full_name='google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.annotation_spec_id', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY, _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=161, - serialized_end=830, + name="ClassificationEvaluationMetrics", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="au_prc", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.au_prc", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="base_au_prc", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.base_au_prc", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence_metrics_entry", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.confidence_metrics_entry", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confusion_matrix", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.confusion_matrix", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="annotation_spec_id", + full_name="google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.annotation_spec_id", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY, + _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=161, + serialized_end=830, ) -_CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY.containing_type = _CLASSIFICATIONEVALUATIONMETRICS -_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW.containing_type = _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX -_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX.fields_by_name['row'].message_type = _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW -_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX.containing_type = _CLASSIFICATIONEVALUATIONMETRICS -_CLASSIFICATIONEVALUATIONMETRICS.fields_by_name['confidence_metrics_entry'].message_type = _CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY -_CLASSIFICATIONEVALUATIONMETRICS.fields_by_name['confusion_matrix'].message_type = _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX -DESCRIPTOR.message_types_by_name['ClassificationAnnotation'] = _CLASSIFICATIONANNOTATION -DESCRIPTOR.message_types_by_name['ClassificationEvaluationMetrics'] = _CLASSIFICATIONEVALUATIONMETRICS -DESCRIPTOR.enum_types_by_name['ClassificationType'] = _CLASSIFICATIONTYPE +_CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY.containing_type = ( + _CLASSIFICATIONEVALUATIONMETRICS +) +_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW.containing_type = ( + _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX +) +_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX.fields_by_name[ + "row" +].message_type = _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW +_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX.containing_type = ( + _CLASSIFICATIONEVALUATIONMETRICS +) +_CLASSIFICATIONEVALUATIONMETRICS.fields_by_name[ + "confidence_metrics_entry" +].message_type = _CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY +_CLASSIFICATIONEVALUATIONMETRICS.fields_by_name[ + "confusion_matrix" +].message_type = _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX +DESCRIPTOR.message_types_by_name["ClassificationAnnotation"] = _CLASSIFICATIONANNOTATION +DESCRIPTOR.message_types_by_name[ + "ClassificationEvaluationMetrics" +] = _CLASSIFICATIONEVALUATIONMETRICS +DESCRIPTOR.enum_types_by_name["ClassificationType"] = _CLASSIFICATIONTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ClassificationAnnotation = _reflection.GeneratedProtocolMessageType('ClassificationAnnotation', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFICATIONANNOTATION, - __module__ = 'google.cloud.automl_v1beta1.proto.classification_pb2' - , - __doc__ = """Contains annotation details specific to classification. +ClassificationAnnotation = _reflection.GeneratedProtocolMessageType( + "ClassificationAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFICATIONANNOTATION, + __module__="google.cloud.automl_v1beta1.proto.classification_pb2", + __doc__="""Contains annotation details specific to classification. Attributes: @@ -312,17 +496,22 @@ positive, the score value remains unchanged. If a user creates an annotation, the score is 0 for negative or 1 for positive. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationAnnotation) + ), +) _sym_db.RegisterMessage(ClassificationAnnotation) -ClassificationEvaluationMetrics = _reflection.GeneratedProtocolMessageType('ClassificationEvaluationMetrics', (_message.Message,), dict( - - ConfidenceMetricsEntry = _reflection.GeneratedProtocolMessageType('ConfidenceMetricsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY, - __module__ = 'google.cloud.automl_v1beta1.proto.classification_pb2' - , - __doc__ = """Metrics for a single confidence threshold. +ClassificationEvaluationMetrics = _reflection.GeneratedProtocolMessageType( + "ClassificationEvaluationMetrics", + (_message.Message,), + dict( + ConfidenceMetricsEntry=_reflection.GeneratedProtocolMessageType( + "ConfidenceMetricsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFICATIONEVALUATIONMETRICS_CONFIDENCEMETRICSENTRY, + __module__="google.cloud.automl_v1beta1.proto.classification_pb2", + __doc__="""Metrics for a single confidence threshold. Attributes: @@ -350,17 +539,20 @@ 1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry. precision\_at1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - )) - , - - ConfusionMatrix = _reflection.GeneratedProtocolMessageType('ConfusionMatrix', (_message.Message,), dict( - - Row = _reflection.GeneratedProtocolMessageType('Row', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW, - __module__ = 'google.cloud.automl_v1beta1.proto.classification_pb2' - , - __doc__ = """Output only. A row in the confusion matrix. + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) + ), + ), + ConfusionMatrix=_reflection.GeneratedProtocolMessageType( + "ConfusionMatrix", + (_message.Message,), + dict( + Row=_reflection.GeneratedProtocolMessageType( + "Row", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX_ROW, + __module__="google.cloud.automl_v1beta1.proto.classification_pb2", + __doc__="""Output only. A row in the confusion matrix. Attributes: @@ -369,13 +561,12 @@ matrix. The number of values each row is equal to the size of annotatin\_spec\_id. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) - )) - , - DESCRIPTOR = _CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX, - __module__ = 'google.cloud.automl_v1beta1.proto.classification_pb2' - , - __doc__ = """Confusion matrix of the model running the classification. + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row) + ), + ), + DESCRIPTOR=_CLASSIFICATIONEVALUATIONMETRICS_CONFUSIONMATRIX, + __module__="google.cloud.automl_v1beta1.proto.classification_pb2", + __doc__="""Confusion matrix of the model running the classification. Attributes: @@ -389,13 +580,12 @@ truth of the ``annotation_spec_id[i]`` and are predicted as ``annotation_spec_id[j]`` by the model being evaluated. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) - )) - , - DESCRIPTOR = _CLASSIFICATIONEVALUATIONMETRICS, - __module__ = 'google.cloud.automl_v1beta1.proto.classification_pb2' - , - __doc__ = """Model evaluation metrics for classification problems. Visible only to + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix) + ), + ), + DESCRIPTOR=_CLASSIFICATIONEVALUATIONMETRICS, + __module__="google.cloud.automl_v1beta1.proto.classification_pb2", + __doc__="""Model evaluation metrics for classification problems. Visible only to v1beta1 @@ -416,8 +606,9 @@ annotation_spec_id: Output only. The annotation spec ids used for this evaluation. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) + ), +) _sym_db.RegisterMessage(ClassificationEvaluationMetrics) _sym_db.RegisterMessage(ClassificationEvaluationMetrics.ConfidenceMetricsEntry) _sym_db.RegisterMessage(ClassificationEvaluationMetrics.ConfusionMatrix) @@ -425,5 +616,10 @@ DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1B\023ClassificationProtoZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1B\023ClassificationProtoZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/classification_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/classification_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/classification_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/classification_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/data_items_pb2.py b/automl/google/cloud/automl_v1beta1/proto/data_items_pb2.py index a57cad6d9d8ff..76bfbee65c550 100644 --- a/automl/google/cloud/automl_v1beta1/proto/data_items_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/data_items_pb2.py @@ -2,190 +2,294 @@ # source: google/cloud/automl_v1beta1/proto/data_items.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import io_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2 +from google.cloud.automl_v1beta1.proto import ( + io_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/data_items.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n2google/cloud/automl_v1beta1/proto/data_items.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a*google/cloud/automl_v1beta1/proto/io.proto\"\x7f\n\x05Image\x12\x15\n\x0bimage_bytes\x18\x01 \x01(\x0cH\x00\x12@\n\x0cinput_config\x18\x06 \x01(\x0b\x32(.google.cloud.automl.v1beta1.InputConfigH\x00\x12\x15\n\rthumbnail_uri\x18\x04 \x01(\tB\x06\n\x04\x64\x61ta\"F\n\x0bTextSnippet\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\x13\n\x0b\x63ontent_uri\x18\x04 \x01(\t\"\x92\x01\n\x0e\x45xamplePayload\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32\".google.cloud.automl.v1beta1.ImageH\x00\x12@\n\x0ctext_snippet\x18\x02 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TextSnippetH\x00\x42\t\n\x07payloadBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/data_items.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n2google/cloud/automl_v1beta1/proto/data_items.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a*google/cloud/automl_v1beta1/proto/io.proto"\x7f\n\x05Image\x12\x15\n\x0bimage_bytes\x18\x01 \x01(\x0cH\x00\x12@\n\x0cinput_config\x18\x06 \x01(\x0b\x32(.google.cloud.automl.v1beta1.InputConfigH\x00\x12\x15\n\rthumbnail_uri\x18\x04 \x01(\tB\x06\n\x04\x64\x61ta"F\n\x0bTextSnippet\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\x13\n\x0b\x63ontent_uri\x18\x04 \x01(\t"\x92\x01\n\x0e\x45xamplePayload\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32".google.cloud.automl.v1beta1.ImageH\x00\x12@\n\x0ctext_snippet\x18\x02 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TextSnippetH\x00\x42\t\n\x07payloadBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2.DESCRIPTOR, + ], +) _IMAGE = _descriptor.Descriptor( - name='Image', - full_name='google.cloud.automl.v1beta1.Image', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image_bytes', full_name='google.cloud.automl.v1beta1.Image.image_bytes', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_config', full_name='google.cloud.automl.v1beta1.Image.input_config', index=1, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='thumbnail_uri', full_name='google.cloud.automl.v1beta1.Image.thumbnail_uri', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='data', full_name='google.cloud.automl.v1beta1.Image.data', - index=0, containing_type=None, fields=[]), - ], - serialized_start=157, - serialized_end=284, + name="Image", + full_name="google.cloud.automl.v1beta1.Image", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image_bytes", + full_name="google.cloud.automl.v1beta1.Image.image_bytes", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_config", + full_name="google.cloud.automl.v1beta1.Image.input_config", + index=1, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="thumbnail_uri", + full_name="google.cloud.automl.v1beta1.Image.thumbnail_uri", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="data", + full_name="google.cloud.automl.v1beta1.Image.data", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=157, + serialized_end=284, ) _TEXTSNIPPET = _descriptor.Descriptor( - name='TextSnippet', - full_name='google.cloud.automl.v1beta1.TextSnippet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.automl.v1beta1.TextSnippet.content', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.cloud.automl.v1beta1.TextSnippet.mime_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_uri', full_name='google.cloud.automl.v1beta1.TextSnippet.content_uri', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=286, - serialized_end=356, + name="TextSnippet", + full_name="google.cloud.automl.v1beta1.TextSnippet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.automl.v1beta1.TextSnippet.content", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mime_type", + full_name="google.cloud.automl.v1beta1.TextSnippet.mime_type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content_uri", + full_name="google.cloud.automl.v1beta1.TextSnippet.content_uri", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=286, + serialized_end=356, ) _EXAMPLEPAYLOAD = _descriptor.Descriptor( - name='ExamplePayload', - full_name='google.cloud.automl.v1beta1.ExamplePayload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image', full_name='google.cloud.automl.v1beta1.ExamplePayload.image', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_snippet', full_name='google.cloud.automl.v1beta1.ExamplePayload.text_snippet', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='payload', full_name='google.cloud.automl.v1beta1.ExamplePayload.payload', - index=0, containing_type=None, fields=[]), - ], - serialized_start=359, - serialized_end=505, + name="ExamplePayload", + full_name="google.cloud.automl.v1beta1.ExamplePayload", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image", + full_name="google.cloud.automl.v1beta1.ExamplePayload.image", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_snippet", + full_name="google.cloud.automl.v1beta1.ExamplePayload.text_snippet", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="payload", + full_name="google.cloud.automl.v1beta1.ExamplePayload.payload", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=359, + serialized_end=505, ) -_IMAGE.fields_by_name['input_config'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2._INPUTCONFIG -_IMAGE.oneofs_by_name['data'].fields.append( - _IMAGE.fields_by_name['image_bytes']) -_IMAGE.fields_by_name['image_bytes'].containing_oneof = _IMAGE.oneofs_by_name['data'] -_IMAGE.oneofs_by_name['data'].fields.append( - _IMAGE.fields_by_name['input_config']) -_IMAGE.fields_by_name['input_config'].containing_oneof = _IMAGE.oneofs_by_name['data'] -_EXAMPLEPAYLOAD.fields_by_name['image'].message_type = _IMAGE -_EXAMPLEPAYLOAD.fields_by_name['text_snippet'].message_type = _TEXTSNIPPET -_EXAMPLEPAYLOAD.oneofs_by_name['payload'].fields.append( - _EXAMPLEPAYLOAD.fields_by_name['image']) -_EXAMPLEPAYLOAD.fields_by_name['image'].containing_oneof = _EXAMPLEPAYLOAD.oneofs_by_name['payload'] -_EXAMPLEPAYLOAD.oneofs_by_name['payload'].fields.append( - _EXAMPLEPAYLOAD.fields_by_name['text_snippet']) -_EXAMPLEPAYLOAD.fields_by_name['text_snippet'].containing_oneof = _EXAMPLEPAYLOAD.oneofs_by_name['payload'] -DESCRIPTOR.message_types_by_name['Image'] = _IMAGE -DESCRIPTOR.message_types_by_name['TextSnippet'] = _TEXTSNIPPET -DESCRIPTOR.message_types_by_name['ExamplePayload'] = _EXAMPLEPAYLOAD +_IMAGE.fields_by_name[ + "input_config" +].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2._INPUTCONFIG +_IMAGE.oneofs_by_name["data"].fields.append(_IMAGE.fields_by_name["image_bytes"]) +_IMAGE.fields_by_name["image_bytes"].containing_oneof = _IMAGE.oneofs_by_name["data"] +_IMAGE.oneofs_by_name["data"].fields.append(_IMAGE.fields_by_name["input_config"]) +_IMAGE.fields_by_name["input_config"].containing_oneof = _IMAGE.oneofs_by_name["data"] +_EXAMPLEPAYLOAD.fields_by_name["image"].message_type = _IMAGE +_EXAMPLEPAYLOAD.fields_by_name["text_snippet"].message_type = _TEXTSNIPPET +_EXAMPLEPAYLOAD.oneofs_by_name["payload"].fields.append( + _EXAMPLEPAYLOAD.fields_by_name["image"] +) +_EXAMPLEPAYLOAD.fields_by_name[ + "image" +].containing_oneof = _EXAMPLEPAYLOAD.oneofs_by_name["payload"] +_EXAMPLEPAYLOAD.oneofs_by_name["payload"].fields.append( + _EXAMPLEPAYLOAD.fields_by_name["text_snippet"] +) +_EXAMPLEPAYLOAD.fields_by_name[ + "text_snippet" +].containing_oneof = _EXAMPLEPAYLOAD.oneofs_by_name["payload"] +DESCRIPTOR.message_types_by_name["Image"] = _IMAGE +DESCRIPTOR.message_types_by_name["TextSnippet"] = _TEXTSNIPPET +DESCRIPTOR.message_types_by_name["ExamplePayload"] = _EXAMPLEPAYLOAD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Image = _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), dict( - DESCRIPTOR = _IMAGE, - __module__ = 'google.cloud.automl_v1beta1.proto.data_items_pb2' - , - __doc__ = """A representation of an image. +Image = _reflection.GeneratedProtocolMessageType( + "Image", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGE, + __module__="google.cloud.automl_v1beta1.proto.data_items_pb2", + __doc__="""A representation of an image. Attributes: @@ -204,15 +308,18 @@ thumbnail_uri: Output only. HTTP URI to the thumbnail image. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Image) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Image) + ), +) _sym_db.RegisterMessage(Image) -TextSnippet = _reflection.GeneratedProtocolMessageType('TextSnippet', (_message.Message,), dict( - DESCRIPTOR = _TEXTSNIPPET, - __module__ = 'google.cloud.automl_v1beta1.proto.data_items_pb2' - , - __doc__ = """A representation of a text snippet. +TextSnippet = _reflection.GeneratedProtocolMessageType( + "TextSnippet", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTSNIPPET, + __module__="google.cloud.automl_v1beta1.proto.data_items_pb2", + __doc__="""A representation of a text snippet. Attributes: @@ -227,15 +334,18 @@ content_uri: Output only. HTTP URI where you can download the content. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSnippet) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSnippet) + ), +) _sym_db.RegisterMessage(TextSnippet) -ExamplePayload = _reflection.GeneratedProtocolMessageType('ExamplePayload', (_message.Message,), dict( - DESCRIPTOR = _EXAMPLEPAYLOAD, - __module__ = 'google.cloud.automl_v1beta1.proto.data_items_pb2' - , - __doc__ = """Example data used for training or prediction. +ExamplePayload = _reflection.GeneratedProtocolMessageType( + "ExamplePayload", + (_message.Message,), + dict( + DESCRIPTOR=_EXAMPLEPAYLOAD, + __module__="google.cloud.automl_v1beta1.proto.data_items_pb2", + __doc__="""Example data used for training or prediction. Attributes: @@ -246,11 +356,17 @@ text_snippet: Example text. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExamplePayload) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExamplePayload) + ), +) _sym_db.RegisterMessage(ExamplePayload) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/data_items_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/data_items_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/data_items_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/data_items_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/dataset_pb2.py b/automl/google/cloud/automl_v1beta1/proto/dataset_pb2.py index bdf0fd760dfd2..3b81d270de56d 100644 --- a/automl/google/cloud/automl_v1beta1/proto/dataset_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/dataset_pb2.py @@ -2,133 +2,257 @@ # source: google/cloud/automl_v1beta1/proto/dataset.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import annotation_payload_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2 -from google.cloud.automl_v1beta1.proto import data_items_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2 -from google.cloud.automl_v1beta1.proto import image_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2 -from google.cloud.automl_v1beta1.proto import text_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2 -from google.cloud.automl_v1beta1.proto import translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2 +from google.cloud.automl_v1beta1.proto import ( + annotation_payload_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + data_items_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + image_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + text_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/dataset.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n/google/cloud/automl_v1beta1/proto/dataset.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x1a\x32google/cloud/automl_v1beta1/proto/data_items.proto\x1a-google/cloud/automl_v1beta1/proto/image.proto\x1a,google/cloud/automl_v1beta1/proto/text.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcc\x03\n\x07\x44\x61taset\x12_\n\x1ctranslation_dataset_metadata\x18\x17 \x01(\x0b\x32\x37.google.cloud.automl.v1beta1.TranslationDatasetMetadataH\x00\x12p\n%image_classification_dataset_metadata\x18\x18 \x01(\x0b\x32?.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataH\x00\x12n\n$text_classification_dataset_metadata\x18\x19 \x01(\x0b\x32>.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x15\n\rexample_count\x18\x15 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x12\n\x10\x64\x61taset_metadataBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/dataset.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n/google/cloud/automl_v1beta1/proto/dataset.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x1a\x32google/cloud/automl_v1beta1/proto/data_items.proto\x1a-google/cloud/automl_v1beta1/proto/image.proto\x1a,google/cloud/automl_v1beta1/proto/text.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xcc\x03\n\x07\x44\x61taset\x12_\n\x1ctranslation_dataset_metadata\x18\x17 \x01(\x0b\x32\x37.google.cloud.automl.v1beta1.TranslationDatasetMetadataH\x00\x12p\n%image_classification_dataset_metadata\x18\x18 \x01(\x0b\x32?.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataH\x00\x12n\n$text_classification_dataset_metadata\x18\x19 \x01(\x0b\x32>.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x15\n\rexample_count\x18\x15 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x12\n\x10\x64\x61taset_metadataBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _DATASET = _descriptor.Descriptor( - name='Dataset', - full_name='google.cloud.automl.v1beta1.Dataset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='translation_dataset_metadata', full_name='google.cloud.automl.v1beta1.Dataset.translation_dataset_metadata', index=0, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_classification_dataset_metadata', full_name='google.cloud.automl.v1beta1.Dataset.image_classification_dataset_metadata', index=1, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_classification_dataset_metadata', full_name='google.cloud.automl.v1beta1.Dataset.text_classification_dataset_metadata', index=2, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.Dataset.name', index=3, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.automl.v1beta1.Dataset.display_name', index=4, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='example_count', full_name='google.cloud.automl.v1beta1.Dataset.example_count', index=5, - number=21, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.automl.v1beta1.Dataset.create_time', index=6, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='dataset_metadata', full_name='google.cloud.automl.v1beta1.Dataset.dataset_metadata', - index=0, containing_type=None, fields=[]), - ], - serialized_start=402, - serialized_end=862, + name="Dataset", + full_name="google.cloud.automl.v1beta1.Dataset", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="translation_dataset_metadata", + full_name="google.cloud.automl.v1beta1.Dataset.translation_dataset_metadata", + index=0, + number=23, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_classification_dataset_metadata", + full_name="google.cloud.automl.v1beta1.Dataset.image_classification_dataset_metadata", + index=1, + number=24, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_classification_dataset_metadata", + full_name="google.cloud.automl.v1beta1.Dataset.text_classification_dataset_metadata", + index=2, + number=25, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.Dataset.name", + index=3, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.automl.v1beta1.Dataset.display_name", + index=4, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="example_count", + full_name="google.cloud.automl.v1beta1.Dataset.example_count", + index=5, + number=21, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.automl.v1beta1.Dataset.create_time", + index=6, + number=14, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="dataset_metadata", + full_name="google.cloud.automl.v1beta1.Dataset.dataset_metadata", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=402, + serialized_end=862, ) -_DATASET.fields_by_name['translation_dataset_metadata'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONDATASETMETADATA -_DATASET.fields_by_name['image_classification_dataset_metadata'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2._IMAGECLASSIFICATIONDATASETMETADATA -_DATASET.fields_by_name['text_classification_dataset_metadata'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2._TEXTCLASSIFICATIONDATASETMETADATA -_DATASET.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DATASET.oneofs_by_name['dataset_metadata'].fields.append( - _DATASET.fields_by_name['translation_dataset_metadata']) -_DATASET.fields_by_name['translation_dataset_metadata'].containing_oneof = _DATASET.oneofs_by_name['dataset_metadata'] -_DATASET.oneofs_by_name['dataset_metadata'].fields.append( - _DATASET.fields_by_name['image_classification_dataset_metadata']) -_DATASET.fields_by_name['image_classification_dataset_metadata'].containing_oneof = _DATASET.oneofs_by_name['dataset_metadata'] -_DATASET.oneofs_by_name['dataset_metadata'].fields.append( - _DATASET.fields_by_name['text_classification_dataset_metadata']) -_DATASET.fields_by_name['text_classification_dataset_metadata'].containing_oneof = _DATASET.oneofs_by_name['dataset_metadata'] -DESCRIPTOR.message_types_by_name['Dataset'] = _DATASET +_DATASET.fields_by_name[ + "translation_dataset_metadata" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONDATASETMETADATA +) +_DATASET.fields_by_name[ + "image_classification_dataset_metadata" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2._IMAGECLASSIFICATIONDATASETMETADATA +) +_DATASET.fields_by_name[ + "text_classification_dataset_metadata" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2._TEXTCLASSIFICATIONDATASETMETADATA +) +_DATASET.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DATASET.oneofs_by_name["dataset_metadata"].fields.append( + _DATASET.fields_by_name["translation_dataset_metadata"] +) +_DATASET.fields_by_name[ + "translation_dataset_metadata" +].containing_oneof = _DATASET.oneofs_by_name["dataset_metadata"] +_DATASET.oneofs_by_name["dataset_metadata"].fields.append( + _DATASET.fields_by_name["image_classification_dataset_metadata"] +) +_DATASET.fields_by_name[ + "image_classification_dataset_metadata" +].containing_oneof = _DATASET.oneofs_by_name["dataset_metadata"] +_DATASET.oneofs_by_name["dataset_metadata"].fields.append( + _DATASET.fields_by_name["text_classification_dataset_metadata"] +) +_DATASET.fields_by_name[ + "text_classification_dataset_metadata" +].containing_oneof = _DATASET.oneofs_by_name["dataset_metadata"] +DESCRIPTOR.message_types_by_name["Dataset"] = _DATASET _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Dataset = _reflection.GeneratedProtocolMessageType('Dataset', (_message.Message,), dict( - DESCRIPTOR = _DATASET, - __module__ = 'google.cloud.automl_v1beta1.proto.dataset_pb2' - , - __doc__ = """A workspace for solving a single, particular machine learning (ML) +Dataset = _reflection.GeneratedProtocolMessageType( + "Dataset", + (_message.Message,), + dict( + DESCRIPTOR=_DATASET, + __module__="google.cloud.automl_v1beta1.proto.dataset_pb2", + __doc__="""A workspace for solving a single, particular machine learning (ML) problem. A workspace contains examples that may be annotated. @@ -155,11 +279,17 @@ create_time: Output only. Timestamp when this dataset was created. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Dataset) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Dataset) + ), +) _sym_db.RegisterMessage(Dataset) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/dataset_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/dataset_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/dataset_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/dataset_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/image_pb2.py b/automl/google/cloud/automl_v1beta1/proto/image_pb2.py index 1f87ecf61b350..c2bf200ed9480 100644 --- a/automl/google/cloud/automl_v1beta1/proto/image_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/image_pb2.py @@ -2,140 +2,210 @@ # source: google/cloud/automl_v1beta1/proto/image.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import classification_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2 +from google.cloud.automl_v1beta1.proto import ( + classification_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/image.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/automl_v1beta1/proto/image.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x36google/cloud/automl_v1beta1/proto/classification.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"r\n\"ImageClassificationDatasetMetadata\x12L\n\x13\x63lassification_type\x18\x01 \x01(\x0e\x32/.google.cloud.automl.v1beta1.ClassificationType\"x\n ImageClassificationModelMetadata\x12\x15\n\rbase_model_id\x18\x01 \x01(\t\x12\x14\n\x0ctrain_budget\x18\x02 \x01(\x03\x12\x12\n\ntrain_cost\x18\x03 \x01(\x03\x12\x13\n\x0bstop_reason\x18\x05 \x01(\tBr\n\x1f\x63om.google.cloud.automl.v1beta1B\nImageProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/image.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/automl_v1beta1/proto/image.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x36google/cloud/automl_v1beta1/proto/classification.proto\x1a\x1fgoogle/protobuf/timestamp.proto"r\n"ImageClassificationDatasetMetadata\x12L\n\x13\x63lassification_type\x18\x01 \x01(\x0e\x32/.google.cloud.automl.v1beta1.ClassificationType"x\n ImageClassificationModelMetadata\x12\x15\n\rbase_model_id\x18\x01 \x01(\t\x12\x14\n\x0ctrain_budget\x18\x02 \x01(\x03\x12\x12\n\ntrain_cost\x18\x03 \x01(\x03\x12\x13\n\x0bstop_reason\x18\x05 \x01(\tBr\n\x1f\x63om.google.cloud.automl.v1beta1B\nImageProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _IMAGECLASSIFICATIONDATASETMETADATA = _descriptor.Descriptor( - name='ImageClassificationDatasetMetadata', - full_name='google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='classification_type', full_name='google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.classification_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=197, - serialized_end=311, + name="ImageClassificationDatasetMetadata", + full_name="google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="classification_type", + full_name="google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.classification_type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=197, + serialized_end=311, ) _IMAGECLASSIFICATIONMODELMETADATA = _descriptor.Descriptor( - name='ImageClassificationModelMetadata', - full_name='google.cloud.automl.v1beta1.ImageClassificationModelMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='base_model_id', full_name='google.cloud.automl.v1beta1.ImageClassificationModelMetadata.base_model_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='train_budget', full_name='google.cloud.automl.v1beta1.ImageClassificationModelMetadata.train_budget', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='train_cost', full_name='google.cloud.automl.v1beta1.ImageClassificationModelMetadata.train_cost', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stop_reason', full_name='google.cloud.automl.v1beta1.ImageClassificationModelMetadata.stop_reason', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=313, - serialized_end=433, + name="ImageClassificationModelMetadata", + full_name="google.cloud.automl.v1beta1.ImageClassificationModelMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="base_model_id", + full_name="google.cloud.automl.v1beta1.ImageClassificationModelMetadata.base_model_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="train_budget", + full_name="google.cloud.automl.v1beta1.ImageClassificationModelMetadata.train_budget", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="train_cost", + full_name="google.cloud.automl.v1beta1.ImageClassificationModelMetadata.train_cost", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stop_reason", + full_name="google.cloud.automl.v1beta1.ImageClassificationModelMetadata.stop_reason", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=313, + serialized_end=433, ) -_IMAGECLASSIFICATIONDATASETMETADATA.fields_by_name['classification_type'].enum_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2._CLASSIFICATIONTYPE -DESCRIPTOR.message_types_by_name['ImageClassificationDatasetMetadata'] = _IMAGECLASSIFICATIONDATASETMETADATA -DESCRIPTOR.message_types_by_name['ImageClassificationModelMetadata'] = _IMAGECLASSIFICATIONMODELMETADATA +_IMAGECLASSIFICATIONDATASETMETADATA.fields_by_name[ + "classification_type" +].enum_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2._CLASSIFICATIONTYPE +) +DESCRIPTOR.message_types_by_name[ + "ImageClassificationDatasetMetadata" +] = _IMAGECLASSIFICATIONDATASETMETADATA +DESCRIPTOR.message_types_by_name[ + "ImageClassificationModelMetadata" +] = _IMAGECLASSIFICATIONMODELMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ImageClassificationDatasetMetadata = _reflection.GeneratedProtocolMessageType('ImageClassificationDatasetMetadata', (_message.Message,), dict( - DESCRIPTOR = _IMAGECLASSIFICATIONDATASETMETADATA, - __module__ = 'google.cloud.automl_v1beta1.proto.image_pb2' - , - __doc__ = """Dataset metadata that is specific to image classification. +ImageClassificationDatasetMetadata = _reflection.GeneratedProtocolMessageType( + "ImageClassificationDatasetMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGECLASSIFICATIONDATASETMETADATA, + __module__="google.cloud.automl_v1beta1.proto.image_pb2", + __doc__="""Dataset metadata that is specific to image classification. Attributes: classification_type: Required. Type of the classification problem. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) + ), +) _sym_db.RegisterMessage(ImageClassificationDatasetMetadata) -ImageClassificationModelMetadata = _reflection.GeneratedProtocolMessageType('ImageClassificationModelMetadata', (_message.Message,), dict( - DESCRIPTOR = _IMAGECLASSIFICATIONMODELMETADATA, - __module__ = 'google.cloud.automl_v1beta1.proto.image_pb2' - , - __doc__ = """Model metadata for image classification. +ImageClassificationModelMetadata = _reflection.GeneratedProtocolMessageType( + "ImageClassificationModelMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGECLASSIFICATIONMODELMETADATA, + __module__="google.cloud.automl_v1beta1.proto.image_pb2", + __doc__="""Model metadata for image classification. Attributes: @@ -156,11 +226,17 @@ Output only. The reason that this create model operation stopped, e.g. BUDGET\_REACHED, CONVERGED. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) + ), +) _sym_db.RegisterMessage(ImageClassificationModelMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1B\nImageProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1B\nImageProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/image_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/image_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/image_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/image_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/io_pb2.py b/automl/google/cloud/automl_v1beta1/proto/io_pb2.py index 82813fba85fd9..6f62d361c059d 100644 --- a/automl/google/cloud/automl_v1beta1/proto/io_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/io_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/automl_v1beta1/proto/io.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,164 +19,214 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/io.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n*google/cloud/automl_v1beta1/proto/io.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\"U\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32&.google.cloud.automl.v1beta1.GcsSourceH\x00\x42\x08\n\x06source\"e\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32+.google.cloud.automl.v1beta1.GcsDestinationH\x00\x42\r\n\x0b\x64\x65stination\"\x1f\n\tGcsSource\x12\x12\n\ninput_uris\x18\x01 \x03(\t\"+\n\x0eGcsDestination\x12\x19\n\x11output_uri_prefix\x18\x01 \x01(\tBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/io.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n*google/cloud/automl_v1beta1/proto/io.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto"U\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32&.google.cloud.automl.v1beta1.GcsSourceH\x00\x42\x08\n\x06source"e\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32+.google.cloud.automl.v1beta1.GcsDestinationH\x00\x42\r\n\x0b\x64\x65stination"\x1f\n\tGcsSource\x12\x12\n\ninput_uris\x18\x01 \x03(\t"+\n\x0eGcsDestination\x12\x19\n\x11output_uri_prefix\x18\x01 \x01(\tBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _INPUTCONFIG = _descriptor.Descriptor( - name='InputConfig', - full_name='google.cloud.automl.v1beta1.InputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_source', full_name='google.cloud.automl.v1beta1.InputConfig.gcs_source', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='source', full_name='google.cloud.automl.v1beta1.InputConfig.source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=105, - serialized_end=190, + name="InputConfig", + full_name="google.cloud.automl.v1beta1.InputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_source", + full_name="google.cloud.automl.v1beta1.InputConfig.gcs_source", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.cloud.automl.v1beta1.InputConfig.source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=105, + serialized_end=190, ) _OUTPUTCONFIG = _descriptor.Descriptor( - name='OutputConfig', - full_name='google.cloud.automl.v1beta1.OutputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_destination', full_name='google.cloud.automl.v1beta1.OutputConfig.gcs_destination', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='destination', full_name='google.cloud.automl.v1beta1.OutputConfig.destination', - index=0, containing_type=None, fields=[]), - ], - serialized_start=192, - serialized_end=293, + name="OutputConfig", + full_name="google.cloud.automl.v1beta1.OutputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_destination", + full_name="google.cloud.automl.v1beta1.OutputConfig.gcs_destination", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="destination", + full_name="google.cloud.automl.v1beta1.OutputConfig.destination", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=192, + serialized_end=293, ) _GCSSOURCE = _descriptor.Descriptor( - name='GcsSource', - full_name='google.cloud.automl.v1beta1.GcsSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uris', full_name='google.cloud.automl.v1beta1.GcsSource.input_uris', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=295, - serialized_end=326, + name="GcsSource", + full_name="google.cloud.automl.v1beta1.GcsSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uris", + full_name="google.cloud.automl.v1beta1.GcsSource.input_uris", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=295, + serialized_end=326, ) _GCSDESTINATION = _descriptor.Descriptor( - name='GcsDestination', - full_name='google.cloud.automl.v1beta1.GcsDestination', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='output_uri_prefix', full_name='google.cloud.automl.v1beta1.GcsDestination.output_uri_prefix', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=328, - serialized_end=371, + name="GcsDestination", + full_name="google.cloud.automl.v1beta1.GcsDestination", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="output_uri_prefix", + full_name="google.cloud.automl.v1beta1.GcsDestination.output_uri_prefix", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=328, + serialized_end=371, ) -_INPUTCONFIG.fields_by_name['gcs_source'].message_type = _GCSSOURCE -_INPUTCONFIG.oneofs_by_name['source'].fields.append( - _INPUTCONFIG.fields_by_name['gcs_source']) -_INPUTCONFIG.fields_by_name['gcs_source'].containing_oneof = _INPUTCONFIG.oneofs_by_name['source'] -_OUTPUTCONFIG.fields_by_name['gcs_destination'].message_type = _GCSDESTINATION -_OUTPUTCONFIG.oneofs_by_name['destination'].fields.append( - _OUTPUTCONFIG.fields_by_name['gcs_destination']) -_OUTPUTCONFIG.fields_by_name['gcs_destination'].containing_oneof = _OUTPUTCONFIG.oneofs_by_name['destination'] -DESCRIPTOR.message_types_by_name['InputConfig'] = _INPUTCONFIG -DESCRIPTOR.message_types_by_name['OutputConfig'] = _OUTPUTCONFIG -DESCRIPTOR.message_types_by_name['GcsSource'] = _GCSSOURCE -DESCRIPTOR.message_types_by_name['GcsDestination'] = _GCSDESTINATION +_INPUTCONFIG.fields_by_name["gcs_source"].message_type = _GCSSOURCE +_INPUTCONFIG.oneofs_by_name["source"].fields.append( + _INPUTCONFIG.fields_by_name["gcs_source"] +) +_INPUTCONFIG.fields_by_name[ + "gcs_source" +].containing_oneof = _INPUTCONFIG.oneofs_by_name["source"] +_OUTPUTCONFIG.fields_by_name["gcs_destination"].message_type = _GCSDESTINATION +_OUTPUTCONFIG.oneofs_by_name["destination"].fields.append( + _OUTPUTCONFIG.fields_by_name["gcs_destination"] +) +_OUTPUTCONFIG.fields_by_name[ + "gcs_destination" +].containing_oneof = _OUTPUTCONFIG.oneofs_by_name["destination"] +DESCRIPTOR.message_types_by_name["InputConfig"] = _INPUTCONFIG +DESCRIPTOR.message_types_by_name["OutputConfig"] = _OUTPUTCONFIG +DESCRIPTOR.message_types_by_name["GcsSource"] = _GCSSOURCE +DESCRIPTOR.message_types_by_name["GcsDestination"] = _GCSDESTINATION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -InputConfig = _reflection.GeneratedProtocolMessageType('InputConfig', (_message.Message,), dict( - DESCRIPTOR = _INPUTCONFIG, - __module__ = 'google.cloud.automl_v1beta1.proto.io_pb2' - , - __doc__ = """Input configuration. +InputConfig = _reflection.GeneratedProtocolMessageType( + "InputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_INPUTCONFIG, + __module__="google.cloud.automl_v1beta1.proto.io_pb2", + __doc__="""Input configuration. Attributes: @@ -183,15 +235,18 @@ gcs_source: The GCS location for the input content. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.InputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.InputConfig) + ), +) _sym_db.RegisterMessage(InputConfig) -OutputConfig = _reflection.GeneratedProtocolMessageType('OutputConfig', (_message.Message,), dict( - DESCRIPTOR = _OUTPUTCONFIG, - __module__ = 'google.cloud.automl_v1beta1.proto.io_pb2' - , - __doc__ = """Output configuration. +OutputConfig = _reflection.GeneratedProtocolMessageType( + "OutputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_OUTPUTCONFIG, + __module__="google.cloud.automl_v1beta1.proto.io_pb2", + __doc__="""Output configuration. Attributes: @@ -200,15 +255,18 @@ gcs_destination: The GCS location where the output must be written to. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OutputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OutputConfig) + ), +) _sym_db.RegisterMessage(OutputConfig) -GcsSource = _reflection.GeneratedProtocolMessageType('GcsSource', (_message.Message,), dict( - DESCRIPTOR = _GCSSOURCE, - __module__ = 'google.cloud.automl_v1beta1.proto.io_pb2' - , - __doc__ = """The GCS location for the input content. +GcsSource = _reflection.GeneratedProtocolMessageType( + "GcsSource", + (_message.Message,), + dict( + DESCRIPTOR=_GCSSOURCE, + __module__="google.cloud.automl_v1beta1.proto.io_pb2", + __doc__="""The GCS location for the input content. Attributes: @@ -217,15 +275,18 @@ characters long. Accepted forms: \* Full object path: gs://bucket/directory/object.csv """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsSource) + ), +) _sym_db.RegisterMessage(GcsSource) -GcsDestination = _reflection.GeneratedProtocolMessageType('GcsDestination', (_message.Message,), dict( - DESCRIPTOR = _GCSDESTINATION, - __module__ = 'google.cloud.automl_v1beta1.proto.io_pb2' - , - __doc__ = """The GCS location where the output must be written to +GcsDestination = _reflection.GeneratedProtocolMessageType( + "GcsDestination", + (_message.Message,), + dict( + DESCRIPTOR=_GCSDESTINATION, + __module__="google.cloud.automl_v1beta1.proto.io_pb2", + __doc__="""The GCS location where the output must be written to Attributes: @@ -236,11 +297,17 @@ permission to the bucket. The directory is created if it doesn't exist. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsDestination) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcsDestination) + ), +) _sym_db.RegisterMessage(GcsDestination) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/io_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/io_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/io_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/io_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2.py b/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2.py index 49b1144aa8fff..6654cc28ef1a8 100644 --- a/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2.py @@ -2,119 +2,216 @@ # source: google/cloud/automl_v1beta1/proto/model_evaluation.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import classification_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2 -from google.cloud.automl_v1beta1.proto import translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2 +from google.cloud.automl_v1beta1.proto import ( + classification_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/model_evaluation.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n8google/cloud/automl_v1beta1/proto/model_evaluation.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x36google/cloud/automl_v1beta1/proto/classification.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe8\x02\n\x0fModelEvaluation\x12i\n!classification_evaluation_metrics\x18\x08 \x01(\x0b\x32<.google.cloud.automl.v1beta1.ClassificationEvaluationMetricsH\x00\x12\x63\n\x1etranslation_evaluation_metrics\x18\t \x01(\x0b\x32\x39.google.cloud.automl.v1beta1.TranslationEvaluationMetricsH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1a\n\x12\x61nnotation_spec_id\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x17\x65valuated_example_count\x18\x06 \x01(\x05\x42\t\n\x07metricsBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/model_evaluation.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n8google/cloud/automl_v1beta1/proto/model_evaluation.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x36google/cloud/automl_v1beta1/proto/classification.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xe8\x02\n\x0fModelEvaluation\x12i\n!classification_evaluation_metrics\x18\x08 \x01(\x0b\x32<.google.cloud.automl.v1beta1.ClassificationEvaluationMetricsH\x00\x12\x63\n\x1etranslation_evaluation_metrics\x18\t \x01(\x0b\x32\x39.google.cloud.automl.v1beta1.TranslationEvaluationMetricsH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1a\n\x12\x61nnotation_spec_id\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1f\n\x17\x65valuated_example_count\x18\x06 \x01(\x05\x42\t\n\x07metricsBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _MODELEVALUATION = _descriptor.Descriptor( - name='ModelEvaluation', - full_name='google.cloud.automl.v1beta1.ModelEvaluation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='classification_evaluation_metrics', full_name='google.cloud.automl.v1beta1.ModelEvaluation.classification_evaluation_metrics', index=0, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='translation_evaluation_metrics', full_name='google.cloud.automl.v1beta1.ModelEvaluation.translation_evaluation_metrics', index=1, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.ModelEvaluation.name', index=2, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='annotation_spec_id', full_name='google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id', index=3, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.automl.v1beta1.ModelEvaluation.create_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='evaluated_example_count', full_name='google.cloud.automl.v1beta1.ModelEvaluation.evaluated_example_count', index=5, - number=6, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='metrics', full_name='google.cloud.automl.v1beta1.ModelEvaluation.metrics', - index=0, containing_type=None, fields=[]), - ], - serialized_start=262, - serialized_end=622, + name="ModelEvaluation", + full_name="google.cloud.automl.v1beta1.ModelEvaluation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="classification_evaluation_metrics", + full_name="google.cloud.automl.v1beta1.ModelEvaluation.classification_evaluation_metrics", + index=0, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="translation_evaluation_metrics", + full_name="google.cloud.automl.v1beta1.ModelEvaluation.translation_evaluation_metrics", + index=1, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.ModelEvaluation.name", + index=2, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="annotation_spec_id", + full_name="google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id", + index=3, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.automl.v1beta1.ModelEvaluation.create_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="evaluated_example_count", + full_name="google.cloud.automl.v1beta1.ModelEvaluation.evaluated_example_count", + index=5, + number=6, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="metrics", + full_name="google.cloud.automl.v1beta1.ModelEvaluation.metrics", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=262, + serialized_end=622, ) -_MODELEVALUATION.fields_by_name['classification_evaluation_metrics'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2._CLASSIFICATIONEVALUATIONMETRICS -_MODELEVALUATION.fields_by_name['translation_evaluation_metrics'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONEVALUATIONMETRICS -_MODELEVALUATION.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_MODELEVALUATION.oneofs_by_name['metrics'].fields.append( - _MODELEVALUATION.fields_by_name['classification_evaluation_metrics']) -_MODELEVALUATION.fields_by_name['classification_evaluation_metrics'].containing_oneof = _MODELEVALUATION.oneofs_by_name['metrics'] -_MODELEVALUATION.oneofs_by_name['metrics'].fields.append( - _MODELEVALUATION.fields_by_name['translation_evaluation_metrics']) -_MODELEVALUATION.fields_by_name['translation_evaluation_metrics'].containing_oneof = _MODELEVALUATION.oneofs_by_name['metrics'] -DESCRIPTOR.message_types_by_name['ModelEvaluation'] = _MODELEVALUATION +_MODELEVALUATION.fields_by_name[ + "classification_evaluation_metrics" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_classification__pb2._CLASSIFICATIONEVALUATIONMETRICS +) +_MODELEVALUATION.fields_by_name[ + "translation_evaluation_metrics" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONEVALUATIONMETRICS +) +_MODELEVALUATION.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_MODELEVALUATION.oneofs_by_name["metrics"].fields.append( + _MODELEVALUATION.fields_by_name["classification_evaluation_metrics"] +) +_MODELEVALUATION.fields_by_name[ + "classification_evaluation_metrics" +].containing_oneof = _MODELEVALUATION.oneofs_by_name["metrics"] +_MODELEVALUATION.oneofs_by_name["metrics"].fields.append( + _MODELEVALUATION.fields_by_name["translation_evaluation_metrics"] +) +_MODELEVALUATION.fields_by_name[ + "translation_evaluation_metrics" +].containing_oneof = _MODELEVALUATION.oneofs_by_name["metrics"] +DESCRIPTOR.message_types_by_name["ModelEvaluation"] = _MODELEVALUATION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ModelEvaluation = _reflection.GeneratedProtocolMessageType('ModelEvaluation', (_message.Message,), dict( - DESCRIPTOR = _MODELEVALUATION, - __module__ = 'google.cloud.automl_v1beta1.proto.model_evaluation_pb2' - , - __doc__ = """Evaluation results of a model. +ModelEvaluation = _reflection.GeneratedProtocolMessageType( + "ModelEvaluation", + (_message.Message,), + dict( + DESCRIPTOR=_MODELEVALUATION, + __module__="google.cloud.automl_v1beta1.proto.model_evaluation_pb2", + __doc__="""Evaluation results of a model. Attributes: @@ -140,11 +237,17 @@ evaluated_example_count: Output only. The number of examples used for model evaluation. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ModelEvaluation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ModelEvaluation) + ), +) _sym_db.RegisterMessage(ModelEvaluation) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/model_pb2.py b/automl/google/cloud/automl_v1beta1/proto/model_pb2.py index 24c2d96b67976..ca4006e3ab75c 100644 --- a/automl/google/cloud/automl_v1beta1/proto/model_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/model_pb2.py @@ -2,175 +2,318 @@ # source: google/cloud/automl_v1beta1/proto/model.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import image_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2 -from google.cloud.automl_v1beta1.proto import text_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2 -from google.cloud.automl_v1beta1.proto import translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2 +from google.cloud.automl_v1beta1.proto import ( + image_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + text_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + translation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/model.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/automl_v1beta1/proto/model.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/automl_v1beta1/proto/image.proto\x1a,google/cloud/automl_v1beta1/proto/text.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x05\n\x05Model\x12l\n#image_classification_model_metadata\x18\r \x01(\x0b\x32=.google.cloud.automl.v1beta1.ImageClassificationModelMetadataH\x00\x12j\n\"text_classification_model_metadata\x18\x0e \x01(\x0b\x32<.google.cloud.automl.v1beta1.TextClassificationModelMetadataH\x00\x12[\n\x1atranslation_model_metadata\x18\x0f \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.TranslationModelMetadataH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\ndataset_id\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12L\n\x10\x64\x65ployment_state\x18\x08 \x01(\x0e\x32\x32.google.cloud.automl.v1beta1.Model.DeploymentState\"Q\n\x0f\x44\x65ploymentState\x12 \n\x1c\x44\x45PLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\x0e\n\nUNDEPLOYED\x10\x02\x42\x10\n\x0emodel_metadataBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/automl_v1beta1/proto/model.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/automl_v1beta1/proto/model.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/automl_v1beta1/proto/image.proto\x1a,google/cloud/automl_v1beta1/proto/text.proto\x1a\x33google/cloud/automl_v1beta1/proto/translation.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x8b\x05\n\x05Model\x12l\n#image_classification_model_metadata\x18\r \x01(\x0b\x32=.google.cloud.automl.v1beta1.ImageClassificationModelMetadataH\x00\x12j\n"text_classification_model_metadata\x18\x0e \x01(\x0b\x32<.google.cloud.automl.v1beta1.TextClassificationModelMetadataH\x00\x12[\n\x1atranslation_model_metadata\x18\x0f \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.TranslationModelMetadataH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\ndataset_id\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12L\n\x10\x64\x65ployment_state\x18\x08 \x01(\x0e\x32\x32.google.cloud.automl.v1beta1.Model.DeploymentState"Q\n\x0f\x44\x65ploymentState\x12 \n\x1c\x44\x45PLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\x0e\n\nUNDEPLOYED\x10\x02\x42\x10\n\x0emodel_metadataBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _MODEL_DEPLOYMENTSTATE = _descriptor.EnumDescriptor( - name='DeploymentState', - full_name='google.cloud.automl.v1beta1.Model.DeploymentState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='DEPLOYMENT_STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEPLOYED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNDEPLOYED', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=840, - serialized_end=921, + name="DeploymentState", + full_name="google.cloud.automl.v1beta1.Model.DeploymentState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="DEPLOYMENT_STATE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="DEPLOYED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNDEPLOYED", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=840, + serialized_end=921, ) _sym_db.RegisterEnumDescriptor(_MODEL_DEPLOYMENTSTATE) _MODEL = _descriptor.Descriptor( - name='Model', - full_name='google.cloud.automl.v1beta1.Model', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image_classification_model_metadata', full_name='google.cloud.automl.v1beta1.Model.image_classification_model_metadata', index=0, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_classification_model_metadata', full_name='google.cloud.automl.v1beta1.Model.text_classification_model_metadata', index=1, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='translation_model_metadata', full_name='google.cloud.automl.v1beta1.Model.translation_model_metadata', index=2, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.Model.name', index=3, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.automl.v1beta1.Model.display_name', index=4, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataset_id', full_name='google.cloud.automl.v1beta1.Model.dataset_id', index=5, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.automl.v1beta1.Model.create_time', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.automl.v1beta1.Model.update_time', index=7, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='deployment_state', full_name='google.cloud.automl.v1beta1.Model.deployment_state', index=8, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _MODEL_DEPLOYMENTSTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='model_metadata', full_name='google.cloud.automl.v1beta1.Model.model_metadata', - index=0, containing_type=None, fields=[]), - ], - serialized_start=288, - serialized_end=939, + name="Model", + full_name="google.cloud.automl.v1beta1.Model", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image_classification_model_metadata", + full_name="google.cloud.automl.v1beta1.Model.image_classification_model_metadata", + index=0, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_classification_model_metadata", + full_name="google.cloud.automl.v1beta1.Model.text_classification_model_metadata", + index=1, + number=14, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="translation_model_metadata", + full_name="google.cloud.automl.v1beta1.Model.translation_model_metadata", + index=2, + number=15, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.Model.name", + index=3, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.automl.v1beta1.Model.display_name", + index=4, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dataset_id", + full_name="google.cloud.automl.v1beta1.Model.dataset_id", + index=5, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.automl.v1beta1.Model.create_time", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.automl.v1beta1.Model.update_time", + index=7, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="deployment_state", + full_name="google.cloud.automl.v1beta1.Model.deployment_state", + index=8, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_MODEL_DEPLOYMENTSTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="model_metadata", + full_name="google.cloud.automl.v1beta1.Model.model_metadata", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=288, + serialized_end=939, ) -_MODEL.fields_by_name['image_classification_model_metadata'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2._IMAGECLASSIFICATIONMODELMETADATA -_MODEL.fields_by_name['text_classification_model_metadata'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2._TEXTCLASSIFICATIONMODELMETADATA -_MODEL.fields_by_name['translation_model_metadata'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONMODELMETADATA -_MODEL.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_MODEL.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_MODEL.fields_by_name['deployment_state'].enum_type = _MODEL_DEPLOYMENTSTATE +_MODEL.fields_by_name[ + "image_classification_model_metadata" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_image__pb2._IMAGECLASSIFICATIONMODELMETADATA +) +_MODEL.fields_by_name[ + "text_classification_model_metadata" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_text__pb2._TEXTCLASSIFICATIONMODELMETADATA +) +_MODEL.fields_by_name[ + "translation_model_metadata" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_translation__pb2._TRANSLATIONMODELMETADATA +) +_MODEL.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_MODEL.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_MODEL.fields_by_name["deployment_state"].enum_type = _MODEL_DEPLOYMENTSTATE _MODEL_DEPLOYMENTSTATE.containing_type = _MODEL -_MODEL.oneofs_by_name['model_metadata'].fields.append( - _MODEL.fields_by_name['image_classification_model_metadata']) -_MODEL.fields_by_name['image_classification_model_metadata'].containing_oneof = _MODEL.oneofs_by_name['model_metadata'] -_MODEL.oneofs_by_name['model_metadata'].fields.append( - _MODEL.fields_by_name['text_classification_model_metadata']) -_MODEL.fields_by_name['text_classification_model_metadata'].containing_oneof = _MODEL.oneofs_by_name['model_metadata'] -_MODEL.oneofs_by_name['model_metadata'].fields.append( - _MODEL.fields_by_name['translation_model_metadata']) -_MODEL.fields_by_name['translation_model_metadata'].containing_oneof = _MODEL.oneofs_by_name['model_metadata'] -DESCRIPTOR.message_types_by_name['Model'] = _MODEL +_MODEL.oneofs_by_name["model_metadata"].fields.append( + _MODEL.fields_by_name["image_classification_model_metadata"] +) +_MODEL.fields_by_name[ + "image_classification_model_metadata" +].containing_oneof = _MODEL.oneofs_by_name["model_metadata"] +_MODEL.oneofs_by_name["model_metadata"].fields.append( + _MODEL.fields_by_name["text_classification_model_metadata"] +) +_MODEL.fields_by_name[ + "text_classification_model_metadata" +].containing_oneof = _MODEL.oneofs_by_name["model_metadata"] +_MODEL.oneofs_by_name["model_metadata"].fields.append( + _MODEL.fields_by_name["translation_model_metadata"] +) +_MODEL.fields_by_name[ + "translation_model_metadata" +].containing_oneof = _MODEL.oneofs_by_name["model_metadata"] +DESCRIPTOR.message_types_by_name["Model"] = _MODEL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Model = _reflection.GeneratedProtocolMessageType('Model', (_message.Message,), dict( - DESCRIPTOR = _MODEL, - __module__ = 'google.cloud.automl_v1beta1.proto.model_pb2' - , - __doc__ = """API proto representing a trained machine learning model. +Model = _reflection.GeneratedProtocolMessageType( + "Model", + (_message.Message,), + dict( + DESCRIPTOR=_MODEL, + __module__="google.cloud.automl_v1beta1.proto.model_pb2", + __doc__="""API proto representing a trained machine learning model. Attributes: @@ -203,11 +346,17 @@ deployment_state: Output only. Deployment state of the model. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Model) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Model) + ), +) _sym_db.RegisterMessage(Model) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/model_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/model_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/model_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/model_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/operations_pb2.py b/automl/google/cloud/automl_v1beta1/proto/operations_pb2.py index 8aef0c4eca81e..d202a2fae23eb 100644 --- a/automl/google/cloud/automl_v1beta1/proto/operations_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/operations_pb2.py @@ -2,137 +2,218 @@ # source: google/cloud/automl_v1beta1/proto/operations.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import model_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2 -from google.cloud.automl_v1beta1.proto import model_evaluation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2 +from google.cloud.automl_v1beta1.proto import ( + model_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + model_evaluation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/operations.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n2google/cloud/automl_v1beta1/proto/operations.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/automl_v1beta1/proto/model.proto\x1a\x38google/cloud/automl_v1beta1/proto/model_evaluation.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xa3\x02\n\x11OperationMetadata\x12Y\n\x14\x63reate_model_details\x18\n \x01(\x0b\x32\x39.google.cloud.automl.v1beta1.CreateModelOperationMetadataH\x00\x12\x18\n\x10progress_percent\x18\r \x01(\x05\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07\x64\x65tails\"\x1e\n\x1c\x43reateModelOperationMetadataBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/operations.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n2google/cloud/automl_v1beta1/proto/operations.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/automl_v1beta1/proto/model.proto\x1a\x38google/cloud/automl_v1beta1/proto/model_evaluation.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xa3\x02\n\x11OperationMetadata\x12Y\n\x14\x63reate_model_details\x18\n \x01(\x0b\x32\x39.google.cloud.automl.v1beta1.CreateModelOperationMetadataH\x00\x12\x18\n\x10progress_percent\x18\r \x01(\x05\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07\x64\x65tails"\x1e\n\x1c\x43reateModelOperationMetadataBf\n\x1f\x63om.google.cloud.automl.v1beta1P\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _OPERATIONMETADATA = _descriptor.Descriptor( - name='OperationMetadata', - full_name='google.cloud.automl.v1beta1.OperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create_model_details', full_name='google.cloud.automl.v1beta1.OperationMetadata.create_model_details', index=0, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress_percent', full_name='google.cloud.automl.v1beta1.OperationMetadata.progress_percent', index=1, - number=13, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failures', full_name='google.cloud.automl.v1beta1.OperationMetadata.partial_failures', index=2, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.automl.v1beta1.OperationMetadata.create_time', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.automl.v1beta1.OperationMetadata.update_time', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='details', full_name='google.cloud.automl.v1beta1.OperationMetadata.details', - index=0, containing_type=None, fields=[]), - ], - serialized_start=306, - serialized_end=597, + name="OperationMetadata", + full_name="google.cloud.automl.v1beta1.OperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="create_model_details", + full_name="google.cloud.automl.v1beta1.OperationMetadata.create_model_details", + index=0, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.cloud.automl.v1beta1.OperationMetadata.progress_percent", + index=1, + number=13, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partial_failures", + full_name="google.cloud.automl.v1beta1.OperationMetadata.partial_failures", + index=2, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.automl.v1beta1.OperationMetadata.create_time", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.automl.v1beta1.OperationMetadata.update_time", + index=4, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="details", + full_name="google.cloud.automl.v1beta1.OperationMetadata.details", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=306, + serialized_end=597, ) _CREATEMODELOPERATIONMETADATA = _descriptor.Descriptor( - name='CreateModelOperationMetadata', - full_name='google.cloud.automl.v1beta1.CreateModelOperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=599, - serialized_end=629, + name="CreateModelOperationMetadata", + full_name="google.cloud.automl.v1beta1.CreateModelOperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=599, + serialized_end=629, ) -_OPERATIONMETADATA.fields_by_name['create_model_details'].message_type = _CREATEMODELOPERATIONMETADATA -_OPERATIONMETADATA.fields_by_name['partial_failures'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_OPERATIONMETADATA.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_OPERATIONMETADATA.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_OPERATIONMETADATA.oneofs_by_name['details'].fields.append( - _OPERATIONMETADATA.fields_by_name['create_model_details']) -_OPERATIONMETADATA.fields_by_name['create_model_details'].containing_oneof = _OPERATIONMETADATA.oneofs_by_name['details'] -DESCRIPTOR.message_types_by_name['OperationMetadata'] = _OPERATIONMETADATA -DESCRIPTOR.message_types_by_name['CreateModelOperationMetadata'] = _CREATEMODELOPERATIONMETADATA +_OPERATIONMETADATA.fields_by_name[ + "create_model_details" +].message_type = _CREATEMODELOPERATIONMETADATA +_OPERATIONMETADATA.fields_by_name[ + "partial_failures" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_OPERATIONMETADATA.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_OPERATIONMETADATA.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_OPERATIONMETADATA.oneofs_by_name["details"].fields.append( + _OPERATIONMETADATA.fields_by_name["create_model_details"] +) +_OPERATIONMETADATA.fields_by_name[ + "create_model_details" +].containing_oneof = _OPERATIONMETADATA.oneofs_by_name["details"] +DESCRIPTOR.message_types_by_name["OperationMetadata"] = _OPERATIONMETADATA +DESCRIPTOR.message_types_by_name[ + "CreateModelOperationMetadata" +] = _CREATEMODELOPERATIONMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -OperationMetadata = _reflection.GeneratedProtocolMessageType('OperationMetadata', (_message.Message,), dict( - DESCRIPTOR = _OPERATIONMETADATA, - __module__ = 'google.cloud.automl_v1beta1.proto.operations_pb2' - , - __doc__ = """Metadata used across all long running operations returned by AutoML API. +OperationMetadata = _reflection.GeneratedProtocolMessageType( + "OperationMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_OPERATIONMETADATA, + __module__="google.cloud.automl_v1beta1.proto.operations_pb2", + __doc__="""Metadata used across all long running operations returned by AutoML API. Attributes: @@ -155,21 +236,30 @@ Output only. Time when the operation was updated for the last time. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OperationMetadata) + ), +) _sym_db.RegisterMessage(OperationMetadata) -CreateModelOperationMetadata = _reflection.GeneratedProtocolMessageType('CreateModelOperationMetadata', (_message.Message,), dict( - DESCRIPTOR = _CREATEMODELOPERATIONMETADATA, - __module__ = 'google.cloud.automl_v1beta1.proto.operations_pb2' - , - __doc__ = """Details of CreateModel operation. +CreateModelOperationMetadata = _reflection.GeneratedProtocolMessageType( + "CreateModelOperationMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEMODELOPERATIONMETADATA, + __module__="google.cloud.automl_v1beta1.proto.operations_pb2", + __doc__="""Details of CreateModel operation. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelOperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelOperationMetadata) + ), +) _sym_db.RegisterMessage(CreateModelOperationMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/operations_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/operations_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/automl/google/cloud/automl_v1beta1/proto/operations_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/operations_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2.py b/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2.py index 72bc73ca23d88..90ab3a7bc4b44 100644 --- a/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2.py @@ -2,211 +2,322 @@ # source: google/cloud/automl_v1beta1/proto/prediction_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import annotation_payload_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2 -from google.cloud.automl_v1beta1.proto import data_items_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2 +from google.cloud.automl_v1beta1.proto import ( + annotation_payload_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + data_items_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/prediction_service.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n:google/cloud/automl_v1beta1/proto/prediction_service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x1a\x32google/cloud/automl_v1beta1/proto/data_items.proto\"\xd4\x01\n\x0ePredictRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x07payload\x18\x02 \x01(\x0b\x32+.google.cloud.automl.v1beta1.ExamplePayload\x12G\n\x06params\x18\x03 \x03(\x0b\x32\x37.google.cloud.automl.v1beta1.PredictRequest.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd1\x01\n\x0fPredictResponse\x12?\n\x07payload\x18\x01 \x03(\x0b\x32..google.cloud.automl.v1beta1.AnnotationPayload\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.google.cloud.automl.v1beta1.PredictResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xbe\x01\n\x11PredictionService\x12\xa8\x01\n\x07Predict\x12+.google.cloud.automl.v1beta1.PredictRequest\x1a,.google.cloud.automl.v1beta1.PredictResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1beta1/{name=projects/*/locations/*/models/*}:predict:\x01*B~\n\x1f\x63om.google.cloud.automl.v1beta1B\x16PredictionServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/prediction_service.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n:google/cloud/automl_v1beta1/proto/prediction_service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x1a\x32google/cloud/automl_v1beta1/proto/data_items.proto"\xd4\x01\n\x0ePredictRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x07payload\x18\x02 \x01(\x0b\x32+.google.cloud.automl.v1beta1.ExamplePayload\x12G\n\x06params\x18\x03 \x03(\x0b\x32\x37.google.cloud.automl.v1beta1.PredictRequest.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xd1\x01\n\x0fPredictResponse\x12?\n\x07payload\x18\x01 \x03(\x0b\x32..google.cloud.automl.v1beta1.AnnotationPayload\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.google.cloud.automl.v1beta1.PredictResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xbe\x01\n\x11PredictionService\x12\xa8\x01\n\x07Predict\x12+.google.cloud.automl.v1beta1.PredictRequest\x1a,.google.cloud.automl.v1beta1.PredictResponse"B\x82\xd3\xe4\x93\x02<"7/v1beta1/{name=projects/*/locations/*/models/*}:predict:\x01*B~\n\x1f\x63om.google.cloud.automl.v1beta1B\x16PredictionServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2.DESCRIPTOR, + ], +) _PREDICTREQUEST_PARAMSENTRY = _descriptor.Descriptor( - name='ParamsEntry', - full_name='google.cloud.automl.v1beta1.PredictRequest.ParamsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.automl.v1beta1.PredictRequest.ParamsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.automl.v1beta1.PredictRequest.ParamsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=401, - serialized_end=446, + name="ParamsEntry", + full_name="google.cloud.automl.v1beta1.PredictRequest.ParamsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.automl.v1beta1.PredictRequest.ParamsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.automl.v1beta1.PredictRequest.ParamsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=401, + serialized_end=446, ) _PREDICTREQUEST = _descriptor.Descriptor( - name='PredictRequest', - full_name='google.cloud.automl.v1beta1.PredictRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.PredictRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payload', full_name='google.cloud.automl.v1beta1.PredictRequest.payload', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='params', full_name='google.cloud.automl.v1beta1.PredictRequest.params', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PREDICTREQUEST_PARAMSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=234, - serialized_end=446, + name="PredictRequest", + full_name="google.cloud.automl.v1beta1.PredictRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.PredictRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="payload", + full_name="google.cloud.automl.v1beta1.PredictRequest.payload", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="params", + full_name="google.cloud.automl.v1beta1.PredictRequest.params", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PREDICTREQUEST_PARAMSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=234, + serialized_end=446, ) _PREDICTRESPONSE_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='google.cloud.automl.v1beta1.PredictResponse.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.automl.v1beta1.PredictResponse.MetadataEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.automl.v1beta1.PredictResponse.MetadataEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=611, - serialized_end=658, + name="MetadataEntry", + full_name="google.cloud.automl.v1beta1.PredictResponse.MetadataEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.automl.v1beta1.PredictResponse.MetadataEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.automl.v1beta1.PredictResponse.MetadataEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=611, + serialized_end=658, ) _PREDICTRESPONSE = _descriptor.Descriptor( - name='PredictResponse', - full_name='google.cloud.automl.v1beta1.PredictResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='payload', full_name='google.cloud.automl.v1beta1.PredictResponse.payload', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.automl.v1beta1.PredictResponse.metadata', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PREDICTRESPONSE_METADATAENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=449, - serialized_end=658, + name="PredictResponse", + full_name="google.cloud.automl.v1beta1.PredictResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="payload", + full_name="google.cloud.automl.v1beta1.PredictResponse.payload", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.cloud.automl.v1beta1.PredictResponse.metadata", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PREDICTRESPONSE_METADATAENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=449, + serialized_end=658, ) _PREDICTREQUEST_PARAMSENTRY.containing_type = _PREDICTREQUEST -_PREDICTREQUEST.fields_by_name['payload'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2._EXAMPLEPAYLOAD -_PREDICTREQUEST.fields_by_name['params'].message_type = _PREDICTREQUEST_PARAMSENTRY +_PREDICTREQUEST.fields_by_name[ + "payload" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_data__items__pb2._EXAMPLEPAYLOAD +) +_PREDICTREQUEST.fields_by_name["params"].message_type = _PREDICTREQUEST_PARAMSENTRY _PREDICTRESPONSE_METADATAENTRY.containing_type = _PREDICTRESPONSE -_PREDICTRESPONSE.fields_by_name['payload'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2._ANNOTATIONPAYLOAD -_PREDICTRESPONSE.fields_by_name['metadata'].message_type = _PREDICTRESPONSE_METADATAENTRY -DESCRIPTOR.message_types_by_name['PredictRequest'] = _PREDICTREQUEST -DESCRIPTOR.message_types_by_name['PredictResponse'] = _PREDICTRESPONSE +_PREDICTRESPONSE.fields_by_name[ + "payload" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2._ANNOTATIONPAYLOAD +) +_PREDICTRESPONSE.fields_by_name[ + "metadata" +].message_type = _PREDICTRESPONSE_METADATAENTRY +DESCRIPTOR.message_types_by_name["PredictRequest"] = _PREDICTREQUEST +DESCRIPTOR.message_types_by_name["PredictResponse"] = _PREDICTRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -PredictRequest = _reflection.GeneratedProtocolMessageType('PredictRequest', (_message.Message,), dict( - - ParamsEntry = _reflection.GeneratedProtocolMessageType('ParamsEntry', (_message.Message,), dict( - DESCRIPTOR = _PREDICTREQUEST_PARAMSENTRY, - __module__ = 'google.cloud.automl_v1beta1.proto.prediction_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictRequest.ParamsEntry) - )) - , - DESCRIPTOR = _PREDICTREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.prediction_service_pb2' - , - __doc__ = """Request message for +PredictRequest = _reflection.GeneratedProtocolMessageType( + "PredictRequest", + (_message.Message,), + dict( + ParamsEntry=_reflection.GeneratedProtocolMessageType( + "ParamsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PREDICTREQUEST_PARAMSENTRY, + __module__="google.cloud.automl_v1beta1.proto.prediction_service_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictRequest.ParamsEntry) + ), + ), + DESCRIPTOR=_PREDICTREQUEST, + __module__="google.cloud.automl_v1beta1.proto.prediction_service_pb2", + __doc__="""Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. @@ -224,23 +335,28 @@ results that have at least this confidence score threshold. The default is 0.5. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictRequest) + ), +) _sym_db.RegisterMessage(PredictRequest) _sym_db.RegisterMessage(PredictRequest.ParamsEntry) -PredictResponse = _reflection.GeneratedProtocolMessageType('PredictResponse', (_message.Message,), dict( - - MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( - DESCRIPTOR = _PREDICTRESPONSE_METADATAENTRY, - __module__ = 'google.cloud.automl_v1beta1.proto.prediction_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictResponse.MetadataEntry) - )) - , - DESCRIPTOR = _PREDICTRESPONSE, - __module__ = 'google.cloud.automl_v1beta1.proto.prediction_service_pb2' - , - __doc__ = """Response message for +PredictResponse = _reflection.GeneratedProtocolMessageType( + "PredictResponse", + (_message.Message,), + dict( + MetadataEntry=_reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PREDICTRESPONSE_METADATAENTRY, + __module__="google.cloud.automl_v1beta1.proto.prediction_service_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictResponse.MetadataEntry) + ), + ), + DESCRIPTOR=_PREDICTRESPONSE, + __module__="google.cloud.automl_v1beta1.proto.prediction_service_pb2", + __doc__="""Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. Currently, this is only used to return an image recognition prediction @@ -254,40 +370,56 @@ metadata: Additional domain-specific prediction response metadata. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.PredictResponse) + ), +) _sym_db.RegisterMessage(PredictResponse) _sym_db.RegisterMessage(PredictResponse.MetadataEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1B\026PredictionServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1B\026PredictionServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) _PREDICTREQUEST_PARAMSENTRY.has_options = True -_PREDICTREQUEST_PARAMSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PREDICTREQUEST_PARAMSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PREDICTRESPONSE_METADATAENTRY.has_options = True -_PREDICTRESPONSE_METADATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PREDICTRESPONSE_METADATAENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PREDICTIONSERVICE = _descriptor.ServiceDescriptor( - name='PredictionService', - full_name='google.cloud.automl.v1beta1.PredictionService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=661, - serialized_end=851, - methods=[ - _descriptor.MethodDescriptor( - name='Predict', - full_name='google.cloud.automl.v1beta1.PredictionService.Predict', + name="PredictionService", + full_name="google.cloud.automl.v1beta1.PredictionService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_PREDICTREQUEST, - output_type=_PREDICTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\"7/v1beta1/{name=projects/*/locations/*/models/*}:predict:\001*')), - ), -]) + options=None, + serialized_start=661, + serialized_end=851, + methods=[ + _descriptor.MethodDescriptor( + name="Predict", + full_name="google.cloud.automl.v1beta1.PredictionService.Predict", + index=0, + containing_service=None, + input_type=_PREDICTREQUEST, + output_type=_PREDICTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002<"7/v1beta1/{name=projects/*/locations/*/models/*}:predict:\001*' + ), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_PREDICTIONSERVICE) -DESCRIPTOR.services_by_name['PredictionService'] = _PREDICTIONSERVICE +DESCRIPTOR.services_by_name["PredictionService"] = _PREDICTIONSERVICE # @@protoc_insertion_point(module_scope) diff --git a/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2_grpc.py b/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2_grpc.py index adfd74458e4e3..09790c6924a8d 100644 --- a/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2_grpc.py +++ b/automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2_grpc.py @@ -1,46 +1,49 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.automl_v1beta1.proto import prediction_service_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2 +from google.cloud.automl_v1beta1.proto import ( + prediction_service_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2, +) class PredictionServiceStub(object): - """AutoML Prediction API. + """AutoML Prediction API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.Predict = channel.unary_unary( - '/google.cloud.automl.v1beta1.PredictionService/Predict', - request_serializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictResponse.FromString, + self.Predict = channel.unary_unary( + "/google.cloud.automl.v1beta1.PredictionService/Predict", + request_serializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictResponse.FromString, ) class PredictionServiceServicer(object): - """AutoML Prediction API. + """AutoML Prediction API. """ - def Predict(self, request, context): - """Perform a prediction. + def Predict(self, request, context): + """Perform a prediction. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_PredictionServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Predict': grpc.unary_unary_rpc_method_handler( - servicer.Predict, - request_deserializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictRequest.FromString, - response_serializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.automl.v1beta1.PredictionService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "Predict": grpc.unary_unary_rpc_method_handler( + servicer.Predict, + request_deserializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictRequest.FromString, + response_serializer=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_prediction__service__pb2.PredictResponse.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.automl.v1beta1.PredictionService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/automl/google/cloud/automl_v1beta1/proto/service_pb2.py b/automl/google/cloud/automl_v1beta1/proto/service_pb2.py index 6b68d969a7678..e35626383930c 100644 --- a/automl/google/cloud/automl_v1beta1/proto/service_pb2.py +++ b/automl/google/cloud/automl_v1beta1/proto/service_pb2.py @@ -2,708 +2,1076 @@ # source: google/cloud/automl_v1beta1/proto/service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.automl_v1beta1.proto import annotation_payload_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2 -from google.cloud.automl_v1beta1.proto import dataset_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2 -from google.cloud.automl_v1beta1.proto import io_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2 -from google.cloud.automl_v1beta1.proto import model_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2 -from google.cloud.automl_v1beta1.proto import model_evaluation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2 -from google.cloud.automl_v1beta1.proto import operations_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_operations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.automl_v1beta1.proto import ( + annotation_payload_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + dataset_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + io_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + model_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + model_evaluation_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2, +) +from google.cloud.automl_v1beta1.proto import ( + operations_pb2 as google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_operations__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/automl_v1beta1/proto/service.proto', - package='google.cloud.automl.v1beta1', - syntax='proto3', - serialized_pb=_b('\n/google/cloud/automl_v1beta1/proto/service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x1a/google/cloud/automl_v1beta1/proto/dataset.proto\x1a*google/cloud/automl_v1beta1/proto/io.proto\x1a-google/cloud/automl_v1beta1/proto/model.proto\x1a\x38google/cloud/automl_v1beta1/proto/model_evaluation.proto\x1a\x32google/cloud/automl_v1beta1/proto/operations.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\"]\n\x14\x43reateDatasetRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x35\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32$.google.cloud.automl.v1beta1.Dataset\"!\n\x11GetDatasetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\\\n\x13ListDatasetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"g\n\x14ListDatasetsResponse\x12\x36\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32$.google.cloud.automl.v1beta1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"$\n\x14\x44\x65leteDatasetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"a\n\x11ImportDataRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x0cinput_config\x18\x03 \x01(\x0b\x32(.google.cloud.automl.v1beta1.InputConfig\"c\n\x11\x45xportDataRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\routput_config\x18\x03 \x01(\x0b\x32).google.cloud.automl.v1beta1.OutputConfig\"W\n\x12\x43reateModelRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x31\n\x05model\x18\x04 \x01(\x0b\x32\".google.cloud.automl.v1beta1.Model\"\x1f\n\x0fGetModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"Z\n\x11ListModelsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"`\n\x12ListModelsResponse\x12\x31\n\x05model\x18\x01 \x03(\x0b\x32\".google.cloud.automl.v1beta1.Model\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\"\n\x12\x44\x65leteModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12\x44\x65ployModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"$\n\x14UndeployModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\")\n\x19GetModelEvaluationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"d\n\x1bListModelEvaluationsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"\x7f\n\x1cListModelEvaluationsResponse\x12\x46\n\x10model_evaluation\x18\x01 \x03(\x0b\x32,.google.cloud.automl.v1beta1.ModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xde\x12\n\x06\x41utoMl\x12\xac\x01\n\rCreateDataset\x12\x31.google.cloud.automl.v1beta1.CreateDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"B\x82\xd3\xe4\x93\x02<\"1/v1beta1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\x12\x9d\x01\n\nGetDataset\x12..google.cloud.automl.v1beta1.GetDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/locations/*/datasets/*}\x12\xae\x01\n\x0cListDatasets\x12\x30.google.cloud.automl.v1beta1.ListDatasetsRequest\x1a\x31.google.cloud.automl.v1beta1.ListDatasetsResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/locations/*}/datasets\x12\x9c\x01\n\rDeleteDataset\x12\x31.google.cloud.automl.v1beta1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation\"9\x82\xd3\xe4\x93\x02\x33*1/v1beta1/{name=projects/*/locations/*/datasets/*}\x12\xa4\x01\n\nImportData\x12..google.cloud.automl.v1beta1.ImportDataRequest\x1a\x1d.google.longrunning.Operation\"G\x82\xd3\xe4\x93\x02\x41\"\x82\xd3\xe4\x93\x02\x38\"//v1beta1/{parent=projects/*/locations/*}/models:\x05model\x12\x95\x01\n\x08GetModel\x12,.google.cloud.automl.v1beta1.GetModelRequest\x1a\".google.cloud.automl.v1beta1.Model\"7\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{name=projects/*/locations/*/models/*}\x12\xa6\x01\n\nListModels\x12..google.cloud.automl.v1beta1.ListModelsRequest\x1a/.google.cloud.automl.v1beta1.ListModelsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*/locations/*}/models\x12\x96\x01\n\x0b\x44\x65leteModel\x12/.google.cloud.automl.v1beta1.DeleteModelRequest\x1a\x1d.google.longrunning.Operation\"7\x82\xd3\xe4\x93\x02\x31*//v1beta1/{name=projects/*/locations/*/models/*}\x12\xa0\x01\n\x0b\x44\x65ployModel\x12/.google.cloud.automl.v1beta1.DeployModelRequest\x1a\x1d.google.longrunning.Operation\"A\x82\xd3\xe4\x93\x02;\"6/v1beta1/{name=projects/*/locations/*/models/*}:deploy:\x01*\x12\xa6\x01\n\rUndeployModel\x12\x31.google.cloud.automl.v1beta1.UndeployModelRequest\x1a\x1d.google.longrunning.Operation\"C\x82\xd3\xe4\x93\x02=\"8/v1beta1/{name=projects/*/locations/*/models/*}:undeploy:\x01*\x12\xc6\x01\n\x12GetModelEvaluation\x12\x36.google.cloud.automl.v1beta1.GetModelEvaluationRequest\x1a,.google.cloud.automl.v1beta1.ModelEvaluation\"J\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{name=projects/*/locations/*/models/*/modelEvaluations/*}\x12\xd7\x01\n\x14ListModelEvaluations\x12\x38.google.cloud.automl.v1beta1.ListModelEvaluationsRequest\x1a\x39.google.cloud.automl.v1beta1.ListModelEvaluationsResponse\"J\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{parent=projects/*/locations/*/models/*}/modelEvaluationsBs\n\x1f\x63om.google.cloud.automl.v1beta1B\x0b\x41utoMlProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2.DESCRIPTOR,google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_operations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/automl_v1beta1/proto/service.proto", + package="google.cloud.automl.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n/google/cloud/automl_v1beta1/proto/service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/automl_v1beta1/proto/annotation_payload.proto\x1a/google/cloud/automl_v1beta1/proto/dataset.proto\x1a*google/cloud/automl_v1beta1/proto/io.proto\x1a-google/cloud/automl_v1beta1/proto/model.proto\x1a\x38google/cloud/automl_v1beta1/proto/model_evaluation.proto\x1a\x32google/cloud/automl_v1beta1/proto/operations.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto"]\n\x14\x43reateDatasetRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x35\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32$.google.cloud.automl.v1beta1.Dataset"!\n\x11GetDatasetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\\\n\x13ListDatasetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t"g\n\x14ListDatasetsResponse\x12\x36\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32$.google.cloud.automl.v1beta1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"$\n\x14\x44\x65leteDatasetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"a\n\x11ImportDataRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x0cinput_config\x18\x03 \x01(\x0b\x32(.google.cloud.automl.v1beta1.InputConfig"c\n\x11\x45xportDataRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\routput_config\x18\x03 \x01(\x0b\x32).google.cloud.automl.v1beta1.OutputConfig"W\n\x12\x43reateModelRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x31\n\x05model\x18\x04 \x01(\x0b\x32".google.cloud.automl.v1beta1.Model"\x1f\n\x0fGetModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"Z\n\x11ListModelsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t"`\n\x12ListModelsResponse\x12\x31\n\x05model\x18\x01 \x03(\x0b\x32".google.cloud.automl.v1beta1.Model\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t""\n\x12\x44\x65leteModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t""\n\x12\x44\x65ployModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"$\n\x14UndeployModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t")\n\x19GetModelEvaluationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"d\n\x1bListModelEvaluationsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t"\x7f\n\x1cListModelEvaluationsResponse\x12\x46\n\x10model_evaluation\x18\x01 \x03(\x0b\x32,.google.cloud.automl.v1beta1.ModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xde\x12\n\x06\x41utoMl\x12\xac\x01\n\rCreateDataset\x12\x31.google.cloud.automl.v1beta1.CreateDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset"B\x82\xd3\xe4\x93\x02<"1/v1beta1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\x12\x9d\x01\n\nGetDataset\x12..google.cloud.automl.v1beta1.GetDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/locations/*/datasets/*}\x12\xae\x01\n\x0cListDatasets\x12\x30.google.cloud.automl.v1beta1.ListDatasetsRequest\x1a\x31.google.cloud.automl.v1beta1.ListDatasetsResponse"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/locations/*}/datasets\x12\x9c\x01\n\rDeleteDataset\x12\x31.google.cloud.automl.v1beta1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation"9\x82\xd3\xe4\x93\x02\x33*1/v1beta1/{name=projects/*/locations/*/datasets/*}\x12\xa4\x01\n\nImportData\x12..google.cloud.automl.v1beta1.ImportDataRequest\x1a\x1d.google.longrunning.Operation"G\x82\xd3\xe4\x93\x02\x41"\x82\xd3\xe4\x93\x02\x38"//v1beta1/{parent=projects/*/locations/*}/models:\x05model\x12\x95\x01\n\x08GetModel\x12,.google.cloud.automl.v1beta1.GetModelRequest\x1a".google.cloud.automl.v1beta1.Model"7\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{name=projects/*/locations/*/models/*}\x12\xa6\x01\n\nListModels\x12..google.cloud.automl.v1beta1.ListModelsRequest\x1a/.google.cloud.automl.v1beta1.ListModelsResponse"7\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*/locations/*}/models\x12\x96\x01\n\x0b\x44\x65leteModel\x12/.google.cloud.automl.v1beta1.DeleteModelRequest\x1a\x1d.google.longrunning.Operation"7\x82\xd3\xe4\x93\x02\x31*//v1beta1/{name=projects/*/locations/*/models/*}\x12\xa0\x01\n\x0b\x44\x65ployModel\x12/.google.cloud.automl.v1beta1.DeployModelRequest\x1a\x1d.google.longrunning.Operation"A\x82\xd3\xe4\x93\x02;"6/v1beta1/{name=projects/*/locations/*/models/*}:deploy:\x01*\x12\xa6\x01\n\rUndeployModel\x12\x31.google.cloud.automl.v1beta1.UndeployModelRequest\x1a\x1d.google.longrunning.Operation"C\x82\xd3\xe4\x93\x02="8/v1beta1/{name=projects/*/locations/*/models/*}:undeploy:\x01*\x12\xc6\x01\n\x12GetModelEvaluation\x12\x36.google.cloud.automl.v1beta1.GetModelEvaluationRequest\x1a,.google.cloud.automl.v1beta1.ModelEvaluation"J\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{name=projects/*/locations/*/models/*/modelEvaluations/*}\x12\xd7\x01\n\x14ListModelEvaluations\x12\x38.google.cloud.automl.v1beta1.ListModelEvaluationsRequest\x1a\x39.google.cloud.automl.v1beta1.ListModelEvaluationsResponse"J\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{parent=projects/*/locations/*/models/*}/modelEvaluationsBs\n\x1f\x63om.google.cloud.automl.v1beta1B\x0b\x41utoMlProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automlb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_annotation__payload__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2.DESCRIPTOR, + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_operations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _CREATEDATASETREQUEST = _descriptor.Descriptor( - name='CreateDatasetRequest', - full_name='google.cloud.automl.v1beta1.CreateDatasetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.automl.v1beta1.CreateDatasetRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataset', full_name='google.cloud.automl.v1beta1.CreateDatasetRequest.dataset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=491, - serialized_end=584, + name="CreateDatasetRequest", + full_name="google.cloud.automl.v1beta1.CreateDatasetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.automl.v1beta1.CreateDatasetRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dataset", + full_name="google.cloud.automl.v1beta1.CreateDatasetRequest.dataset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=491, + serialized_end=584, ) _GETDATASETREQUEST = _descriptor.Descriptor( - name='GetDatasetRequest', - full_name='google.cloud.automl.v1beta1.GetDatasetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.GetDatasetRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=586, - serialized_end=619, + name="GetDatasetRequest", + full_name="google.cloud.automl.v1beta1.GetDatasetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.GetDatasetRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=586, + serialized_end=619, ) _LISTDATASETSREQUEST = _descriptor.Descriptor( - name='ListDatasetsRequest', - full_name='google.cloud.automl.v1beta1.ListDatasetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.automl.v1beta1.ListDatasetsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.automl.v1beta1.ListDatasetsRequest.filter', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.automl.v1beta1.ListDatasetsRequest.page_size', index=2, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.automl.v1beta1.ListDatasetsRequest.page_token', index=3, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=621, - serialized_end=713, + name="ListDatasetsRequest", + full_name="google.cloud.automl.v1beta1.ListDatasetsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.automl.v1beta1.ListDatasetsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.automl.v1beta1.ListDatasetsRequest.filter", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.automl.v1beta1.ListDatasetsRequest.page_size", + index=2, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.automl.v1beta1.ListDatasetsRequest.page_token", + index=3, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=621, + serialized_end=713, ) _LISTDATASETSRESPONSE = _descriptor.Descriptor( - name='ListDatasetsResponse', - full_name='google.cloud.automl.v1beta1.ListDatasetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='datasets', full_name='google.cloud.automl.v1beta1.ListDatasetsResponse.datasets', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=715, - serialized_end=818, + name="ListDatasetsResponse", + full_name="google.cloud.automl.v1beta1.ListDatasetsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="datasets", + full_name="google.cloud.automl.v1beta1.ListDatasetsResponse.datasets", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=715, + serialized_end=818, ) _DELETEDATASETREQUEST = _descriptor.Descriptor( - name='DeleteDatasetRequest', - full_name='google.cloud.automl.v1beta1.DeleteDatasetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.DeleteDatasetRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=820, - serialized_end=856, + name="DeleteDatasetRequest", + full_name="google.cloud.automl.v1beta1.DeleteDatasetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.DeleteDatasetRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=820, + serialized_end=856, ) _IMPORTDATAREQUEST = _descriptor.Descriptor( - name='ImportDataRequest', - full_name='google.cloud.automl.v1beta1.ImportDataRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.ImportDataRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_config', full_name='google.cloud.automl.v1beta1.ImportDataRequest.input_config', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=858, - serialized_end=955, + name="ImportDataRequest", + full_name="google.cloud.automl.v1beta1.ImportDataRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.ImportDataRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_config", + full_name="google.cloud.automl.v1beta1.ImportDataRequest.input_config", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=858, + serialized_end=955, ) _EXPORTDATAREQUEST = _descriptor.Descriptor( - name='ExportDataRequest', - full_name='google.cloud.automl.v1beta1.ExportDataRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.ExportDataRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_config', full_name='google.cloud.automl.v1beta1.ExportDataRequest.output_config', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=957, - serialized_end=1056, + name="ExportDataRequest", + full_name="google.cloud.automl.v1beta1.ExportDataRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.ExportDataRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.cloud.automl.v1beta1.ExportDataRequest.output_config", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=957, + serialized_end=1056, ) _CREATEMODELREQUEST = _descriptor.Descriptor( - name='CreateModelRequest', - full_name='google.cloud.automl.v1beta1.CreateModelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.automl.v1beta1.CreateModelRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.automl.v1beta1.CreateModelRequest.model', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1058, - serialized_end=1145, + name="CreateModelRequest", + full_name="google.cloud.automl.v1beta1.CreateModelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.automl.v1beta1.CreateModelRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.automl.v1beta1.CreateModelRequest.model", + index=1, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1058, + serialized_end=1145, ) _GETMODELREQUEST = _descriptor.Descriptor( - name='GetModelRequest', - full_name='google.cloud.automl.v1beta1.GetModelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.GetModelRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1147, - serialized_end=1178, + name="GetModelRequest", + full_name="google.cloud.automl.v1beta1.GetModelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.GetModelRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1147, + serialized_end=1178, ) _LISTMODELSREQUEST = _descriptor.Descriptor( - name='ListModelsRequest', - full_name='google.cloud.automl.v1beta1.ListModelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.automl.v1beta1.ListModelsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.automl.v1beta1.ListModelsRequest.filter', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.automl.v1beta1.ListModelsRequest.page_size', index=2, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.automl.v1beta1.ListModelsRequest.page_token', index=3, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1180, - serialized_end=1270, + name="ListModelsRequest", + full_name="google.cloud.automl.v1beta1.ListModelsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.automl.v1beta1.ListModelsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.automl.v1beta1.ListModelsRequest.filter", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.automl.v1beta1.ListModelsRequest.page_size", + index=2, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.automl.v1beta1.ListModelsRequest.page_token", + index=3, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1180, + serialized_end=1270, ) _LISTMODELSRESPONSE = _descriptor.Descriptor( - name='ListModelsResponse', - full_name='google.cloud.automl.v1beta1.ListModelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.automl.v1beta1.ListModelsResponse.model', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.automl.v1beta1.ListModelsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1272, - serialized_end=1368, + name="ListModelsResponse", + full_name="google.cloud.automl.v1beta1.ListModelsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.automl.v1beta1.ListModelsResponse.model", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.automl.v1beta1.ListModelsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1272, + serialized_end=1368, ) _DELETEMODELREQUEST = _descriptor.Descriptor( - name='DeleteModelRequest', - full_name='google.cloud.automl.v1beta1.DeleteModelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.DeleteModelRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1370, - serialized_end=1404, + name="DeleteModelRequest", + full_name="google.cloud.automl.v1beta1.DeleteModelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.DeleteModelRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1370, + serialized_end=1404, ) _DEPLOYMODELREQUEST = _descriptor.Descriptor( - name='DeployModelRequest', - full_name='google.cloud.automl.v1beta1.DeployModelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.DeployModelRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1406, - serialized_end=1440, + name="DeployModelRequest", + full_name="google.cloud.automl.v1beta1.DeployModelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.DeployModelRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1406, + serialized_end=1440, ) _UNDEPLOYMODELREQUEST = _descriptor.Descriptor( - name='UndeployModelRequest', - full_name='google.cloud.automl.v1beta1.UndeployModelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.UndeployModelRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1442, - serialized_end=1478, + name="UndeployModelRequest", + full_name="google.cloud.automl.v1beta1.UndeployModelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.UndeployModelRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1442, + serialized_end=1478, ) _GETMODELEVALUATIONREQUEST = _descriptor.Descriptor( - name='GetModelEvaluationRequest', - full_name='google.cloud.automl.v1beta1.GetModelEvaluationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.automl.v1beta1.GetModelEvaluationRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1480, - serialized_end=1521, + name="GetModelEvaluationRequest", + full_name="google.cloud.automl.v1beta1.GetModelEvaluationRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.automl.v1beta1.GetModelEvaluationRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1480, + serialized_end=1521, ) _LISTMODELEVALUATIONSREQUEST = _descriptor.Descriptor( - name='ListModelEvaluationsRequest', - full_name='google.cloud.automl.v1beta1.ListModelEvaluationsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.automl.v1beta1.ListModelEvaluationsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.automl.v1beta1.ListModelEvaluationsRequest.filter', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_size', index=2, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token', index=3, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1523, - serialized_end=1623, + name="ListModelEvaluationsRequest", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsRequest.filter", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_size", + index=2, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token", + index=3, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1523, + serialized_end=1623, ) _LISTMODELEVALUATIONSRESPONSE = _descriptor.Descriptor( - name='ListModelEvaluationsResponse', - full_name='google.cloud.automl.v1beta1.ListModelEvaluationsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model_evaluation', full_name='google.cloud.automl.v1beta1.ListModelEvaluationsResponse.model_evaluation', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1625, - serialized_end=1752, + name="ListModelEvaluationsResponse", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model_evaluation", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsResponse.model_evaluation", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1625, + serialized_end=1752, ) -_CREATEDATASETREQUEST.fields_by_name['dataset'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2._DATASET -_LISTDATASETSRESPONSE.fields_by_name['datasets'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2._DATASET -_IMPORTDATAREQUEST.fields_by_name['input_config'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2._INPUTCONFIG -_EXPORTDATAREQUEST.fields_by_name['output_config'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2._OUTPUTCONFIG -_CREATEMODELREQUEST.fields_by_name['model'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2._MODEL -_LISTMODELSRESPONSE.fields_by_name['model'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2._MODEL -_LISTMODELEVALUATIONSRESPONSE.fields_by_name['model_evaluation'].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2._MODELEVALUATION -DESCRIPTOR.message_types_by_name['CreateDatasetRequest'] = _CREATEDATASETREQUEST -DESCRIPTOR.message_types_by_name['GetDatasetRequest'] = _GETDATASETREQUEST -DESCRIPTOR.message_types_by_name['ListDatasetsRequest'] = _LISTDATASETSREQUEST -DESCRIPTOR.message_types_by_name['ListDatasetsResponse'] = _LISTDATASETSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteDatasetRequest'] = _DELETEDATASETREQUEST -DESCRIPTOR.message_types_by_name['ImportDataRequest'] = _IMPORTDATAREQUEST -DESCRIPTOR.message_types_by_name['ExportDataRequest'] = _EXPORTDATAREQUEST -DESCRIPTOR.message_types_by_name['CreateModelRequest'] = _CREATEMODELREQUEST -DESCRIPTOR.message_types_by_name['GetModelRequest'] = _GETMODELREQUEST -DESCRIPTOR.message_types_by_name['ListModelsRequest'] = _LISTMODELSREQUEST -DESCRIPTOR.message_types_by_name['ListModelsResponse'] = _LISTMODELSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteModelRequest'] = _DELETEMODELREQUEST -DESCRIPTOR.message_types_by_name['DeployModelRequest'] = _DEPLOYMODELREQUEST -DESCRIPTOR.message_types_by_name['UndeployModelRequest'] = _UNDEPLOYMODELREQUEST -DESCRIPTOR.message_types_by_name['GetModelEvaluationRequest'] = _GETMODELEVALUATIONREQUEST -DESCRIPTOR.message_types_by_name['ListModelEvaluationsRequest'] = _LISTMODELEVALUATIONSREQUEST -DESCRIPTOR.message_types_by_name['ListModelEvaluationsResponse'] = _LISTMODELEVALUATIONSRESPONSE +_CREATEDATASETREQUEST.fields_by_name[ + "dataset" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2._DATASET +) +_LISTDATASETSRESPONSE.fields_by_name[ + "datasets" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2._DATASET +) +_IMPORTDATAREQUEST.fields_by_name[ + "input_config" +].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2._INPUTCONFIG +_EXPORTDATAREQUEST.fields_by_name[ + "output_config" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_io__pb2._OUTPUTCONFIG +) +_CREATEMODELREQUEST.fields_by_name[ + "model" +].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2._MODEL +_LISTMODELSRESPONSE.fields_by_name[ + "model" +].message_type = google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__pb2._MODEL +_LISTMODELEVALUATIONSRESPONSE.fields_by_name[ + "model_evaluation" +].message_type = ( + google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_model__evaluation__pb2._MODELEVALUATION +) +DESCRIPTOR.message_types_by_name["CreateDatasetRequest"] = _CREATEDATASETREQUEST +DESCRIPTOR.message_types_by_name["GetDatasetRequest"] = _GETDATASETREQUEST +DESCRIPTOR.message_types_by_name["ListDatasetsRequest"] = _LISTDATASETSREQUEST +DESCRIPTOR.message_types_by_name["ListDatasetsResponse"] = _LISTDATASETSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteDatasetRequest"] = _DELETEDATASETREQUEST +DESCRIPTOR.message_types_by_name["ImportDataRequest"] = _IMPORTDATAREQUEST +DESCRIPTOR.message_types_by_name["ExportDataRequest"] = _EXPORTDATAREQUEST +DESCRIPTOR.message_types_by_name["CreateModelRequest"] = _CREATEMODELREQUEST +DESCRIPTOR.message_types_by_name["GetModelRequest"] = _GETMODELREQUEST +DESCRIPTOR.message_types_by_name["ListModelsRequest"] = _LISTMODELSREQUEST +DESCRIPTOR.message_types_by_name["ListModelsResponse"] = _LISTMODELSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteModelRequest"] = _DELETEMODELREQUEST +DESCRIPTOR.message_types_by_name["DeployModelRequest"] = _DEPLOYMODELREQUEST +DESCRIPTOR.message_types_by_name["UndeployModelRequest"] = _UNDEPLOYMODELREQUEST +DESCRIPTOR.message_types_by_name[ + "GetModelEvaluationRequest" +] = _GETMODELEVALUATIONREQUEST +DESCRIPTOR.message_types_by_name[ + "ListModelEvaluationsRequest" +] = _LISTMODELEVALUATIONSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListModelEvaluationsResponse" +] = _LISTMODELEVALUATIONSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateDatasetRequest = _reflection.GeneratedProtocolMessageType('CreateDatasetRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEDATASETREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +CreateDatasetRequest = _reflection.GeneratedProtocolMessageType( + "CreateDatasetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEDATASETREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset]. @@ -713,15 +1081,18 @@ dataset: The dataset to create. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateDatasetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateDatasetRequest) + ), +) _sym_db.RegisterMessage(CreateDatasetRequest) -GetDatasetRequest = _reflection.GeneratedProtocolMessageType('GetDatasetRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDATASETREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +GetDatasetRequest = _reflection.GeneratedProtocolMessageType( + "GetDatasetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDATASETREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset]. @@ -729,15 +1100,18 @@ name: The resource name of the dataset to retrieve. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetDatasetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetDatasetRequest) + ), +) _sym_db.RegisterMessage(GetDatasetRequest) -ListDatasetsRequest = _reflection.GeneratedProtocolMessageType('ListDatasetsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDATASETSREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +ListDatasetsRequest = _reflection.GeneratedProtocolMessageType( + "ListDatasetsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDATASETSREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]. @@ -759,15 +1133,18 @@ _token] of the previous [AutoMl.ListDatasets][google.cloud.aut oml.v1beta1.AutoMl.ListDatasets] call. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsRequest) + ), +) _sym_db.RegisterMessage(ListDatasetsRequest) -ListDatasetsResponse = _reflection.GeneratedProtocolMessageType('ListDatasetsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDATASETSRESPONSE, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Response message for +ListDatasetsResponse = _reflection.GeneratedProtocolMessageType( + "ListDatasetsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDATASETSRESPONSE, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]. @@ -779,15 +1156,18 @@ sRequest.page\_token][google.cloud.automl.v1beta1.ListDatasets Request.page\_token] to obtain that page. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListDatasetsResponse) + ), +) _sym_db.RegisterMessage(ListDatasetsResponse) -DeleteDatasetRequest = _reflection.GeneratedProtocolMessageType('DeleteDatasetRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEDATASETREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +DeleteDatasetRequest = _reflection.GeneratedProtocolMessageType( + "DeleteDatasetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEDATASETREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset]. @@ -795,15 +1175,18 @@ name: The resource name of the dataset to delete. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteDatasetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteDatasetRequest) + ), +) _sym_db.RegisterMessage(DeleteDatasetRequest) -ImportDataRequest = _reflection.GeneratedProtocolMessageType('ImportDataRequest', (_message.Message,), dict( - DESCRIPTOR = _IMPORTDATAREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +ImportDataRequest = _reflection.GeneratedProtocolMessageType( + "ImportDataRequest", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTDATAREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData]. @@ -814,15 +1197,18 @@ input_config: Required. The desired input location. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImportDataRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImportDataRequest) + ), +) _sym_db.RegisterMessage(ImportDataRequest) -ExportDataRequest = _reflection.GeneratedProtocolMessageType('ExportDataRequest', (_message.Message,), dict( - DESCRIPTOR = _EXPORTDATAREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +ExportDataRequest = _reflection.GeneratedProtocolMessageType( + "ExportDataRequest", + (_message.Message,), + dict( + DESCRIPTOR=_EXPORTDATAREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData]. @@ -832,15 +1218,18 @@ output_config: Required. The desired output location. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportDataRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportDataRequest) + ), +) _sym_db.RegisterMessage(ExportDataRequest) -CreateModelRequest = _reflection.GeneratedProtocolMessageType('CreateModelRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEMODELREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +CreateModelRequest = _reflection.GeneratedProtocolMessageType( + "CreateModelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEMODELREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel]. @@ -851,15 +1240,18 @@ model: The model to create. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CreateModelRequest) + ), +) _sym_db.RegisterMessage(CreateModelRequest) -GetModelRequest = _reflection.GeneratedProtocolMessageType('GetModelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMODELREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +GetModelRequest = _reflection.GeneratedProtocolMessageType( + "GetModelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETMODELREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel]. @@ -867,15 +1259,18 @@ name: Resource name of the model. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelRequest) + ), +) _sym_db.RegisterMessage(GetModelRequest) -ListModelsRequest = _reflection.GeneratedProtocolMessageType('ListModelsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMODELSREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +ListModelsRequest = _reflection.GeneratedProtocolMessageType( + "ListModelsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMODELSREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels]. @@ -899,15 +1294,18 @@ en] of the previous [AutoMl.ListModels][google.cloud.automl.v1 beta1.AutoMl.ListModels] call. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsRequest) + ), +) _sym_db.RegisterMessage(ListModelsRequest) -ListModelsResponse = _reflection.GeneratedProtocolMessageType('ListModelsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMODELSRESPONSE, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Response message for +ListModelsResponse = _reflection.GeneratedProtocolMessageType( + "ListModelsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMODELSRESPONSE, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels]. @@ -918,15 +1316,18 @@ A token to retrieve next page of results. Pass to [ListModels.page\_token][] to obtain that page. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelsResponse) + ), +) _sym_db.RegisterMessage(ListModelsResponse) -DeleteModelRequest = _reflection.GeneratedProtocolMessageType('DeleteModelRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEMODELREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +DeleteModelRequest = _reflection.GeneratedProtocolMessageType( + "DeleteModelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEMODELREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel]. @@ -934,15 +1335,18 @@ name: Resource name of the model being deleted. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteModelRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteModelRequest) + ), +) _sym_db.RegisterMessage(DeleteModelRequest) -DeployModelRequest = _reflection.GeneratedProtocolMessageType('DeployModelRequest', (_message.Message,), dict( - DESCRIPTOR = _DEPLOYMODELREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +DeployModelRequest = _reflection.GeneratedProtocolMessageType( + "DeployModelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DEPLOYMODELREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel]. @@ -950,15 +1354,18 @@ name: Resource name of the model to deploy. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeployModelRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeployModelRequest) + ), +) _sym_db.RegisterMessage(DeployModelRequest) -UndeployModelRequest = _reflection.GeneratedProtocolMessageType('UndeployModelRequest', (_message.Message,), dict( - DESCRIPTOR = _UNDEPLOYMODELREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +UndeployModelRequest = _reflection.GeneratedProtocolMessageType( + "UndeployModelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UNDEPLOYMODELREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel]. @@ -966,15 +1373,18 @@ name: Resource name of the model to undeploy. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UndeployModelRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UndeployModelRequest) + ), +) _sym_db.RegisterMessage(UndeployModelRequest) -GetModelEvaluationRequest = _reflection.GeneratedProtocolMessageType('GetModelEvaluationRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMODELEVALUATIONREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +GetModelEvaluationRequest = _reflection.GeneratedProtocolMessageType( + "GetModelEvaluationRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETMODELEVALUATIONREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation]. @@ -982,15 +1392,18 @@ name: Resource name for the model evaluation. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelEvaluationRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetModelEvaluationRequest) + ), +) _sym_db.RegisterMessage(GetModelEvaluationRequest) -ListModelEvaluationsRequest = _reflection.GeneratedProtocolMessageType('ListModelEvaluationsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMODELEVALUATIONSREQUEST, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Request message for +ListModelEvaluationsRequest = _reflection.GeneratedProtocolMessageType( + "ListModelEvaluationsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMODELEVALUATIONSREQUEST, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]. @@ -1016,15 +1429,18 @@ previous [AutoMl.ListModelEvaluations][google.cloud.automl.v1b eta1.AutoMl.ListModelEvaluations] call. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsRequest) + ), +) _sym_db.RegisterMessage(ListModelEvaluationsRequest) -ListModelEvaluationsResponse = _reflection.GeneratedProtocolMessageType('ListModelEvaluationsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMODELEVALUATIONSRESPONSE, - __module__ = 'google.cloud.automl_v1beta1.proto.service_pb2' - , - __doc__ = """Response message for +ListModelEvaluationsResponse = _reflection.GeneratedProtocolMessageType( + "ListModelEvaluationsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMODELEVALUATIONSRESPONSE, + __module__="google.cloud.automl_v1beta1.proto.service_pb2", + __doc__="""Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]. @@ -1035,152 +1451,229 @@ A token to retrieve next page of results. Pass to [ListModelEvaluations.page\_token][] to obtain that page. """, - # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListModelEvaluationsResponse) + ), +) _sym_db.RegisterMessage(ListModelEvaluationsResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.automl.v1beta1B\013AutoMlProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.automl.v1beta1B\013AutoMlProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl" + ), +) _AUTOML = _descriptor.ServiceDescriptor( - name='AutoMl', - full_name='google.cloud.automl.v1beta1.AutoMl', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1755, - serialized_end=4153, - methods=[ - _descriptor.MethodDescriptor( - name='CreateDataset', - full_name='google.cloud.automl.v1beta1.AutoMl.CreateDataset', + name="AutoMl", + full_name="google.cloud.automl.v1beta1.AutoMl", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATEDATASETREQUEST, - output_type=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2._DATASET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\"1/v1beta1/{parent=projects/*/locations/*}/datasets:\007dataset')), - ), - _descriptor.MethodDescriptor( - name='GetDataset', - full_name='google.cloud.automl.v1beta1.AutoMl.GetDataset', - index=1, - containing_service=None, - input_type=_GETDATASETREQUEST, - output_type=google_dot_cloud_dot_automl__v1beta1_dot_proto_dot_dataset__pb2._DATASET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0023\0221/v1beta1/{name=projects/*/locations/*/datasets/*}')), - ), - _descriptor.MethodDescriptor( - name='ListDatasets', - full_name='google.cloud.automl.v1beta1.AutoMl.ListDatasets', - index=2, - containing_service=None, - input_type=_LISTDATASETSREQUEST, - output_type=_LISTDATASETSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0023\0221/v1beta1/{parent=projects/*/locations/*}/datasets')), - ), - _descriptor.MethodDescriptor( - name='DeleteDataset', - full_name='google.cloud.automl.v1beta1.AutoMl.DeleteDataset', - index=3, - containing_service=None, - input_type=_DELETEDATASETREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0023*1/v1beta1/{name=projects/*/locations/*/datasets/*}')), - ), - _descriptor.MethodDescriptor( - name='ImportData', - full_name='google.cloud.automl.v1beta1.AutoMl.ImportData', - index=4, - containing_service=None, - input_type=_IMPORTDATAREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002A\"google/cloud/bigquery/datatransfer_v1/proto/datatransfer.proto\x12%google.cloud.bigquery.datatransfer.v1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/bigquery/datatransfer_v1/proto/transfer.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xf1\x04\n\x13\x44\x61taSourceParameter\x12\x10\n\x08param_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12M\n\x04type\x18\x04 \x01(\x0e\x32?.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type\x12\x10\n\x08required\x18\x05 \x01(\x08\x12\x10\n\x08repeated\x18\x06 \x01(\x08\x12\x18\n\x10validation_regex\x18\x07 \x01(\t\x12\x16\n\x0e\x61llowed_values\x18\x08 \x03(\t\x12/\n\tmin_value\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\tmax_value\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12J\n\x06\x66ields\x18\x0b \x03(\x0b\x32:.google.cloud.bigquery.datatransfer.v1.DataSourceParameter\x12\x1e\n\x16validation_description\x18\x0c \x01(\t\x12\x1b\n\x13validation_help_url\x18\r \x01(\t\x12\x11\n\timmutable\x18\x0e \x01(\x08\x12\x0f\n\x07recurse\x18\x0f \x01(\x08\"i\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x0b\n\x07INTEGER\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\n\n\x06RECORD\x10\x05\x12\r\n\tPLUS_PAGE\x10\x06\"\xcf\x07\n\nDataSource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x61ta_source_id\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x11\n\tclient_id\x18\x05 \x01(\t\x12\x0e\n\x06scopes\x18\x06 \x03(\t\x12J\n\rtransfer_type\x18\x07 \x01(\x0e\x32\x33.google.cloud.bigquery.datatransfer.v1.TransferType\x12#\n\x1bsupports_multiple_transfers\x18\x08 \x01(\x08\x12\x1f\n\x17update_deadline_seconds\x18\t \x01(\x05\x12\x18\n\x10\x64\x65\x66\x61ult_schedule\x18\n \x01(\t\x12 \n\x18supports_custom_schedule\x18\x0b \x01(\x08\x12N\n\nparameters\x18\x0c \x03(\x0b\x32:.google.cloud.bigquery.datatransfer.v1.DataSourceParameter\x12\x10\n\x08help_url\x18\r \x01(\t\x12_\n\x12\x61uthorization_type\x18\x0e \x01(\x0e\x32\x43.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType\x12\\\n\x11\x64\x61ta_refresh_type\x18\x0f \x01(\x0e\x32\x41.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType\x12(\n default_data_refresh_window_days\x18\x10 \x01(\x05\x12\x1c\n\x14manual_runs_disabled\x18\x11 \x01(\x08\x12<\n\x19minimum_schedule_interval\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration\"s\n\x11\x41uthorizationType\x12\"\n\x1e\x41UTHORIZATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41UTHORIZATION_CODE\x10\x01\x12\"\n\x1eGOOGLE_PLUS_AUTHORIZATION_CODE\x10\x02\"c\n\x0f\x44\x61taRefreshType\x12!\n\x1d\x44\x41TA_REFRESH_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSLIDING_WINDOW\x10\x01\x12\x19\n\x15\x43USTOM_SLIDING_WINDOW\x10\x02\"$\n\x14GetDataSourceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"O\n\x16ListDataSourcesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\"{\n\x17ListDataSourcesResponse\x12G\n\x0c\x64\x61ta_sources\x18\x01 \x03(\x0b\x32\x31.google.cloud.bigquery.datatransfer.v1.DataSource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x99\x01\n\x1b\x43reateTransferConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12N\n\x0ftransfer_config\x18\x02 \x01(\x0b\x32\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\x12\x1a\n\x12\x61uthorization_code\x18\x03 \x01(\t\"\xba\x01\n\x1bUpdateTransferConfigRequest\x12N\n\x0ftransfer_config\x18\x01 \x01(\x0b\x32\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\x12\x1a\n\x12\x61uthorization_code\x18\x03 \x01(\t\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"(\n\x18GetTransferConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"+\n\x1b\x44\x65leteTransferConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"%\n\x15GetTransferRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"(\n\x18\x44\x65leteTransferRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"l\n\x1aListTransferConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x61ta_source_ids\x18\x02 \x03(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\"\x87\x01\n\x1bListTransferConfigsResponse\x12O\n\x10transfer_configs\x18\x01 \x03(\x0b\x32\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x02\n\x17ListTransferRunsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x44\n\x06states\x18\x02 \x03(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferState\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12^\n\x0brun_attempt\x18\x05 \x01(\x0e\x32I.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt\"5\n\nRunAttempt\x12\x1b\n\x17RUN_ATTEMPT_UNSPECIFIED\x10\x00\x12\n\n\x06LATEST\x10\x01\"~\n\x18ListTransferRunsResponse\x12I\n\rtransfer_runs\x18\x01 \x03(\x0b\x32\x32.google.cloud.bigquery.datatransfer.v1.TransferRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xaf\x01\n\x17ListTransferLogsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12]\n\rmessage_types\x18\x06 \x03(\x0e\x32\x46.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity\"\x86\x01\n\x18ListTransferLogsResponse\x12Q\n\x11transfer_messages\x18\x01 \x03(\x0b\x32\x36.google.cloud.bigquery.datatransfer.v1.TransferMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"&\n\x16\x43heckValidCredsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"2\n\x17\x43heckValidCredsResponse\x12\x17\n\x0fhas_valid_creds\x18\x01 \x01(\x08\"\x8b\x01\n\x1bScheduleTransferRunsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"`\n\x1cScheduleTransferRunsResponse\x12@\n\x04runs\x18\x01 \x03(\x0b\x32\x32.google.cloud.bigquery.datatransfer.v1.TransferRun2\x86\x1b\n\x13\x44\x61taTransferService\x12\xdf\x01\n\rGetDataSource\x12;.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest\x1a\x31.google.cloud.bigquery.datatransfer.v1.DataSource\"^\x82\xd3\xe4\x93\x02X\x12//v1/{name=projects/*/locations/*/dataSources/*}Z%\x12#/v1/{name=projects/*/dataSources/*}\x12\xf0\x01\n\x0fListDataSources\x12=.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest\x1a>.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse\"^\x82\xd3\xe4\x93\x02X\x12//v1/{parent=projects/*/locations/*}/dataSourcesZ%\x12#/v1/{parent=projects/*}/dataSources\x12\x9d\x02\n\x14\x43reateTransferConfig\x12\x42.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest\x1a\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\"\x89\x01\x82\xd3\xe4\x93\x02\x82\x01\"3/v1/{parent=projects/*/locations/*}/transferConfigs:\x0ftransfer_configZ:\"\'/v1/{parent=projects/*}/transferConfigs:\x0ftransfer_config\x12\xbd\x02\n\x14UpdateTransferConfig\x12\x42.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest\x1a\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\"\xa9\x01\x82\xd3\xe4\x93\x02\xa2\x01\x32\x43/v1/{transfer_config.name=projects/*/locations/*/transferConfigs/*}:\x0ftransfer_configZJ27/v1/{transfer_config.name=projects/*/transferConfigs/*}:\x0ftransfer_config\x12\xda\x01\n\x14\x44\x65leteTransferConfig\x12\x42.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest\x1a\x16.google.protobuf.Empty\"f\x82\xd3\xe4\x93\x02`*3/v1/{name=projects/*/locations/*/transferConfigs/*}Z)*\'/v1/{name=projects/*/transferConfigs/*}\x12\xf3\x01\n\x11GetTransferConfig\x12?.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest\x1a\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\"f\x82\xd3\xe4\x93\x02`\x12\x33/v1/{name=projects/*/locations/*/transferConfigs/*}Z)\x12\'/v1/{name=projects/*/transferConfigs/*}\x12\x84\x02\n\x13ListTransferConfigs\x12\x41.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest\x1a\x42.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse\"f\x82\xd3\xe4\x93\x02`\x12\x33/v1/{parent=projects/*/locations/*}/transferConfigsZ)\x12\'/v1/{parent=projects/*}/transferConfigs\x12\xad\x02\n\x14ScheduleTransferRuns\x12\x42.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest\x1a\x43.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse\"\x8b\x01\x82\xd3\xe4\x93\x02\x84\x01\"B/v1/{parent=projects/*/locations/*/transferConfigs/*}:scheduleRuns:\x01*Z;\"6/v1/{parent=projects/*/transferConfigs/*}:scheduleRuns:\x01*\x12\xf8\x01\n\x0eGetTransferRun\x12<.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest\x1a\x32.google.cloud.bigquery.datatransfer.v1.TransferRun\"t\x82\xd3\xe4\x93\x02n\x12:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0\x12./v1/{name=projects/*/transferConfigs/*/runs/*}\x12\xe2\x01\n\x11\x44\x65leteTransferRun\x12?.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest\x1a\x16.google.protobuf.Empty\"t\x82\xd3\xe4\x93\x02n*:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0*./v1/{name=projects/*/transferConfigs/*/runs/*}\x12\x89\x02\n\x10ListTransferRuns\x12>.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest\x1a?.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse\"t\x82\xd3\xe4\x93\x02n\x12:/v1/{parent=projects/*/locations/*/transferConfigs/*}/runsZ0\x12./v1/{parent=projects/*/transferConfigs/*}/runs\x12\xa9\x02\n\x10ListTransferLogs\x12>.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest\x1a?.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse\"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01\x12I/v1/{parent=projects/*/locations/*/transferConfigs/*/runs/*}/transferLogsZ?\x12=/v1/{parent=projects/*/transferConfigs/*/runs/*}/transferLogs\x12\x97\x02\n\x0f\x43heckValidCreds\x12=.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest\x1a>.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse\"\x84\x01\x82\xd3\xe4\x93\x02~\"?/v1/{name=projects/*/locations/*/dataSources/*}:checkValidCreds:\x01*Z8\"3/v1/{name=projects/*/dataSources/*}:checkValidCreds:\x01*B\xe3\x01\n)com.google.cloud.bigquery.datatransfer.v1B\x11\x44\x61taTransferProtoP\x01ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\xaa\x02%Google.Cloud.BigQuery.DataTransfer.V1\xca\x02%Google\\Cloud\\BigQuery\\DataTransfer\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - + name="google/cloud/bigquery/datatransfer_v1/proto/datatransfer.proto", + package="google.cloud.bigquery.datatransfer.v1", + syntax="proto3", + serialized_pb=_b( + '\n>google/cloud/bigquery/datatransfer_v1/proto/datatransfer.proto\x12%google.cloud.bigquery.datatransfer.v1\x1a\x1cgoogle/api/annotations.proto\x1a:google/cloud/bigquery/datatransfer_v1/proto/transfer.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto"\xf1\x04\n\x13\x44\x61taSourceParameter\x12\x10\n\x08param_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12M\n\x04type\x18\x04 \x01(\x0e\x32?.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type\x12\x10\n\x08required\x18\x05 \x01(\x08\x12\x10\n\x08repeated\x18\x06 \x01(\x08\x12\x18\n\x10validation_regex\x18\x07 \x01(\t\x12\x16\n\x0e\x61llowed_values\x18\x08 \x03(\t\x12/\n\tmin_value\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\tmax_value\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12J\n\x06\x66ields\x18\x0b \x03(\x0b\x32:.google.cloud.bigquery.datatransfer.v1.DataSourceParameter\x12\x1e\n\x16validation_description\x18\x0c \x01(\t\x12\x1b\n\x13validation_help_url\x18\r \x01(\t\x12\x11\n\timmutable\x18\x0e \x01(\x08\x12\x0f\n\x07recurse\x18\x0f \x01(\x08"i\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x0b\n\x07INTEGER\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\n\n\x06RECORD\x10\x05\x12\r\n\tPLUS_PAGE\x10\x06"\xcf\x07\n\nDataSource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x61ta_source_id\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x11\n\tclient_id\x18\x05 \x01(\t\x12\x0e\n\x06scopes\x18\x06 \x03(\t\x12J\n\rtransfer_type\x18\x07 \x01(\x0e\x32\x33.google.cloud.bigquery.datatransfer.v1.TransferType\x12#\n\x1bsupports_multiple_transfers\x18\x08 \x01(\x08\x12\x1f\n\x17update_deadline_seconds\x18\t \x01(\x05\x12\x18\n\x10\x64\x65\x66\x61ult_schedule\x18\n \x01(\t\x12 \n\x18supports_custom_schedule\x18\x0b \x01(\x08\x12N\n\nparameters\x18\x0c \x03(\x0b\x32:.google.cloud.bigquery.datatransfer.v1.DataSourceParameter\x12\x10\n\x08help_url\x18\r \x01(\t\x12_\n\x12\x61uthorization_type\x18\x0e \x01(\x0e\x32\x43.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType\x12\\\n\x11\x64\x61ta_refresh_type\x18\x0f \x01(\x0e\x32\x41.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType\x12(\n default_data_refresh_window_days\x18\x10 \x01(\x05\x12\x1c\n\x14manual_runs_disabled\x18\x11 \x01(\x08\x12<\n\x19minimum_schedule_interval\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration"s\n\x11\x41uthorizationType\x12"\n\x1e\x41UTHORIZATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41UTHORIZATION_CODE\x10\x01\x12"\n\x1eGOOGLE_PLUS_AUTHORIZATION_CODE\x10\x02"c\n\x0f\x44\x61taRefreshType\x12!\n\x1d\x44\x41TA_REFRESH_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSLIDING_WINDOW\x10\x01\x12\x19\n\x15\x43USTOM_SLIDING_WINDOW\x10\x02"$\n\x14GetDataSourceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"O\n\x16ListDataSourcesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05"{\n\x17ListDataSourcesResponse\x12G\n\x0c\x64\x61ta_sources\x18\x01 \x03(\x0b\x32\x31.google.cloud.bigquery.datatransfer.v1.DataSource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x99\x01\n\x1b\x43reateTransferConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12N\n\x0ftransfer_config\x18\x02 \x01(\x0b\x32\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\x12\x1a\n\x12\x61uthorization_code\x18\x03 \x01(\t"\xba\x01\n\x1bUpdateTransferConfigRequest\x12N\n\x0ftransfer_config\x18\x01 \x01(\x0b\x32\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\x12\x1a\n\x12\x61uthorization_code\x18\x03 \x01(\t\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"(\n\x18GetTransferConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"+\n\x1b\x44\x65leteTransferConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"%\n\x15GetTransferRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"(\n\x18\x44\x65leteTransferRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"l\n\x1aListTransferConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x61ta_source_ids\x18\x02 \x03(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05"\x87\x01\n\x1bListTransferConfigsResponse\x12O\n\x10transfer_configs\x18\x01 \x03(\x0b\x32\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xad\x02\n\x17ListTransferRunsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x44\n\x06states\x18\x02 \x03(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferState\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12^\n\x0brun_attempt\x18\x05 \x01(\x0e\x32I.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt"5\n\nRunAttempt\x12\x1b\n\x17RUN_ATTEMPT_UNSPECIFIED\x10\x00\x12\n\n\x06LATEST\x10\x01"~\n\x18ListTransferRunsResponse\x12I\n\rtransfer_runs\x18\x01 \x03(\x0b\x32\x32.google.cloud.bigquery.datatransfer.v1.TransferRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xaf\x01\n\x17ListTransferLogsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12]\n\rmessage_types\x18\x06 \x03(\x0e\x32\x46.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity"\x86\x01\n\x18ListTransferLogsResponse\x12Q\n\x11transfer_messages\x18\x01 \x03(\x0b\x32\x36.google.cloud.bigquery.datatransfer.v1.TransferMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"&\n\x16\x43heckValidCredsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"2\n\x17\x43heckValidCredsResponse\x12\x17\n\x0fhas_valid_creds\x18\x01 \x01(\x08"\x8b\x01\n\x1bScheduleTransferRunsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"`\n\x1cScheduleTransferRunsResponse\x12@\n\x04runs\x18\x01 \x03(\x0b\x32\x32.google.cloud.bigquery.datatransfer.v1.TransferRun2\x86\x1b\n\x13\x44\x61taTransferService\x12\xdf\x01\n\rGetDataSource\x12;.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest\x1a\x31.google.cloud.bigquery.datatransfer.v1.DataSource"^\x82\xd3\xe4\x93\x02X\x12//v1/{name=projects/*/locations/*/dataSources/*}Z%\x12#/v1/{name=projects/*/dataSources/*}\x12\xf0\x01\n\x0fListDataSources\x12=.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest\x1a>.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse"^\x82\xd3\xe4\x93\x02X\x12//v1/{parent=projects/*/locations/*}/dataSourcesZ%\x12#/v1/{parent=projects/*}/dataSources\x12\x9d\x02\n\x14\x43reateTransferConfig\x12\x42.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest\x1a\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig"\x89\x01\x82\xd3\xe4\x93\x02\x82\x01"3/v1/{parent=projects/*/locations/*}/transferConfigs:\x0ftransfer_configZ:"\'/v1/{parent=projects/*}/transferConfigs:\x0ftransfer_config\x12\xbd\x02\n\x14UpdateTransferConfig\x12\x42.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest\x1a\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig"\xa9\x01\x82\xd3\xe4\x93\x02\xa2\x01\x32\x43/v1/{transfer_config.name=projects/*/locations/*/transferConfigs/*}:\x0ftransfer_configZJ27/v1/{transfer_config.name=projects/*/transferConfigs/*}:\x0ftransfer_config\x12\xda\x01\n\x14\x44\x65leteTransferConfig\x12\x42.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest\x1a\x16.google.protobuf.Empty"f\x82\xd3\xe4\x93\x02`*3/v1/{name=projects/*/locations/*/transferConfigs/*}Z)*\'/v1/{name=projects/*/transferConfigs/*}\x12\xf3\x01\n\x11GetTransferConfig\x12?.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest\x1a\x35.google.cloud.bigquery.datatransfer.v1.TransferConfig"f\x82\xd3\xe4\x93\x02`\x12\x33/v1/{name=projects/*/locations/*/transferConfigs/*}Z)\x12\'/v1/{name=projects/*/transferConfigs/*}\x12\x84\x02\n\x13ListTransferConfigs\x12\x41.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest\x1a\x42.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse"f\x82\xd3\xe4\x93\x02`\x12\x33/v1/{parent=projects/*/locations/*}/transferConfigsZ)\x12\'/v1/{parent=projects/*}/transferConfigs\x12\xad\x02\n\x14ScheduleTransferRuns\x12\x42.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest\x1a\x43.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse"\x8b\x01\x82\xd3\xe4\x93\x02\x84\x01"B/v1/{parent=projects/*/locations/*/transferConfigs/*}:scheduleRuns:\x01*Z;"6/v1/{parent=projects/*/transferConfigs/*}:scheduleRuns:\x01*\x12\xf8\x01\n\x0eGetTransferRun\x12<.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest\x1a\x32.google.cloud.bigquery.datatransfer.v1.TransferRun"t\x82\xd3\xe4\x93\x02n\x12:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0\x12./v1/{name=projects/*/transferConfigs/*/runs/*}\x12\xe2\x01\n\x11\x44\x65leteTransferRun\x12?.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest\x1a\x16.google.protobuf.Empty"t\x82\xd3\xe4\x93\x02n*:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0*./v1/{name=projects/*/transferConfigs/*/runs/*}\x12\x89\x02\n\x10ListTransferRuns\x12>.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest\x1a?.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse"t\x82\xd3\xe4\x93\x02n\x12:/v1/{parent=projects/*/locations/*/transferConfigs/*}/runsZ0\x12./v1/{parent=projects/*/transferConfigs/*}/runs\x12\xa9\x02\n\x10ListTransferLogs\x12>.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest\x1a?.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01\x12I/v1/{parent=projects/*/locations/*/transferConfigs/*/runs/*}/transferLogsZ?\x12=/v1/{parent=projects/*/transferConfigs/*/runs/*}/transferLogs\x12\x97\x02\n\x0f\x43heckValidCreds\x12=.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest\x1a>.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse"\x84\x01\x82\xd3\xe4\x93\x02~"?/v1/{name=projects/*/locations/*/dataSources/*}:checkValidCreds:\x01*Z8"3/v1/{name=projects/*/dataSources/*}:checkValidCreds:\x01*B\xe3\x01\n)com.google.cloud.bigquery.datatransfer.v1B\x11\x44\x61taTransferProtoP\x01ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\xaa\x02%Google.Cloud.BigQuery.DataTransfer.V1\xca\x02%Google\\Cloud\\BigQuery\\DataTransfer\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + ], +) _DATASOURCEPARAMETER_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STRING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INTEGER', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DOUBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BOOLEAN', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RECORD', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLUS_PAGE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=876, - serialized_end=981, + name="Type", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STRING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INTEGER", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DOUBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BOOLEAN", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RECORD", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLUS_PAGE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=876, + serialized_end=981, ) _sym_db.RegisterEnumDescriptor(_DATASOURCEPARAMETER_TYPE) _DATASOURCE_AUTHORIZATIONTYPE = _descriptor.EnumDescriptor( - name='AuthorizationType', - full_name='google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='AUTHORIZATION_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUTHORIZATION_CODE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOOGLE_PLUS_AUTHORIZATION_CODE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1743, - serialized_end=1858, + name="AuthorizationType", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="AUTHORIZATION_TYPE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="AUTHORIZATION_CODE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GOOGLE_PLUS_AUTHORIZATION_CODE", + index=2, + number=2, + options=None, + type=None, + ), + ], + containing_type=None, + options=None, + serialized_start=1743, + serialized_end=1858, ) _sym_db.RegisterEnumDescriptor(_DATASOURCE_AUTHORIZATIONTYPE) _DATASOURCE_DATAREFRESHTYPE = _descriptor.EnumDescriptor( - name='DataRefreshType', - full_name='google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='DATA_REFRESH_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SLIDING_WINDOW', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUSTOM_SLIDING_WINDOW', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1860, - serialized_end=1959, + name="DataRefreshType", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="DATA_REFRESH_TYPE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SLIDING_WINDOW", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CUSTOM_SLIDING_WINDOW", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1860, + serialized_end=1959, ) _sym_db.RegisterEnumDescriptor(_DATASOURCE_DATAREFRESHTYPE) _LISTTRANSFERRUNSREQUEST_RUNATTEMPT = _descriptor.EnumDescriptor( - name='RunAttempt', - full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='RUN_ATTEMPT_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LATEST', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3215, - serialized_end=3268, + name="RunAttempt", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="RUN_ATTEMPT_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LATEST", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3215, + serialized_end=3268, ) _sym_db.RegisterEnumDescriptor(_LISTTRANSFERRUNSREQUEST_RUNATTEMPT) _DATASOURCEPARAMETER = _descriptor.Descriptor( - name='DataSourceParameter', - full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='param_id', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.param_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='required', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.required', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repeated', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.repeated', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validation_regex', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.validation_regex', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='allowed_values', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.allowed_values', index=7, - number=8, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_value', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.min_value', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_value', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.max_value', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='fields', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.fields', index=10, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validation_description', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.validation_description', index=11, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validation_help_url', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.validation_help_url', index=12, - number=13, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='immutable', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.immutable', index=13, - number=14, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recurse', full_name='google.cloud.bigquery.datatransfer.v1.DataSourceParameter.recurse', index=14, - number=15, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DATASOURCEPARAMETER_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=356, - serialized_end=981, + name="DataSourceParameter", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="param_id", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.param_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.type", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="required", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.required", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="repeated", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.repeated", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validation_regex", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.validation_regex", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="allowed_values", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.allowed_values", + index=7, + number=8, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="min_value", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.min_value", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_value", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.max_value", + index=9, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="fields", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.fields", + index=10, + number=11, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validation_description", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.validation_description", + index=11, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validation_help_url", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.validation_help_url", + index=12, + number=13, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="immutable", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.immutable", + index=13, + number=14, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="recurse", + full_name="google.cloud.bigquery.datatransfer.v1.DataSourceParameter.recurse", + index=14, + number=15, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DATASOURCEPARAMETER_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=356, + serialized_end=981, ) _DATASOURCE = _descriptor.Descriptor( - name='DataSource', - full_name='google.cloud.bigquery.datatransfer.v1.DataSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_source_id', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.data_source_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.display_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.description', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='client_id', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.client_id', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='scopes', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.scopes', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transfer_type', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='supports_multiple_transfers', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers', index=7, - number=8, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_deadline_seconds', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.update_deadline_seconds', index=8, - number=9, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='default_schedule', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.default_schedule', index=9, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='supports_custom_schedule', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.supports_custom_schedule', index=10, - number=11, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parameters', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.parameters', index=11, - number=12, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='help_url', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.help_url', index=12, - number=13, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authorization_type', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.authorization_type', index=13, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_refresh_type', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.data_refresh_type', index=14, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='default_data_refresh_window_days', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.default_data_refresh_window_days', index=15, - number=16, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='manual_runs_disabled', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.manual_runs_disabled', index=16, - number=17, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='minimum_schedule_interval', full_name='google.cloud.bigquery.datatransfer.v1.DataSource.minimum_schedule_interval', index=17, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DATASOURCE_AUTHORIZATIONTYPE, - _DATASOURCE_DATAREFRESHTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=984, - serialized_end=1959, + name="DataSource", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data_source_id", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.data_source_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.display_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.description", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="client_id", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.client_id", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="scopes", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.scopes", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transfer_type", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type", + index=6, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="supports_multiple_transfers", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers", + index=7, + number=8, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_deadline_seconds", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.update_deadline_seconds", + index=8, + number=9, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="default_schedule", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.default_schedule", + index=9, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="supports_custom_schedule", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.supports_custom_schedule", + index=10, + number=11, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parameters", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.parameters", + index=11, + number=12, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="help_url", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.help_url", + index=12, + number=13, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="authorization_type", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.authorization_type", + index=13, + number=14, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data_refresh_type", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.data_refresh_type", + index=14, + number=15, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="default_data_refresh_window_days", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.default_data_refresh_window_days", + index=15, + number=16, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="manual_runs_disabled", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.manual_runs_disabled", + index=16, + number=17, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="minimum_schedule_interval", + full_name="google.cloud.bigquery.datatransfer.v1.DataSource.minimum_schedule_interval", + index=17, + number=18, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DATASOURCE_AUTHORIZATIONTYPE, _DATASOURCE_DATAREFRESHTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=984, + serialized_end=1959, ) _GETDATASOURCEREQUEST = _descriptor.Descriptor( - name='GetDataSourceRequest', - full_name='google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1961, - serialized_end=1997, + name="GetDataSourceRequest", + full_name="google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1961, + serialized_end=1997, ) _LISTDATASOURCESREQUEST = _descriptor.Descriptor( - name='ListDataSourcesRequest', - full_name='google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.page_token', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.page_size', index=2, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1999, - serialized_end=2078, + name="ListDataSourcesRequest", + full_name="google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.page_token", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.page_size", + index=2, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1999, + serialized_end=2078, ) _LISTDATASOURCESRESPONSE = _descriptor.Descriptor( - name='ListDataSourcesResponse', - full_name='google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='data_sources', full_name='google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.data_sources', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2080, - serialized_end=2203, + name="ListDataSourcesResponse", + full_name="google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="data_sources", + full_name="google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.data_sources", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2080, + serialized_end=2203, ) _CREATETRANSFERCONFIGREQUEST = _descriptor.Descriptor( - name='CreateTransferConfigRequest', - full_name='google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transfer_config', full_name='google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.transfer_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authorization_code', full_name='google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.authorization_code', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2206, - serialized_end=2359, + name="CreateTransferConfigRequest", + full_name="google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transfer_config", + full_name="google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.transfer_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="authorization_code", + full_name="google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.authorization_code", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2206, + serialized_end=2359, ) _UPDATETRANSFERCONFIGREQUEST = _descriptor.Descriptor( - name='UpdateTransferConfigRequest', - full_name='google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transfer_config', full_name='google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.transfer_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authorization_code', full_name='google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.authorization_code', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.update_mask', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2362, - serialized_end=2548, + name="UpdateTransferConfigRequest", + full_name="google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transfer_config", + full_name="google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.transfer_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="authorization_code", + full_name="google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.authorization_code", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest.update_mask", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2362, + serialized_end=2548, ) _GETTRANSFERCONFIGREQUEST = _descriptor.Descriptor( - name='GetTransferConfigRequest', - full_name='google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2550, - serialized_end=2590, + name="GetTransferConfigRequest", + full_name="google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2550, + serialized_end=2590, ) _DELETETRANSFERCONFIGREQUEST = _descriptor.Descriptor( - name='DeleteTransferConfigRequest', - full_name='google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2592, - serialized_end=2635, + name="DeleteTransferConfigRequest", + full_name="google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2592, + serialized_end=2635, ) _GETTRANSFERRUNREQUEST = _descriptor.Descriptor( - name='GetTransferRunRequest', - full_name='google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2637, - serialized_end=2674, + name="GetTransferRunRequest", + full_name="google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2637, + serialized_end=2674, ) _DELETETRANSFERRUNREQUEST = _descriptor.Descriptor( - name='DeleteTransferRunRequest', - full_name='google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2676, - serialized_end=2716, + name="DeleteTransferRunRequest", + full_name="google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2676, + serialized_end=2716, ) _LISTTRANSFERCONFIGSREQUEST = _descriptor.Descriptor( - name='ListTransferConfigsRequest', - full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_source_ids', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.data_source_ids', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.page_size', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2718, - serialized_end=2826, + name="ListTransferConfigsRequest", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data_source_ids", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.data_source_ids", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.page_size", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2718, + serialized_end=2826, ) _LISTTRANSFERCONFIGSRESPONSE = _descriptor.Descriptor( - name='ListTransferConfigsResponse', - full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transfer_configs', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.transfer_configs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2829, - serialized_end=2964, + name="ListTransferConfigsResponse", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transfer_configs", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.transfer_configs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2829, + serialized_end=2964, ) _LISTTRANSFERRUNSREQUEST = _descriptor.Descriptor( - name='ListTransferRunsRequest', - full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='states', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.states', index=1, - number=2, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.page_size', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='run_attempt', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.run_attempt', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTTRANSFERRUNSREQUEST_RUNATTEMPT, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2967, - serialized_end=3268, + name="ListTransferRunsRequest", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="states", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.states", + index=1, + number=2, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.page_size", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="run_attempt", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.run_attempt", + index=4, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_LISTTRANSFERRUNSREQUEST_RUNATTEMPT], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2967, + serialized_end=3268, ) _LISTTRANSFERRUNSRESPONSE = _descriptor.Descriptor( - name='ListTransferRunsResponse', - full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transfer_runs', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.transfer_runs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3270, - serialized_end=3396, + name="ListTransferRunsResponse", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transfer_runs", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.transfer_runs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3270, + serialized_end=3396, ) _LISTTRANSFERLOGSREQUEST = _descriptor.Descriptor( - name='ListTransferLogsRequest', - full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.page_token', index=1, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.page_size', index=2, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_types', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.message_types', index=3, - number=6, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3399, - serialized_end=3574, + name="ListTransferLogsRequest", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.page_token", + index=1, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.page_size", + index=2, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message_types", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.message_types", + index=3, + number=6, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3399, + serialized_end=3574, ) _LISTTRANSFERLOGSRESPONSE = _descriptor.Descriptor( - name='ListTransferLogsResponse', - full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transfer_messages', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.transfer_messages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3577, - serialized_end=3711, + name="ListTransferLogsResponse", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transfer_messages", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.transfer_messages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3577, + serialized_end=3711, ) _CHECKVALIDCREDSREQUEST = _descriptor.Descriptor( - name='CheckValidCredsRequest', - full_name='google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3713, - serialized_end=3751, + name="CheckValidCredsRequest", + full_name="google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3713, + serialized_end=3751, ) _CHECKVALIDCREDSRESPONSE = _descriptor.Descriptor( - name='CheckValidCredsResponse', - full_name='google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='has_valid_creds', full_name='google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.has_valid_creds', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3753, - serialized_end=3803, + name="CheckValidCredsResponse", + full_name="google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="has_valid_creds", + full_name="google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.has_valid_creds", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3753, + serialized_end=3803, ) _SCHEDULETRANSFERRUNSREQUEST = _descriptor.Descriptor( - name='ScheduleTransferRunsRequest', - full_name='google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.start_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.end_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3806, - serialized_end=3945, + name="ScheduleTransferRunsRequest", + full_name="google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.start_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.end_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3806, + serialized_end=3945, ) _SCHEDULETRANSFERRUNSRESPONSE = _descriptor.Descriptor( - name='ScheduleTransferRunsResponse', - full_name='google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='runs', full_name='google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.runs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3947, - serialized_end=4043, + name="ScheduleTransferRunsResponse", + full_name="google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="runs", + full_name="google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.runs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3947, + serialized_end=4043, ) -_DATASOURCEPARAMETER.fields_by_name['type'].enum_type = _DATASOURCEPARAMETER_TYPE -_DATASOURCEPARAMETER.fields_by_name['min_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_DATASOURCEPARAMETER.fields_by_name['max_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_DATASOURCEPARAMETER.fields_by_name['fields'].message_type = _DATASOURCEPARAMETER +_DATASOURCEPARAMETER.fields_by_name["type"].enum_type = _DATASOURCEPARAMETER_TYPE +_DATASOURCEPARAMETER.fields_by_name[ + "min_value" +].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_DATASOURCEPARAMETER.fields_by_name[ + "max_value" +].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_DATASOURCEPARAMETER.fields_by_name["fields"].message_type = _DATASOURCEPARAMETER _DATASOURCEPARAMETER_TYPE.containing_type = _DATASOURCEPARAMETER -_DATASOURCE.fields_by_name['transfer_type'].enum_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERTYPE -_DATASOURCE.fields_by_name['parameters'].message_type = _DATASOURCEPARAMETER -_DATASOURCE.fields_by_name['authorization_type'].enum_type = _DATASOURCE_AUTHORIZATIONTYPE -_DATASOURCE.fields_by_name['data_refresh_type'].enum_type = _DATASOURCE_DATAREFRESHTYPE -_DATASOURCE.fields_by_name['minimum_schedule_interval'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DATASOURCE.fields_by_name[ + "transfer_type" +].enum_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERTYPE +) +_DATASOURCE.fields_by_name["parameters"].message_type = _DATASOURCEPARAMETER +_DATASOURCE.fields_by_name[ + "authorization_type" +].enum_type = _DATASOURCE_AUTHORIZATIONTYPE +_DATASOURCE.fields_by_name["data_refresh_type"].enum_type = _DATASOURCE_DATAREFRESHTYPE +_DATASOURCE.fields_by_name[ + "minimum_schedule_interval" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _DATASOURCE_AUTHORIZATIONTYPE.containing_type = _DATASOURCE _DATASOURCE_DATAREFRESHTYPE.containing_type = _DATASOURCE -_LISTDATASOURCESRESPONSE.fields_by_name['data_sources'].message_type = _DATASOURCE -_CREATETRANSFERCONFIGREQUEST.fields_by_name['transfer_config'].message_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG -_UPDATETRANSFERCONFIGREQUEST.fields_by_name['transfer_config'].message_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG -_UPDATETRANSFERCONFIGREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTTRANSFERCONFIGSRESPONSE.fields_by_name['transfer_configs'].message_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG -_LISTTRANSFERRUNSREQUEST.fields_by_name['states'].enum_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERSTATE -_LISTTRANSFERRUNSREQUEST.fields_by_name['run_attempt'].enum_type = _LISTTRANSFERRUNSREQUEST_RUNATTEMPT +_LISTDATASOURCESRESPONSE.fields_by_name["data_sources"].message_type = _DATASOURCE +_CREATETRANSFERCONFIGREQUEST.fields_by_name[ + "transfer_config" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG +) +_UPDATETRANSFERCONFIGREQUEST.fields_by_name[ + "transfer_config" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG +) +_UPDATETRANSFERCONFIGREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTTRANSFERCONFIGSRESPONSE.fields_by_name[ + "transfer_configs" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG +) +_LISTTRANSFERRUNSREQUEST.fields_by_name[ + "states" +].enum_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERSTATE +) +_LISTTRANSFERRUNSREQUEST.fields_by_name[ + "run_attempt" +].enum_type = _LISTTRANSFERRUNSREQUEST_RUNATTEMPT _LISTTRANSFERRUNSREQUEST_RUNATTEMPT.containing_type = _LISTTRANSFERRUNSREQUEST -_LISTTRANSFERRUNSRESPONSE.fields_by_name['transfer_runs'].message_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERRUN -_LISTTRANSFERLOGSREQUEST.fields_by_name['message_types'].enum_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERMESSAGE_MESSAGESEVERITY -_LISTTRANSFERLOGSRESPONSE.fields_by_name['transfer_messages'].message_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERMESSAGE -_SCHEDULETRANSFERRUNSREQUEST.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SCHEDULETRANSFERRUNSREQUEST.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SCHEDULETRANSFERRUNSRESPONSE.fields_by_name['runs'].message_type = google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERRUN -DESCRIPTOR.message_types_by_name['DataSourceParameter'] = _DATASOURCEPARAMETER -DESCRIPTOR.message_types_by_name['DataSource'] = _DATASOURCE -DESCRIPTOR.message_types_by_name['GetDataSourceRequest'] = _GETDATASOURCEREQUEST -DESCRIPTOR.message_types_by_name['ListDataSourcesRequest'] = _LISTDATASOURCESREQUEST -DESCRIPTOR.message_types_by_name['ListDataSourcesResponse'] = _LISTDATASOURCESRESPONSE -DESCRIPTOR.message_types_by_name['CreateTransferConfigRequest'] = _CREATETRANSFERCONFIGREQUEST -DESCRIPTOR.message_types_by_name['UpdateTransferConfigRequest'] = _UPDATETRANSFERCONFIGREQUEST -DESCRIPTOR.message_types_by_name['GetTransferConfigRequest'] = _GETTRANSFERCONFIGREQUEST -DESCRIPTOR.message_types_by_name['DeleteTransferConfigRequest'] = _DELETETRANSFERCONFIGREQUEST -DESCRIPTOR.message_types_by_name['GetTransferRunRequest'] = _GETTRANSFERRUNREQUEST -DESCRIPTOR.message_types_by_name['DeleteTransferRunRequest'] = _DELETETRANSFERRUNREQUEST -DESCRIPTOR.message_types_by_name['ListTransferConfigsRequest'] = _LISTTRANSFERCONFIGSREQUEST -DESCRIPTOR.message_types_by_name['ListTransferConfigsResponse'] = _LISTTRANSFERCONFIGSRESPONSE -DESCRIPTOR.message_types_by_name['ListTransferRunsRequest'] = _LISTTRANSFERRUNSREQUEST -DESCRIPTOR.message_types_by_name['ListTransferRunsResponse'] = _LISTTRANSFERRUNSRESPONSE -DESCRIPTOR.message_types_by_name['ListTransferLogsRequest'] = _LISTTRANSFERLOGSREQUEST -DESCRIPTOR.message_types_by_name['ListTransferLogsResponse'] = _LISTTRANSFERLOGSRESPONSE -DESCRIPTOR.message_types_by_name['CheckValidCredsRequest'] = _CHECKVALIDCREDSREQUEST -DESCRIPTOR.message_types_by_name['CheckValidCredsResponse'] = _CHECKVALIDCREDSRESPONSE -DESCRIPTOR.message_types_by_name['ScheduleTransferRunsRequest'] = _SCHEDULETRANSFERRUNSREQUEST -DESCRIPTOR.message_types_by_name['ScheduleTransferRunsResponse'] = _SCHEDULETRANSFERRUNSRESPONSE +_LISTTRANSFERRUNSRESPONSE.fields_by_name[ + "transfer_runs" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERRUN +) +_LISTTRANSFERLOGSREQUEST.fields_by_name[ + "message_types" +].enum_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERMESSAGE_MESSAGESEVERITY +) +_LISTTRANSFERLOGSRESPONSE.fields_by_name[ + "transfer_messages" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERMESSAGE +) +_SCHEDULETRANSFERRUNSREQUEST.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SCHEDULETRANSFERRUNSREQUEST.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SCHEDULETRANSFERRUNSRESPONSE.fields_by_name[ + "runs" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERRUN +) +DESCRIPTOR.message_types_by_name["DataSourceParameter"] = _DATASOURCEPARAMETER +DESCRIPTOR.message_types_by_name["DataSource"] = _DATASOURCE +DESCRIPTOR.message_types_by_name["GetDataSourceRequest"] = _GETDATASOURCEREQUEST +DESCRIPTOR.message_types_by_name["ListDataSourcesRequest"] = _LISTDATASOURCESREQUEST +DESCRIPTOR.message_types_by_name["ListDataSourcesResponse"] = _LISTDATASOURCESRESPONSE +DESCRIPTOR.message_types_by_name[ + "CreateTransferConfigRequest" +] = _CREATETRANSFERCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateTransferConfigRequest" +] = _UPDATETRANSFERCONFIGREQUEST +DESCRIPTOR.message_types_by_name["GetTransferConfigRequest"] = _GETTRANSFERCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteTransferConfigRequest" +] = _DELETETRANSFERCONFIGREQUEST +DESCRIPTOR.message_types_by_name["GetTransferRunRequest"] = _GETTRANSFERRUNREQUEST +DESCRIPTOR.message_types_by_name["DeleteTransferRunRequest"] = _DELETETRANSFERRUNREQUEST +DESCRIPTOR.message_types_by_name[ + "ListTransferConfigsRequest" +] = _LISTTRANSFERCONFIGSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListTransferConfigsResponse" +] = _LISTTRANSFERCONFIGSRESPONSE +DESCRIPTOR.message_types_by_name["ListTransferRunsRequest"] = _LISTTRANSFERRUNSREQUEST +DESCRIPTOR.message_types_by_name["ListTransferRunsResponse"] = _LISTTRANSFERRUNSRESPONSE +DESCRIPTOR.message_types_by_name["ListTransferLogsRequest"] = _LISTTRANSFERLOGSREQUEST +DESCRIPTOR.message_types_by_name["ListTransferLogsResponse"] = _LISTTRANSFERLOGSRESPONSE +DESCRIPTOR.message_types_by_name["CheckValidCredsRequest"] = _CHECKVALIDCREDSREQUEST +DESCRIPTOR.message_types_by_name["CheckValidCredsResponse"] = _CHECKVALIDCREDSRESPONSE +DESCRIPTOR.message_types_by_name[ + "ScheduleTransferRunsRequest" +] = _SCHEDULETRANSFERRUNSREQUEST +DESCRIPTOR.message_types_by_name[ + "ScheduleTransferRunsResponse" +] = _SCHEDULETRANSFERRUNSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -DataSourceParameter = _reflection.GeneratedProtocolMessageType('DataSourceParameter', (_message.Message,), dict( - DESCRIPTOR = _DATASOURCEPARAMETER, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """Represents a data source parameter with validation rules, so that +DataSourceParameter = _reflection.GeneratedProtocolMessageType( + "DataSourceParameter", + (_message.Message,), + dict( + DESCRIPTOR=_DATASOURCEPARAMETER, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""Represents a data source parameter with validation rules, so that parameters can be rendered in the UI. These parameters are given to us by supported data sources, and include all needed information for rendering and validation. Thus, whoever uses this api can decide to @@ -1272,15 +2097,18 @@ the same parameter\_id. Only applicable when parameter type is RECORD. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSourceParameter) + ), +) _sym_db.RegisterMessage(DataSourceParameter) -DataSource = _reflection.GeneratedProtocolMessageType('DataSource', (_message.Message,), dict( - DESCRIPTOR = _DATASOURCE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """Represents data source metadata. Metadata is sufficient to render UI and +DataSource = _reflection.GeneratedProtocolMessageType( + "DataSource", + (_message.Message,), + dict( + DESCRIPTOR=_DATASOURCE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""Represents data source metadata. Metadata is sufficient to render UI and request proper OAuth tokens. @@ -1339,15 +2167,18 @@ minimum_schedule_interval: The minimum interval for scheduler to schedule runs. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSource) + ), +) _sym_db.RegisterMessage(DataSource) -GetDataSourceRequest = _reflection.GeneratedProtocolMessageType('GetDataSourceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDATASOURCEREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to get data source info. +GetDataSourceRequest = _reflection.GeneratedProtocolMessageType( + "GetDataSourceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDATASOURCEREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to get data source info. Attributes: @@ -1356,15 +2187,18 @@ example: ``projects/{project_id}/dataSources/{data_source_id}`` """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) + ), +) _sym_db.RegisterMessage(GetDataSourceRequest) -ListDataSourcesRequest = _reflection.GeneratedProtocolMessageType('ListDataSourcesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDATASOURCESREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """Request to list supported data sources and their data transfer settings. +ListDataSourcesRequest = _reflection.GeneratedProtocolMessageType( + "ListDataSourcesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDATASOURCESREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""Request to list supported data sources and their data transfer settings. Attributes: @@ -1381,15 +2215,18 @@ Page size. The default page size is the maximum value of 1000 results. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) + ), +) _sym_db.RegisterMessage(ListDataSourcesRequest) -ListDataSourcesResponse = _reflection.GeneratedProtocolMessageType('ListDataSourcesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDATASOURCESRESPONSE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """Returns list of supported data sources and their metadata. +ListDataSourcesResponse = _reflection.GeneratedProtocolMessageType( + "ListDataSourcesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDATASOURCESRESPONSE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""Returns list of supported data sources and their metadata. Attributes: @@ -1401,15 +2238,18 @@ ``ListDataSourcesRequest.page_token`` to request the next page of list results. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) + ), +) _sym_db.RegisterMessage(ListDataSourcesResponse) -CreateTransferConfigRequest = _reflection.GeneratedProtocolMessageType('CreateTransferConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATETRANSFERCONFIGREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to create a data transfer configuration. If new credentials +CreateTransferConfigRequest = _reflection.GeneratedProtocolMessageType( + "CreateTransferConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETRANSFERCONFIGREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to create a data transfer configuration. If new credentials are needed for this transfer configuration, an authorization code must be provided. If an authorization code is provided, the transfer configuration will be associated with the user id corresponding to the @@ -1444,15 +2284,18 @@ with the page text prompting the user to copy the code and paste it in the application. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) + ), +) _sym_db.RegisterMessage(CreateTransferConfigRequest) -UpdateTransferConfigRequest = _reflection.GeneratedProtocolMessageType('UpdateTransferConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATETRANSFERCONFIGREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to update a transfer configuration. To update the user id of +UpdateTransferConfigRequest = _reflection.GeneratedProtocolMessageType( + "UpdateTransferConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATETRANSFERCONFIGREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to update a transfer configuration. To update the user id of the transfer configuration, an authorization code needs to be provided. @@ -1479,15 +2322,18 @@ update_mask: Required list of fields to be updated in this request. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest) + ), +) _sym_db.RegisterMessage(UpdateTransferConfigRequest) -GetTransferConfigRequest = _reflection.GeneratedProtocolMessageType('GetTransferConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTRANSFERCONFIGREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to get data transfer information. +GetTransferConfigRequest = _reflection.GeneratedProtocolMessageType( + "GetTransferConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTRANSFERCONFIGREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to get data transfer information. Attributes: @@ -1495,15 +2341,18 @@ The field will contain name of the resource requested, for example: ``projects/{project_id}/transferConfigs/{config_id}`` """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) + ), +) _sym_db.RegisterMessage(GetTransferConfigRequest) -DeleteTransferConfigRequest = _reflection.GeneratedProtocolMessageType('DeleteTransferConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETETRANSFERCONFIGREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to delete data transfer information. All associated transfer +DeleteTransferConfigRequest = _reflection.GeneratedProtocolMessageType( + "DeleteTransferConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETETRANSFERCONFIGREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to delete data transfer information. All associated transfer runs and log messages will be deleted as well. @@ -1512,15 +2361,18 @@ The field will contain name of the resource requested, for example: ``projects/{project_id}/transferConfigs/{config_id}`` """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) + ), +) _sym_db.RegisterMessage(DeleteTransferConfigRequest) -GetTransferRunRequest = _reflection.GeneratedProtocolMessageType('GetTransferRunRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTRANSFERRUNREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to get data transfer run information. +GetTransferRunRequest = _reflection.GeneratedProtocolMessageType( + "GetTransferRunRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTRANSFERRUNREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to get data transfer run information. Attributes: @@ -1529,15 +2381,18 @@ example: ``projects/{project_id}/transferConfigs/{config_id}/r uns/{run_id}`` """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) + ), +) _sym_db.RegisterMessage(GetTransferRunRequest) -DeleteTransferRunRequest = _reflection.GeneratedProtocolMessageType('DeleteTransferRunRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETETRANSFERRUNREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to delete data transfer run information. +DeleteTransferRunRequest = _reflection.GeneratedProtocolMessageType( + "DeleteTransferRunRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETETRANSFERRUNREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to delete data transfer run information. Attributes: @@ -1546,15 +2401,18 @@ example: ``projects/{project_id}/transferConfigs/{config_id}/r uns/{run_id}`` """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) + ), +) _sym_db.RegisterMessage(DeleteTransferRunRequest) -ListTransferConfigsRequest = _reflection.GeneratedProtocolMessageType('ListTransferConfigsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTRANSFERCONFIGSREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to list data transfers configured for a BigQuery project. +ListTransferConfigsRequest = _reflection.GeneratedProtocolMessageType( + "ListTransferConfigsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRANSFERCONFIGSREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to list data transfers configured for a BigQuery project. Attributes: @@ -1574,15 +2432,18 @@ Page size. The default page size is the maximum value of 1000 results. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) + ), +) _sym_db.RegisterMessage(ListTransferConfigsRequest) -ListTransferConfigsResponse = _reflection.GeneratedProtocolMessageType('ListTransferConfigsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTRANSFERCONFIGSRESPONSE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """The returned list of pipelines in the project. +ListTransferConfigsResponse = _reflection.GeneratedProtocolMessageType( + "ListTransferConfigsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRANSFERCONFIGSRESPONSE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""The returned list of pipelines in the project. Attributes: @@ -1594,15 +2455,18 @@ ``ListTransferConfigsRequest.page_token`` to request the next page of list results. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) + ), +) _sym_db.RegisterMessage(ListTransferConfigsResponse) -ListTransferRunsRequest = _reflection.GeneratedProtocolMessageType('ListTransferRunsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTRANSFERRUNSREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to list data transfer runs. UI can use this method to +ListTransferRunsRequest = _reflection.GeneratedProtocolMessageType( + "ListTransferRunsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRANSFERRUNSREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to list data transfer runs. UI can use this method to show/filter specific data transfer runs. The data source can use this method to request all scheduled transfer runs. @@ -1627,15 +2491,18 @@ run_attempt: Indicates how run attempts are to be pulled. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) + ), +) _sym_db.RegisterMessage(ListTransferRunsRequest) -ListTransferRunsResponse = _reflection.GeneratedProtocolMessageType('ListTransferRunsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTRANSFERRUNSRESPONSE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """The returned list of pipelines in the project. +ListTransferRunsResponse = _reflection.GeneratedProtocolMessageType( + "ListTransferRunsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRANSFERRUNSRESPONSE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""The returned list of pipelines in the project. Attributes: @@ -1647,15 +2514,18 @@ ``ListTransferRunsRequest.page_token`` to request the next page of list results. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) + ), +) _sym_db.RegisterMessage(ListTransferRunsResponse) -ListTransferLogsRequest = _reflection.GeneratedProtocolMessageType('ListTransferLogsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTRANSFERLOGSREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to get user facing log messages associated with data transfer +ListTransferLogsRequest = _reflection.GeneratedProtocolMessageType( + "ListTransferLogsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRANSFERLOGSREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to get user facing log messages associated with data transfer run. @@ -1676,15 +2546,18 @@ Message types to return. If not populated - INFO, WARNING and ERROR messages are returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) + ), +) _sym_db.RegisterMessage(ListTransferLogsRequest) -ListTransferLogsResponse = _reflection.GeneratedProtocolMessageType('ListTransferLogsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTRANSFERLOGSRESPONSE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """The returned list transfer run messages. +ListTransferLogsResponse = _reflection.GeneratedProtocolMessageType( + "ListTransferLogsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRANSFERLOGSRESPONSE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""The returned list transfer run messages. Attributes: @@ -1696,15 +2569,18 @@ ``GetTransferRunLogRequest.page_token`` to request the next page of list results. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) + ), +) _sym_db.RegisterMessage(ListTransferLogsResponse) -CheckValidCredsRequest = _reflection.GeneratedProtocolMessageType('CheckValidCredsRequest', (_message.Message,), dict( - DESCRIPTOR = _CHECKVALIDCREDSREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to determine whether the user has valid credentials. This +CheckValidCredsRequest = _reflection.GeneratedProtocolMessageType( + "CheckValidCredsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CHECKVALIDCREDSREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to determine whether the user has valid credentials. This method is used to limit the number of OAuth popups in the user interface. The user id is inferred from the API call context. If the data source has the Google+ authorization type, this method returns @@ -1717,30 +2593,36 @@ The data source in the form: ``projects/{project_id}/dataSources/{data_source_id}`` """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) + ), +) _sym_db.RegisterMessage(CheckValidCredsRequest) -CheckValidCredsResponse = _reflection.GeneratedProtocolMessageType('CheckValidCredsResponse', (_message.Message,), dict( - DESCRIPTOR = _CHECKVALIDCREDSRESPONSE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A response indicating whether the credentials exist and are valid. +CheckValidCredsResponse = _reflection.GeneratedProtocolMessageType( + "CheckValidCredsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_CHECKVALIDCREDSRESPONSE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A response indicating whether the credentials exist and are valid. Attributes: has_valid_creds: If set to ``true``, the credentials exist and are valid. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) + ), +) _sym_db.RegisterMessage(CheckValidCredsResponse) -ScheduleTransferRunsRequest = _reflection.GeneratedProtocolMessageType('ScheduleTransferRunsRequest', (_message.Message,), dict( - DESCRIPTOR = _SCHEDULETRANSFERRUNSREQUEST, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A request to schedule transfer runs for a time range. +ScheduleTransferRunsRequest = _reflection.GeneratedProtocolMessageType( + "ScheduleTransferRunsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SCHEDULETRANSFERRUNSREQUEST, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A request to schedule transfer runs for a time range. Attributes: @@ -1754,158 +2636,233 @@ End time of the range of transfer runs. For example, ``"2017-05-30T00:00:00+00:00"``. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) + ), +) _sym_db.RegisterMessage(ScheduleTransferRunsRequest) -ScheduleTransferRunsResponse = _reflection.GeneratedProtocolMessageType('ScheduleTransferRunsResponse', (_message.Message,), dict( - DESCRIPTOR = _SCHEDULETRANSFERRUNSRESPONSE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2' - , - __doc__ = """A response to schedule transfer runs for a time range. +ScheduleTransferRunsResponse = _reflection.GeneratedProtocolMessageType( + "ScheduleTransferRunsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_SCHEDULETRANSFERRUNSRESPONSE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.datatransfer_pb2", + __doc__="""A response to schedule transfer runs for a time range. Attributes: runs: The transfer runs that were scheduled. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) + ), +) _sym_db.RegisterMessage(ScheduleTransferRunsResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n)com.google.cloud.bigquery.datatransfer.v1B\021DataTransferProtoP\001ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\252\002%Google.Cloud.BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\BigQuery\\DataTransfer\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n)com.google.cloud.bigquery.datatransfer.v1B\021DataTransferProtoP\001ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\252\002%Google.Cloud.BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\BigQuery\\DataTransfer\\V1" + ), +) _DATATRANSFERSERVICE = _descriptor.ServiceDescriptor( - name='DataTransferService', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4046, - serialized_end=7508, - methods=[ - _descriptor.MethodDescriptor( - name='GetDataSource', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.GetDataSource', + name="DataTransferService", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_GETDATASOURCEREQUEST, - output_type=_DATASOURCE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002X\022//v1/{name=projects/*/locations/*/dataSources/*}Z%\022#/v1/{name=projects/*/dataSources/*}')), - ), - _descriptor.MethodDescriptor( - name='ListDataSources', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.ListDataSources', - index=1, - containing_service=None, - input_type=_LISTDATASOURCESREQUEST, - output_type=_LISTDATASOURCESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002X\022//v1/{parent=projects/*/locations/*}/dataSourcesZ%\022#/v1/{parent=projects/*}/dataSources')), - ), - _descriptor.MethodDescriptor( - name='CreateTransferConfig', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.CreateTransferConfig', - index=2, - containing_service=None, - input_type=_CREATETRANSFERCONFIGREQUEST, - output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\202\001\"3/v1/{parent=projects/*/locations/*}/transferConfigs:\017transfer_configZ:\"\'/v1/{parent=projects/*}/transferConfigs:\017transfer_config')), - ), - _descriptor.MethodDescriptor( - name='UpdateTransferConfig', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.UpdateTransferConfig', - index=3, - containing_service=None, - input_type=_UPDATETRANSFERCONFIGREQUEST, - output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\242\0012C/v1/{transfer_config.name=projects/*/locations/*/transferConfigs/*}:\017transfer_configZJ27/v1/{transfer_config.name=projects/*/transferConfigs/*}:\017transfer_config')), - ), - _descriptor.MethodDescriptor( - name='DeleteTransferConfig', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferConfig', - index=4, - containing_service=None, - input_type=_DELETETRANSFERCONFIGREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002`*3/v1/{name=projects/*/locations/*/transferConfigs/*}Z)*\'/v1/{name=projects/*/transferConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='GetTransferConfig', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferConfig', - index=5, - containing_service=None, - input_type=_GETTRANSFERCONFIGREQUEST, - output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002`\0223/v1/{name=projects/*/locations/*/transferConfigs/*}Z)\022\'/v1/{name=projects/*/transferConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='ListTransferConfigs', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferConfigs', - index=6, - containing_service=None, - input_type=_LISTTRANSFERCONFIGSREQUEST, - output_type=_LISTTRANSFERCONFIGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002`\0223/v1/{parent=projects/*/locations/*}/transferConfigsZ)\022\'/v1/{parent=projects/*}/transferConfigs')), - ), - _descriptor.MethodDescriptor( - name='ScheduleTransferRuns', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.ScheduleTransferRuns', - index=7, - containing_service=None, - input_type=_SCHEDULETRANSFERRUNSREQUEST, - output_type=_SCHEDULETRANSFERRUNSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\204\001\"B/v1/{parent=projects/*/locations/*/transferConfigs/*}:scheduleRuns:\001*Z;\"6/v1/{parent=projects/*/transferConfigs/*}:scheduleRuns:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetTransferRun', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferRun', - index=8, - containing_service=None, - input_type=_GETTRANSFERRUNREQUEST, - output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERRUN, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002n\022:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0\022./v1/{name=projects/*/transferConfigs/*/runs/*}')), - ), - _descriptor.MethodDescriptor( - name='DeleteTransferRun', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferRun', - index=9, - containing_service=None, - input_type=_DELETETRANSFERRUNREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002n*:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0*./v1/{name=projects/*/transferConfigs/*/runs/*}')), - ), - _descriptor.MethodDescriptor( - name='ListTransferRuns', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferRuns', - index=10, - containing_service=None, - input_type=_LISTTRANSFERRUNSREQUEST, - output_type=_LISTTRANSFERRUNSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002n\022:/v1/{parent=projects/*/locations/*/transferConfigs/*}/runsZ0\022./v1/{parent=projects/*/transferConfigs/*}/runs')), - ), - _descriptor.MethodDescriptor( - name='ListTransferLogs', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferLogs', - index=11, - containing_service=None, - input_type=_LISTTRANSFERLOGSREQUEST, - output_type=_LISTTRANSFERLOGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\214\001\022I/v1/{parent=projects/*/locations/*/transferConfigs/*/runs/*}/transferLogsZ?\022=/v1/{parent=projects/*/transferConfigs/*/runs/*}/transferLogs')), - ), - _descriptor.MethodDescriptor( - name='CheckValidCreds', - full_name='google.cloud.bigquery.datatransfer.v1.DataTransferService.CheckValidCreds', - index=12, - containing_service=None, - input_type=_CHECKVALIDCREDSREQUEST, - output_type=_CHECKVALIDCREDSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002~\"?/v1/{name=projects/*/locations/*/dataSources/*}:checkValidCreds:\001*Z8\"3/v1/{name=projects/*/dataSources/*}:checkValidCreds:\001*')), - ), -]) + options=None, + serialized_start=4046, + serialized_end=7508, + methods=[ + _descriptor.MethodDescriptor( + name="GetDataSource", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.GetDataSource", + index=0, + containing_service=None, + input_type=_GETDATASOURCEREQUEST, + output_type=_DATASOURCE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002X\022//v1/{name=projects/*/locations/*/dataSources/*}Z%\022#/v1/{name=projects/*/dataSources/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListDataSources", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.ListDataSources", + index=1, + containing_service=None, + input_type=_LISTDATASOURCESREQUEST, + output_type=_LISTDATASOURCESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002X\022//v1/{parent=projects/*/locations/*}/dataSourcesZ%\022#/v1/{parent=projects/*}/dataSources" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateTransferConfig", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.CreateTransferConfig", + index=2, + containing_service=None, + input_type=_CREATETRANSFERCONFIGREQUEST, + output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\202\001"3/v1/{parent=projects/*/locations/*}/transferConfigs:\017transfer_configZ:"\'/v1/{parent=projects/*}/transferConfigs:\017transfer_config' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateTransferConfig", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.UpdateTransferConfig", + index=3, + containing_service=None, + input_type=_UPDATETRANSFERCONFIGREQUEST, + output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\242\0012C/v1/{transfer_config.name=projects/*/locations/*/transferConfigs/*}:\017transfer_configZJ27/v1/{transfer_config.name=projects/*/transferConfigs/*}:\017transfer_config" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteTransferConfig", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferConfig", + index=4, + containing_service=None, + input_type=_DELETETRANSFERCONFIGREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002`*3/v1/{name=projects/*/locations/*/transferConfigs/*}Z)*'/v1/{name=projects/*/transferConfigs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetTransferConfig", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferConfig", + index=5, + containing_service=None, + input_type=_GETTRANSFERCONFIGREQUEST, + output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002`\0223/v1/{name=projects/*/locations/*/transferConfigs/*}Z)\022'/v1/{name=projects/*/transferConfigs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListTransferConfigs", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferConfigs", + index=6, + containing_service=None, + input_type=_LISTTRANSFERCONFIGSREQUEST, + output_type=_LISTTRANSFERCONFIGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002`\0223/v1/{parent=projects/*/locations/*}/transferConfigsZ)\022'/v1/{parent=projects/*}/transferConfigs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ScheduleTransferRuns", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.ScheduleTransferRuns", + index=7, + containing_service=None, + input_type=_SCHEDULETRANSFERRUNSREQUEST, + output_type=_SCHEDULETRANSFERRUNSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\204\001"B/v1/{parent=projects/*/locations/*/transferConfigs/*}:scheduleRuns:\001*Z;"6/v1/{parent=projects/*/transferConfigs/*}:scheduleRuns:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetTransferRun", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferRun", + index=8, + containing_service=None, + input_type=_GETTRANSFERRUNREQUEST, + output_type=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2._TRANSFERRUN, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002n\022:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0\022./v1/{name=projects/*/transferConfigs/*/runs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteTransferRun", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferRun", + index=9, + containing_service=None, + input_type=_DELETETRANSFERRUNREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002n*:/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}Z0*./v1/{name=projects/*/transferConfigs/*/runs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListTransferRuns", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferRuns", + index=10, + containing_service=None, + input_type=_LISTTRANSFERRUNSREQUEST, + output_type=_LISTTRANSFERRUNSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002n\022:/v1/{parent=projects/*/locations/*/transferConfigs/*}/runsZ0\022./v1/{parent=projects/*/transferConfigs/*}/runs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListTransferLogs", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferLogs", + index=11, + containing_service=None, + input_type=_LISTTRANSFERLOGSREQUEST, + output_type=_LISTTRANSFERLOGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\214\001\022I/v1/{parent=projects/*/locations/*/transferConfigs/*/runs/*}/transferLogsZ?\022=/v1/{parent=projects/*/transferConfigs/*/runs/*}/transferLogs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CheckValidCreds", + full_name="google.cloud.bigquery.datatransfer.v1.DataTransferService.CheckValidCreds", + index=12, + containing_service=None, + input_type=_CHECKVALIDCREDSREQUEST, + output_type=_CHECKVALIDCREDSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002~"?/v1/{name=projects/*/locations/*/dataSources/*}:checkValidCreds:\001*Z8"3/v1/{name=projects/*/dataSources/*}:checkValidCreds:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_DATATRANSFERSERVICE) -DESCRIPTOR.services_by_name['DataTransferService'] = _DATATRANSFERSERVICE +DESCRIPTOR.services_by_name["DataTransferService"] = _DATATRANSFERSERVICE # @@protoc_insertion_point(module_scope) diff --git a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2_grpc.py b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2_grpc.py index 101610704563b..9edccb80f7c25 100644 --- a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2_grpc.py +++ b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2_grpc.py @@ -1,270 +1,275 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.bigquery_datatransfer_v1.proto import datatransfer_pb2 as google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2 -from google.cloud.bigquery_datatransfer_v1.proto import transfer_pb2 as google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2 +from google.cloud.bigquery_datatransfer_v1.proto import ( + datatransfer_pb2 as google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2, +) +from google.cloud.bigquery_datatransfer_v1.proto import ( + transfer_pb2 as google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class DataTransferServiceStub(object): - """The Google BigQuery Data Transfer Service API enables BigQuery users to + """The Google BigQuery Data Transfer Service API enables BigQuery users to configure the transfer of their data from other Google Products into BigQuery. This service contains methods that are end user exposed. It backs up the frontend. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.GetDataSource = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/GetDataSource', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetDataSourceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DataSource.FromString, + self.GetDataSource = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/GetDataSource", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetDataSourceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DataSource.FromString, ) - self.ListDataSources = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListDataSources', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesResponse.FromString, + self.ListDataSources = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListDataSources", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesResponse.FromString, ) - self.CreateTransferConfig = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/CreateTransferConfig', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CreateTransferConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.FromString, + self.CreateTransferConfig = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/CreateTransferConfig", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CreateTransferConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.FromString, ) - self.UpdateTransferConfig = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/UpdateTransferConfig', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.UpdateTransferConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.FromString, + self.UpdateTransferConfig = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/UpdateTransferConfig", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.UpdateTransferConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.FromString, ) - self.DeleteTransferConfig = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/DeleteTransferConfig', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferConfigRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteTransferConfig = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/DeleteTransferConfig", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferConfigRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetTransferConfig = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/GetTransferConfig', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.FromString, + self.GetTransferConfig = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/GetTransferConfig", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.FromString, ) - self.ListTransferConfigs = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListTransferConfigs', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsResponse.FromString, + self.ListTransferConfigs = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListTransferConfigs", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsResponse.FromString, ) - self.ScheduleTransferRuns = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/ScheduleTransferRuns', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsResponse.FromString, + self.ScheduleTransferRuns = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/ScheduleTransferRuns", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsResponse.FromString, ) - self.GetTransferRun = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/GetTransferRun', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferRunRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferRun.FromString, + self.GetTransferRun = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/GetTransferRun", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferRunRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferRun.FromString, ) - self.DeleteTransferRun = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/DeleteTransferRun', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferRunRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteTransferRun = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/DeleteTransferRun", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferRunRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListTransferRuns = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListTransferRuns', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsResponse.FromString, + self.ListTransferRuns = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListTransferRuns", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsResponse.FromString, ) - self.ListTransferLogs = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListTransferLogs', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsResponse.FromString, + self.ListTransferLogs = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListTransferLogs", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsResponse.FromString, ) - self.CheckValidCreds = channel.unary_unary( - '/google.cloud.bigquery.datatransfer.v1.DataTransferService/CheckValidCreds', - request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsResponse.FromString, + self.CheckValidCreds = channel.unary_unary( + "/google.cloud.bigquery.datatransfer.v1.DataTransferService/CheckValidCreds", + request_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsResponse.FromString, ) class DataTransferServiceServicer(object): - """The Google BigQuery Data Transfer Service API enables BigQuery users to + """The Google BigQuery Data Transfer Service API enables BigQuery users to configure the transfer of their data from other Google Products into BigQuery. This service contains methods that are end user exposed. It backs up the frontend. """ - def GetDataSource(self, request, context): - """Retrieves a supported data source and returns its settings, + def GetDataSource(self, request, context): + """Retrieves a supported data source and returns its settings, which can be used for UI rendering. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListDataSources(self, request, context): - """Lists supported data sources and returns their settings, + def ListDataSources(self, request, context): + """Lists supported data sources and returns their settings, which can be used for UI rendering. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateTransferConfig(self, request, context): - """Creates a new data transfer configuration. + def CreateTransferConfig(self, request, context): + """Creates a new data transfer configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateTransferConfig(self, request, context): - """Updates a data transfer configuration. + def UpdateTransferConfig(self, request, context): + """Updates a data transfer configuration. All fields must be set, even if they are not updated. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteTransferConfig(self, request, context): - """Deletes a data transfer configuration, + def DeleteTransferConfig(self, request, context): + """Deletes a data transfer configuration, including any associated transfer runs and logs. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTransferConfig(self, request, context): - """Returns information about a data transfer config. + def GetTransferConfig(self, request, context): + """Returns information about a data transfer config. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTransferConfigs(self, request, context): - """Returns information about all data transfers in the project. + def ListTransferConfigs(self, request, context): + """Returns information about all data transfers in the project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ScheduleTransferRuns(self, request, context): - """Creates transfer runs for a time range [start_time, end_time]. + def ScheduleTransferRuns(self, request, context): + """Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTransferRun(self, request, context): - """Returns information about the particular transfer run. + def GetTransferRun(self, request, context): + """Returns information about the particular transfer run. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteTransferRun(self, request, context): - """Deletes the specified transfer run. + def DeleteTransferRun(self, request, context): + """Deletes the specified transfer run. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTransferRuns(self, request, context): - """Returns information about running and completed jobs. + def ListTransferRuns(self, request, context): + """Returns information about running and completed jobs. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTransferLogs(self, request, context): - """Returns user facing log messages for the data transfer run. + def ListTransferLogs(self, request, context): + """Returns user facing log messages for the data transfer run. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CheckValidCreds(self, request, context): - """Returns true if valid credentials exist for the given data source and + def CheckValidCreds(self, request, context): + """Returns true if valid credentials exist for the given data source and requesting user. Some data sources doesn't support service account, so we need to talk to them on behalf of the end user. This API just checks whether we have OAuth token for the particular user, which is a pre-requisite before user can create a transfer config. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_DataTransferServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetDataSource': grpc.unary_unary_rpc_method_handler( - servicer.GetDataSource, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetDataSourceRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DataSource.SerializeToString, - ), - 'ListDataSources': grpc.unary_unary_rpc_method_handler( - servicer.ListDataSources, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesResponse.SerializeToString, - ), - 'CreateTransferConfig': grpc.unary_unary_rpc_method_handler( - servicer.CreateTransferConfig, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CreateTransferConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.SerializeToString, - ), - 'UpdateTransferConfig': grpc.unary_unary_rpc_method_handler( - servicer.UpdateTransferConfig, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.UpdateTransferConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.SerializeToString, - ), - 'DeleteTransferConfig': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTransferConfig, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferConfigRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetTransferConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetTransferConfig, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.SerializeToString, - ), - 'ListTransferConfigs': grpc.unary_unary_rpc_method_handler( - servicer.ListTransferConfigs, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsResponse.SerializeToString, - ), - 'ScheduleTransferRuns': grpc.unary_unary_rpc_method_handler( - servicer.ScheduleTransferRuns, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsResponse.SerializeToString, - ), - 'GetTransferRun': grpc.unary_unary_rpc_method_handler( - servicer.GetTransferRun, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferRunRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferRun.SerializeToString, - ), - 'DeleteTransferRun': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTransferRun, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferRunRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListTransferRuns': grpc.unary_unary_rpc_method_handler( - servicer.ListTransferRuns, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsResponse.SerializeToString, - ), - 'ListTransferLogs': grpc.unary_unary_rpc_method_handler( - servicer.ListTransferLogs, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsResponse.SerializeToString, - ), - 'CheckValidCreds': grpc.unary_unary_rpc_method_handler( - servicer.CheckValidCreds, - request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.bigquery.datatransfer.v1.DataTransferService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "GetDataSource": grpc.unary_unary_rpc_method_handler( + servicer.GetDataSource, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetDataSourceRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DataSource.SerializeToString, + ), + "ListDataSources": grpc.unary_unary_rpc_method_handler( + servicer.ListDataSources, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListDataSourcesResponse.SerializeToString, + ), + "CreateTransferConfig": grpc.unary_unary_rpc_method_handler( + servicer.CreateTransferConfig, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CreateTransferConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.SerializeToString, + ), + "UpdateTransferConfig": grpc.unary_unary_rpc_method_handler( + servicer.UpdateTransferConfig, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.UpdateTransferConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.SerializeToString, + ), + "DeleteTransferConfig": grpc.unary_unary_rpc_method_handler( + servicer.DeleteTransferConfig, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferConfigRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetTransferConfig": grpc.unary_unary_rpc_method_handler( + servicer.GetTransferConfig, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferConfig.SerializeToString, + ), + "ListTransferConfigs": grpc.unary_unary_rpc_method_handler( + servicer.ListTransferConfigs, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferConfigsResponse.SerializeToString, + ), + "ScheduleTransferRuns": grpc.unary_unary_rpc_method_handler( + servicer.ScheduleTransferRuns, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ScheduleTransferRunsResponse.SerializeToString, + ), + "GetTransferRun": grpc.unary_unary_rpc_method_handler( + servicer.GetTransferRun, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.GetTransferRunRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_transfer__pb2.TransferRun.SerializeToString, + ), + "DeleteTransferRun": grpc.unary_unary_rpc_method_handler( + servicer.DeleteTransferRun, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.DeleteTransferRunRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListTransferRuns": grpc.unary_unary_rpc_method_handler( + servicer.ListTransferRuns, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferRunsResponse.SerializeToString, + ), + "ListTransferLogs": grpc.unary_unary_rpc_method_handler( + servicer.ListTransferLogs, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.ListTransferLogsResponse.SerializeToString, + ), + "CheckValidCreds": grpc.unary_unary_rpc_method_handler( + servicer.CheckValidCreds, + request_deserializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2.CheckValidCredsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.bigquery.datatransfer.v1.DataTransferService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2.py b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2.py index d70308d8dac64..5869bb489c660 100644 --- a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2.py +++ b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/bigquery/datatransfer_v1/proto/transfer.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,75 +23,77 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigquery/datatransfer_v1/proto/transfer.proto', - package='google.cloud.bigquery.datatransfer.v1', - syntax='proto3', - serialized_pb=_b('\n:google/cloud/bigquery/datatransfer_v1/proto/transfer.proto\x12%google.cloud.bigquery.datatransfer.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xad\x03\n\x0eTransferConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x16\x64\x65stination_dataset_id\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x16\n\x0e\x64\x61ta_source_id\x18\x05 \x01(\t\x12\'\n\x06params\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08schedule\x18\x07 \x01(\t\x12 \n\x18\x64\x61ta_refresh_window_days\x18\x0c \x01(\x05\x12\x10\n\x08\x64isabled\x18\r \x01(\x08\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rnext_run_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x05state\x18\n \x01(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferState\x12\x0f\n\x07user_id\x18\x0b \x01(\x03\x12\x16\n\x0e\x64\x61taset_region\x18\x0e \x01(\t\"\xfe\x03\n\x0bTransferRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08run_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x0c\x65rror_status\x18\x15 \x01(\x0b\x32\x12.google.rpc.Status\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x06params\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1e\n\x16\x64\x65stination_dataset_id\x18\x02 \x01(\t\x12\x16\n\x0e\x64\x61ta_source_id\x18\x07 \x01(\t\x12\x43\n\x05state\x18\x08 \x01(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferState\x12\x0f\n\x07user_id\x18\x0b \x01(\x03\x12\x10\n\x08schedule\x18\x0c \x01(\t\"\x8a\x02\n\x0fTransferMessage\x12\x30\n\x0cmessage_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12X\n\x08severity\x18\x02 \x01(\x0e\x32\x46.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity\x12\x14\n\x0cmessage_text\x18\x03 \x01(\t\"U\n\x0fMessageSeverity\x12 \n\x1cMESSAGE_SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03*G\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41TCH\x10\x01\x12\r\n\tSTREAMING\x10\x02*s\n\rTransferState\x12\x1e\n\x1aTRANSFER_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\r\n\tCANCELLED\x10\x06\x42\xe7\x01\n)com.google.cloud.bigquery.datatransfer.v1B\rTransferProtoP\x01ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\xa2\x02\x05GCBDT\xaa\x02%Google.Cloud.BigQuery.DataTransfer.V1\xca\x02%Google\\Cloud\\BigQuery\\DataTransfer\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/bigquery/datatransfer_v1/proto/transfer.proto", + package="google.cloud.bigquery.datatransfer.v1", + syntax="proto3", + serialized_pb=_b( + '\n:google/cloud/bigquery/datatransfer_v1/proto/transfer.proto\x12%google.cloud.bigquery.datatransfer.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xad\x03\n\x0eTransferConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x16\x64\x65stination_dataset_id\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x16\n\x0e\x64\x61ta_source_id\x18\x05 \x01(\t\x12\'\n\x06params\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08schedule\x18\x07 \x01(\t\x12 \n\x18\x64\x61ta_refresh_window_days\x18\x0c \x01(\x05\x12\x10\n\x08\x64isabled\x18\r \x01(\x08\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rnext_run_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x05state\x18\n \x01(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferState\x12\x0f\n\x07user_id\x18\x0b \x01(\x03\x12\x16\n\x0e\x64\x61taset_region\x18\x0e \x01(\t"\xfe\x03\n\x0bTransferRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08run_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x0c\x65rror_status\x18\x15 \x01(\x0b\x32\x12.google.rpc.Status\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x06params\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1e\n\x16\x64\x65stination_dataset_id\x18\x02 \x01(\t\x12\x16\n\x0e\x64\x61ta_source_id\x18\x07 \x01(\t\x12\x43\n\x05state\x18\x08 \x01(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferState\x12\x0f\n\x07user_id\x18\x0b \x01(\x03\x12\x10\n\x08schedule\x18\x0c \x01(\t"\x8a\x02\n\x0fTransferMessage\x12\x30\n\x0cmessage_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12X\n\x08severity\x18\x02 \x01(\x0e\x32\x46.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity\x12\x14\n\x0cmessage_text\x18\x03 \x01(\t"U\n\x0fMessageSeverity\x12 \n\x1cMESSAGE_SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03*G\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41TCH\x10\x01\x12\r\n\tSTREAMING\x10\x02*s\n\rTransferState\x12\x1e\n\x1aTRANSFER_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\r\n\tCANCELLED\x10\x06\x42\xe7\x01\n)com.google.cloud.bigquery.datatransfer.v1B\rTransferProtoP\x01ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\xa2\x02\x05GCBDT\xaa\x02%Google.Cloud.BigQuery.DataTransfer.V1\xca\x02%Google\\Cloud\\BigQuery\\DataTransfer\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _TRANSFERTYPE = _descriptor.EnumDescriptor( - name='TransferType', - full_name='google.cloud.bigquery.datatransfer.v1.TransferType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TRANSFER_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BATCH', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STREAMING', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1433, - serialized_end=1504, + name="TransferType", + full_name="google.cloud.bigquery.datatransfer.v1.TransferType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TRANSFER_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BATCH", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STREAMING", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1433, + serialized_end=1504, ) _sym_db.RegisterEnumDescriptor(_TRANSFERTYPE) TransferType = enum_type_wrapper.EnumTypeWrapper(_TRANSFERTYPE) _TRANSFERSTATE = _descriptor.EnumDescriptor( - name='TransferState', - full_name='google.cloud.bigquery.datatransfer.v1.TransferState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TRANSFER_STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUCCEEDED', index=3, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FAILED', index=4, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELLED', index=5, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1506, - serialized_end=1621, + name="TransferState", + full_name="google.cloud.bigquery.datatransfer.v1.TransferState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TRANSFER_STATE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUCCEEDED", index=3, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FAILED", index=4, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", index=5, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1506, + serialized_end=1621, ) _sym_db.RegisterEnumDescriptor(_TRANSFERSTATE) @@ -106,338 +110,671 @@ _TRANSFERMESSAGE_MESSAGESEVERITY = _descriptor.EnumDescriptor( - name='MessageSeverity', - full_name='google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MESSAGE_SEVERITY_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INFO', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WARNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1346, - serialized_end=1431, + name="MessageSeverity", + full_name="google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="MESSAGE_SEVERITY_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="INFO", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WARNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1346, + serialized_end=1431, ) _sym_db.RegisterEnumDescriptor(_TRANSFERMESSAGE_MESSAGESEVERITY) _TRANSFERCONFIG = _descriptor.Descriptor( - name='TransferConfig', - full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='destination_dataset_id', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.destination_dataset_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.display_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_source_id', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.data_source_id', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='params', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.params', index=4, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.schedule', index=5, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_refresh_window_days', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.data_refresh_window_days', index=6, - number=12, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='disabled', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.disabled', index=7, - number=13, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.update_time', index=8, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_run_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.next_run_time', index=9, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.state', index=10, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_id', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.user_id', index=11, - number=11, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataset_region', full_name='google.cloud.bigquery.datatransfer.v1.TransferConfig.dataset_region', index=12, - number=14, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=220, - serialized_end=649, + name="TransferConfig", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="destination_dataset_id", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.destination_dataset_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.display_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data_source_id", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.data_source_id", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="params", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.params", + index=4, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.schedule", + index=5, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data_refresh_window_days", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.data_refresh_window_days", + index=6, + number=12, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="disabled", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.disabled", + index=7, + number=13, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.update_time", + index=8, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_run_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.next_run_time", + index=9, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.state", + index=10, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_id", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.user_id", + index=11, + number=11, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dataset_region", + full_name="google.cloud.bigquery.datatransfer.v1.TransferConfig.dataset_region", + index=12, + number=14, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=220, + serialized_end=649, ) _TRANSFERRUN = _descriptor.Descriptor( - name='TransferRun', - full_name='google.cloud.bigquery.datatransfer.v1.TransferRun', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.schedule_time', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='run_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.run_time', index=2, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error_status', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.error_status', index=3, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.start_time', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.end_time', index=5, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.update_time', index=6, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='params', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.params', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='destination_dataset_id', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.destination_dataset_id', index=8, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_source_id', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.data_source_id', index=9, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.state', index=10, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_id', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.user_id', index=11, - number=11, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule', full_name='google.cloud.bigquery.datatransfer.v1.TransferRun.schedule', index=12, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=652, - serialized_end=1162, + name="TransferRun", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.schedule_time", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="run_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.run_time", + index=2, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error_status", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.error_status", + index=3, + number=21, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.start_time", + index=4, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.end_time", + index=5, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.update_time", + index=6, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="params", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.params", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="destination_dataset_id", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.destination_dataset_id", + index=8, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data_source_id", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.data_source_id", + index=9, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.state", + index=10, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_id", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.user_id", + index=11, + number=11, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule", + full_name="google.cloud.bigquery.datatransfer.v1.TransferRun.schedule", + index=12, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=652, + serialized_end=1162, ) _TRANSFERMESSAGE = _descriptor.Descriptor( - name='TransferMessage', - full_name='google.cloud.bigquery.datatransfer.v1.TransferMessage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='message_time', full_name='google.cloud.bigquery.datatransfer.v1.TransferMessage.message_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='severity', full_name='google.cloud.bigquery.datatransfer.v1.TransferMessage.severity', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_text', full_name='google.cloud.bigquery.datatransfer.v1.TransferMessage.message_text', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TRANSFERMESSAGE_MESSAGESEVERITY, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1165, - serialized_end=1431, + name="TransferMessage", + full_name="google.cloud.bigquery.datatransfer.v1.TransferMessage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="message_time", + full_name="google.cloud.bigquery.datatransfer.v1.TransferMessage.message_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="severity", + full_name="google.cloud.bigquery.datatransfer.v1.TransferMessage.severity", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message_text", + full_name="google.cloud.bigquery.datatransfer.v1.TransferMessage.message_text", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_TRANSFERMESSAGE_MESSAGESEVERITY], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1165, + serialized_end=1431, ) -_TRANSFERCONFIG.fields_by_name['params'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_TRANSFERCONFIG.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERCONFIG.fields_by_name['next_run_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERCONFIG.fields_by_name['state'].enum_type = _TRANSFERSTATE -_TRANSFERRUN.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERRUN.fields_by_name['run_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERRUN.fields_by_name['error_status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_TRANSFERRUN.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERRUN.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERRUN.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERRUN.fields_by_name['params'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_TRANSFERRUN.fields_by_name['state'].enum_type = _TRANSFERSTATE -_TRANSFERMESSAGE.fields_by_name['message_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSFERMESSAGE.fields_by_name['severity'].enum_type = _TRANSFERMESSAGE_MESSAGESEVERITY +_TRANSFERCONFIG.fields_by_name[ + "params" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_TRANSFERCONFIG.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERCONFIG.fields_by_name[ + "next_run_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERCONFIG.fields_by_name["state"].enum_type = _TRANSFERSTATE +_TRANSFERRUN.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERRUN.fields_by_name[ + "run_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERRUN.fields_by_name[ + "error_status" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_TRANSFERRUN.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERRUN.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERRUN.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERRUN.fields_by_name[ + "params" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_TRANSFERRUN.fields_by_name["state"].enum_type = _TRANSFERSTATE +_TRANSFERMESSAGE.fields_by_name[ + "message_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSFERMESSAGE.fields_by_name["severity"].enum_type = _TRANSFERMESSAGE_MESSAGESEVERITY _TRANSFERMESSAGE_MESSAGESEVERITY.containing_type = _TRANSFERMESSAGE -DESCRIPTOR.message_types_by_name['TransferConfig'] = _TRANSFERCONFIG -DESCRIPTOR.message_types_by_name['TransferRun'] = _TRANSFERRUN -DESCRIPTOR.message_types_by_name['TransferMessage'] = _TRANSFERMESSAGE -DESCRIPTOR.enum_types_by_name['TransferType'] = _TRANSFERTYPE -DESCRIPTOR.enum_types_by_name['TransferState'] = _TRANSFERSTATE +DESCRIPTOR.message_types_by_name["TransferConfig"] = _TRANSFERCONFIG +DESCRIPTOR.message_types_by_name["TransferRun"] = _TRANSFERRUN +DESCRIPTOR.message_types_by_name["TransferMessage"] = _TRANSFERMESSAGE +DESCRIPTOR.enum_types_by_name["TransferType"] = _TRANSFERTYPE +DESCRIPTOR.enum_types_by_name["TransferState"] = _TRANSFERSTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TransferConfig = _reflection.GeneratedProtocolMessageType('TransferConfig', (_message.Message,), dict( - DESCRIPTOR = _TRANSFERCONFIG, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.transfer_pb2' - , - __doc__ = """Represents a data transfer configuration. A transfer configuration +TransferConfig = _reflection.GeneratedProtocolMessageType( + "TransferConfig", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSFERCONFIG, + __module__="google.cloud.bigquery.datatransfer_v1.proto.transfer_pb2", + __doc__="""Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, ``destination_dataset_id`` specifies where data should be stored. When a new transfer configuration is created, the specified @@ -500,15 +837,18 @@ dataset_region: Output only. Region in which BigQuery dataset is located. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferConfig) + ), +) _sym_db.RegisterMessage(TransferConfig) -TransferRun = _reflection.GeneratedProtocolMessageType('TransferRun', (_message.Message,), dict( - DESCRIPTOR = _TRANSFERRUN, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.transfer_pb2' - , - __doc__ = """Represents a data transfer run. +TransferRun = _reflection.GeneratedProtocolMessageType( + "TransferRun", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSFERRUN, + __module__="google.cloud.bigquery.datatransfer_v1.proto.transfer_pb2", + __doc__="""Represents a data transfer run. Attributes: @@ -556,15 +896,18 @@ current load, so ``schedule_time`` doesn't always matches this. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferRun) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferRun) + ), +) _sym_db.RegisterMessage(TransferRun) -TransferMessage = _reflection.GeneratedProtocolMessageType('TransferMessage', (_message.Message,), dict( - DESCRIPTOR = _TRANSFERMESSAGE, - __module__ = 'google.cloud.bigquery.datatransfer_v1.proto.transfer_pb2' - , - __doc__ = """Represents a user facing message for a particular data transfer run. +TransferMessage = _reflection.GeneratedProtocolMessageType( + "TransferMessage", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSFERMESSAGE, + __module__="google.cloud.bigquery.datatransfer_v1.proto.transfer_pb2", + __doc__="""Represents a user facing message for a particular data transfer run. Attributes: @@ -575,11 +918,17 @@ message_text: Message text. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferMessage) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.TransferMessage) + ), +) _sym_db.RegisterMessage(TransferMessage) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n)com.google.cloud.bigquery.datatransfer.v1B\rTransferProtoP\001ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\242\002\005GCBDT\252\002%Google.Cloud.BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\BigQuery\\DataTransfer\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n)com.google.cloud.bigquery.datatransfer.v1B\rTransferProtoP\001ZQgoogle.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer\242\002\005GCBDT\252\002%Google.Cloud.BigQuery.DataTransfer.V1\312\002%Google\\Cloud\\BigQuery\\DataTransfer\\V1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2_grpc.py b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2_grpc.py +++ b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/transfer_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/types.py b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/types.py index 6967a4bc1ac11..c50c10371da2c 100644 --- a/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/types.py +++ b/bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/types.py @@ -45,10 +45,7 @@ status_pb2, ] -_local_modules = [ - datatransfer_pb2, - transfer_pb2, -] +_local_modules = [datatransfer_pb2, transfer_pb2] names = [] @@ -58,7 +55,7 @@ names.append(name) for module in _local_modules: for name, message in get_messages(module).items(): - message.__module__ = 'google.cloud.bigquery_datatransfer_v1.types' + message.__module__ = "google.cloud.bigquery_datatransfer_v1.types" setattr(sys.modules[__name__], name, message) names.append(name) diff --git a/bigquery_datatransfer/tests/system/gapic/v1/test_system_data_transfer_service_v1.py b/bigquery_datatransfer/tests/system/gapic/v1/test_system_data_transfer_service_v1.py index b42df5377e2ce..7ead2b8a35957 100644 --- a/bigquery_datatransfer/tests/system/gapic/v1/test_system_data_transfer_service_v1.py +++ b/bigquery_datatransfer/tests/system/gapic/v1/test_system_data_transfer_service_v1.py @@ -23,7 +23,7 @@ class TestSystemDataTransferService(object): def test_list_data_sources(self): - project_id = os.environ['PROJECT_ID'] + project_id = os.environ["PROJECT_ID"] client = bigquery_datatransfer_v1.DataTransferServiceClient() parent = client.project_path(project_id) diff --git a/bigquery_datatransfer/tests/unit/gapic/v1/test_data_transfer_service_client_v1.py b/bigquery_datatransfer/tests/unit/gapic/v1/test_data_transfer_service_client_v1.py index abadfa21cc817..c0cce13a9de41 100644 --- a/bigquery_datatransfer/tests/unit/gapic/v1/test_data_transfer_service_client_v1.py +++ b/bigquery_datatransfer/tests/unit/gapic/v1/test_data_transfer_service_client_v1.py @@ -54,10 +54,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -68,44 +65,43 @@ class CustomException(Exception): class TestDataTransferServiceClient(object): def test_get_data_source(self): # Setup Expected Response - name_2 = 'name2-1052831874' - data_source_id = 'dataSourceId-1015796374' - display_name = 'displayName1615086568' - description = 'description-1724546052' - client_id = 'clientId-1904089585' + name_2 = "name2-1052831874" + data_source_id = "dataSourceId-1015796374" + display_name = "displayName1615086568" + description = "description-1724546052" + client_id = "clientId-1904089585" supports_multiple_transfers = True update_deadline_seconds = 991471694 - default_schedule = 'defaultSchedule-800168235' + default_schedule = "defaultSchedule-800168235" supports_custom_schedule = True - help_url = 'helpUrl-789431439' + help_url = "helpUrl-789431439" default_data_refresh_window_days = 1804935157 manual_runs_disabled = True expected_response = { - 'name': name_2, - 'data_source_id': data_source_id, - 'display_name': display_name, - 'description': description, - 'client_id': client_id, - 'supports_multiple_transfers': supports_multiple_transfers, - 'update_deadline_seconds': update_deadline_seconds, - 'default_schedule': default_schedule, - 'supports_custom_schedule': supports_custom_schedule, - 'help_url': help_url, - 'default_data_refresh_window_days': - default_data_refresh_window_days, - 'manual_runs_disabled': manual_runs_disabled + "name": name_2, + "data_source_id": data_source_id, + "display_name": display_name, + "description": description, + "client_id": client_id, + "supports_multiple_transfers": supports_multiple_transfers, + "update_deadline_seconds": update_deadline_seconds, + "default_schedule": default_schedule, + "supports_custom_schedule": supports_custom_schedule, + "help_url": help_url, + "default_data_refresh_window_days": default_data_refresh_window_days, + "manual_runs_disabled": manual_runs_disabled, } expected_response = datatransfer_pb2.DataSource(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - name = client.project_data_source_path('[PROJECT]', '[DATA_SOURCE]') + name = client.project_data_source_path("[PROJECT]", "[DATA_SOURCE]") response = client.get_data_source(name) assert expected_response == response @@ -118,38 +114,39 @@ def test_get_data_source(self): def test_get_data_source_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - name = client.project_data_source_path('[PROJECT]', '[DATA_SOURCE]') + name = client.project_data_source_path("[PROJECT]", "[DATA_SOURCE]") with pytest.raises(CustomException): client.get_data_source(name) def test_list_data_sources(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" data_sources_element = {} data_sources = [data_sources_element] expected_response = { - 'next_page_token': next_page_token, - 'data_sources': data_sources + "next_page_token": next_page_token, + "data_sources": data_sources, } expected_response = datatransfer_pb2.ListDataSourcesResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") paged_list_response = client.list_data_sources(parent) resources = list(paged_list_response) @@ -158,20 +155,19 @@ def test_list_data_sources(self): assert expected_response.data_sources[0] == resources[0] assert len(channel.requests) == 1 - expected_request = datatransfer_pb2.ListDataSourcesRequest( - parent=parent) + expected_request = datatransfer_pb2.ListDataSourcesRequest(parent=parent) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_data_sources_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") paged_list_response = client.list_data_sources(parent) with pytest.raises(CustomException): @@ -179,37 +175,37 @@ def test_list_data_sources_exception(self): def test_create_transfer_config(self): # Setup Expected Response - name = 'name3373707' - destination_dataset_id = 'destinationDatasetId1541564179' - display_name = 'displayName1615086568' - data_source_id = 'dataSourceId-1015796374' - schedule = 'schedule-697920873' + name = "name3373707" + destination_dataset_id = "destinationDatasetId1541564179" + display_name = "displayName1615086568" + data_source_id = "dataSourceId-1015796374" + schedule = "schedule-697920873" data_refresh_window_days = 327632845 disabled = True user_id = 147132913 - dataset_region = 'datasetRegion959248539' + dataset_region = "datasetRegion959248539" expected_response = { - 'name': name, - 'destination_dataset_id': destination_dataset_id, - 'display_name': display_name, - 'data_source_id': data_source_id, - 'schedule': schedule, - 'data_refresh_window_days': data_refresh_window_days, - 'disabled': disabled, - 'user_id': user_id, - 'dataset_region': dataset_region + "name": name, + "destination_dataset_id": destination_dataset_id, + "display_name": display_name, + "data_source_id": data_source_id, + "schedule": schedule, + "data_refresh_window_days": data_refresh_window_days, + "disabled": disabled, + "user_id": user_id, + "dataset_region": dataset_region, } expected_response = transfer_pb2.TransferConfig(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") transfer_config = {} response = client.create_transfer_config(parent, transfer_config) @@ -217,20 +213,21 @@ def test_create_transfer_config(self): assert len(channel.requests) == 1 expected_request = datatransfer_pb2.CreateTransferConfigRequest( - parent=parent, transfer_config=transfer_config) + parent=parent, transfer_config=transfer_config + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_create_transfer_config_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") transfer_config = {} with pytest.raises(CustomException): @@ -238,31 +235,31 @@ def test_create_transfer_config_exception(self): def test_update_transfer_config(self): # Setup Expected Response - name = 'name3373707' - destination_dataset_id = 'destinationDatasetId1541564179' - display_name = 'displayName1615086568' - data_source_id = 'dataSourceId-1015796374' - schedule = 'schedule-697920873' + name = "name3373707" + destination_dataset_id = "destinationDatasetId1541564179" + display_name = "displayName1615086568" + data_source_id = "dataSourceId-1015796374" + schedule = "schedule-697920873" data_refresh_window_days = 327632845 disabled = True user_id = 147132913 - dataset_region = 'datasetRegion959248539' + dataset_region = "datasetRegion959248539" expected_response = { - 'name': name, - 'destination_dataset_id': destination_dataset_id, - 'display_name': display_name, - 'data_source_id': data_source_id, - 'schedule': schedule, - 'data_refresh_window_days': data_refresh_window_days, - 'disabled': disabled, - 'user_id': user_id, - 'dataset_region': dataset_region + "name": name, + "destination_dataset_id": destination_dataset_id, + "display_name": display_name, + "data_source_id": data_source_id, + "schedule": schedule, + "data_refresh_window_days": data_refresh_window_days, + "disabled": disabled, + "user_id": user_id, + "dataset_region": dataset_region, } expected_response = transfer_pb2.TransferConfig(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() @@ -276,14 +273,15 @@ def test_update_transfer_config(self): assert len(channel.requests) == 1 expected_request = datatransfer_pb2.UpdateTransferConfigRequest( - transfer_config=transfer_config, update_mask=update_mask) + transfer_config=transfer_config, update_mask=update_mask + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_update_transfer_config_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() @@ -297,72 +295,68 @@ def test_update_transfer_config_exception(self): def test_delete_transfer_config(self): channel = ChannelStub() - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - name = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + name = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") client.delete_transfer_config(name) assert len(channel.requests) == 1 - expected_request = datatransfer_pb2.DeleteTransferConfigRequest( - name=name) + expected_request = datatransfer_pb2.DeleteTransferConfigRequest(name=name) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_delete_transfer_config_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - name = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + name = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") with pytest.raises(CustomException): client.delete_transfer_config(name) def test_get_transfer_config(self): # Setup Expected Response - name_2 = 'name2-1052831874' - destination_dataset_id = 'destinationDatasetId1541564179' - display_name = 'displayName1615086568' - data_source_id = 'dataSourceId-1015796374' - schedule = 'schedule-697920873' + name_2 = "name2-1052831874" + destination_dataset_id = "destinationDatasetId1541564179" + display_name = "displayName1615086568" + data_source_id = "dataSourceId-1015796374" + schedule = "schedule-697920873" data_refresh_window_days = 327632845 disabled = True user_id = 147132913 - dataset_region = 'datasetRegion959248539' + dataset_region = "datasetRegion959248539" expected_response = { - 'name': name_2, - 'destination_dataset_id': destination_dataset_id, - 'display_name': display_name, - 'data_source_id': data_source_id, - 'schedule': schedule, - 'data_refresh_window_days': data_refresh_window_days, - 'disabled': disabled, - 'user_id': user_id, - 'dataset_region': dataset_region + "name": name_2, + "destination_dataset_id": destination_dataset_id, + "display_name": display_name, + "data_source_id": data_source_id, + "schedule": schedule, + "data_refresh_window_days": data_refresh_window_days, + "disabled": disabled, + "user_id": user_id, + "dataset_region": dataset_region, } expected_response = transfer_pb2.TransferConfig(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - name = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + name = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") response = client.get_transfer_config(name) assert expected_response == response @@ -375,39 +369,39 @@ def test_get_transfer_config(self): def test_get_transfer_config_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - name = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + name = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") with pytest.raises(CustomException): client.get_transfer_config(name) def test_list_transfer_configs(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" transfer_configs_element = {} transfer_configs = [transfer_configs_element] expected_response = { - 'next_page_token': next_page_token, - 'transfer_configs': transfer_configs + "next_page_token": next_page_token, + "transfer_configs": transfer_configs, } expected_response = datatransfer_pb2.ListTransferConfigsResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") paged_list_response = client.list_transfer_configs(parent) resources = list(paged_list_response) @@ -416,20 +410,19 @@ def test_list_transfer_configs(self): assert expected_response.transfer_configs[0] == resources[0] assert len(channel.requests) == 1 - expected_request = datatransfer_pb2.ListTransferConfigsRequest( - parent=parent) + expected_request = datatransfer_pb2.ListTransferConfigsRequest(parent=parent) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_transfer_configs_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - parent = client.project_path('[PROJECT]') + parent = client.project_path("[PROJECT]") paged_list_response = client.list_transfer_configs(parent) with pytest.raises(CustomException): @@ -439,18 +432,18 @@ def test_schedule_transfer_runs(self): # Setup Expected Response expected_response = {} expected_response = datatransfer_pb2.ScheduleTransferRunsResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - parent = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + parent = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") start_time = {} end_time = {} @@ -459,21 +452,21 @@ def test_schedule_transfer_runs(self): assert len(channel.requests) == 1 expected_request = datatransfer_pb2.ScheduleTransferRunsRequest( - parent=parent, start_time=start_time, end_time=end_time) + parent=parent, start_time=start_time, end_time=end_time + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_schedule_transfer_runs_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - parent = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + parent = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") start_time = {} end_time = {} @@ -482,30 +475,29 @@ def test_schedule_transfer_runs_exception(self): def test_get_transfer_run(self): # Setup Expected Response - name_2 = 'name2-1052831874' - destination_dataset_id = 'destinationDatasetId1541564179' - data_source_id = 'dataSourceId-1015796374' + name_2 = "name2-1052831874" + destination_dataset_id = "destinationDatasetId1541564179" + data_source_id = "dataSourceId-1015796374" user_id = 147132913 - schedule = 'schedule-697920873' + schedule = "schedule-697920873" expected_response = { - 'name': name_2, - 'destination_dataset_id': destination_dataset_id, - 'data_source_id': data_source_id, - 'user_id': user_id, - 'schedule': schedule + "name": name_2, + "destination_dataset_id": destination_dataset_id, + "data_source_id": data_source_id, + "user_id": user_id, + "schedule": schedule, } expected_response = transfer_pb2.TransferRun(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - name = client.project_run_path('[PROJECT]', '[TRANSFER_CONFIG]', - '[RUN]') + name = client.project_run_path("[PROJECT]", "[TRANSFER_CONFIG]", "[RUN]") response = client.get_transfer_run(name) assert expected_response == response @@ -518,28 +510,26 @@ def test_get_transfer_run(self): def test_get_transfer_run_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - name = client.project_run_path('[PROJECT]', '[TRANSFER_CONFIG]', - '[RUN]') + name = client.project_run_path("[PROJECT]", "[TRANSFER_CONFIG]", "[RUN]") with pytest.raises(CustomException): client.get_transfer_run(name) def test_delete_transfer_run(self): channel = ChannelStub() - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - name = client.project_run_path('[PROJECT]', '[TRANSFER_CONFIG]', - '[RUN]') + name = client.project_run_path("[PROJECT]", "[TRANSFER_CONFIG]", "[RUN]") client.delete_transfer_run(name) @@ -551,40 +541,39 @@ def test_delete_transfer_run(self): def test_delete_transfer_run_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - name = client.project_run_path('[PROJECT]', '[TRANSFER_CONFIG]', - '[RUN]') + name = client.project_run_path("[PROJECT]", "[TRANSFER_CONFIG]", "[RUN]") with pytest.raises(CustomException): client.delete_transfer_run(name) def test_list_transfer_runs(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" transfer_runs_element = {} transfer_runs = [transfer_runs_element] expected_response = { - 'next_page_token': next_page_token, - 'transfer_runs': transfer_runs + "next_page_token": next_page_token, + "transfer_runs": transfer_runs, } expected_response = datatransfer_pb2.ListTransferRunsResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - parent = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + parent = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") paged_list_response = client.list_transfer_runs(parent) resources = list(paged_list_response) @@ -593,21 +582,19 @@ def test_list_transfer_runs(self): assert expected_response.transfer_runs[0] == resources[0] assert len(channel.requests) == 1 - expected_request = datatransfer_pb2.ListTransferRunsRequest( - parent=parent) + expected_request = datatransfer_pb2.ListTransferRunsRequest(parent=parent) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_transfer_runs_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - parent = client.project_transfer_config_path('[PROJECT]', - '[TRANSFER_CONFIG]') + parent = client.project_transfer_config_path("[PROJECT]", "[TRANSFER_CONFIG]") paged_list_response = client.list_transfer_runs(parent) with pytest.raises(CustomException): @@ -615,26 +602,26 @@ def test_list_transfer_runs_exception(self): def test_list_transfer_logs(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" transfer_messages_element = {} transfer_messages = [transfer_messages_element] expected_response = { - 'next_page_token': next_page_token, - 'transfer_messages': transfer_messages + "next_page_token": next_page_token, + "transfer_messages": transfer_messages, } expected_response = datatransfer_pb2.ListTransferLogsResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - parent = client.project_run_path('[PROJECT]', '[TRANSFER_CONFIG]', - '[RUN]') + parent = client.project_run_path("[PROJECT]", "[TRANSFER_CONFIG]", "[RUN]") paged_list_response = client.list_transfer_logs(parent) resources = list(paged_list_response) @@ -643,21 +630,19 @@ def test_list_transfer_logs(self): assert expected_response.transfer_messages[0] == resources[0] assert len(channel.requests) == 1 - expected_request = datatransfer_pb2.ListTransferLogsRequest( - parent=parent) + expected_request = datatransfer_pb2.ListTransferLogsRequest(parent=parent) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_transfer_logs_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - parent = client.project_run_path('[PROJECT]', '[TRANSFER_CONFIG]', - '[RUN]') + parent = client.project_run_path("[PROJECT]", "[TRANSFER_CONFIG]", "[RUN]") paged_list_response = client.list_transfer_logs(parent) with pytest.raises(CustomException): @@ -666,19 +651,20 @@ def test_list_transfer_logs_exception(self): def test_check_valid_creds(self): # Setup Expected Response has_valid_creds = False - expected_response = {'has_valid_creds': has_valid_creds} + expected_response = {"has_valid_creds": has_valid_creds} expected_response = datatransfer_pb2.CheckValidCredsResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup Request - name = client.project_data_source_path('[PROJECT]', '[DATA_SOURCE]') + name = client.project_data_source_path("[PROJECT]", "[DATA_SOURCE]") response = client.check_valid_creds(name) assert expected_response == response @@ -691,13 +677,13 @@ def test_check_valid_creds(self): def test_check_valid_creds_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigquery_datatransfer_v1.DataTransferServiceClient() # Setup request - name = client.project_data_source_path('[PROJECT]', '[DATA_SOURCE]') + name = client.project_data_source_path("[PROJECT]", "[DATA_SOURCE]") with pytest.raises(CustomException): client.check_valid_creds(name) diff --git a/bigquery_storage/.flake8 b/bigquery_storage/.flake8 new file mode 100644 index 0000000000000..61766fa84d02d --- /dev/null +++ b/bigquery_storage/.flake8 @@ -0,0 +1,13 @@ +[flake8] +ignore = E203, E266, E501, W503 +exclude = + # Exclude generated code. + **/proto/** + **/gapic/** + *_pb2.py + + # Standard linting exemptions. + __pycache__, + .git, + *.pyc, + conf.py diff --git a/bigquery_storage/docs/conf.py b/bigquery_storage/docs/conf.py index 50efafe7cfbdb..b5f0cbb17429a 100644 --- a/bigquery_storage/docs/conf.py +++ b/bigquery_storage/docs/conf.py @@ -18,50 +18,50 @@ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -sys.path.insert(0, os.path.abspath('..')) +sys.path.insert(0, os.path.abspath("..")) -__version__ = '0.1.0' +__version__ = "0.1.0" # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' +# needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.autosummary', - 'sphinx.ext.intersphinx', - 'sphinx.ext.coverage', - 'sphinx.ext.napoleon', - 'sphinx.ext.viewcode', + "sphinx.ext.autodoc", + "sphinx.ext.autosummary", + "sphinx.ext.intersphinx", + "sphinx.ext.coverage", + "sphinx.ext.napoleon", + "sphinx.ext.viewcode", ] # autodoc/autosummary flags -autoclass_content = 'both' -autodoc_default_flags = ['members'] +autoclass_content = "both" +autodoc_default_flags = ["members"] autosummary_generate = True # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = ["_templates"] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # source_suffix = ['.rst', '.md'] -source_suffix = '.rst' +source_suffix = ".rst" # The encoding of source files. -#source_encoding = 'utf-8-sig' +# source_encoding = 'utf-8-sig' # The master toctree document. -master_doc = 'index' +master_doc = "index" # General information about the project. -project = u'google-cloud-bigquerystorage' -copyright = u'2017, Google' -author = u'Google APIs' +project = u"google-cloud-bigquerystorage" +copyright = u"2017, Google" +author = u"Google APIs" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -70,7 +70,7 @@ # The full version, including alpha/beta/rc tags. release = __version__ # The short X.Y version. -version = '.'.join(release.split('.')[0:2]) +version = ".".join(release.split(".")[0:2]) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -81,37 +81,37 @@ # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: -#today = '' +# today = '' # Else, today_fmt is used as the format for a strftime call. -#today_fmt = '%B %d, %Y' +# today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -exclude_patterns = ['_build'] +exclude_patterns = ["_build"] # The reST default role (used for this markup: `text`) to use for all # documents. -#default_role = None +# default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True +# add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). -#add_module_names = True +# add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. -#show_authors = False +# show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = "sphinx" # A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] +# modindex_common_prefix = [] # If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False +# keep_warnings = False # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = True @@ -120,31 +120,31 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'sphinx_rtd_theme' +html_theme = "sphinx_rtd_theme" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -#html_theme_options = {} +# html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] +# html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". -#html_title = None +# html_title = None # A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None +# html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. -#html_logo = None +# html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -#html_favicon = None +# html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, @@ -154,78 +154,75 @@ # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied # directly to the root of the documentation. -#html_extra_path = [] +# html_extra_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. -#html_last_updated_fmt = '%b %d, %Y' +# html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. -#html_use_smartypants = True +# html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -#html_sidebars = {} +# html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. -#html_additional_pages = {} +# html_additional_pages = {} # If false, no module index is generated. -#html_domain_indices = True +# html_domain_indices = True # If false, no index is generated. -#html_use_index = True +# html_use_index = True # If true, the index is split into individual pages for each letter. -#html_split_index = False +# html_split_index = False # If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True +# html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True +# html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True +# html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. -#html_use_opensearch = '' +# html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None +# html_file_suffix = None # Language to be used for generating the HTML full-text search index. # Sphinx supports the following languages: # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' -#html_search_language = 'en' +# html_search_language = 'en' # A dictionary with options for the search language support, empty by default. # Now only 'ja' uses this config value -#html_search_options = {'type': 'default'} +# html_search_options = {'type': 'default'} # The name of a javascript file (relative to the configuration directory) that # implements a search results scorer. If empty, the default will be used. -#html_search_scorer = 'scorer.js' +# html_search_scorer = 'scorer.js' # Output file base name for HTML help builder. -htmlhelp_basename = 'google-cloud-bigquerystorage-doc' +htmlhelp_basename = "google-cloud-bigquerystorage-doc" # -- Options for LaTeX output --------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', - # The font size ('10pt', '11pt' or '12pt'). #'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. #'preamble': '', - # Latex figure (float) alignment #'figure_align': 'htbp', } @@ -234,39 +231,51 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'google-cloud-bigquerystorage.tex', - u'google-cloud-bigquerystorage Documentation', author, 'manual'), + ( + master_doc, + "google-cloud-bigquerystorage.tex", + u"google-cloud-bigquerystorage Documentation", + author, + "manual", + ) ] # The name of an image file (relative to this directory) to place at the top of # the title page. -#latex_logo = None +# latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. -#latex_use_parts = False +# latex_use_parts = False # If true, show page references after internal links. -#latex_show_pagerefs = False +# latex_show_pagerefs = False # If true, show URL addresses after external links. -#latex_show_urls = False +# latex_show_urls = False # Documents to append as an appendix to all manuals. -#latex_appendices = [] +# latex_appendices = [] # If false, no module index is generated. -#latex_domain_indices = True +# latex_domain_indices = True # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [(master_doc, 'google-cloud-bigquerystorage', - u'google-cloud-bigquerystorage Documentation', [author], 1)] +man_pages = [ + ( + master_doc, + "google-cloud-bigquerystorage", + u"google-cloud-bigquerystorage Documentation", + [author], + 1, + ) +] # If true, show URL addresses after external links. -#man_show_urls = False +# man_show_urls = False # -- Options for Texinfo output ------------------------------------------- @@ -274,30 +283,35 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'google-cloud-bigquerystorage', - u'google-cloud-bigquerystorage Documentation', author, - 'google-cloud-bigquerystorage', - 'GAPIC library for the {metadata.shortName} v1beta1 service', 'APIs'), + ( + master_doc, + "google-cloud-bigquerystorage", + u"google-cloud-bigquerystorage Documentation", + author, + "google-cloud-bigquerystorage", + "GAPIC library for the {metadata.shortName} v1beta1 service", + "APIs", + ) ] # Documents to append as an appendix to all manuals. -#texinfo_appendices = [] +# texinfo_appendices = [] # If false, no module index is generated. -#texinfo_domain_indices = True +# texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' +# texinfo_show_urls = 'footnote' # If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False +# texinfo_no_detailmenu = False # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - 'python': ('http://python.readthedocs.org/en/latest/', None), - 'gax': ('https://gax-python.readthedocs.org/en/latest/', None), - 'fastavro': ('https://fastavro.readthedocs.io/en/stable/', None), - 'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None), + "python": ("http://python.readthedocs.org/en/latest/", None), + "gax": ("https://gax-python.readthedocs.org/en/latest/", None), + "fastavro": ("https://fastavro.readthedocs.io/en/stable/", None), + "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), } # Napoleon settings diff --git a/bigquery_storage/google/__init__.py b/bigquery_storage/google/__init__.py index f65701dd143ff..7aa71bb4e2f1f 100644 --- a/bigquery_storage/google/__init__.py +++ b/bigquery_storage/google/__init__.py @@ -16,7 +16,9 @@ try: import pkg_resources + pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/bigquery_storage/google/cloud/__init__.py b/bigquery_storage/google/cloud/__init__.py index f65701dd143ff..7aa71bb4e2f1f 100644 --- a/bigquery_storage/google/cloud/__init__.py +++ b/bigquery_storage/google/cloud/__init__.py @@ -16,7 +16,9 @@ try: import pkg_resources + pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/bigquery_storage/google/cloud/bigquery_storage.py b/bigquery_storage/google/cloud/bigquery_storage.py index 7270e28853194..e938026c69c24 100644 --- a/bigquery_storage/google/cloud/bigquery_storage.py +++ b/bigquery_storage/google/cloud/bigquery_storage.py @@ -20,8 +20,4 @@ from google.cloud.bigquery_storage_v1beta1 import enums from google.cloud.bigquery_storage_v1beta1 import types -__all__ = ( - 'enums', - 'types', - 'BigQueryStorageClient', -) +__all__ = ("enums", "types", "BigQueryStorageClient") diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/__init__.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/__init__.py index b71f61049f683..e355a0f6b8a53 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/__init__.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/__init__.py @@ -17,7 +17,10 @@ from __future__ import absolute_import import pkg_resources -__version__ = pkg_resources.get_distribution('google-cloud-bigquery-storage').version # noqa + +__version__ = pkg_resources.get_distribution( + "google-cloud-bigquery-storage" +).version # noqa from google.cloud.bigquery_storage_v1beta1 import types from google.cloud.bigquery_storage_v1beta1 import client @@ -31,12 +34,10 @@ class BigQueryStorageClient(client.BigQueryStorageClient): __all__ = ( # google.cloud.bigquery_storage_v1beta1 - '__version__', - 'types', - + "__version__", + "types", # google.cloud.bigquery_storage_v1beta1.client - 'BigQueryStorageClient', - + "BigQueryStorageClient", # google.cloud.bigquery_storage_v1beta1.gapic - 'enums', + "enums", ) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/client.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/client.py index 75a34c37346e5..4f53a30550a85 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/client.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/client.py @@ -28,8 +28,8 @@ _SCOPES = ( - 'https://www.googleapis.com/auth/bigquery', - 'https://www.googleapis.com/auth/cloud-platform', + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform", ) @@ -39,11 +39,13 @@ class BigQueryStorageClient(big_query_storage_client.BigQueryStorageClient): The BigQuery storage API can be used to read data stored in BigQuery. """ - def read_rows(self, - read_position, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def read_rows( + self, + read_position, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Reads rows from the table in the format prescribed by the read session. Each response contains one or more table rows, up to a @@ -114,18 +116,11 @@ def read_rows(self, """ gapic_client = super(BigQueryStorageClient, self) stream = gapic_client.read_rows( - read_position, - retry=retry, - timeout=timeout, - metadata=metadata, + read_position, retry=retry, timeout=timeout, metadata=metadata ) return reader.ReadRowsStream( stream, gapic_client, read_position, - { - 'retry': retry, - 'timeout': timeout, - 'metadata': metadata, - }, + {"retry": retry, "timeout": timeout, "metadata": metadata}, ) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client.py index 9523923cec860..5085e8b68dd46 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client.py @@ -29,7 +29,9 @@ from google.cloud.bigquery_storage_v1beta1.gapic import big_query_storage_client_config from google.cloud.bigquery_storage_v1beta1.gapic import enums -from google.cloud.bigquery_storage_v1beta1.gapic.transports import big_query_storage_grpc_transport +from google.cloud.bigquery_storage_v1beta1.gapic.transports import ( + big_query_storage_grpc_transport, +) from google.cloud.bigquery_storage_v1beta1.proto import read_options_pb2 from google.cloud.bigquery_storage_v1beta1.proto import storage_pb2 from google.cloud.bigquery_storage_v1beta1.proto import storage_pb2_grpc @@ -37,7 +39,8 @@ from google.protobuf import empty_pb2 _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-bigquery-storage', ).version + "google-cloud-bigquery-storage" +).version class BigQueryStorageClient(object): @@ -47,12 +50,12 @@ class BigQueryStorageClient(object): The BigQuery storage API can be used to read data stored in BigQuery. """ - SERVICE_ADDRESS = 'bigquerystorage.googleapis.com:443' + SERVICE_ADDRESS = "bigquerystorage.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.cloud.bigquery.storage.v1beta1.BigQueryStorage' + _INTERFACE_NAME = "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -68,19 +71,20 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: BigQueryStorageClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -114,18 +118,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = big_query_storage_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -134,25 +139,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=big_query_storage_grpc_transport. - BigQueryStorageGrpcTransport, + default_class=big_query_storage_grpc_transport.BigQueryStorageGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = big_query_storage_grpc_transport.BigQueryStorageGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -162,7 +166,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -171,16 +176,18 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def create_read_session(self, - table_reference, - parent, - table_modifiers=None, - requested_streams=None, - read_options=None, - format_=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def create_read_session( + self, + table_reference, + parent, + table_modifiers=None, + requested_streams=None, + read_options=None, + format_=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates a new read session. A read session divides the contents of a BigQuery table into one or more streams, which can then be used to read @@ -252,16 +259,15 @@ def create_read_session(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'create_read_session' not in self._inner_api_calls: + if "create_read_session" not in self._inner_api_calls: self._inner_api_calls[ - 'create_read_session'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_read_session, - default_retry=self._method_configs['CreateReadSession']. - retry, - default_timeout=self._method_configs['CreateReadSession']. - timeout, - client_info=self._client_info, - ) + "create_read_session" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_read_session, + default_retry=self._method_configs["CreateReadSession"].retry, + default_timeout=self._method_configs["CreateReadSession"].timeout, + client_info=self._client_info, + ) request = storage_pb2.CreateReadSessionRequest( table_reference=table_reference, @@ -275,25 +281,29 @@ def create_read_session(self, metadata = [] metadata = list(metadata) try: - routing_header = [('table_reference.project_id', - table_reference.project_id), - ('table_reference.dataset_id', - table_reference.dataset_id)] + routing_header = [ + ("table_reference.project_id", table_reference.project_id), + ("table_reference.dataset_id", table_reference.dataset_id), + ] except AttributeError: pass else: routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( # pragma: no cover - routing_header) + routing_header + ) metadata.append(routing_metadata) # pragma: no cover - return self._inner_api_calls['create_read_session']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["create_read_session"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) - def read_rows(self, - read_position, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def read_rows( + self, + read_position, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Reads rows from the table in the format prescribed by the read session. Each response contains one or more table rows, up to a maximum of 10 MiB @@ -344,39 +354,42 @@ def read_rows(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'read_rows' not in self._inner_api_calls: + if "read_rows" not in self._inner_api_calls: self._inner_api_calls[ - 'read_rows'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.read_rows, - default_retry=self._method_configs['ReadRows'].retry, - default_timeout=self._method_configs['ReadRows'].timeout, - client_info=self._client_info, - ) + "read_rows" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.read_rows, + default_retry=self._method_configs["ReadRows"].retry, + default_timeout=self._method_configs["ReadRows"].timeout, + client_info=self._client_info, + ) - request = storage_pb2.ReadRowsRequest(read_position=read_position, ) + request = storage_pb2.ReadRowsRequest(read_position=read_position) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [('read_position.stream.name', - read_position.stream.name)] + routing_header = [("read_position.stream.name", read_position.stream.name)] except AttributeError: pass else: routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( # pragma: no cover - routing_header) + routing_header + ) metadata.append(routing_metadata) # pragma: no cover - return self._inner_api_calls['read_rows']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["read_rows"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) def batch_create_read_session_streams( - self, - session, - requested_streams, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + session, + requested_streams, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates additional streams for a ReadSession. This API can be used to dynamically adjust the parallelism of a batch processing task upwards by @@ -424,41 +437,47 @@ def batch_create_read_session_streams( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'batch_create_read_session_streams' not in self._inner_api_calls: + if "batch_create_read_session_streams" not in self._inner_api_calls: self._inner_api_calls[ - 'batch_create_read_session_streams'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.batch_create_read_session_streams, - default_retry=self. - _method_configs['BatchCreateReadSessionStreams'].retry, - default_timeout=self. - _method_configs['BatchCreateReadSessionStreams'].timeout, - client_info=self._client_info, - ) + "batch_create_read_session_streams" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.batch_create_read_session_streams, + default_retry=self._method_configs[ + "BatchCreateReadSessionStreams" + ].retry, + default_timeout=self._method_configs[ + "BatchCreateReadSessionStreams" + ].timeout, + client_info=self._client_info, + ) request = storage_pb2.BatchCreateReadSessionStreamsRequest( - session=session, - requested_streams=requested_streams, + session=session, requested_streams=requested_streams ) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [('session.name', session.name)] + routing_header = [("session.name", session.name)] except AttributeError: pass else: routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( # pragma: no cover - routing_header) + routing_header + ) metadata.append(routing_metadata) # pragma: no cover - return self._inner_api_calls['batch_create_read_session_streams']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["batch_create_read_session_streams"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) - def finalize_stream(self, - stream, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def finalize_stream( + self, + stream, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Triggers the graceful termination of a single stream in a ReadSession. This API can be used to dynamically adjust the parallelism of a batch processing @@ -507,37 +526,41 @@ def finalize_stream(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'finalize_stream' not in self._inner_api_calls: + if "finalize_stream" not in self._inner_api_calls: self._inner_api_calls[ - 'finalize_stream'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.finalize_stream, - default_retry=self._method_configs['FinalizeStream'].retry, - default_timeout=self._method_configs['FinalizeStream']. - timeout, - client_info=self._client_info, - ) + "finalize_stream" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.finalize_stream, + default_retry=self._method_configs["FinalizeStream"].retry, + default_timeout=self._method_configs["FinalizeStream"].timeout, + client_info=self._client_info, + ) - request = storage_pb2.FinalizeStreamRequest(stream=stream, ) + request = storage_pb2.FinalizeStreamRequest(stream=stream) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [('stream.name', stream.name)] + routing_header = [("stream.name", stream.name)] except AttributeError: pass else: routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( # pragma: no cover - routing_header) + routing_header + ) metadata.append(routing_metadata) # pragma: no cover - self._inner_api_calls['finalize_stream']( - request, retry=retry, timeout=timeout, metadata=metadata) + self._inner_api_calls["finalize_stream"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) - def split_read_stream(self, - original_stream, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def split_read_stream( + self, + original_stream, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Splits a given read stream into two Streams. These streams are referred to as the primary and the residual of the split. The original stream can @@ -588,30 +611,30 @@ def split_read_stream(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'split_read_stream' not in self._inner_api_calls: + if "split_read_stream" not in self._inner_api_calls: self._inner_api_calls[ - 'split_read_stream'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.split_read_stream, - default_retry=self._method_configs['SplitReadStream']. - retry, - default_timeout=self._method_configs['SplitReadStream']. - timeout, - client_info=self._client_info, - ) + "split_read_stream" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.split_read_stream, + default_retry=self._method_configs["SplitReadStream"].retry, + default_timeout=self._method_configs["SplitReadStream"].timeout, + client_info=self._client_info, + ) - request = storage_pb2.SplitReadStreamRequest( - original_stream=original_stream, ) + request = storage_pb2.SplitReadStreamRequest(original_stream=original_stream) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [('original_stream.name', original_stream.name)] + routing_header = [("original_stream.name", original_stream.name)] except AttributeError: pass else: routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( # pragma: no cover - routing_header) + routing_header + ) metadata.append(routing_metadata) # pragma: no cover - return self._inner_api_calls['split_read_stream']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["split_read_stream"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client_config.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client_config.py index d6357097836f2..3ac145619371f 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client_config.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client_config.py @@ -3,7 +3,7 @@ "google.cloud.bigquery.storage.v1beta1.BigQueryStorage": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] + "non_idempotent": [], }, "retry_params": { "default": { @@ -13,36 +13,36 @@ "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 + "total_timeout_millis": 600000, } }, "methods": { "CreateReadSession": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ReadRows": { "timeout_millis": 86400000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "BatchCreateReadSessionStreams": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "FinalizeStream": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SplitReadStream": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/enums.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/enums.py index fc6e52d2e6fa1..25bb2f20cb5ea 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/enums.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/enums.py @@ -27,5 +27,6 @@ class DataFormat(enum.IntEnum): AVRO (int): Avro is a standard open source row based file format. See https://avro.apache.org/ for more details. """ + DATA_FORMAT_UNSPECIFIED = 0 AVRO = 1 diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/transports/big_query_storage_grpc_transport.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/transports/big_query_storage_grpc_transport.py index 0d1ef594e1f5a..d82940ac53e73 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/transports/big_query_storage_grpc_transport.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/gapic/transports/big_query_storage_grpc_transport.py @@ -27,17 +27,20 @@ class BigQueryStorageGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. _OAUTH_SCOPES = ( - 'https://www.googleapis.com/auth/bigquery', - 'https://www.googleapis.com/auth/cloud-platform', + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform", ) - def __init__(self, - channel=None, - credentials=None, - address='bigquerystorage.googleapis.com:443'): + def __init__( + self, + channel=None, + credentials=None, + address="bigquerystorage.googleapis.com:443", + ): """Instantiate the transport class. Args: @@ -55,29 +58,25 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: # pragma: no cover raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: # pragma: no cover - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - 'big_query_storage_stub': - storage_pb2_grpc.BigQueryStorageStub(channel), + "big_query_storage_stub": storage_pb2_grpc.BigQueryStorageStub(channel) } @classmethod - def create_channel(cls, - address='bigquerystorage.googleapis.com:443', - credentials=None): + def create_channel( + cls, address="bigquerystorage.googleapis.com:443", credentials=None + ): """Create and return a gRPC channel object. Args: @@ -92,9 +91,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( # pragma: no cover - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -128,7 +125,7 @@ def create_read_session(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['big_query_storage_stub'].CreateReadSession + return self._stubs["big_query_storage_stub"].CreateReadSession @property def read_rows(self): @@ -149,7 +146,7 @@ def read_rows(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['big_query_storage_stub'].ReadRows + return self._stubs["big_query_storage_stub"].ReadRows @property def batch_create_read_session_streams(self): @@ -164,8 +161,7 @@ def batch_create_read_session_streams(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'big_query_storage_stub'].BatchCreateReadSessionStreams + return self._stubs["big_query_storage_stub"].BatchCreateReadSessionStreams @property def finalize_stream(self): @@ -191,7 +187,7 @@ def finalize_stream(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['big_query_storage_stub'].FinalizeStream + return self._stubs["big_query_storage_stub"].FinalizeStream @property def split_read_stream(self): @@ -216,4 +212,4 @@ def split_read_stream(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['big_query_storage_stub'].SplitReadStream + return self._stubs["big_query_storage_stub"].SplitReadStream diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2.py index 10a029a9cf141..fc30ba83f01b0 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2.py @@ -2,106 +2,135 @@ # source: google/cloud/bigquery/storage_v1beta1/proto/avro.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigquery/storage_v1beta1/proto/avro.proto', - package='google.cloud.bigquery.storage.v1beta1', - syntax='proto3', - serialized_pb=_b('\n6google/cloud/bigquery/storage_v1beta1/proto/avro.proto\x12%google.cloud.bigquery.storage.v1beta1\"\x1c\n\nAvroSchema\x12\x0e\n\x06schema\x18\x01 \x01(\t\"=\n\x08\x41vroRows\x12\x1e\n\x16serialized_binary_rows\x18\x01 \x01(\x0c\x12\x11\n\trow_count\x18\x02 \x01(\x03\x42\x84\x01\n)com.google.cloud.bigquery.storage.v1beta1B\tAvroProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3') + name="google/cloud/bigquery/storage_v1beta1/proto/avro.proto", + package="google.cloud.bigquery.storage.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n6google/cloud/bigquery/storage_v1beta1/proto/avro.proto\x12%google.cloud.bigquery.storage.v1beta1"\x1c\n\nAvroSchema\x12\x0e\n\x06schema\x18\x01 \x01(\t"=\n\x08\x41vroRows\x12\x1e\n\x16serialized_binary_rows\x18\x01 \x01(\x0c\x12\x11\n\trow_count\x18\x02 \x01(\x03\x42\x84\x01\n)com.google.cloud.bigquery.storage.v1beta1B\tAvroProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3' + ), ) - - _AVROSCHEMA = _descriptor.Descriptor( - name='AvroSchema', - full_name='google.cloud.bigquery.storage.v1beta1.AvroSchema', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='schema', full_name='google.cloud.bigquery.storage.v1beta1.AvroSchema.schema', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=97, - serialized_end=125, + name="AvroSchema", + full_name="google.cloud.bigquery.storage.v1beta1.AvroSchema", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="schema", + full_name="google.cloud.bigquery.storage.v1beta1.AvroSchema.schema", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=97, + serialized_end=125, ) _AVROROWS = _descriptor.Descriptor( - name='AvroRows', - full_name='google.cloud.bigquery.storage.v1beta1.AvroRows', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='serialized_binary_rows', full_name='google.cloud.bigquery.storage.v1beta1.AvroRows.serialized_binary_rows', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_count', full_name='google.cloud.bigquery.storage.v1beta1.AvroRows.row_count', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=127, - serialized_end=188, + name="AvroRows", + full_name="google.cloud.bigquery.storage.v1beta1.AvroRows", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="serialized_binary_rows", + full_name="google.cloud.bigquery.storage.v1beta1.AvroRows.serialized_binary_rows", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_count", + full_name="google.cloud.bigquery.storage.v1beta1.AvroRows.row_count", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=127, + serialized_end=188, ) -DESCRIPTOR.message_types_by_name['AvroSchema'] = _AVROSCHEMA -DESCRIPTOR.message_types_by_name['AvroRows'] = _AVROROWS +DESCRIPTOR.message_types_by_name["AvroSchema"] = _AVROSCHEMA +DESCRIPTOR.message_types_by_name["AvroRows"] = _AVROROWS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AvroSchema = _reflection.GeneratedProtocolMessageType('AvroSchema', (_message.Message,), dict( - DESCRIPTOR = _AVROSCHEMA, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.avro_pb2' - , - __doc__ = """Avro schema. +AvroSchema = _reflection.GeneratedProtocolMessageType( + "AvroSchema", + (_message.Message,), + dict( + DESCRIPTOR=_AVROSCHEMA, + __module__="google.cloud.bigquery.storage_v1beta1.proto.avro_pb2", + __doc__="""Avro schema. Attributes: @@ -109,15 +138,18 @@ Json serialized schema, as described at https://avro.apache.org/docs/1.8.1/spec.html """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroSchema) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroSchema) + ), +) _sym_db.RegisterMessage(AvroSchema) -AvroRows = _reflection.GeneratedProtocolMessageType('AvroRows', (_message.Message,), dict( - DESCRIPTOR = _AVROROWS, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.avro_pb2' - , - __doc__ = """Avro rows. +AvroRows = _reflection.GeneratedProtocolMessageType( + "AvroRows", + (_message.Message,), + dict( + DESCRIPTOR=_AVROROWS, + __module__="google.cloud.bigquery.storage_v1beta1.proto.avro_pb2", + __doc__="""Avro rows. Attributes: @@ -126,11 +158,17 @@ row_count: The count of rows in the returning block. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroRows) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroRows) + ), +) _sym_db.RegisterMessage(AvroRows) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n)com.google.cloud.bigquery.storage.v1beta1B\tAvroProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n)com.google.cloud.bigquery.storage.v1beta1B\tAvroProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2_grpc.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2_grpc.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/avro_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2.py index 7a01b7593c51f..2c3590b5f6edf 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2.py @@ -2,74 +2,95 @@ # source: google/cloud/bigquery/storage_v1beta1/proto/read_options.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigquery/storage_v1beta1/proto/read_options.proto', - package='google.cloud.bigquery.storage.v1beta1', - syntax='proto3', - serialized_pb=_b('\n>google/cloud/bigquery/storage_v1beta1/proto/read_options.proto\x12%google.cloud.bigquery.storage.v1beta1\"D\n\x10TableReadOptions\x12\x17\n\x0fselected_fields\x18\x01 \x03(\t\x12\x17\n\x0frow_restriction\x18\x02 \x01(\tBy\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3') + name="google/cloud/bigquery/storage_v1beta1/proto/read_options.proto", + package="google.cloud.bigquery.storage.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n>google/cloud/bigquery/storage_v1beta1/proto/read_options.proto\x12%google.cloud.bigquery.storage.v1beta1"D\n\x10TableReadOptions\x12\x17\n\x0fselected_fields\x18\x01 \x03(\t\x12\x17\n\x0frow_restriction\x18\x02 \x01(\tBy\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3' + ), ) - - _TABLEREADOPTIONS = _descriptor.Descriptor( - name='TableReadOptions', - full_name='google.cloud.bigquery.storage.v1beta1.TableReadOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='selected_fields', full_name='google.cloud.bigquery.storage.v1beta1.TableReadOptions.selected_fields', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_restriction', full_name='google.cloud.bigquery.storage.v1beta1.TableReadOptions.row_restriction', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=105, - serialized_end=173, + name="TableReadOptions", + full_name="google.cloud.bigquery.storage.v1beta1.TableReadOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="selected_fields", + full_name="google.cloud.bigquery.storage.v1beta1.TableReadOptions.selected_fields", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_restriction", + full_name="google.cloud.bigquery.storage.v1beta1.TableReadOptions.row_restriction", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=105, + serialized_end=173, ) -DESCRIPTOR.message_types_by_name['TableReadOptions'] = _TABLEREADOPTIONS +DESCRIPTOR.message_types_by_name["TableReadOptions"] = _TABLEREADOPTIONS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TableReadOptions = _reflection.GeneratedProtocolMessageType('TableReadOptions', (_message.Message,), dict( - DESCRIPTOR = _TABLEREADOPTIONS, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.read_options_pb2' - , - __doc__ = """Options dictating how we read a table. +TableReadOptions = _reflection.GeneratedProtocolMessageType( + "TableReadOptions", + (_message.Message,), + dict( + DESCRIPTOR=_TABLEREADOPTIONS, + __module__="google.cloud.bigquery.storage_v1beta1.proto.read_options_pb2", + __doc__="""Options dictating how we read a table. Attributes: @@ -86,11 +107,17 @@ constant value in SQL statement. Aggregates are not supported. Example: "a > DATE '2014-9-27' AND (b > 5 and C LIKE 'date')" """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReadOptions) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReadOptions) + ), +) _sym_db.RegisterMessage(TableReadOptions) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2_grpc.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2_grpc.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/read_options_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py index 4a11ee41c4464..a32d6f81fd17b 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2.py @@ -2,52 +2,66 @@ # source: google/cloud/bigquery/storage_v1beta1/proto/storage.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -from google.cloud.bigquery_storage_v1beta1.proto import avro_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2 -from google.cloud.bigquery_storage_v1beta1.proto import read_options_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_read__options__pb2 -from google.cloud.bigquery_storage_v1beta1.proto import table_reference_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2 +from google.cloud.bigquery_storage_v1beta1.proto import ( + avro_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2, +) +from google.cloud.bigquery_storage_v1beta1.proto import ( + read_options_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_read__options__pb2, +) +from google.cloud.bigquery_storage_v1beta1.proto import ( + table_reference_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigquery/storage_v1beta1/proto/storage.proto', - package='google.cloud.bigquery.storage.v1beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/bigquery/storage_v1beta1/proto/storage.proto\x12%google.cloud.bigquery.storage.v1beta1\x1a\x36google/cloud/bigquery/storage_v1beta1/proto/avro.proto\x1a>google/cloud/bigquery/storage_v1beta1/proto/read_options.proto\x1a\x41google/cloud/bigquery/storage_v1beta1/proto/table_reference.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\")\n\x06Stream\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\trow_count\x18\x02 \x01(\x03\"_\n\x0eStreamPosition\x12=\n\x06stream\x18\x01 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\x12\x0e\n\x06offset\x18\x02 \x01(\x03\"\x80\x03\n\x0bReadSession\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x0b\x61vro_schema\x18\x05 \x01(\x0b\x32\x31.google.cloud.bigquery.storage.v1beta1.AvroSchemaH\x00\x12>\n\x07streams\x18\x04 \x03(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\x12N\n\x0ftable_reference\x18\x07 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableReference\x12N\n\x0ftable_modifiers\x18\x08 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableModifiersB\x08\n\x06schema\"\xf7\x02\n\x18\x43reateReadSessionRequest\x12N\n\x0ftable_reference\x18\x01 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableReference\x12\x0e\n\x06parent\x18\x06 \x01(\t\x12N\n\x0ftable_modifiers\x18\x02 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableModifiers\x12\x19\n\x11requested_streams\x18\x03 \x01(\x05\x12M\n\x0cread_options\x18\x04 \x01(\x0b\x32\x37.google.cloud.bigquery.storage.v1beta1.TableReadOptions\x12\x41\n\x06\x66ormat\x18\x05 \x01(\x0e\x32\x31.google.cloud.bigquery.storage.v1beta1.DataFormat\"_\n\x0fReadRowsRequest\x12L\n\rread_position\x18\x01 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.StreamPosition\"+\n\x0cStreamStatus\x12\x1b\n\x13\x65stimated_row_count\x18\x01 \x01(\x03\"*\n\x0eThrottleStatus\x12\x18\n\x10throttle_percent\x18\x01 \x01(\x05\"\xf5\x01\n\x10ReadRowsResponse\x12\x44\n\tavro_rows\x18\x03 \x01(\x0b\x32/.google.cloud.bigquery.storage.v1beta1.AvroRowsH\x00\x12\x43\n\x06status\x18\x02 \x01(\x0b\x32\x33.google.cloud.bigquery.storage.v1beta1.StreamStatus\x12N\n\x0fthrottle_status\x18\x05 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.ThrottleStatusB\x06\n\x04rows\"\x86\x01\n$BatchCreateReadSessionStreamsRequest\x12\x43\n\x07session\x18\x01 \x01(\x0b\x32\x32.google.cloud.bigquery.storage.v1beta1.ReadSession\x12\x19\n\x11requested_streams\x18\x02 \x01(\x05\"g\n%BatchCreateReadSessionStreamsResponse\x12>\n\x07streams\x18\x01 \x03(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\"V\n\x15\x46inalizeStreamRequest\x12=\n\x06stream\x18\x02 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\"`\n\x16SplitReadStreamRequest\x12\x46\n\x0foriginal_stream\x18\x01 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\"\xa9\x01\n\x17SplitReadStreamResponse\x12\x45\n\x0eprimary_stream\x18\x01 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\x12G\n\x10remainder_stream\x18\x02 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream*3\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41VRO\x10\x01\x32\xdd\x05\n\x0f\x42igQueryStorage\x12\x8a\x01\n\x11\x43reateReadSession\x12?.google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest\x1a\x32.google.cloud.bigquery.storage.v1beta1.ReadSession\"\x00\x12\x7f\n\x08ReadRows\x12\x36.google.cloud.bigquery.storage.v1beta1.ReadRowsRequest\x1a\x37.google.cloud.bigquery.storage.v1beta1.ReadRowsResponse\"\x00\x30\x01\x12\xbc\x01\n\x1d\x42\x61tchCreateReadSessionStreams\x12K.google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest\x1aL.google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse\"\x00\x12h\n\x0e\x46inalizeStream\x12<.google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x92\x01\n\x0fSplitReadStream\x12=.google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest\x1a>.google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse\"\x00\x42y\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3') - , - dependencies=[google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2.DESCRIPTOR,google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_read__options__pb2.DESCRIPTOR,google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/bigquery/storage_v1beta1/proto/storage.proto", + package="google.cloud.bigquery.storage.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/bigquery/storage_v1beta1/proto/storage.proto\x12%google.cloud.bigquery.storage.v1beta1\x1a\x36google/cloud/bigquery/storage_v1beta1/proto/avro.proto\x1a>google/cloud/bigquery/storage_v1beta1/proto/read_options.proto\x1a\x41google/cloud/bigquery/storage_v1beta1/proto/table_reference.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto")\n\x06Stream\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\trow_count\x18\x02 \x01(\x03"_\n\x0eStreamPosition\x12=\n\x06stream\x18\x01 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\x12\x0e\n\x06offset\x18\x02 \x01(\x03"\x80\x03\n\x0bReadSession\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x0b\x61vro_schema\x18\x05 \x01(\x0b\x32\x31.google.cloud.bigquery.storage.v1beta1.AvroSchemaH\x00\x12>\n\x07streams\x18\x04 \x03(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\x12N\n\x0ftable_reference\x18\x07 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableReference\x12N\n\x0ftable_modifiers\x18\x08 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableModifiersB\x08\n\x06schema"\xf7\x02\n\x18\x43reateReadSessionRequest\x12N\n\x0ftable_reference\x18\x01 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableReference\x12\x0e\n\x06parent\x18\x06 \x01(\t\x12N\n\x0ftable_modifiers\x18\x02 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.TableModifiers\x12\x19\n\x11requested_streams\x18\x03 \x01(\x05\x12M\n\x0cread_options\x18\x04 \x01(\x0b\x32\x37.google.cloud.bigquery.storage.v1beta1.TableReadOptions\x12\x41\n\x06\x66ormat\x18\x05 \x01(\x0e\x32\x31.google.cloud.bigquery.storage.v1beta1.DataFormat"_\n\x0fReadRowsRequest\x12L\n\rread_position\x18\x01 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.StreamPosition"+\n\x0cStreamStatus\x12\x1b\n\x13\x65stimated_row_count\x18\x01 \x01(\x03"*\n\x0eThrottleStatus\x12\x18\n\x10throttle_percent\x18\x01 \x01(\x05"\xf5\x01\n\x10ReadRowsResponse\x12\x44\n\tavro_rows\x18\x03 \x01(\x0b\x32/.google.cloud.bigquery.storage.v1beta1.AvroRowsH\x00\x12\x43\n\x06status\x18\x02 \x01(\x0b\x32\x33.google.cloud.bigquery.storage.v1beta1.StreamStatus\x12N\n\x0fthrottle_status\x18\x05 \x01(\x0b\x32\x35.google.cloud.bigquery.storage.v1beta1.ThrottleStatusB\x06\n\x04rows"\x86\x01\n$BatchCreateReadSessionStreamsRequest\x12\x43\n\x07session\x18\x01 \x01(\x0b\x32\x32.google.cloud.bigquery.storage.v1beta1.ReadSession\x12\x19\n\x11requested_streams\x18\x02 \x01(\x05"g\n%BatchCreateReadSessionStreamsResponse\x12>\n\x07streams\x18\x01 \x03(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream"V\n\x15\x46inalizeStreamRequest\x12=\n\x06stream\x18\x02 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream"`\n\x16SplitReadStreamRequest\x12\x46\n\x0foriginal_stream\x18\x01 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream"\xa9\x01\n\x17SplitReadStreamResponse\x12\x45\n\x0eprimary_stream\x18\x01 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream\x12G\n\x10remainder_stream\x18\x02 \x01(\x0b\x32-.google.cloud.bigquery.storage.v1beta1.Stream*3\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41VRO\x10\x01\x32\xdd\x05\n\x0f\x42igQueryStorage\x12\x8a\x01\n\x11\x43reateReadSession\x12?.google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest\x1a\x32.google.cloud.bigquery.storage.v1beta1.ReadSession"\x00\x12\x7f\n\x08ReadRows\x12\x36.google.cloud.bigquery.storage.v1beta1.ReadRowsRequest\x1a\x37.google.cloud.bigquery.storage.v1beta1.ReadRowsResponse"\x00\x30\x01\x12\xbc\x01\n\x1d\x42\x61tchCreateReadSessionStreams\x12K.google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest\x1aL.google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse"\x00\x12h\n\x0e\x46inalizeStream\x12<.google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest\x1a\x16.google.protobuf.Empty"\x00\x12\x92\x01\n\x0fSplitReadStream\x12=.google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest\x1a>.google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse"\x00\x42y\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3' + ), + dependencies=[ + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_read__options__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _DATAFORMAT = _descriptor.EnumDescriptor( - name='DataFormat', - full_name='google.cloud.bigquery.storage.v1beta1.DataFormat', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='DATA_FORMAT_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AVRO', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2288, - serialized_end=2339, + name="DataFormat", + full_name="google.cloud.bigquery.storage.v1beta1.DataFormat", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="DATA_FORMAT_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AVRO", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2288, + serialized_end=2339, ) _sym_db.RegisterEnumDescriptor(_DATAFORMAT) @@ -56,574 +70,907 @@ AVRO = 1 - _STREAM = _descriptor.Descriptor( - name='Stream', - full_name='google.cloud.bigquery.storage.v1beta1.Stream', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.storage.v1beta1.Stream.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_count', full_name='google.cloud.bigquery.storage.v1beta1.Stream.row_count', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=349, - serialized_end=390, + name="Stream", + full_name="google.cloud.bigquery.storage.v1beta1.Stream", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.storage.v1beta1.Stream.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_count", + full_name="google.cloud.bigquery.storage.v1beta1.Stream.row_count", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=349, + serialized_end=390, ) _STREAMPOSITION = _descriptor.Descriptor( - name='StreamPosition', - full_name='google.cloud.bigquery.storage.v1beta1.StreamPosition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stream', full_name='google.cloud.bigquery.storage.v1beta1.StreamPosition.stream', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='offset', full_name='google.cloud.bigquery.storage.v1beta1.StreamPosition.offset', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=392, - serialized_end=487, + name="StreamPosition", + full_name="google.cloud.bigquery.storage.v1beta1.StreamPosition", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="stream", + full_name="google.cloud.bigquery.storage.v1beta1.StreamPosition.stream", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="offset", + full_name="google.cloud.bigquery.storage.v1beta1.StreamPosition.offset", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=392, + serialized_end=487, ) _READSESSION = _descriptor.Descriptor( - name='ReadSession', - full_name='google.cloud.bigquery.storage.v1beta1.ReadSession', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.bigquery.storage.v1beta1.ReadSession.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expire_time', full_name='google.cloud.bigquery.storage.v1beta1.ReadSession.expire_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='avro_schema', full_name='google.cloud.bigquery.storage.v1beta1.ReadSession.avro_schema', index=2, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='streams', full_name='google.cloud.bigquery.storage.v1beta1.ReadSession.streams', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_reference', full_name='google.cloud.bigquery.storage.v1beta1.ReadSession.table_reference', index=4, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_modifiers', full_name='google.cloud.bigquery.storage.v1beta1.ReadSession.table_modifiers', index=5, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='schema', full_name='google.cloud.bigquery.storage.v1beta1.ReadSession.schema', - index=0, containing_type=None, fields=[]), - ], - serialized_start=490, - serialized_end=874, + name="ReadSession", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expire_time", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession.expire_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="avro_schema", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession.avro_schema", + index=2, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="streams", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession.streams", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_reference", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession.table_reference", + index=4, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_modifiers", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession.table_modifiers", + index=5, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="schema", + full_name="google.cloud.bigquery.storage.v1beta1.ReadSession.schema", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=490, + serialized_end=874, ) _CREATEREADSESSIONREQUEST = _descriptor.Descriptor( - name='CreateReadSessionRequest', - full_name='google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_reference', full_name='google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.table_reference', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.parent', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_modifiers', full_name='google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.table_modifiers', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='requested_streams', full_name='google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.requested_streams', index=3, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='read_options', full_name='google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.read_options', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='format', full_name='google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.format', index=5, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=877, - serialized_end=1252, + name="CreateReadSessionRequest", + full_name="google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_reference", + full_name="google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.table_reference", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.parent", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_modifiers", + full_name="google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.table_modifiers", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="requested_streams", + full_name="google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.requested_streams", + index=3, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="read_options", + full_name="google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.read_options", + index=4, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="format", + full_name="google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest.format", + index=5, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=877, + serialized_end=1252, ) _READROWSREQUEST = _descriptor.Descriptor( - name='ReadRowsRequest', - full_name='google.cloud.bigquery.storage.v1beta1.ReadRowsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='read_position', full_name='google.cloud.bigquery.storage.v1beta1.ReadRowsRequest.read_position', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1254, - serialized_end=1349, + name="ReadRowsRequest", + full_name="google.cloud.bigquery.storage.v1beta1.ReadRowsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="read_position", + full_name="google.cloud.bigquery.storage.v1beta1.ReadRowsRequest.read_position", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1254, + serialized_end=1349, ) _STREAMSTATUS = _descriptor.Descriptor( - name='StreamStatus', - full_name='google.cloud.bigquery.storage.v1beta1.StreamStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='estimated_row_count', full_name='google.cloud.bigquery.storage.v1beta1.StreamStatus.estimated_row_count', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1351, - serialized_end=1394, + name="StreamStatus", + full_name="google.cloud.bigquery.storage.v1beta1.StreamStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="estimated_row_count", + full_name="google.cloud.bigquery.storage.v1beta1.StreamStatus.estimated_row_count", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1351, + serialized_end=1394, ) _THROTTLESTATUS = _descriptor.Descriptor( - name='ThrottleStatus', - full_name='google.cloud.bigquery.storage.v1beta1.ThrottleStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='throttle_percent', full_name='google.cloud.bigquery.storage.v1beta1.ThrottleStatus.throttle_percent', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1396, - serialized_end=1438, + name="ThrottleStatus", + full_name="google.cloud.bigquery.storage.v1beta1.ThrottleStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="throttle_percent", + full_name="google.cloud.bigquery.storage.v1beta1.ThrottleStatus.throttle_percent", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1396, + serialized_end=1438, ) _READROWSRESPONSE = _descriptor.Descriptor( - name='ReadRowsResponse', - full_name='google.cloud.bigquery.storage.v1beta1.ReadRowsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='avro_rows', full_name='google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.avro_rows', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.status', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='throttle_status', full_name='google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.throttle_status', index=2, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='rows', full_name='google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.rows', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1441, - serialized_end=1686, + name="ReadRowsResponse", + full_name="google.cloud.bigquery.storage.v1beta1.ReadRowsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="avro_rows", + full_name="google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.avro_rows", + index=0, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.status", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="throttle_status", + full_name="google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.throttle_status", + index=2, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="rows", + full_name="google.cloud.bigquery.storage.v1beta1.ReadRowsResponse.rows", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1441, + serialized_end=1686, ) _BATCHCREATEREADSESSIONSTREAMSREQUEST = _descriptor.Descriptor( - name='BatchCreateReadSessionStreamsRequest', - full_name='google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest.session', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='requested_streams', full_name='google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest.requested_streams', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1689, - serialized_end=1823, + name="BatchCreateReadSessionStreamsRequest", + full_name="google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest.session", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="requested_streams", + full_name="google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest.requested_streams", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1689, + serialized_end=1823, ) _BATCHCREATEREADSESSIONSTREAMSRESPONSE = _descriptor.Descriptor( - name='BatchCreateReadSessionStreamsResponse', - full_name='google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='streams', full_name='google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse.streams', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1825, - serialized_end=1928, + name="BatchCreateReadSessionStreamsResponse", + full_name="google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="streams", + full_name="google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse.streams", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1825, + serialized_end=1928, ) _FINALIZESTREAMREQUEST = _descriptor.Descriptor( - name='FinalizeStreamRequest', - full_name='google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stream', full_name='google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest.stream', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1930, - serialized_end=2016, + name="FinalizeStreamRequest", + full_name="google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="stream", + full_name="google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest.stream", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1930, + serialized_end=2016, ) _SPLITREADSTREAMREQUEST = _descriptor.Descriptor( - name='SplitReadStreamRequest', - full_name='google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='original_stream', full_name='google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest.original_stream', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2018, - serialized_end=2114, + name="SplitReadStreamRequest", + full_name="google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="original_stream", + full_name="google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest.original_stream", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2018, + serialized_end=2114, ) _SPLITREADSTREAMRESPONSE = _descriptor.Descriptor( - name='SplitReadStreamResponse', - full_name='google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='primary_stream', full_name='google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse.primary_stream', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remainder_stream', full_name='google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse.remainder_stream', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2117, - serialized_end=2286, -) - -_STREAMPOSITION.fields_by_name['stream'].message_type = _STREAM -_READSESSION.fields_by_name['expire_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_READSESSION.fields_by_name['avro_schema'].message_type = google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2._AVROSCHEMA -_READSESSION.fields_by_name['streams'].message_type = _STREAM -_READSESSION.fields_by_name['table_reference'].message_type = google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEREFERENCE -_READSESSION.fields_by_name['table_modifiers'].message_type = google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEMODIFIERS -_READSESSION.oneofs_by_name['schema'].fields.append( - _READSESSION.fields_by_name['avro_schema']) -_READSESSION.fields_by_name['avro_schema'].containing_oneof = _READSESSION.oneofs_by_name['schema'] -_CREATEREADSESSIONREQUEST.fields_by_name['table_reference'].message_type = google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEREFERENCE -_CREATEREADSESSIONREQUEST.fields_by_name['table_modifiers'].message_type = google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEMODIFIERS -_CREATEREADSESSIONREQUEST.fields_by_name['read_options'].message_type = google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_read__options__pb2._TABLEREADOPTIONS -_CREATEREADSESSIONREQUEST.fields_by_name['format'].enum_type = _DATAFORMAT -_READROWSREQUEST.fields_by_name['read_position'].message_type = _STREAMPOSITION -_READROWSRESPONSE.fields_by_name['avro_rows'].message_type = google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2._AVROROWS -_READROWSRESPONSE.fields_by_name['status'].message_type = _STREAMSTATUS -_READROWSRESPONSE.fields_by_name['throttle_status'].message_type = _THROTTLESTATUS -_READROWSRESPONSE.oneofs_by_name['rows'].fields.append( - _READROWSRESPONSE.fields_by_name['avro_rows']) -_READROWSRESPONSE.fields_by_name['avro_rows'].containing_oneof = _READROWSRESPONSE.oneofs_by_name['rows'] -_BATCHCREATEREADSESSIONSTREAMSREQUEST.fields_by_name['session'].message_type = _READSESSION -_BATCHCREATEREADSESSIONSTREAMSRESPONSE.fields_by_name['streams'].message_type = _STREAM -_FINALIZESTREAMREQUEST.fields_by_name['stream'].message_type = _STREAM -_SPLITREADSTREAMREQUEST.fields_by_name['original_stream'].message_type = _STREAM -_SPLITREADSTREAMRESPONSE.fields_by_name['primary_stream'].message_type = _STREAM -_SPLITREADSTREAMRESPONSE.fields_by_name['remainder_stream'].message_type = _STREAM -DESCRIPTOR.message_types_by_name['Stream'] = _STREAM -DESCRIPTOR.message_types_by_name['StreamPosition'] = _STREAMPOSITION -DESCRIPTOR.message_types_by_name['ReadSession'] = _READSESSION -DESCRIPTOR.message_types_by_name['CreateReadSessionRequest'] = _CREATEREADSESSIONREQUEST -DESCRIPTOR.message_types_by_name['ReadRowsRequest'] = _READROWSREQUEST -DESCRIPTOR.message_types_by_name['StreamStatus'] = _STREAMSTATUS -DESCRIPTOR.message_types_by_name['ThrottleStatus'] = _THROTTLESTATUS -DESCRIPTOR.message_types_by_name['ReadRowsResponse'] = _READROWSRESPONSE -DESCRIPTOR.message_types_by_name['BatchCreateReadSessionStreamsRequest'] = _BATCHCREATEREADSESSIONSTREAMSREQUEST -DESCRIPTOR.message_types_by_name['BatchCreateReadSessionStreamsResponse'] = _BATCHCREATEREADSESSIONSTREAMSRESPONSE -DESCRIPTOR.message_types_by_name['FinalizeStreamRequest'] = _FINALIZESTREAMREQUEST -DESCRIPTOR.message_types_by_name['SplitReadStreamRequest'] = _SPLITREADSTREAMREQUEST -DESCRIPTOR.message_types_by_name['SplitReadStreamResponse'] = _SPLITREADSTREAMRESPONSE -DESCRIPTOR.enum_types_by_name['DataFormat'] = _DATAFORMAT + name="SplitReadStreamResponse", + full_name="google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="primary_stream", + full_name="google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse.primary_stream", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="remainder_stream", + full_name="google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse.remainder_stream", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2117, + serialized_end=2286, +) + +_STREAMPOSITION.fields_by_name["stream"].message_type = _STREAM +_READSESSION.fields_by_name[ + "expire_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_READSESSION.fields_by_name[ + "avro_schema" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2._AVROSCHEMA +) +_READSESSION.fields_by_name["streams"].message_type = _STREAM +_READSESSION.fields_by_name[ + "table_reference" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEREFERENCE +) +_READSESSION.fields_by_name[ + "table_modifiers" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEMODIFIERS +) +_READSESSION.oneofs_by_name["schema"].fields.append( + _READSESSION.fields_by_name["avro_schema"] +) +_READSESSION.fields_by_name[ + "avro_schema" +].containing_oneof = _READSESSION.oneofs_by_name["schema"] +_CREATEREADSESSIONREQUEST.fields_by_name[ + "table_reference" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEREFERENCE +) +_CREATEREADSESSIONREQUEST.fields_by_name[ + "table_modifiers" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_table__reference__pb2._TABLEMODIFIERS +) +_CREATEREADSESSIONREQUEST.fields_by_name[ + "read_options" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_read__options__pb2._TABLEREADOPTIONS +) +_CREATEREADSESSIONREQUEST.fields_by_name["format"].enum_type = _DATAFORMAT +_READROWSREQUEST.fields_by_name["read_position"].message_type = _STREAMPOSITION +_READROWSRESPONSE.fields_by_name[ + "avro_rows" +].message_type = ( + google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_avro__pb2._AVROROWS +) +_READROWSRESPONSE.fields_by_name["status"].message_type = _STREAMSTATUS +_READROWSRESPONSE.fields_by_name["throttle_status"].message_type = _THROTTLESTATUS +_READROWSRESPONSE.oneofs_by_name["rows"].fields.append( + _READROWSRESPONSE.fields_by_name["avro_rows"] +) +_READROWSRESPONSE.fields_by_name[ + "avro_rows" +].containing_oneof = _READROWSRESPONSE.oneofs_by_name["rows"] +_BATCHCREATEREADSESSIONSTREAMSREQUEST.fields_by_name[ + "session" +].message_type = _READSESSION +_BATCHCREATEREADSESSIONSTREAMSRESPONSE.fields_by_name["streams"].message_type = _STREAM +_FINALIZESTREAMREQUEST.fields_by_name["stream"].message_type = _STREAM +_SPLITREADSTREAMREQUEST.fields_by_name["original_stream"].message_type = _STREAM +_SPLITREADSTREAMRESPONSE.fields_by_name["primary_stream"].message_type = _STREAM +_SPLITREADSTREAMRESPONSE.fields_by_name["remainder_stream"].message_type = _STREAM +DESCRIPTOR.message_types_by_name["Stream"] = _STREAM +DESCRIPTOR.message_types_by_name["StreamPosition"] = _STREAMPOSITION +DESCRIPTOR.message_types_by_name["ReadSession"] = _READSESSION +DESCRIPTOR.message_types_by_name["CreateReadSessionRequest"] = _CREATEREADSESSIONREQUEST +DESCRIPTOR.message_types_by_name["ReadRowsRequest"] = _READROWSREQUEST +DESCRIPTOR.message_types_by_name["StreamStatus"] = _STREAMSTATUS +DESCRIPTOR.message_types_by_name["ThrottleStatus"] = _THROTTLESTATUS +DESCRIPTOR.message_types_by_name["ReadRowsResponse"] = _READROWSRESPONSE +DESCRIPTOR.message_types_by_name[ + "BatchCreateReadSessionStreamsRequest" +] = _BATCHCREATEREADSESSIONSTREAMSREQUEST +DESCRIPTOR.message_types_by_name[ + "BatchCreateReadSessionStreamsResponse" +] = _BATCHCREATEREADSESSIONSTREAMSRESPONSE +DESCRIPTOR.message_types_by_name["FinalizeStreamRequest"] = _FINALIZESTREAMREQUEST +DESCRIPTOR.message_types_by_name["SplitReadStreamRequest"] = _SPLITREADSTREAMREQUEST +DESCRIPTOR.message_types_by_name["SplitReadStreamResponse"] = _SPLITREADSTREAMRESPONSE +DESCRIPTOR.enum_types_by_name["DataFormat"] = _DATAFORMAT _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Stream = _reflection.GeneratedProtocolMessageType('Stream', (_message.Message,), dict( - DESCRIPTOR = _STREAM, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Information about a single data stream within a read session. +Stream = _reflection.GeneratedProtocolMessageType( + "Stream", + (_message.Message,), + dict( + DESCRIPTOR=_STREAM, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Information about a single data stream within a read session. Attributes: @@ -633,15 +980,18 @@ row_count: Rows in the stream. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.Stream) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.Stream) + ), +) _sym_db.RegisterMessage(Stream) -StreamPosition = _reflection.GeneratedProtocolMessageType('StreamPosition', (_message.Message,), dict( - DESCRIPTOR = _STREAMPOSITION, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Expresses a point within a given stream using an offset position. +StreamPosition = _reflection.GeneratedProtocolMessageType( + "StreamPosition", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMPOSITION, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Expresses a point within a given stream using an offset position. Attributes: @@ -650,15 +1000,18 @@ offset: Position in the stream. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamPosition) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamPosition) + ), +) _sym_db.RegisterMessage(StreamPosition) -ReadSession = _reflection.GeneratedProtocolMessageType('ReadSession', (_message.Message,), dict( - DESCRIPTOR = _READSESSION, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Information returned from a ``CreateReadSession`` request. +ReadSession = _reflection.GeneratedProtocolMessageType( + "ReadSession", + (_message.Message,), + dict( + DESCRIPTOR=_READSESSION, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Information returned from a ``CreateReadSession`` request. Attributes: @@ -682,15 +1035,18 @@ Any modifiers which are applied when reading from the specified table. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadSession) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadSession) + ), +) _sym_db.RegisterMessage(ReadSession) -CreateReadSessionRequest = _reflection.GeneratedProtocolMessageType('CreateReadSessionRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEREADSESSIONREQUEST, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Creates a new read session, which may include additional options such as +CreateReadSessionRequest = _reflection.GeneratedProtocolMessageType( + "CreateReadSessionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEREADSESSIONREQUEST, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Creates a new read session, which may include additional options such as requested parallelism, projection filters and constraints. @@ -718,15 +1074,18 @@ format: Data output format. Currently default to Avro. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) + ), +) _sym_db.RegisterMessage(CreateReadSessionRequest) -ReadRowsRequest = _reflection.GeneratedProtocolMessageType('ReadRowsRequest', (_message.Message,), dict( - DESCRIPTOR = _READROWSREQUEST, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Requesting row data via ``ReadRows`` must provide Stream position +ReadRowsRequest = _reflection.GeneratedProtocolMessageType( + "ReadRowsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_READROWSREQUEST, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Requesting row data via ``ReadRows`` must provide Stream position information. @@ -737,15 +1096,18 @@ row read from ReadRows. Requesting a larger offset is undefined. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) + ), +) _sym_db.RegisterMessage(ReadRowsRequest) -StreamStatus = _reflection.GeneratedProtocolMessageType('StreamStatus', (_message.Message,), dict( - DESCRIPTOR = _STREAMSTATUS, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Progress information for a given Stream. +StreamStatus = _reflection.GeneratedProtocolMessageType( + "StreamStatus", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMSTATUS, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Progress information for a given Stream. Attributes: @@ -754,15 +1116,18 @@ over time as different readers in the stream progress at rates which are relatively fast or slow. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamStatus) + ), +) _sym_db.RegisterMessage(StreamStatus) -ThrottleStatus = _reflection.GeneratedProtocolMessageType('ThrottleStatus', (_message.Message,), dict( - DESCRIPTOR = _THROTTLESTATUS, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Information on if the current connection is being throttled. +ThrottleStatus = _reflection.GeneratedProtocolMessageType( + "ThrottleStatus", + (_message.Message,), + dict( + DESCRIPTOR=_THROTTLESTATUS, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Information on if the current connection is being throttled. Attributes: @@ -770,15 +1135,18 @@ How much this connection is being throttled. 0 is no throttling, 100 is completely throttled. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) + ), +) _sym_db.RegisterMessage(ThrottleStatus) -ReadRowsResponse = _reflection.GeneratedProtocolMessageType('ReadRowsResponse', (_message.Message,), dict( - DESCRIPTOR = _READROWSRESPONSE, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Response from calling ``ReadRows`` may include row data, progress and +ReadRowsResponse = _reflection.GeneratedProtocolMessageType( + "ReadRowsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_READROWSRESPONSE, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Response from calling ``ReadRows`` may include row data, progress and throttling information. @@ -794,15 +1162,18 @@ Throttling status. If unset, the latest response still describes the current throttling status. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse) + ), +) _sym_db.RegisterMessage(ReadRowsResponse) -BatchCreateReadSessionStreamsRequest = _reflection.GeneratedProtocolMessageType('BatchCreateReadSessionStreamsRequest', (_message.Message,), dict( - DESCRIPTOR = _BATCHCREATEREADSESSIONSTREAMSREQUEST, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Information needed to request additional streams for an established read +BatchCreateReadSessionStreamsRequest = _reflection.GeneratedProtocolMessageType( + "BatchCreateReadSessionStreamsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHCREATEREADSESSIONSTREAMSREQUEST, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Information needed to request additional streams for an established read session. @@ -815,15 +1186,18 @@ Number of added streams may be less than this, see CreateReadSessionRequest for more information. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) + ), +) _sym_db.RegisterMessage(BatchCreateReadSessionStreamsRequest) -BatchCreateReadSessionStreamsResponse = _reflection.GeneratedProtocolMessageType('BatchCreateReadSessionStreamsResponse', (_message.Message,), dict( - DESCRIPTOR = _BATCHCREATEREADSESSIONSTREAMSRESPONSE, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """The response from ``BatchCreateReadSessionStreams`` returns the stream +BatchCreateReadSessionStreamsResponse = _reflection.GeneratedProtocolMessageType( + "BatchCreateReadSessionStreamsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHCREATEREADSESSIONSTREAMSRESPONSE, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""The response from ``BatchCreateReadSessionStreams`` returns the stream identifiers for the newly created streams. @@ -831,45 +1205,54 @@ streams: Newly added streams. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) + ), +) _sym_db.RegisterMessage(BatchCreateReadSessionStreamsResponse) -FinalizeStreamRequest = _reflection.GeneratedProtocolMessageType('FinalizeStreamRequest', (_message.Message,), dict( - DESCRIPTOR = _FINALIZESTREAMREQUEST, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Request information for invoking ``FinalizeStream``. +FinalizeStreamRequest = _reflection.GeneratedProtocolMessageType( + "FinalizeStreamRequest", + (_message.Message,), + dict( + DESCRIPTOR=_FINALIZESTREAMREQUEST, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Request information for invoking ``FinalizeStream``. Attributes: stream: Stream to finalize. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) + ), +) _sym_db.RegisterMessage(FinalizeStreamRequest) -SplitReadStreamRequest = _reflection.GeneratedProtocolMessageType('SplitReadStreamRequest', (_message.Message,), dict( - DESCRIPTOR = _SPLITREADSTREAMREQUEST, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Request information for ``SplitReadStream``. +SplitReadStreamRequest = _reflection.GeneratedProtocolMessageType( + "SplitReadStreamRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SPLITREADSTREAMREQUEST, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Request information for ``SplitReadStream``. Attributes: original_stream: Stream to split. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) + ), +) _sym_db.RegisterMessage(SplitReadStreamRequest) -SplitReadStreamResponse = _reflection.GeneratedProtocolMessageType('SplitReadStreamResponse', (_message.Message,), dict( - DESCRIPTOR = _SPLITREADSTREAMRESPONSE, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.storage_pb2' - , - __doc__ = """Response from ``SplitReadStream``. +SplitReadStreamResponse = _reflection.GeneratedProtocolMessageType( + "SplitReadStreamResponse", + (_message.Message,), + dict( + DESCRIPTOR=_SPLITREADSTREAMRESPONSE, + __module__="google.cloud.bigquery.storage_v1beta1.proto.storage_pb2", + __doc__="""Response from ``SplitReadStream``. Attributes: @@ -880,71 +1263,78 @@ Remainder stream. Will contain the tail of \|original\_stream\|. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) + ), +) _sym_db.RegisterMessage(SplitReadStreamResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n)com.google.cloud.bigquery.storage.v1beta1ZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage" + ), +) _BIGQUERYSTORAGE = _descriptor.ServiceDescriptor( - name='BigQueryStorage', - full_name='google.cloud.bigquery.storage.v1beta1.BigQueryStorage', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2342, - serialized_end=3075, - methods=[ - _descriptor.MethodDescriptor( - name='CreateReadSession', - full_name='google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSession', + name="BigQueryStorage", + full_name="google.cloud.bigquery.storage.v1beta1.BigQueryStorage", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATEREADSESSIONREQUEST, - output_type=_READSESSION, - options=None, - ), - _descriptor.MethodDescriptor( - name='ReadRows', - full_name='google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRows', - index=1, - containing_service=None, - input_type=_READROWSREQUEST, - output_type=_READROWSRESPONSE, - options=None, - ), - _descriptor.MethodDescriptor( - name='BatchCreateReadSessionStreams', - full_name='google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreams', - index=2, - containing_service=None, - input_type=_BATCHCREATEREADSESSIONSTREAMSREQUEST, - output_type=_BATCHCREATEREADSESSIONSTREAMSRESPONSE, options=None, - ), - _descriptor.MethodDescriptor( - name='FinalizeStream', - full_name='google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStream', - index=3, - containing_service=None, - input_type=_FINALIZESTREAMREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=None, - ), - _descriptor.MethodDescriptor( - name='SplitReadStream', - full_name='google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStream', - index=4, - containing_service=None, - input_type=_SPLITREADSTREAMREQUEST, - output_type=_SPLITREADSTREAMRESPONSE, - options=None, - ), -]) + serialized_start=2342, + serialized_end=3075, + methods=[ + _descriptor.MethodDescriptor( + name="CreateReadSession", + full_name="google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSession", + index=0, + containing_service=None, + input_type=_CREATEREADSESSIONREQUEST, + output_type=_READSESSION, + options=None, + ), + _descriptor.MethodDescriptor( + name="ReadRows", + full_name="google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRows", + index=1, + containing_service=None, + input_type=_READROWSREQUEST, + output_type=_READROWSRESPONSE, + options=None, + ), + _descriptor.MethodDescriptor( + name="BatchCreateReadSessionStreams", + full_name="google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreams", + index=2, + containing_service=None, + input_type=_BATCHCREATEREADSESSIONSTREAMSREQUEST, + output_type=_BATCHCREATEREADSESSIONSTREAMSRESPONSE, + options=None, + ), + _descriptor.MethodDescriptor( + name="FinalizeStream", + full_name="google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStream", + index=3, + containing_service=None, + input_type=_FINALIZESTREAMREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=None, + ), + _descriptor.MethodDescriptor( + name="SplitReadStream", + full_name="google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStream", + index=4, + containing_service=None, + input_type=_SPLITREADSTREAMREQUEST, + output_type=_SPLITREADSTREAMRESPONSE, + options=None, + ), + ], +) _sym_db.RegisterServiceDescriptor(_BIGQUERYSTORAGE) -DESCRIPTOR.services_by_name['BigQueryStorage'] = _BIGQUERYSTORAGE +DESCRIPTOR.services_by_name["BigQueryStorage"] = _BIGQUERYSTORAGE # @@protoc_insertion_point(module_scope) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2_grpc.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2_grpc.py index c619db1a5dc32..85b890f0e0cc2 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2_grpc.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/storage_pb2_grpc.py @@ -1,57 +1,59 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.bigquery_storage_v1beta1.proto import storage_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2 +from google.cloud.bigquery_storage_v1beta1.proto import ( + storage_pb2 as google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class BigQueryStorageStub(object): - """BigQuery storage API. + """BigQuery storage API. The BigQuery storage API can be used to read data stored in BigQuery. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateReadSession = channel.unary_unary( - '/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/CreateReadSession', - request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.CreateReadSessionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadSession.FromString, + self.CreateReadSession = channel.unary_unary( + "/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/CreateReadSession", + request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.CreateReadSessionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadSession.FromString, ) - self.ReadRows = channel.unary_stream( - '/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/ReadRows', - request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsResponse.FromString, + self.ReadRows = channel.unary_stream( + "/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/ReadRows", + request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsResponse.FromString, ) - self.BatchCreateReadSessionStreams = channel.unary_unary( - '/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/BatchCreateReadSessionStreams', - request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsResponse.FromString, + self.BatchCreateReadSessionStreams = channel.unary_unary( + "/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/BatchCreateReadSessionStreams", + request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsResponse.FromString, ) - self.FinalizeStream = channel.unary_unary( - '/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/FinalizeStream', - request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.FinalizeStreamRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.FinalizeStream = channel.unary_unary( + "/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/FinalizeStream", + request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.FinalizeStreamRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.SplitReadStream = channel.unary_unary( - '/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/SplitReadStream', - request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamResponse.FromString, + self.SplitReadStream = channel.unary_unary( + "/google.cloud.bigquery.storage.v1beta1.BigQueryStorage/SplitReadStream", + request_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamResponse.FromString, ) class BigQueryStorageServicer(object): - """BigQuery storage API. + """BigQuery storage API. The BigQuery storage API can be used to read data stored in BigQuery. """ - def CreateReadSession(self, request, context): - """Creates a new read session. A read session divides the contents of a + def CreateReadSession(self, request, context): + """Creates a new read session. A read session divides the contents of a BigQuery table into one or more streams, which can then be used to read data from the table. The read session also specifies properties of the data to be read, such as a list of columns or a push-down filter describing @@ -64,12 +66,12 @@ def CreateReadSession(self, request, context): Read sessions automatically expire 24 hours after they are created and do not require manual clean-up by the caller. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ReadRows(self, request, context): - """Reads rows from the table in the format prescribed by the read session. + def ReadRows(self, request, context): + """Reads rows from the table in the format prescribed by the read session. Each response contains one or more table rows, up to a maximum of 10 MiB per response; read requests which attempt to read individual rows larger than this will fail. @@ -79,21 +81,21 @@ def ReadRows(self, request, context): based on the total table size and the number of active streams in the read session, and may change as other streams continue to read data. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def BatchCreateReadSessionStreams(self, request, context): - """Creates additional streams for a ReadSession. This API can be used to + def BatchCreateReadSessionStreams(self, request, context): + """Creates additional streams for a ReadSession. This API can be used to dynamically adjust the parallelism of a batch processing task upwards by adding additional workers. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def FinalizeStream(self, request, context): - """Triggers the graceful termination of a single stream in a ReadSession. This + def FinalizeStream(self, request, context): + """Triggers the graceful termination of a single stream in a ReadSession. This API can be used to dynamically adjust the parallelism of a batch processing task downwards without losing data. @@ -108,12 +110,12 @@ def FinalizeStream(self, request, context): in the Session, or if SplitReadStream() has been called on the given Stream. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SplitReadStream(self, request, context): - """Splits a given read stream into two Streams. These streams are referred to + def SplitReadStream(self, request, context): + """Splits a given read stream into two Streams. These streams are referred to as the primary and the residual of the split. The original stream can still be read from in the same manner as before. Both of the returned streams can also be read from, and the total rows return by both child streams will be @@ -127,39 +129,40 @@ def SplitReadStream(self, request, context): This method is guaranteed to be idempotent. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_BigQueryStorageServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateReadSession': grpc.unary_unary_rpc_method_handler( - servicer.CreateReadSession, - request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.CreateReadSessionRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadSession.SerializeToString, - ), - 'ReadRows': grpc.unary_stream_rpc_method_handler( - servicer.ReadRows, - request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsResponse.SerializeToString, - ), - 'BatchCreateReadSessionStreams': grpc.unary_unary_rpc_method_handler( - servicer.BatchCreateReadSessionStreams, - request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsResponse.SerializeToString, - ), - 'FinalizeStream': grpc.unary_unary_rpc_method_handler( - servicer.FinalizeStream, - request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.FinalizeStreamRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'SplitReadStream': grpc.unary_unary_rpc_method_handler( - servicer.SplitReadStream, - request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamRequest.FromString, - response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.bigquery.storage.v1beta1.BigQueryStorage', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateReadSession": grpc.unary_unary_rpc_method_handler( + servicer.CreateReadSession, + request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.CreateReadSessionRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadSession.SerializeToString, + ), + "ReadRows": grpc.unary_stream_rpc_method_handler( + servicer.ReadRows, + request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.ReadRowsResponse.SerializeToString, + ), + "BatchCreateReadSessionStreams": grpc.unary_unary_rpc_method_handler( + servicer.BatchCreateReadSessionStreams, + request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.BatchCreateReadSessionStreamsResponse.SerializeToString, + ), + "FinalizeStream": grpc.unary_unary_rpc_method_handler( + servicer.FinalizeStream, + request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.FinalizeStreamRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "SplitReadStream": grpc.unary_unary_rpc_method_handler( + servicer.SplitReadStream, + request_deserializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamRequest.FromString, + response_serializer=google_dot_cloud_dot_bigquery_dot_storage__v1beta1_dot_proto_dot_storage__pb2.SplitReadStreamResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.bigquery.storage.v1beta1.BigQueryStorage", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2.py index 24e71dcaff546..5208450f5deae 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/bigquery/storage_v1beta1/proto/table_reference.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,101 +19,143 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigquery/storage_v1beta1/proto/table_reference.proto', - package='google.cloud.bigquery.storage.v1beta1', - syntax='proto3', - serialized_pb=_b('\nAgoogle/cloud/bigquery/storage_v1beta1/proto/table_reference.proto\x12%google.cloud.bigquery.storage.v1beta1\x1a\x1fgoogle/protobuf/timestamp.proto\"J\n\x0eTableReference\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\ndataset_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"C\n\x0eTableModifiers\x12\x31\n\rsnapshot_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x8e\x01\n)com.google.cloud.bigquery.storage.v1beta1B\x13TableReferenceProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/bigquery/storage_v1beta1/proto/table_reference.proto", + package="google.cloud.bigquery.storage.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\nAgoogle/cloud/bigquery/storage_v1beta1/proto/table_reference.proto\x12%google.cloud.bigquery.storage.v1beta1\x1a\x1fgoogle/protobuf/timestamp.proto"J\n\x0eTableReference\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\ndataset_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t"C\n\x0eTableModifiers\x12\x31\n\rsnapshot_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x8e\x01\n)com.google.cloud.bigquery.storage.v1beta1B\x13TableReferenceProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storageb\x06proto3' + ), + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR], +) _TABLEREFERENCE = _descriptor.Descriptor( - name='TableReference', - full_name='google.cloud.bigquery.storage.v1beta1.TableReference', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.bigquery.storage.v1beta1.TableReference.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataset_id', full_name='google.cloud.bigquery.storage.v1beta1.TableReference.dataset_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_id', full_name='google.cloud.bigquery.storage.v1beta1.TableReference.table_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=141, - serialized_end=215, + name="TableReference", + full_name="google.cloud.bigquery.storage.v1beta1.TableReference", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.bigquery.storage.v1beta1.TableReference.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dataset_id", + full_name="google.cloud.bigquery.storage.v1beta1.TableReference.dataset_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_id", + full_name="google.cloud.bigquery.storage.v1beta1.TableReference.table_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=141, + serialized_end=215, ) _TABLEMODIFIERS = _descriptor.Descriptor( - name='TableModifiers', - full_name='google.cloud.bigquery.storage.v1beta1.TableModifiers', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshot_time', full_name='google.cloud.bigquery.storage.v1beta1.TableModifiers.snapshot_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=217, - serialized_end=284, + name="TableModifiers", + full_name="google.cloud.bigquery.storage.v1beta1.TableModifiers", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshot_time", + full_name="google.cloud.bigquery.storage.v1beta1.TableModifiers.snapshot_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=217, + serialized_end=284, ) -_TABLEMODIFIERS.fields_by_name['snapshot_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['TableReference'] = _TABLEREFERENCE -DESCRIPTOR.message_types_by_name['TableModifiers'] = _TABLEMODIFIERS +_TABLEMODIFIERS.fields_by_name[ + "snapshot_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["TableReference"] = _TABLEREFERENCE +DESCRIPTOR.message_types_by_name["TableModifiers"] = _TABLEMODIFIERS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TableReference = _reflection.GeneratedProtocolMessageType('TableReference', (_message.Message,), dict( - DESCRIPTOR = _TABLEREFERENCE, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.table_reference_pb2' - , - __doc__ = """Table reference that includes just the 3 strings needed to identify a +TableReference = _reflection.GeneratedProtocolMessageType( + "TableReference", + (_message.Message,), + dict( + DESCRIPTOR=_TABLEREFERENCE, + __module__="google.cloud.bigquery.storage_v1beta1.proto.table_reference_pb2", + __doc__="""Table reference that includes just the 3 strings needed to identify a table. @@ -123,15 +167,18 @@ table_id: The ID of the table in the above dataset. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReference) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReference) + ), +) _sym_db.RegisterMessage(TableReference) -TableModifiers = _reflection.GeneratedProtocolMessageType('TableModifiers', (_message.Message,), dict( - DESCRIPTOR = _TABLEMODIFIERS, - __module__ = 'google.cloud.bigquery.storage_v1beta1.proto.table_reference_pb2' - , - __doc__ = """All fields in this message optional. +TableModifiers = _reflection.GeneratedProtocolMessageType( + "TableModifiers", + (_message.Message,), + dict( + DESCRIPTOR=_TABLEMODIFIERS, + __module__="google.cloud.bigquery.storage_v1beta1.proto.table_reference_pb2", + __doc__="""All fields in this message optional. Attributes: @@ -139,11 +186,17 @@ The snapshot time of the table. If not set, interpreted as now. """, - # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableModifiers) - )) + # @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableModifiers) + ), +) _sym_db.RegisterMessage(TableModifiers) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n)com.google.cloud.bigquery.storage.v1beta1B\023TableReferenceProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n)com.google.cloud.bigquery.storage.v1beta1B\023TableReferenceProtoZLgoogle.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2_grpc.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2_grpc.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/proto/table_reference_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/reader.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/reader.py index da8909f5bfe20..0cf6af2d494d8 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/reader.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/reader.py @@ -22,6 +22,7 @@ except ImportError: # pragma: NO COVER fastavro = None import google.api_core.exceptions + try: import pandas except ImportError: # pragma: NO COVER @@ -54,13 +55,7 @@ class ReadRowsStream(object): method to parse all blocks into a :class:`pandas.DataFrame`. """ - def __init__( - self, - wrapped, - client, - read_position, - read_rows_kwargs, - ): + def __init__(self, wrapped, client, read_position, read_rows_kwargs): """Construct a ReadRowsStream. Args: @@ -132,7 +127,8 @@ def __iter__(self): def _reconnect(self): """Reconnect to the ReadRows stream using the most recent offset.""" self._wrapped = self._client.read_rows( - _copy_stream_position(self._position), **self._read_rows_kwargs) + _copy_stream_position(self._position), **self._read_rows_kwargs + ) def rows(self, read_session): """Iterate over all rows in the stream. diff --git a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/types.py b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/types.py index 9b0d557fe728c..a576897263b08 100644 --- a/bigquery_storage/google/cloud/bigquery_storage_v1beta1/types.py +++ b/bigquery_storage/google/cloud/bigquery_storage_v1beta1/types.py @@ -26,17 +26,9 @@ from google.protobuf import empty_pb2 from google.protobuf import timestamp_pb2 -_shared_modules = [ - empty_pb2, - timestamp_pb2, -] - -_local_modules = [ - avro_pb2, - read_options_pb2, - storage_pb2, - table_reference_pb2, -] +_shared_modules = [empty_pb2, timestamp_pb2] + +_local_modules = [avro_pb2, read_options_pb2, storage_pb2, table_reference_pb2] names = [] @@ -46,7 +38,7 @@ names.append(name) for module in _local_modules: for name, message in get_messages(module).items(): - message.__module__ = 'google.cloud.bigquery_storage_v1beta1.types' + message.__module__ = "google.cloud.bigquery_storage_v1beta1.types" setattr(sys.modules[__name__], name, message) names.append(name) diff --git a/bigquery_storage/tests/system/test_system.py b/bigquery_storage/tests/system/test_system.py index 03e1064e066ad..a1581e51acf6b 100644 --- a/bigquery_storage/tests/system/test_system.py +++ b/bigquery_storage/tests/system/test_system.py @@ -24,7 +24,7 @@ @pytest.fixture() def project_id(): - return os.environ['PROJECT_ID'] + return os.environ["PROJECT_ID"] @pytest.fixture() @@ -35,30 +35,29 @@ def client(): @pytest.fixture() def table_reference(): table_ref = bigquery_storage_v1beta1.types.TableReference() - table_ref.project_id = 'bigquery-public-data' - table_ref.dataset_id = 'usa_names' - table_ref.table_id = 'usa_1910_2013' + table_ref.project_id = "bigquery-public-data" + table_ref.dataset_id = "usa_names" + table_ref.table_id = "usa_1910_2013" return table_ref @pytest.fixture() def small_table_reference(): table_ref = bigquery_storage_v1beta1.types.TableReference() - table_ref.project_id = 'bigquery-public-data' - table_ref.dataset_id = 'utility_us' - table_ref.table_id = 'country_code_iso' + table_ref.project_id = "bigquery-public-data" + table_ref.dataset_id = "utility_us" + table_ref.table_id = "country_code_iso" return table_ref def test_read_rows_full_table(client, project_id, small_table_reference): session = client.create_read_session( - small_table_reference, - 'projects/{}'.format(project_id), - requested_streams=1, + small_table_reference, "projects/{}".format(project_id), requested_streams=1 ) stream_pos = bigquery_storage_v1beta1.types.StreamPosition( - stream=session.streams[0]) + stream=session.streams[0] + ) blocks = list(client.read_rows(stream_pos)) assert len(blocks) > 0 @@ -69,29 +68,27 @@ def test_read_rows_full_table(client, project_id, small_table_reference): def test_read_rows_to_dataframe(client, project_id): table_ref = bigquery_storage_v1beta1.types.TableReference() - table_ref.project_id = 'bigquery-public-data' - table_ref.dataset_id = 'new_york_citibike' - table_ref.table_id = 'citibike_stations' + table_ref.project_id = "bigquery-public-data" + table_ref.dataset_id = "new_york_citibike" + table_ref.table_id = "citibike_stations" session = client.create_read_session( - table_ref, - 'projects/{}'.format(project_id), - requested_streams=1, + table_ref, "projects/{}".format(project_id), requested_streams=1 ) stream_pos = bigquery_storage_v1beta1.types.StreamPosition( - stream=session.streams[0]) + stream=session.streams[0] + ) frame = client.read_rows(stream_pos).to_dataframe(session) # Station ID is a required field (no nulls), so the datatype should always # be integer. - assert frame.station_id.dtype.name == 'int64' - assert frame['name'].str.startswith('Central Park').any() + assert frame.station_id.dtype.name == "int64" + assert frame["name"].str.startswith("Central Park").any() def test_split_read_stream(client, project_id, table_reference): session = client.create_read_session( - table_reference, - parent='projects/{}'.format(project_id), + table_reference, parent="projects/{}".format(project_id) ) split = client.split_read_stream(session.streams[0]) diff --git a/bigquery_storage/tests/unit/gapic/v1beta1/test_big_query_storage_client_v1beta1.py b/bigquery_storage/tests/unit/gapic/v1beta1/test_big_query_storage_client_v1beta1.py index b8934c89c9340..5869402a1fb98 100644 --- a/bigquery_storage/tests/unit/gapic/v1beta1/test_big_query_storage_client_v1beta1.py +++ b/bigquery_storage/tests/unit/gapic/v1beta1/test_big_query_storage_client_v1beta1.py @@ -52,16 +52,10 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) - def unary_stream(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_stream(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -72,41 +66,42 @@ class CustomException(Exception): class TestBigQueryStorageClient(object): def test_create_read_session(self): # Setup Expected Response - name = 'name3373707' - expected_response = {'name': name} + name = "name3373707" + expected_response = {"name": name} expected_response = storage_pb2.ReadSession(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() # Setup Request table_reference = {} - parent = 'parent-995424086' + parent = "parent-995424086" response = client.create_read_session(table_reference, parent) assert expected_response == response assert len(channel.requests) == 1 expected_request = storage_pb2.CreateReadSessionRequest( - table_reference=table_reference, parent=parent) + table_reference=table_reference, parent=parent + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_create_read_session_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() # Setup request table_reference = {} - parent = 'parent-995424086' + parent = "parent-995424086" with pytest.raises(CustomException): client.create_read_session(table_reference, parent) @@ -118,7 +113,7 @@ def test_read_rows(self): # Mock the API response channel = ChannelStub(responses=[iter([expected_response])]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() @@ -132,15 +127,14 @@ def test_read_rows(self): assert expected_response == resources[0] assert len(channel.requests) == 1 - expected_request = storage_pb2.ReadRowsRequest( - read_position=read_position) + expected_request = storage_pb2.ReadRowsRequest(read_position=read_position) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_read_rows_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() @@ -155,11 +149,12 @@ def test_batch_create_read_session_streams(self): # Setup Expected Response expected_response = {} expected_response = storage_pb2.BatchCreateReadSessionStreamsResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() @@ -168,20 +163,20 @@ def test_batch_create_read_session_streams(self): session = {} requested_streams = 1017221410 - response = client.batch_create_read_session_streams( - session, requested_streams) + response = client.batch_create_read_session_streams(session, requested_streams) assert expected_response == response assert len(channel.requests) == 1 expected_request = storage_pb2.BatchCreateReadSessionStreamsRequest( - session=session, requested_streams=requested_streams) + session=session, requested_streams=requested_streams + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_batch_create_read_session_streams_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() @@ -191,12 +186,11 @@ def test_batch_create_read_session_streams_exception(self): requested_streams = 1017221410 with pytest.raises(CustomException): - client.batch_create_read_session_streams(session, - requested_streams) + client.batch_create_read_session_streams(session, requested_streams) def test_finalize_stream(self): channel = ChannelStub() - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() @@ -214,7 +208,7 @@ def test_finalize_stream(self): def test_finalize_stream_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() @@ -228,12 +222,11 @@ def test_finalize_stream_exception(self): def test_split_read_stream(self): # Setup Expected Response expected_response = {} - expected_response = storage_pb2.SplitReadStreamResponse( - **expected_response) + expected_response = storage_pb2.SplitReadStreamResponse(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() @@ -246,14 +239,15 @@ def test_split_read_stream(self): assert len(channel.requests) == 1 expected_request = storage_pb2.SplitReadStreamRequest( - original_stream=original_stream) + original_stream=original_stream + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_split_read_stream_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = big_query_storage_client.BigQueryStorageClient() diff --git a/bigquery_storage/tests/unit/test_client.py b/bigquery_storage/tests/unit/test_client.py index e671b9a3a92ab..c914aeca48018 100644 --- a/bigquery_storage/tests/unit/test_client.py +++ b/bigquery_storage/tests/unit/test_client.py @@ -19,17 +19,18 @@ from google.cloud.bigquery_storage_v1beta1 import types -PROJECT = 'my-project' -SERVICE_ACCOUNT_PROJECT = 'project-from-credentials' +PROJECT = "my-project" +SERVICE_ACCOUNT_PROJECT = "project-from-credentials" @pytest.fixture() def mock_transport(monkeypatch): from google.cloud.bigquery_storage_v1beta1.gapic.transports import ( - big_query_storage_grpc_transport + big_query_storage_grpc_transport, ) + transport = mock.create_autospec( - big_query_storage_grpc_transport.BigQueryStorageGrpcTransport, + big_query_storage_grpc_transport.BigQueryStorageGrpcTransport ) return transport @@ -43,9 +44,7 @@ def client_under_test(mock_transport): def transport_callable(credentials=None, default_class=None): return mock_transport - return client.BigQueryStorageClient( - transport=transport_callable, - ) + return client.BigQueryStorageClient(transport=transport_callable) def test_constructor_w_client_info(mock_transport): @@ -57,32 +56,27 @@ def transport_callable(credentials=None, default_class=None): client_under_test = client.BigQueryStorageClient( transport=transport_callable, client_info=client_info.ClientInfo( - client_library_version='test-client-version', + client_library_version="test-client-version" ), ) user_agent = client_under_test._client_info.to_user_agent() - assert 'test-client-version' in user_agent + assert "test-client-version" in user_agent def test_create_read_session(mock_transport, client_under_test): table_reference = types.TableReference( - project_id='data-project-id', - dataset_id='dataset_id', - table_id='table_id', + project_id="data-project-id", dataset_id="dataset_id", table_id="table_id" ) - client_under_test.create_read_session( - table_reference, - 'projects/other-project', - ) + client_under_test.create_read_session(table_reference, "projects/other-project") expected_request = types.CreateReadSessionRequest( - table_reference=table_reference, - parent='projects/other-project', + table_reference=table_reference, parent="projects/other-project" ) mock_transport.create_read_session.assert_called_once_with( - expected_request, metadata=mock.ANY, timeout=mock.ANY) + expected_request, metadata=mock.ANY, timeout=mock.ANY + ) def test_read_rows(mock_transport, client_under_test): @@ -90,8 +84,7 @@ def test_read_rows(mock_transport, client_under_test): client_under_test.read_rows(stream_position) - expected_request = types.ReadRowsRequest( - read_position=stream_position, - ) + expected_request = types.ReadRowsRequest(read_position=stream_position) mock_transport.create_read_session.read_rows( - expected_request, metadata=mock.ANY, timeout=mock.ANY) + expected_request, metadata=mock.ANY, timeout=mock.ANY + ) diff --git a/bigquery_storage/tests/unit/test_reader.py b/bigquery_storage/tests/unit/test_reader.py index 489e81fec176f..51bf2fd99ddca 100644 --- a/bigquery_storage/tests/unit/test_reader.py +++ b/bigquery_storage/tests/unit/test_reader.py @@ -36,12 +36,7 @@ "int64": "long", "float64": "double", "bool": "boolean", - "numeric": { - "type": "bytes", - "logicalType": "decimal", - "precision": 38, - "scale": 9, - }, + "numeric": {"type": "bytes", "logicalType": "decimal", "precision": 38, "scale": 9}, "string": "string", "bytes": "bytes", "date": {"type": "int", "logicalType": "date"}, @@ -95,9 +90,7 @@ "bytes_col": b"\x54\x69\x6d", "date_col": datetime.date(1970, 1, 1), "time_col": datetime.time(16, 20), - "ts_col": datetime.datetime( - 1991, 8, 25, 20, 57, 8, tzinfo=pytz.utc - ), + "ts_col": datetime.datetime(1991, 8, 25, 20, 57, 8, tzinfo=pytz.utc), } ], ] @@ -117,9 +110,7 @@ def class_under_test(mut): @pytest.fixture() def mock_client(): - from google.cloud.bigquery_storage_v1beta1.gapic import ( - big_query_storage_client, - ) + from google.cloud.bigquery_storage_v1beta1.gapic import big_query_storage_client return mock.create_autospec(big_query_storage_client.BigQueryStorageClient) @@ -142,14 +133,12 @@ def _bq_to_avro_blocks(bq_blocks, avro_schema_json): def _avro_blocks_w_deadline(avro_blocks): for block in avro_blocks: yield block - raise google.api_core.exceptions.DeadlineExceeded('test: please reconnect') + raise google.api_core.exceptions.DeadlineExceeded("test: please reconnect") def _generate_read_session(avro_schema_json): schema = json.dumps(avro_schema_json) - return bigquery_storage_v1beta1.types.ReadSession( - avro_schema={"schema": schema}, - ) + return bigquery_storage_v1beta1.types.ReadSession(avro_schema={"schema": schema}) def _bq_to_avro_schema(bq_columns): @@ -165,13 +154,7 @@ def _bq_to_avro_schema(bq_columns): if mode == "nullable": type_ = ["null", type_] - fields.append( - { - "name": name, - "type": type_, - "doc": doc, - } - ) + fields.append({"name": name, "type": type_, "doc": doc}) return avro_schema @@ -183,14 +166,10 @@ def _get_avro_bytes(rows, avro_schema): return avro_file.getvalue() -def test_rows_raises_import_error( - mut, class_under_test, mock_client, monkeypatch): - monkeypatch.setattr(mut, 'fastavro', None) +def test_rows_raises_import_error(mut, class_under_test, mock_client, monkeypatch): + monkeypatch.setattr(mut, "fastavro", None) reader = class_under_test( - [], - mock_client, - bigquery_storage_v1beta1.types.StreamPosition(), - {}, + [], mock_client, bigquery_storage_v1beta1.types.StreamPosition(), {} ) read_session = bigquery_storage_v1beta1.types.ReadSession() @@ -199,16 +178,11 @@ def test_rows_raises_import_error( def test_rows_w_empty_stream(class_under_test, mock_client): - bq_columns = [ - {"name": "int_col", "type": "int64"}, - ] + bq_columns = [{"name": "int_col", "type": "int64"}] avro_schema = _bq_to_avro_schema(bq_columns) read_session = _generate_read_session(avro_schema) reader = class_under_test( - [], - mock_client, - bigquery_storage_v1beta1.types.StreamPosition(), - {}, + [], mock_client, bigquery_storage_v1beta1.types.StreamPosition(), {} ) got = tuple(reader.rows(read_session)) @@ -221,10 +195,7 @@ def test_rows_w_scalars(class_under_test, mock_client): avro_blocks = _bq_to_avro_blocks(SCALAR_BLOCKS, avro_schema) reader = class_under_test( - avro_blocks, - mock_client, - bigquery_storage_v1beta1.types.StreamPosition(), - {}, + avro_blocks, mock_client, bigquery_storage_v1beta1.types.StreamPosition(), {} ) got = tuple(reader.rows(read_session)) @@ -233,9 +204,7 @@ def test_rows_w_scalars(class_under_test, mock_client): def test_rows_w_reconnect(class_under_test, mock_client): - bq_columns = [ - {"name": "int_col", "type": "int64"}, - ] + bq_columns = [{"name": "int_col", "type": "int64"}] avro_schema = _bq_to_avro_schema(bq_columns) read_session = _generate_read_session(avro_schema) bq_blocks_1 = [ @@ -243,49 +212,45 @@ def test_rows_w_reconnect(class_under_test, mock_client): [{"int_col": 345}, {"int_col": 456}], ] avro_blocks_1 = _avro_blocks_w_deadline( - _bq_to_avro_blocks(bq_blocks_1, avro_schema), + _bq_to_avro_blocks(bq_blocks_1, avro_schema) ) - bq_blocks_2 = [ - [{"int_col": 567}, {"int_col": 789}], - [{"int_col": 890}], - ] + bq_blocks_2 = [[{"int_col": 567}, {"int_col": 789}], [{"int_col": 890}]] avro_blocks_2 = _bq_to_avro_blocks(bq_blocks_2, avro_schema) mock_client.read_rows.return_value = avro_blocks_2 stream_position = bigquery_storage_v1beta1.types.StreamPosition( - stream={'name': 'test'}, + stream={"name": "test"} ) reader = class_under_test( avro_blocks_1, mock_client, stream_position, - {'metadata': {'test-key': 'test-value'}}, + {"metadata": {"test-key": "test-value"}}, ) got = tuple(reader.rows(read_session)) - expected = tuple(itertools.chain( - itertools.chain.from_iterable(bq_blocks_1), - itertools.chain.from_iterable(bq_blocks_2), - )) + expected = tuple( + itertools.chain( + itertools.chain.from_iterable(bq_blocks_1), + itertools.chain.from_iterable(bq_blocks_2), + ) + ) assert got == expected mock_client.read_rows.assert_called_once_with( bigquery_storage_v1beta1.types.StreamPosition( - stream={'name': 'test'}, - offset=4, + stream={"name": "test"}, offset=4 ), - metadata={'test-key': 'test-value'}, + metadata={"test-key": "test-value"}, ) def test_to_dataframe_no_pandas_raises_import_error( - mut, class_under_test, mock_client, monkeypatch): - monkeypatch.setattr(mut, 'pandas', None) + mut, class_under_test, mock_client, monkeypatch +): + monkeypatch.setattr(mut, "pandas", None) reader = class_under_test( - [], - mock_client, - bigquery_storage_v1beta1.types.StreamPosition(), - {}, + [], mock_client, bigquery_storage_v1beta1.types.StreamPosition(), {} ) read_session = bigquery_storage_v1beta1.types.ReadSession() @@ -294,13 +259,11 @@ def test_to_dataframe_no_pandas_raises_import_error( def test_to_dataframe_no_fastavro_raises_import_error( - mut, class_under_test, mock_client, monkeypatch): - monkeypatch.setattr(mut, 'fastavro', None) + mut, class_under_test, mock_client, monkeypatch +): + monkeypatch.setattr(mut, "fastavro", None) reader = class_under_test( - [], - mock_client, - bigquery_storage_v1beta1.types.StreamPosition(), - {}, + [], mock_client, bigquery_storage_v1beta1.types.StreamPosition(), {} ) read_session = bigquery_storage_v1beta1.types.ReadSession() @@ -314,22 +277,17 @@ def test_to_dataframe_w_scalars(class_under_test): avro_blocks = _bq_to_avro_blocks(SCALAR_BLOCKS, avro_schema) reader = class_under_test( - avro_blocks, - mock_client, - bigquery_storage_v1beta1.types.StreamPosition(), - {}, + avro_blocks, mock_client, bigquery_storage_v1beta1.types.StreamPosition(), {} ) got = reader.to_dataframe(read_session) - expected = pandas.DataFrame( - list(itertools.chain.from_iterable(SCALAR_BLOCKS)), - ) + expected = pandas.DataFrame(list(itertools.chain.from_iterable(SCALAR_BLOCKS))) # fastavro provides its own UTC definition, so # compare the timestamp columns separately. - got_ts = got['ts_col'] - got = got.drop(columns=['ts_col']) - expected_ts = expected['ts_col'] - expected = expected.drop(columns=['ts_col']) + got_ts = got["ts_col"] + got = got.drop(columns=["ts_col"]) + expected_ts = expected["ts_col"] + expected = expected.drop(columns=["ts_col"]) pandas.testing.assert_frame_equal( got.reset_index(drop=True), # reset_index to ignore row labels diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py index 1f223ce39dc34..c110db66b01d8 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py @@ -2,1020 +2,1622 @@ # source: google/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.bigtable_admin_v2.proto import instance_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2 +from google.cloud.bigtable_admin_v2.proto import ( + instance_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto', - package='google.bigtable.admin.v2', - syntax='proto3', - serialized_pb=_b('\nBgoogle/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x33google/cloud/bigtable/admin_v2/proto/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x97\x02\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x34\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.Instance\x12O\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"\"\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\":\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x85\x01\n\x1cPartialUpdateInstanceRequest\x12\x34\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.Instance\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"n\n\x14\x43reateClusterRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x32\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\"!\n\x11GetClusterRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"9\n\x13ListClustersRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"$\n\x14\x44\x65leteClusterRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xc4\x01\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x95\x01\n\x17\x43reateAppProfileRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\x12\x39\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"$\n\x14GetAppProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"O\n\x16ListAppProfilesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\x9e\x01\n\x17UpdateAppProfileRequest\x12\x39\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"@\n\x17\x44\x65leteAppProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0fignore_warnings\x18\x02 \x01(\x08\"\x1a\n\x18UpdateAppProfileMetadata2\xaa\x17\n\x15\x42igtableInstanceAdmin\x12\x8e\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\",\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x8a\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\")\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\x9b\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\")\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xac\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"<\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x84\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\")\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\x9d\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"=\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x92\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\"4\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xa3\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"4\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\x8a\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"7\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\x8d\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\"4\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xb1\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"D\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\x9e\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"7\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaf\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xb6\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"P\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\x96\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\x88\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"=\x82\xd3\xe4\x93\x02\x37\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*\x12\x88\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"=\x82\xd3\xe4\x93\x02\x37\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*\x12\xae\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"C\x82\xd3\xe4\x93\x02=\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*B\xbd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto", + package="google.bigtable.admin.v2", + syntax="proto3", + serialized_pb=_b( + '\nBgoogle/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x33google/cloud/bigtable/admin_v2/proto/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x97\x02\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x34\n\x08instance\x18\x03 \x01(\x0b\x32".google.bigtable.admin.v2.Instance\x12O\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01""\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t":\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"\x85\x01\n\x1cPartialUpdateInstanceRequest\x12\x34\n\x08instance\x18\x01 \x01(\x0b\x32".google.bigtable.admin.v2.Instance\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"n\n\x14\x43reateClusterRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x32\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster"!\n\x11GetClusterRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"9\n\x13ListClustersRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"$\n\x14\x44\x65leteClusterRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xc4\x01\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x95\x01\n\x17\x43reateAppProfileRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\x12\x39\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08"$\n\x14GetAppProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"O\n\x16ListAppProfilesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t"\x9e\x01\n\x17UpdateAppProfileRequest\x12\x39\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08"@\n\x17\x44\x65leteAppProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0fignore_warnings\x18\x02 \x01(\x08"\x1a\n\x18UpdateAppProfileMetadata2\xaa\x17\n\x15\x42igtableInstanceAdmin\x12\x8e\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation",\x82\xd3\xe4\x93\x02&"!/v2/{parent=projects/*}/instances:\x01*\x12\x8a\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a".google.bigtable.admin.v2.Instance")\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\x9b\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse")\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12".google.bigtable.admin.v2.Instance\x1a".google.bigtable.admin.v2.Instance",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xac\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation"<\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x84\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty")\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\x9d\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation"=\x82\xd3\xe4\x93\x02\x37",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x92\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster"4\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xa3\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse"4\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\x8a\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation"7\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\x8d\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xb1\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile"D\x82\xd3\xe4\x93\x02>"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\x9e\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile"7\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaf\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse"7\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xb6\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation"P\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\x96\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty"7\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\x88\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"=\x82\xd3\xe4\x93\x02\x37"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*\x12\x88\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"=\x82\xd3\xe4\x93\x02\x37"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*\x12\xae\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"C\x82\xd3\xe4\x93\x02="8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*B\xbd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _CREATEINSTANCEREQUEST_CLUSTERSENTRY = _descriptor.Descriptor( - name='ClustersEntry', - full_name='google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=570, - serialized_end=652, + name="ClustersEntry", + full_name="google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=570, + serialized_end=652, ) _CREATEINSTANCEREQUEST = _descriptor.Descriptor( - name='CreateInstanceRequest', - full_name='google.bigtable.admin.v2.CreateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.CreateInstanceRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_id', full_name='google.bigtable.admin.v2.CreateInstanceRequest.instance_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.bigtable.admin.v2.CreateInstanceRequest.instance', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='clusters', full_name='google.bigtable.admin.v2.CreateInstanceRequest.clusters', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CREATEINSTANCEREQUEST_CLUSTERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=373, - serialized_end=652, + name="CreateInstanceRequest", + full_name="google.bigtable.admin.v2.CreateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.CreateInstanceRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_id", + full_name="google.bigtable.admin.v2.CreateInstanceRequest.instance_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.bigtable.admin.v2.CreateInstanceRequest.instance", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="clusters", + full_name="google.bigtable.admin.v2.CreateInstanceRequest.clusters", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CREATEINSTANCEREQUEST_CLUSTERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=373, + serialized_end=652, ) _GETINSTANCEREQUEST = _descriptor.Descriptor( - name='GetInstanceRequest', - full_name='google.bigtable.admin.v2.GetInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.GetInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=654, - serialized_end=688, + name="GetInstanceRequest", + full_name="google.bigtable.admin.v2.GetInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.GetInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=654, + serialized_end=688, ) _LISTINSTANCESREQUEST = _descriptor.Descriptor( - name='ListInstancesRequest', - full_name='google.bigtable.admin.v2.ListInstancesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.ListInstancesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.bigtable.admin.v2.ListInstancesRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=690, - serialized_end=748, + name="ListInstancesRequest", + full_name="google.bigtable.admin.v2.ListInstancesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.ListInstancesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.bigtable.admin.v2.ListInstancesRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=690, + serialized_end=748, ) _LISTINSTANCESRESPONSE = _descriptor.Descriptor( - name='ListInstancesResponse', - full_name='google.bigtable.admin.v2.ListInstancesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instances', full_name='google.bigtable.admin.v2.ListInstancesResponse.instances', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='failed_locations', full_name='google.bigtable.admin.v2.ListInstancesResponse.failed_locations', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.bigtable.admin.v2.ListInstancesResponse.next_page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=751, - serialized_end=880, + name="ListInstancesResponse", + full_name="google.bigtable.admin.v2.ListInstancesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instances", + full_name="google.bigtable.admin.v2.ListInstancesResponse.instances", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="failed_locations", + full_name="google.bigtable.admin.v2.ListInstancesResponse.failed_locations", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.bigtable.admin.v2.ListInstancesResponse.next_page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=751, + serialized_end=880, ) _PARTIALUPDATEINSTANCEREQUEST = _descriptor.Descriptor( - name='PartialUpdateInstanceRequest', - full_name='google.bigtable.admin.v2.PartialUpdateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance', full_name='google.bigtable.admin.v2.PartialUpdateInstanceRequest.instance', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.bigtable.admin.v2.PartialUpdateInstanceRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=883, - serialized_end=1016, + name="PartialUpdateInstanceRequest", + full_name="google.bigtable.admin.v2.PartialUpdateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instance", + full_name="google.bigtable.admin.v2.PartialUpdateInstanceRequest.instance", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.bigtable.admin.v2.PartialUpdateInstanceRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=883, + serialized_end=1016, ) _DELETEINSTANCEREQUEST = _descriptor.Descriptor( - name='DeleteInstanceRequest', - full_name='google.bigtable.admin.v2.DeleteInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.DeleteInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1018, - serialized_end=1055, + name="DeleteInstanceRequest", + full_name="google.bigtable.admin.v2.DeleteInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.DeleteInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1018, + serialized_end=1055, ) _CREATECLUSTERREQUEST = _descriptor.Descriptor( - name='CreateClusterRequest', - full_name='google.bigtable.admin.v2.CreateClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.CreateClusterRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_id', full_name='google.bigtable.admin.v2.CreateClusterRequest.cluster_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster', full_name='google.bigtable.admin.v2.CreateClusterRequest.cluster', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1057, - serialized_end=1167, + name="CreateClusterRequest", + full_name="google.bigtable.admin.v2.CreateClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.CreateClusterRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_id", + full_name="google.bigtable.admin.v2.CreateClusterRequest.cluster_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster", + full_name="google.bigtable.admin.v2.CreateClusterRequest.cluster", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1057, + serialized_end=1167, ) _GETCLUSTERREQUEST = _descriptor.Descriptor( - name='GetClusterRequest', - full_name='google.bigtable.admin.v2.GetClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.GetClusterRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1169, - serialized_end=1202, + name="GetClusterRequest", + full_name="google.bigtable.admin.v2.GetClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.GetClusterRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1169, + serialized_end=1202, ) _LISTCLUSTERSREQUEST = _descriptor.Descriptor( - name='ListClustersRequest', - full_name='google.bigtable.admin.v2.ListClustersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.ListClustersRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.bigtable.admin.v2.ListClustersRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1204, - serialized_end=1261, + name="ListClustersRequest", + full_name="google.bigtable.admin.v2.ListClustersRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.ListClustersRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.bigtable.admin.v2.ListClustersRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1204, + serialized_end=1261, ) _LISTCLUSTERSRESPONSE = _descriptor.Descriptor( - name='ListClustersResponse', - full_name='google.bigtable.admin.v2.ListClustersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='clusters', full_name='google.bigtable.admin.v2.ListClustersResponse.clusters', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='failed_locations', full_name='google.bigtable.admin.v2.ListClustersResponse.failed_locations', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.bigtable.admin.v2.ListClustersResponse.next_page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1263, - serialized_end=1389, + name="ListClustersResponse", + full_name="google.bigtable.admin.v2.ListClustersResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="clusters", + full_name="google.bigtable.admin.v2.ListClustersResponse.clusters", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="failed_locations", + full_name="google.bigtable.admin.v2.ListClustersResponse.failed_locations", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.bigtable.admin.v2.ListClustersResponse.next_page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1263, + serialized_end=1389, ) _DELETECLUSTERREQUEST = _descriptor.Descriptor( - name='DeleteClusterRequest', - full_name='google.bigtable.admin.v2.DeleteClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.DeleteClusterRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1391, - serialized_end=1427, + name="DeleteClusterRequest", + full_name="google.bigtable.admin.v2.DeleteClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.DeleteClusterRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1391, + serialized_end=1427, ) _CREATEINSTANCEMETADATA = _descriptor.Descriptor( - name='CreateInstanceMetadata', - full_name='google.bigtable.admin.v2.CreateInstanceMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='original_request', full_name='google.bigtable.admin.v2.CreateInstanceMetadata.original_request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_time', full_name='google.bigtable.admin.v2.CreateInstanceMetadata.request_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finish_time', full_name='google.bigtable.admin.v2.CreateInstanceMetadata.finish_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1430, - serialized_end=1628, + name="CreateInstanceMetadata", + full_name="google.bigtable.admin.v2.CreateInstanceMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="original_request", + full_name="google.bigtable.admin.v2.CreateInstanceMetadata.original_request", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_time", + full_name="google.bigtable.admin.v2.CreateInstanceMetadata.request_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finish_time", + full_name="google.bigtable.admin.v2.CreateInstanceMetadata.finish_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1430, + serialized_end=1628, ) _UPDATEINSTANCEMETADATA = _descriptor.Descriptor( - name='UpdateInstanceMetadata', - full_name='google.bigtable.admin.v2.UpdateInstanceMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='original_request', full_name='google.bigtable.admin.v2.UpdateInstanceMetadata.original_request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_time', full_name='google.bigtable.admin.v2.UpdateInstanceMetadata.request_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finish_time', full_name='google.bigtable.admin.v2.UpdateInstanceMetadata.finish_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1631, - serialized_end=1836, + name="UpdateInstanceMetadata", + full_name="google.bigtable.admin.v2.UpdateInstanceMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="original_request", + full_name="google.bigtable.admin.v2.UpdateInstanceMetadata.original_request", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_time", + full_name="google.bigtable.admin.v2.UpdateInstanceMetadata.request_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finish_time", + full_name="google.bigtable.admin.v2.UpdateInstanceMetadata.finish_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1631, + serialized_end=1836, ) _CREATECLUSTERMETADATA = _descriptor.Descriptor( - name='CreateClusterMetadata', - full_name='google.bigtable.admin.v2.CreateClusterMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='original_request', full_name='google.bigtable.admin.v2.CreateClusterMetadata.original_request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_time', full_name='google.bigtable.admin.v2.CreateClusterMetadata.request_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finish_time', full_name='google.bigtable.admin.v2.CreateClusterMetadata.finish_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1839, - serialized_end=2035, + name="CreateClusterMetadata", + full_name="google.bigtable.admin.v2.CreateClusterMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="original_request", + full_name="google.bigtable.admin.v2.CreateClusterMetadata.original_request", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_time", + full_name="google.bigtable.admin.v2.CreateClusterMetadata.request_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finish_time", + full_name="google.bigtable.admin.v2.CreateClusterMetadata.finish_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1839, + serialized_end=2035, ) _UPDATECLUSTERMETADATA = _descriptor.Descriptor( - name='UpdateClusterMetadata', - full_name='google.bigtable.admin.v2.UpdateClusterMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='original_request', full_name='google.bigtable.admin.v2.UpdateClusterMetadata.original_request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_time', full_name='google.bigtable.admin.v2.UpdateClusterMetadata.request_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finish_time', full_name='google.bigtable.admin.v2.UpdateClusterMetadata.finish_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2038, - serialized_end=2221, + name="UpdateClusterMetadata", + full_name="google.bigtable.admin.v2.UpdateClusterMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="original_request", + full_name="google.bigtable.admin.v2.UpdateClusterMetadata.original_request", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_time", + full_name="google.bigtable.admin.v2.UpdateClusterMetadata.request_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finish_time", + full_name="google.bigtable.admin.v2.UpdateClusterMetadata.finish_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2038, + serialized_end=2221, ) _CREATEAPPPROFILEREQUEST = _descriptor.Descriptor( - name='CreateAppProfileRequest', - full_name='google.bigtable.admin.v2.CreateAppProfileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.CreateAppProfileRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile_id', full_name='google.bigtable.admin.v2.CreateAppProfileRequest.app_profile_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile', full_name='google.bigtable.admin.v2.CreateAppProfileRequest.app_profile', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ignore_warnings', full_name='google.bigtable.admin.v2.CreateAppProfileRequest.ignore_warnings', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2224, - serialized_end=2373, + name="CreateAppProfileRequest", + full_name="google.bigtable.admin.v2.CreateAppProfileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.CreateAppProfileRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile_id", + full_name="google.bigtable.admin.v2.CreateAppProfileRequest.app_profile_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile", + full_name="google.bigtable.admin.v2.CreateAppProfileRequest.app_profile", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ignore_warnings", + full_name="google.bigtable.admin.v2.CreateAppProfileRequest.ignore_warnings", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2224, + serialized_end=2373, ) _GETAPPPROFILEREQUEST = _descriptor.Descriptor( - name='GetAppProfileRequest', - full_name='google.bigtable.admin.v2.GetAppProfileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.GetAppProfileRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2375, - serialized_end=2411, + name="GetAppProfileRequest", + full_name="google.bigtable.admin.v2.GetAppProfileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.GetAppProfileRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2375, + serialized_end=2411, ) _LISTAPPPROFILESREQUEST = _descriptor.Descriptor( - name='ListAppProfilesRequest', - full_name='google.bigtable.admin.v2.ListAppProfilesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.ListAppProfilesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.bigtable.admin.v2.ListAppProfilesRequest.page_size', index=1, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.bigtable.admin.v2.ListAppProfilesRequest.page_token', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2413, - serialized_end=2492, + name="ListAppProfilesRequest", + full_name="google.bigtable.admin.v2.ListAppProfilesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.ListAppProfilesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.bigtable.admin.v2.ListAppProfilesRequest.page_size", + index=1, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.bigtable.admin.v2.ListAppProfilesRequest.page_token", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2413, + serialized_end=2492, ) _LISTAPPPROFILESRESPONSE = _descriptor.Descriptor( - name='ListAppProfilesResponse', - full_name='google.bigtable.admin.v2.ListAppProfilesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='app_profiles', full_name='google.bigtable.admin.v2.ListAppProfilesResponse.app_profiles', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.bigtable.admin.v2.ListAppProfilesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='failed_locations', full_name='google.bigtable.admin.v2.ListAppProfilesResponse.failed_locations', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2495, - serialized_end=2631, + name="ListAppProfilesResponse", + full_name="google.bigtable.admin.v2.ListAppProfilesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="app_profiles", + full_name="google.bigtable.admin.v2.ListAppProfilesResponse.app_profiles", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.bigtable.admin.v2.ListAppProfilesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="failed_locations", + full_name="google.bigtable.admin.v2.ListAppProfilesResponse.failed_locations", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2495, + serialized_end=2631, ) _UPDATEAPPPROFILEREQUEST = _descriptor.Descriptor( - name='UpdateAppProfileRequest', - full_name='google.bigtable.admin.v2.UpdateAppProfileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='app_profile', full_name='google.bigtable.admin.v2.UpdateAppProfileRequest.app_profile', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.bigtable.admin.v2.UpdateAppProfileRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ignore_warnings', full_name='google.bigtable.admin.v2.UpdateAppProfileRequest.ignore_warnings', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2634, - serialized_end=2792, + name="UpdateAppProfileRequest", + full_name="google.bigtable.admin.v2.UpdateAppProfileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="app_profile", + full_name="google.bigtable.admin.v2.UpdateAppProfileRequest.app_profile", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.bigtable.admin.v2.UpdateAppProfileRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ignore_warnings", + full_name="google.bigtable.admin.v2.UpdateAppProfileRequest.ignore_warnings", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2634, + serialized_end=2792, ) _DELETEAPPPROFILEREQUEST = _descriptor.Descriptor( - name='DeleteAppProfileRequest', - full_name='google.bigtable.admin.v2.DeleteAppProfileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.DeleteAppProfileRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ignore_warnings', full_name='google.bigtable.admin.v2.DeleteAppProfileRequest.ignore_warnings', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2794, - serialized_end=2858, + name="DeleteAppProfileRequest", + full_name="google.bigtable.admin.v2.DeleteAppProfileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.DeleteAppProfileRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ignore_warnings", + full_name="google.bigtable.admin.v2.DeleteAppProfileRequest.ignore_warnings", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2794, + serialized_end=2858, ) _UPDATEAPPPROFILEMETADATA = _descriptor.Descriptor( - name='UpdateAppProfileMetadata', - full_name='google.bigtable.admin.v2.UpdateAppProfileMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2860, - serialized_end=2886, + name="UpdateAppProfileMetadata", + full_name="google.bigtable.admin.v2.UpdateAppProfileMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2860, + serialized_end=2886, ) -_CREATEINSTANCEREQUEST_CLUSTERSENTRY.fields_by_name['value'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER +_CREATEINSTANCEREQUEST_CLUSTERSENTRY.fields_by_name[ + "value" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER +) _CREATEINSTANCEREQUEST_CLUSTERSENTRY.containing_type = _CREATEINSTANCEREQUEST -_CREATEINSTANCEREQUEST.fields_by_name['instance'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE -_CREATEINSTANCEREQUEST.fields_by_name['clusters'].message_type = _CREATEINSTANCEREQUEST_CLUSTERSENTRY -_LISTINSTANCESRESPONSE.fields_by_name['instances'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE -_PARTIALUPDATEINSTANCEREQUEST.fields_by_name['instance'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE -_PARTIALUPDATEINSTANCEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CREATECLUSTERREQUEST.fields_by_name['cluster'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER -_LISTCLUSTERSRESPONSE.fields_by_name['clusters'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER -_CREATEINSTANCEMETADATA.fields_by_name['original_request'].message_type = _CREATEINSTANCEREQUEST -_CREATEINSTANCEMETADATA.fields_by_name['request_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATEINSTANCEMETADATA.fields_by_name['finish_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATEINSTANCEMETADATA.fields_by_name['original_request'].message_type = _PARTIALUPDATEINSTANCEREQUEST -_UPDATEINSTANCEMETADATA.fields_by_name['request_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATEINSTANCEMETADATA.fields_by_name['finish_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATECLUSTERMETADATA.fields_by_name['original_request'].message_type = _CREATECLUSTERREQUEST -_CREATECLUSTERMETADATA.fields_by_name['request_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATECLUSTERMETADATA.fields_by_name['finish_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATECLUSTERMETADATA.fields_by_name['original_request'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER -_UPDATECLUSTERMETADATA.fields_by_name['request_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATECLUSTERMETADATA.fields_by_name['finish_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATEAPPPROFILEREQUEST.fields_by_name['app_profile'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE -_LISTAPPPROFILESRESPONSE.fields_by_name['app_profiles'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE -_UPDATEAPPPROFILEREQUEST.fields_by_name['app_profile'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE -_UPDATEAPPPROFILEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name['CreateInstanceRequest'] = _CREATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['GetInstanceRequest'] = _GETINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['ListInstancesRequest'] = _LISTINSTANCESREQUEST -DESCRIPTOR.message_types_by_name['ListInstancesResponse'] = _LISTINSTANCESRESPONSE -DESCRIPTOR.message_types_by_name['PartialUpdateInstanceRequest'] = _PARTIALUPDATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['DeleteInstanceRequest'] = _DELETEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['CreateClusterRequest'] = _CREATECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['GetClusterRequest'] = _GETCLUSTERREQUEST -DESCRIPTOR.message_types_by_name['ListClustersRequest'] = _LISTCLUSTERSREQUEST -DESCRIPTOR.message_types_by_name['ListClustersResponse'] = _LISTCLUSTERSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteClusterRequest'] = _DELETECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['CreateInstanceMetadata'] = _CREATEINSTANCEMETADATA -DESCRIPTOR.message_types_by_name['UpdateInstanceMetadata'] = _UPDATEINSTANCEMETADATA -DESCRIPTOR.message_types_by_name['CreateClusterMetadata'] = _CREATECLUSTERMETADATA -DESCRIPTOR.message_types_by_name['UpdateClusterMetadata'] = _UPDATECLUSTERMETADATA -DESCRIPTOR.message_types_by_name['CreateAppProfileRequest'] = _CREATEAPPPROFILEREQUEST -DESCRIPTOR.message_types_by_name['GetAppProfileRequest'] = _GETAPPPROFILEREQUEST -DESCRIPTOR.message_types_by_name['ListAppProfilesRequest'] = _LISTAPPPROFILESREQUEST -DESCRIPTOR.message_types_by_name['ListAppProfilesResponse'] = _LISTAPPPROFILESRESPONSE -DESCRIPTOR.message_types_by_name['UpdateAppProfileRequest'] = _UPDATEAPPPROFILEREQUEST -DESCRIPTOR.message_types_by_name['DeleteAppProfileRequest'] = _DELETEAPPPROFILEREQUEST -DESCRIPTOR.message_types_by_name['UpdateAppProfileMetadata'] = _UPDATEAPPPROFILEMETADATA +_CREATEINSTANCEREQUEST.fields_by_name[ + "instance" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE +) +_CREATEINSTANCEREQUEST.fields_by_name[ + "clusters" +].message_type = _CREATEINSTANCEREQUEST_CLUSTERSENTRY +_LISTINSTANCESRESPONSE.fields_by_name[ + "instances" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE +) +_PARTIALUPDATEINSTANCEREQUEST.fields_by_name[ + "instance" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE +) +_PARTIALUPDATEINSTANCEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CREATECLUSTERREQUEST.fields_by_name[ + "cluster" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER +) +_LISTCLUSTERSRESPONSE.fields_by_name[ + "clusters" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER +) +_CREATEINSTANCEMETADATA.fields_by_name[ + "original_request" +].message_type = _CREATEINSTANCEREQUEST +_CREATEINSTANCEMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATEINSTANCEMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATEINSTANCEMETADATA.fields_by_name[ + "original_request" +].message_type = _PARTIALUPDATEINSTANCEREQUEST +_UPDATEINSTANCEMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATEINSTANCEMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATECLUSTERMETADATA.fields_by_name[ + "original_request" +].message_type = _CREATECLUSTERREQUEST +_CREATECLUSTERMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATECLUSTERMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATECLUSTERMETADATA.fields_by_name[ + "original_request" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER +) +_UPDATECLUSTERMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATECLUSTERMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATEAPPPROFILEREQUEST.fields_by_name[ + "app_profile" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE +) +_LISTAPPPROFILESRESPONSE.fields_by_name[ + "app_profiles" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE +) +_UPDATEAPPPROFILEREQUEST.fields_by_name[ + "app_profile" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE +) +_UPDATEAPPPROFILEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name["CreateInstanceRequest"] = _CREATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["GetInstanceRequest"] = _GETINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["ListInstancesRequest"] = _LISTINSTANCESREQUEST +DESCRIPTOR.message_types_by_name["ListInstancesResponse"] = _LISTINSTANCESRESPONSE +DESCRIPTOR.message_types_by_name[ + "PartialUpdateInstanceRequest" +] = _PARTIALUPDATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["DeleteInstanceRequest"] = _DELETEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["CreateClusterRequest"] = _CREATECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["GetClusterRequest"] = _GETCLUSTERREQUEST +DESCRIPTOR.message_types_by_name["ListClustersRequest"] = _LISTCLUSTERSREQUEST +DESCRIPTOR.message_types_by_name["ListClustersResponse"] = _LISTCLUSTERSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteClusterRequest"] = _DELETECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["CreateInstanceMetadata"] = _CREATEINSTANCEMETADATA +DESCRIPTOR.message_types_by_name["UpdateInstanceMetadata"] = _UPDATEINSTANCEMETADATA +DESCRIPTOR.message_types_by_name["CreateClusterMetadata"] = _CREATECLUSTERMETADATA +DESCRIPTOR.message_types_by_name["UpdateClusterMetadata"] = _UPDATECLUSTERMETADATA +DESCRIPTOR.message_types_by_name["CreateAppProfileRequest"] = _CREATEAPPPROFILEREQUEST +DESCRIPTOR.message_types_by_name["GetAppProfileRequest"] = _GETAPPPROFILEREQUEST +DESCRIPTOR.message_types_by_name["ListAppProfilesRequest"] = _LISTAPPPROFILESREQUEST +DESCRIPTOR.message_types_by_name["ListAppProfilesResponse"] = _LISTAPPPROFILESRESPONSE +DESCRIPTOR.message_types_by_name["UpdateAppProfileRequest"] = _UPDATEAPPPROFILEREQUEST +DESCRIPTOR.message_types_by_name["DeleteAppProfileRequest"] = _DELETEAPPPROFILEREQUEST +DESCRIPTOR.message_types_by_name["UpdateAppProfileMetadata"] = _UPDATEAPPPROFILEMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateInstanceRequest = _reflection.GeneratedProtocolMessageType('CreateInstanceRequest', (_message.Message,), dict( - - ClustersEntry = _reflection.GeneratedProtocolMessageType('ClustersEntry', (_message.Message,), dict( - DESCRIPTOR = _CREATEINSTANCEREQUEST_CLUSTERSENTRY, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry) - )) - , - DESCRIPTOR = _CREATEINSTANCEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.CreateInstance. +CreateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "CreateInstanceRequest", + (_message.Message,), + dict( + ClustersEntry=_reflection.GeneratedProtocolMessageType( + "ClustersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEINSTANCEREQUEST_CLUSTERSENTRY, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2" + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry) + ), + ), + DESCRIPTOR=_CREATEINSTANCEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.CreateInstance. Attributes: @@ -1036,16 +1638,19 @@ Fields marked ``OutputOnly`` must be left blank. Currently, at most two clusters can be specified. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceRequest) + ), +) _sym_db.RegisterMessage(CreateInstanceRequest) _sym_db.RegisterMessage(CreateInstanceRequest.ClustersEntry) -GetInstanceRequest = _reflection.GeneratedProtocolMessageType('GetInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETINSTANCEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.GetInstance. +GetInstanceRequest = _reflection.GeneratedProtocolMessageType( + "GetInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETINSTANCEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.GetInstance. Attributes: @@ -1053,15 +1658,18 @@ The unique name of the requested instance. Values are of the form ``projects//instances/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetInstanceRequest) + ), +) _sym_db.RegisterMessage(GetInstanceRequest) -ListInstancesRequest = _reflection.GeneratedProtocolMessageType('ListInstancesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.ListInstances. +ListInstancesRequest = _reflection.GeneratedProtocolMessageType( + "ListInstancesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.ListInstances. Attributes: @@ -1071,15 +1679,18 @@ page_token: DEPRECATED: This field is unused and ignored. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListInstancesRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListInstancesRequest) + ), +) _sym_db.RegisterMessage(ListInstancesRequest) -ListInstancesResponse = _reflection.GeneratedProtocolMessageType('ListInstancesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESRESPONSE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Response message for BigtableInstanceAdmin.ListInstances. +ListInstancesResponse = _reflection.GeneratedProtocolMessageType( + "ListInstancesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESRESPONSE, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Response message for BigtableInstanceAdmin.ListInstances. Attributes: @@ -1096,15 +1707,18 @@ next_page_token: DEPRECATED: This field is unused and ignored. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListInstancesResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListInstancesResponse) + ), +) _sym_db.RegisterMessage(ListInstancesResponse) -PartialUpdateInstanceRequest = _reflection.GeneratedProtocolMessageType('PartialUpdateInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _PARTIALUPDATEINSTANCEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.PartialUpdateInstance. +PartialUpdateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "PartialUpdateInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PARTIALUPDATEINSTANCEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.PartialUpdateInstance. Attributes: @@ -1114,15 +1728,18 @@ The subset of Instance fields which should be replaced. Must be explicitly set. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.PartialUpdateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.PartialUpdateInstanceRequest) + ), +) _sym_db.RegisterMessage(PartialUpdateInstanceRequest) -DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType('DeleteInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEINSTANCEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.DeleteInstance. +DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType( + "DeleteInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEINSTANCEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.DeleteInstance. Attributes: @@ -1130,15 +1747,18 @@ The unique name of the instance to be deleted. Values are of the form ``projects//instances/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteInstanceRequest) + ), +) _sym_db.RegisterMessage(DeleteInstanceRequest) -CreateClusterRequest = _reflection.GeneratedProtocolMessageType('CreateClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECLUSTERREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.CreateCluster. +CreateClusterRequest = _reflection.GeneratedProtocolMessageType( + "CreateClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATECLUSTERREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.CreateCluster. Attributes: @@ -1154,15 +1774,18 @@ The cluster to be created. Fields marked ``OutputOnly`` must be left blank. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateClusterRequest) + ), +) _sym_db.RegisterMessage(CreateClusterRequest) -GetClusterRequest = _reflection.GeneratedProtocolMessageType('GetClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCLUSTERREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.GetCluster. +GetClusterRequest = _reflection.GeneratedProtocolMessageType( + "GetClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETCLUSTERREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.GetCluster. Attributes: @@ -1171,15 +1794,18 @@ form ``projects//instances//clusters/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetClusterRequest) + ), +) _sym_db.RegisterMessage(GetClusterRequest) -ListClustersRequest = _reflection.GeneratedProtocolMessageType('ListClustersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.ListClusters. +ListClustersRequest = _reflection.GeneratedProtocolMessageType( + "ListClustersRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.ListClusters. Attributes: @@ -1192,15 +1818,18 @@ page_token: DEPRECATED: This field is unused and ignored. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListClustersRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListClustersRequest) + ), +) _sym_db.RegisterMessage(ListClustersRequest) -ListClustersResponse = _reflection.GeneratedProtocolMessageType('ListClustersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSRESPONSE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Response message for BigtableInstanceAdmin.ListClusters. +ListClustersResponse = _reflection.GeneratedProtocolMessageType( + "ListClustersResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSRESPONSE, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Response message for BigtableInstanceAdmin.ListClusters. Attributes: @@ -1216,15 +1845,18 @@ next_page_token: DEPRECATED: This field is unused and ignored. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListClustersResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListClustersResponse) + ), +) _sym_db.RegisterMessage(ListClustersResponse) -DeleteClusterRequest = _reflection.GeneratedProtocolMessageType('DeleteClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETECLUSTERREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.DeleteCluster. +DeleteClusterRequest = _reflection.GeneratedProtocolMessageType( + "DeleteClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETECLUSTERREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.DeleteCluster. Attributes: @@ -1233,15 +1865,18 @@ the form ``projects//instances//clusters/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteClusterRequest) + ), +) _sym_db.RegisterMessage(DeleteClusterRequest) -CreateInstanceMetadata = _reflection.GeneratedProtocolMessageType('CreateInstanceMetadata', (_message.Message,), dict( - DESCRIPTOR = _CREATEINSTANCEMETADATA, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """The metadata for the Operation returned by CreateInstance. +CreateInstanceMetadata = _reflection.GeneratedProtocolMessageType( + "CreateInstanceMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEINSTANCEMETADATA, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""The metadata for the Operation returned by CreateInstance. Attributes: @@ -1254,15 +1889,18 @@ The time at which the operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceMetadata) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceMetadata) + ), +) _sym_db.RegisterMessage(CreateInstanceMetadata) -UpdateInstanceMetadata = _reflection.GeneratedProtocolMessageType('UpdateInstanceMetadata', (_message.Message,), dict( - DESCRIPTOR = _UPDATEINSTANCEMETADATA, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """The metadata for the Operation returned by UpdateInstance. +UpdateInstanceMetadata = _reflection.GeneratedProtocolMessageType( + "UpdateInstanceMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEINSTANCEMETADATA, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""The metadata for the Operation returned by UpdateInstance. Attributes: @@ -1275,15 +1913,18 @@ The time at which the operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateInstanceMetadata) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateInstanceMetadata) + ), +) _sym_db.RegisterMessage(UpdateInstanceMetadata) -CreateClusterMetadata = _reflection.GeneratedProtocolMessageType('CreateClusterMetadata', (_message.Message,), dict( - DESCRIPTOR = _CREATECLUSTERMETADATA, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """The metadata for the Operation returned by CreateCluster. +CreateClusterMetadata = _reflection.GeneratedProtocolMessageType( + "CreateClusterMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_CREATECLUSTERMETADATA, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""The metadata for the Operation returned by CreateCluster. Attributes: @@ -1296,15 +1937,18 @@ The time at which the operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateClusterMetadata) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateClusterMetadata) + ), +) _sym_db.RegisterMessage(CreateClusterMetadata) -UpdateClusterMetadata = _reflection.GeneratedProtocolMessageType('UpdateClusterMetadata', (_message.Message,), dict( - DESCRIPTOR = _UPDATECLUSTERMETADATA, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """The metadata for the Operation returned by UpdateCluster. +UpdateClusterMetadata = _reflection.GeneratedProtocolMessageType( + "UpdateClusterMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATECLUSTERMETADATA, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""The metadata for the Operation returned by UpdateCluster. Attributes: @@ -1317,15 +1961,18 @@ The time at which the operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateClusterMetadata) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateClusterMetadata) + ), +) _sym_db.RegisterMessage(UpdateClusterMetadata) -CreateAppProfileRequest = _reflection.GeneratedProtocolMessageType('CreateAppProfileRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEAPPPROFILEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.CreateAppProfile. +CreateAppProfileRequest = _reflection.GeneratedProtocolMessageType( + "CreateAppProfileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEAPPPROFILEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.CreateAppProfile. Attributes: @@ -1343,15 +1990,18 @@ ignore_warnings: If true, ignore safety checks when creating the app profile. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateAppProfileRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateAppProfileRequest) + ), +) _sym_db.RegisterMessage(CreateAppProfileRequest) -GetAppProfileRequest = _reflection.GeneratedProtocolMessageType('GetAppProfileRequest', (_message.Message,), dict( - DESCRIPTOR = _GETAPPPROFILEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.GetAppProfile. +GetAppProfileRequest = _reflection.GeneratedProtocolMessageType( + "GetAppProfileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETAPPPROFILEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.GetAppProfile. Attributes: @@ -1360,15 +2010,18 @@ the form ``projects//instances//appProfiles /``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetAppProfileRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetAppProfileRequest) + ), +) _sym_db.RegisterMessage(GetAppProfileRequest) -ListAppProfilesRequest = _reflection.GeneratedProtocolMessageType('ListAppProfilesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTAPPPROFILESREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.ListAppProfiles. +ListAppProfilesRequest = _reflection.GeneratedProtocolMessageType( + "ListAppProfilesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTAPPPROFILESREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.ListAppProfiles. Attributes: @@ -1384,15 +2037,18 @@ page_token: The value of ``next_page_token`` returned by a previous call. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListAppProfilesRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListAppProfilesRequest) + ), +) _sym_db.RegisterMessage(ListAppProfilesRequest) -ListAppProfilesResponse = _reflection.GeneratedProtocolMessageType('ListAppProfilesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTAPPPROFILESRESPONSE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Response message for BigtableInstanceAdmin.ListAppProfiles. +ListAppProfilesResponse = _reflection.GeneratedProtocolMessageType( + "ListAppProfilesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTAPPPROFILESRESPONSE, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Response message for BigtableInstanceAdmin.ListAppProfiles. Attributes: @@ -1409,15 +2065,18 @@ ``app_profiles``. Values are of the form ``projects//locations/`` """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListAppProfilesResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListAppProfilesResponse) + ), +) _sym_db.RegisterMessage(ListAppProfilesResponse) -UpdateAppProfileRequest = _reflection.GeneratedProtocolMessageType('UpdateAppProfileRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEAPPPROFILEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.UpdateAppProfile. +UpdateAppProfileRequest = _reflection.GeneratedProtocolMessageType( + "UpdateAppProfileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEAPPPROFILEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.UpdateAppProfile. Attributes: @@ -1430,15 +2089,18 @@ ignore_warnings: If true, ignore safety checks when updating the app profile. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateAppProfileRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateAppProfileRequest) + ), +) _sym_db.RegisterMessage(UpdateAppProfileRequest) -DeleteAppProfileRequest = _reflection.GeneratedProtocolMessageType('DeleteAppProfileRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEAPPPROFILEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """Request message for BigtableInstanceAdmin.DeleteAppProfile. +DeleteAppProfileRequest = _reflection.GeneratedProtocolMessageType( + "DeleteAppProfileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEAPPPROFILEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""Request message for BigtableInstanceAdmin.DeleteAppProfile. Attributes: @@ -1449,209 +2111,306 @@ ignore_warnings: If true, ignore safety checks when deleting the app profile. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteAppProfileRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteAppProfileRequest) + ), +) _sym_db.RegisterMessage(DeleteAppProfileRequest) -UpdateAppProfileMetadata = _reflection.GeneratedProtocolMessageType('UpdateAppProfileMetadata', (_message.Message,), dict( - DESCRIPTOR = _UPDATEAPPPROFILEMETADATA, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2' - , - __doc__ = """The metadata for the Operation returned by UpdateAppProfile. +UpdateAppProfileMetadata = _reflection.GeneratedProtocolMessageType( + "UpdateAppProfileMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEAPPPROFILEMETADATA, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", + __doc__="""The metadata for the Operation returned by UpdateAppProfile. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateAppProfileMetadata) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateAppProfileMetadata) + ), +) _sym_db.RegisterMessage(UpdateAppProfileMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.bigtable.admin.v2B\032BigtableInstanceAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.bigtable.admin.v2B\032BigtableInstanceAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" + ), +) _CREATEINSTANCEREQUEST_CLUSTERSENTRY.has_options = True -_CREATEINSTANCEREQUEST_CLUSTERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CREATEINSTANCEREQUEST_CLUSTERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _BIGTABLEINSTANCEADMIN = _descriptor.ServiceDescriptor( - name='BigtableInstanceAdmin', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2889, - serialized_end=5875, - methods=[ - _descriptor.MethodDescriptor( - name='CreateInstance', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance', + name="BigtableInstanceAdmin", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002&\"!/v2/{parent=projects/*}/instances:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetInstance', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance', - index=1, - containing_service=None, - input_type=_GETINSTANCEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#\022!/v2/{name=projects/*/instances/*}')), - ), - _descriptor.MethodDescriptor( - name='ListInstances', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances', - index=2, - containing_service=None, - input_type=_LISTINSTANCESREQUEST, - output_type=_LISTINSTANCESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#\022!/v2/{parent=projects/*}/instances')), - ), - _descriptor.MethodDescriptor( - name='UpdateInstance', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance', - index=3, - containing_service=None, - input_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002&\032!/v2/{name=projects/*/instances/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='PartialUpdateInstance', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance', - index=4, - containing_service=None, - input_type=_PARTIALUPDATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\00262*/v2/{instance.name=projects/*/instances/*}:\010instance')), - ), - _descriptor.MethodDescriptor( - name='DeleteInstance', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance', - index=5, - containing_service=None, - input_type=_DELETEINSTANCEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#*!/v2/{name=projects/*/instances/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateCluster', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster', - index=6, - containing_service=None, - input_type=_CREATECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\",/v2/{parent=projects/*/instances/*}/clusters:\007cluster')), - ), - _descriptor.MethodDescriptor( - name='GetCluster', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster', - index=7, - containing_service=None, - input_type=_GETCLUSTERREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v2/{name=projects/*/instances/*/clusters/*}')), - ), - _descriptor.MethodDescriptor( - name='ListClusters', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters', - index=8, - containing_service=None, - input_type=_LISTCLUSTERSREQUEST, - output_type=_LISTCLUSTERSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v2/{parent=projects/*/instances/*}/clusters')), - ), - _descriptor.MethodDescriptor( - name='UpdateCluster', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster', - index=9, - containing_service=None, - input_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\032,/v2/{name=projects/*/instances/*/clusters/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeleteCluster', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster', - index=10, - containing_service=None, - input_type=_DELETECLUSTERREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.*,/v2/{name=projects/*/instances/*/clusters/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateAppProfile', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile', - index=11, - containing_service=None, - input_type=_CREATEAPPPROFILEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>\"//v2/{parent=projects/*/instances/*}/appProfiles:\013app_profile')), - ), - _descriptor.MethodDescriptor( - name='GetAppProfile', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile', - index=12, - containing_service=None, - input_type=_GETAPPPROFILEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v2/{name=projects/*/instances/*/appProfiles/*}')), - ), - _descriptor.MethodDescriptor( - name='ListAppProfiles', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles', - index=13, - containing_service=None, - input_type=_LISTAPPPROFILESREQUEST, - output_type=_LISTAPPPROFILESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v2/{parent=projects/*/instances/*}/appProfiles')), - ), - _descriptor.MethodDescriptor( - name='UpdateAppProfile', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile', - index=14, - containing_service=None, - input_type=_UPDATEAPPPROFILEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\013app_profile')), - ), - _descriptor.MethodDescriptor( - name='DeleteAppProfile', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile', - index=15, - containing_service=None, - input_type=_DELETEAPPPROFILEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021*//v2/{name=projects/*/instances/*/appProfiles/*}')), - ), - _descriptor.MethodDescriptor( - name='GetIamPolicy', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy', - index=16, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='SetIamPolicy', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy', - index=17, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='TestIamPermissions', - full_name='google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions', - index=18, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, - output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002=\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\001*')), - ), -]) + options=None, + serialized_start=2889, + serialized_end=5875, + methods=[ + _descriptor.MethodDescriptor( + name="CreateInstance", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + index=0, + containing_service=None, + input_type=_CREATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002&"!/v2/{parent=projects/*}/instances:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="GetInstance", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + index=1, + containing_service=None, + input_type=_GETINSTANCEREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002#\022!/v2/{name=projects/*/instances/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListInstances", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + index=2, + containing_service=None, + input_type=_LISTINSTANCESREQUEST, + output_type=_LISTINSTANCESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002#\022!/v2/{parent=projects/*}/instances"), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateInstance", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + index=3, + containing_service=None, + input_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002&\032!/v2/{name=projects/*/instances/*}:\001*"), + ), + ), + _descriptor.MethodDescriptor( + name="PartialUpdateInstance", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + index=4, + containing_service=None, + input_type=_PARTIALUPDATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\00262*/v2/{instance.name=projects/*/instances/*}:\010instance" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteInstance", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + index=5, + containing_service=None, + input_type=_DELETEINSTANCEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002#*!/v2/{name=projects/*/instances/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateCluster", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + index=6, + containing_service=None, + input_type=_CREATECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027",/v2/{parent=projects/*/instances/*}/clusters:\007cluster' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetCluster", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + index=7, + containing_service=None, + input_type=_GETCLUSTERREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v2/{name=projects/*/instances/*/clusters/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListClusters", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + index=8, + containing_service=None, + input_type=_LISTCLUSTERSREQUEST, + output_type=_LISTCLUSTERSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v2/{parent=projects/*/instances/*}/clusters" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateCluster", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + index=9, + containing_service=None, + input_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\032,/v2/{name=projects/*/instances/*/clusters/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteCluster", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + index=10, + containing_service=None, + input_type=_DELETECLUSTERREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.*,/v2/{name=projects/*/instances/*/clusters/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateAppProfile", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + index=11, + containing_service=None, + input_type=_CREATEAPPPROFILEREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002>"//v2/{parent=projects/*/instances/*}/appProfiles:\013app_profile' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetAppProfile", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + index=12, + containing_service=None, + input_type=_GETAPPPROFILEREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v2/{name=projects/*/instances/*/appProfiles/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListAppProfiles", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + index=13, + containing_service=None, + input_type=_LISTAPPPROFILESREQUEST, + output_type=_LISTAPPPROFILESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v2/{parent=projects/*/instances/*}/appProfiles" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateAppProfile", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + index=14, + containing_service=None, + input_type=_UPDATEAPPPROFILEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\013app_profile" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteAppProfile", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + index=15, + containing_service=None, + input_type=_DELETEAPPPROFILEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021*//v2/{name=projects/*/instances/*/appProfiles/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetIamPolicy", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + index=16, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="SetIamPolicy", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + index=17, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="TestIamPermissions", + full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + index=18, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, + output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002="8/v2/{resource=projects/*/instances/*}:testIamPermissions:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_BIGTABLEINSTANCEADMIN) -DESCRIPTOR.services_by_name['BigtableInstanceAdmin'] = _BIGTABLEINSTANCEADMIN +DESCRIPTOR.services_by_name["BigtableInstanceAdmin"] = _BIGTABLEINSTANCEADMIN # @@protoc_insertion_point(module_scope) diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py index f1ea31abdbba7..0ca0445e22db9 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py @@ -1,363 +1,370 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.bigtable_admin_v2.proto import bigtable_instance_admin_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2 -from google.cloud.bigtable_admin_v2.proto import instance_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2 +from google.cloud.bigtable_admin_v2.proto import ( + bigtable_instance_admin_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2, +) +from google.cloud.bigtable_admin_v2.proto import ( + instance_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class BigtableInstanceAdminStub(object): - """Service for creating, configuring, and deleting Cloud Bigtable Instances and + """Service for creating, configuring, and deleting Cloud Bigtable Instances and Clusters. Provides access to the Instance and Cluster schemas only, not the tables' metadata or data stored in those tables. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateInstance = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateInstance = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.GetInstance = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, + self.GetInstance = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, ) - self.ListInstances = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.FromString, + self.ListInstances = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.FromString, ) - self.UpdateInstance = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateInstance', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, + self.UpdateInstance = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateInstance", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, ) - self.PartialUpdateInstance = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.PartialUpdateInstance = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteInstance = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteInstance = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateCluster = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateCluster', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateCluster = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateCluster", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.GetCluster = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/GetCluster', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, + self.GetCluster = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetCluster", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, ) - self.ListClusters = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.FromString, + self.ListClusters = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.FromString, ) - self.UpdateCluster = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateCluster', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateCluster = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateCluster", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteCluster = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteCluster', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteCluster = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteCluster", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateAppProfile = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, + self.CreateAppProfile = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, ) - self.GetAppProfile = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/GetAppProfile', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, + self.GetAppProfile = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetAppProfile", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, ) - self.ListAppProfiles = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/ListAppProfiles', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.FromString, + self.ListAppProfiles = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListAppProfiles", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.FromString, ) - self.UpdateAppProfile = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateAppProfile', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateAppProfile = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateAppProfile", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteAppProfile = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteAppProfile', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteAppProfile = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteAppProfile", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetIamPolicy = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/GetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.GetIamPolicy = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.SetIamPolicy = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/SetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.SetIamPolicy = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/SetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.TestIamPermissions = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableInstanceAdmin/TestIamPermissions', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, + self.TestIamPermissions = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableInstanceAdmin/TestIamPermissions", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, ) class BigtableInstanceAdminServicer(object): - """Service for creating, configuring, and deleting Cloud Bigtable Instances and + """Service for creating, configuring, and deleting Cloud Bigtable Instances and Clusters. Provides access to the Instance and Cluster schemas only, not the tables' metadata or data stored in those tables. """ - def CreateInstance(self, request, context): - """Create an instance within a project. + def CreateInstance(self, request, context): + """Create an instance within a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetInstance(self, request, context): - """Gets information about an instance. + def GetInstance(self, request, context): + """Gets information about an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListInstances(self, request, context): - """Lists information about instances in a project. + def ListInstances(self, request, context): + """Lists information about instances in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateInstance(self, request, context): - """Updates an instance within a project. + def UpdateInstance(self, request, context): + """Updates an instance within a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PartialUpdateInstance(self, request, context): - """Partially updates an instance within a project. + def PartialUpdateInstance(self, request, context): + """Partially updates an instance within a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteInstance(self, request, context): - """Delete an instance from a project. + def DeleteInstance(self, request, context): + """Delete an instance from a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateCluster(self, request, context): - """Creates a cluster within an instance. + def CreateCluster(self, request, context): + """Creates a cluster within an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetCluster(self, request, context): - """Gets information about a cluster. + def GetCluster(self, request, context): + """Gets information about a cluster. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListClusters(self, request, context): - """Lists information about clusters in an instance. + def ListClusters(self, request, context): + """Lists information about clusters in an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateCluster(self, request, context): - """Updates a cluster within an instance. + def UpdateCluster(self, request, context): + """Updates a cluster within an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteCluster(self, request, context): - """Deletes a cluster from an instance. + def DeleteCluster(self, request, context): + """Deletes a cluster from an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateAppProfile(self, request, context): - """Creates an app profile within an instance. + def CreateAppProfile(self, request, context): + """Creates an app profile within an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetAppProfile(self, request, context): - """Gets information about an app profile. + def GetAppProfile(self, request, context): + """Gets information about an app profile. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListAppProfiles(self, request, context): - """Lists information about app profiles in an instance. + def ListAppProfiles(self, request, context): + """Lists information about app profiles in an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateAppProfile(self, request, context): - """Updates an app profile within an instance. + def UpdateAppProfile(self, request, context): + """Updates an app profile within an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteAppProfile(self, request, context): - """Deletes an app profile from an instance. + def DeleteAppProfile(self, request, context): + """Deletes an app profile from an instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetIamPolicy(self, request, context): - """Gets the access control policy for an instance resource. Returns an empty + def GetIamPolicy(self, request, context): + """Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SetIamPolicy(self, request, context): - """Sets the access control policy on an instance resource. Replaces any + def SetIamPolicy(self, request, context): + """Sets the access control policy on an instance resource. Replaces any existing policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def TestIamPermissions(self, request, context): - """Returns permissions that the caller has on the specified instance resource. + def TestIamPermissions(self, request, context): + """Returns permissions that the caller has on the specified instance resource. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_BigtableInstanceAdminServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateInstance': grpc.unary_unary_rpc_method_handler( - servicer.CreateInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'GetInstance': grpc.unary_unary_rpc_method_handler( - servicer.GetInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, - ), - 'ListInstances': grpc.unary_unary_rpc_method_handler( - servicer.ListInstances, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.SerializeToString, - ), - 'UpdateInstance': grpc.unary_unary_rpc_method_handler( - servicer.UpdateInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, - ), - 'PartialUpdateInstance': grpc.unary_unary_rpc_method_handler( - servicer.PartialUpdateInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteInstance': grpc.unary_unary_rpc_method_handler( - servicer.DeleteInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateCluster': grpc.unary_unary_rpc_method_handler( - servicer.CreateCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'GetCluster': grpc.unary_unary_rpc_method_handler( - servicer.GetCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, - ), - 'ListClusters': grpc.unary_unary_rpc_method_handler( - servicer.ListClusters, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.SerializeToString, - ), - 'UpdateCluster': grpc.unary_unary_rpc_method_handler( - servicer.UpdateCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteCluster': grpc.unary_unary_rpc_method_handler( - servicer.DeleteCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateAppProfile': grpc.unary_unary_rpc_method_handler( - servicer.CreateAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, - ), - 'GetAppProfile': grpc.unary_unary_rpc_method_handler( - servicer.GetAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, - ), - 'ListAppProfiles': grpc.unary_unary_rpc_method_handler( - servicer.ListAppProfiles, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.SerializeToString, - ), - 'UpdateAppProfile': grpc.unary_unary_rpc_method_handler( - servicer.UpdateAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteAppProfile': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'SetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.SetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'TestIamPermissions': grpc.unary_unary_rpc_method_handler( - servicer.TestIamPermissions, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.bigtable.admin.v2.BigtableInstanceAdmin', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateInstance": grpc.unary_unary_rpc_method_handler( + servicer.CreateInstance, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "GetInstance": grpc.unary_unary_rpc_method_handler( + servicer.GetInstance, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, + ), + "ListInstances": grpc.unary_unary_rpc_method_handler( + servicer.ListInstances, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.SerializeToString, + ), + "UpdateInstance": grpc.unary_unary_rpc_method_handler( + servicer.UpdateInstance, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, + ), + "PartialUpdateInstance": grpc.unary_unary_rpc_method_handler( + servicer.PartialUpdateInstance, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteInstance": grpc.unary_unary_rpc_method_handler( + servicer.DeleteInstance, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateCluster": grpc.unary_unary_rpc_method_handler( + servicer.CreateCluster, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "GetCluster": grpc.unary_unary_rpc_method_handler( + servicer.GetCluster, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, + ), + "ListClusters": grpc.unary_unary_rpc_method_handler( + servicer.ListClusters, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.SerializeToString, + ), + "UpdateCluster": grpc.unary_unary_rpc_method_handler( + servicer.UpdateCluster, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteCluster": grpc.unary_unary_rpc_method_handler( + servicer.DeleteCluster, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateAppProfile": grpc.unary_unary_rpc_method_handler( + servicer.CreateAppProfile, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, + ), + "GetAppProfile": grpc.unary_unary_rpc_method_handler( + servicer.GetAppProfile, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, + ), + "ListAppProfiles": grpc.unary_unary_rpc_method_handler( + servicer.ListAppProfiles, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.SerializeToString, + ), + "UpdateAppProfile": grpc.unary_unary_rpc_method_handler( + servicer.UpdateAppProfile, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteAppProfile": grpc.unary_unary_rpc_method_handler( + servicer.DeleteAppProfile, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "SetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.SetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "TestIamPermissions": grpc.unary_unary_rpc_method_handler( + servicer.TestIamPermissions, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.bigtable.admin.v2.BigtableInstanceAdmin", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py index fd373785bc227..6938656fca6fd 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py @@ -2,960 +2,1533 @@ # source: google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.bigtable_admin_v2.proto import table_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.bigtable_admin_v2.proto import ( + table_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto', - package='google.bigtable.admin.v2', - syntax='proto3', - serialized_pb=_b('\n?google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x30google/cloud/bigtable/admin_v2/proto/table.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\x01\n\x12\x43reateTableRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12.\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"[\n\x1e\x43reateTableFromSnapshotRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12\x17\n\x0fsource_snapshot\x18\x03 \x01(\t\"m\n\x13\x44ropRowRangeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"~\n\x11ListTablesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x0fGetTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\"\n\x12\x44\x65leteTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xae\x02\n\x1bModifyColumnFamiliesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Y\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification\x1a\xa5\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x42\x05\n\x03mod\"/\n\x1fGenerateConsistencyTokenRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"B\n\x17\x43heckConsistencyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11\x63onsistency_token\x18\x02 \x01(\t\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\x87\x01\n\x14SnapshotTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63luster\x18\x02 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x03 \x01(\t\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"\"\n\x12GetSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"M\n\x14ListSnapshotsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"%\n\x15\x44\x65leteSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xb7\x11\n\x12\x42igtableTableAdmin\x12\x93\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"5\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\xbc\x01\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"H\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\x9b\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\"2\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x8a\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"2\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\x87\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xba\x01\n\x14ModifyColumnFamilies\x12\x35.google.bigtable.admin.v2.ModifyColumnFamiliesRequest\x1a\x1f.google.bigtable.admin.v2.Table\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\x01*\x12\x99\x01\n\x0c\x44ropRowRange\x12-.google.bigtable.admin.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty\"B\x82\xd3\xe4\x93\x02<\"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\x01*\x12\xe1\x01\n\x18GenerateConsistencyToken\x12\x39.google.bigtable.admin.v2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin.v2.GenerateConsistencyTokenResponse\"N\x82\xd3\xe4\x93\x02H\"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\x01*\x12\xc1\x01\n\x10\x43heckConsistency\x12\x31.google.bigtable.admin.v2.CheckConsistencyRequest\x1a\x32.google.bigtable.admin.v2.CheckConsistencyResponse\"F\x82\xd3\xe4\x93\x02@\";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\x01*\x12\x9e\x01\n\rSnapshotTable\x12..google.bigtable.admin.v2.SnapshotTableRequest\x1a\x1d.google.longrunning.Operation\">\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\x01*\x12\xa1\x01\n\x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotRequest\x1a\".google.bigtable.admin.v2.Snapshot\"@\x82\xd3\xe4\x93\x02:\x12\x38/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\x12\xb2\x01\n\rListSnapshots\x12..google.bigtable.admin.v2.ListSnapshotsRequest\x1a/.google.bigtable.admin.v2.ListSnapshotsResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v2/{parent=projects/*/instances/*/clusters/*}/snapshots\x12\x9b\x01\n\x0e\x44\x65leteSnapshot\x12/.google.bigtable.admin.v2.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"@\x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}B\xba\x01\n\x1c\x63om.google.bigtable.admin.v2B\x17\x42igtableTableAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto", + package="google.bigtable.admin.v2", + syntax="proto3", + serialized_pb=_b( + '\n?google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x30google/cloud/bigtable/admin_v2/proto/table.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc8\x01\n\x12\x43reateTableRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12.\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c"[\n\x1e\x43reateTableFromSnapshotRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12\x17\n\x0fsource_snapshot\x18\x03 \x01(\t"m\n\x13\x44ropRowRangeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target"~\n\x11ListTablesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"S\n\x0fGetTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View""\n\x12\x44\x65leteTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xae\x02\n\x1bModifyColumnFamiliesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Y\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification\x1a\xa5\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x42\x05\n\x03mod"/\n\x1fGenerateConsistencyTokenRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t"B\n\x17\x43heckConsistencyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11\x63onsistency_token\x18\x02 \x01(\t".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08"\x87\x01\n\x14SnapshotTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63luster\x18\x02 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x03 \x01(\t\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t""\n\x12GetSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"M\n\x14ListSnapshotsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"%\n\x15\x44\x65leteSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xb7\x11\n\x12\x42igtableTableAdmin\x12\x93\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table"5\x82\xd3\xe4\x93\x02/"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\xbc\x01\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation"H\x82\xd3\xe4\x93\x02\x42"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\x9b\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse"2\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x8a\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table"2\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\x87\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xba\x01\n\x14ModifyColumnFamilies\x12\x35.google.bigtable.admin.v2.ModifyColumnFamiliesRequest\x1a\x1f.google.bigtable.admin.v2.Table"J\x82\xd3\xe4\x93\x02\x44"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\x01*\x12\x99\x01\n\x0c\x44ropRowRange\x12-.google.bigtable.admin.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02<"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\x01*\x12\xe1\x01\n\x18GenerateConsistencyToken\x12\x39.google.bigtable.admin.v2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin.v2.GenerateConsistencyTokenResponse"N\x82\xd3\xe4\x93\x02H"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\x01*\x12\xc1\x01\n\x10\x43heckConsistency\x12\x31.google.bigtable.admin.v2.CheckConsistencyRequest\x1a\x32.google.bigtable.admin.v2.CheckConsistencyResponse"F\x82\xd3\xe4\x93\x02@";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\x01*\x12\x9e\x01\n\rSnapshotTable\x12..google.bigtable.admin.v2.SnapshotTableRequest\x1a\x1d.google.longrunning.Operation">\x82\xd3\xe4\x93\x02\x38"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\x01*\x12\xa1\x01\n\x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotRequest\x1a".google.bigtable.admin.v2.Snapshot"@\x82\xd3\xe4\x93\x02:\x12\x38/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\x12\xb2\x01\n\rListSnapshots\x12..google.bigtable.admin.v2.ListSnapshotsRequest\x1a/.google.bigtable.admin.v2.ListSnapshotsResponse"@\x82\xd3\xe4\x93\x02:\x12\x38/v2/{parent=projects/*/instances/*/clusters/*}/snapshots\x12\x9b\x01\n\x0e\x44\x65leteSnapshot\x12/.google.bigtable.admin.v2.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty"@\x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}B\xba\x01\n\x1c\x63om.google.bigtable.admin.v2B\x17\x42igtableTableAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _CREATETABLEREQUEST_SPLIT = _descriptor.Descriptor( - name='Split', - full_name='google.bigtable.admin.v2.CreateTableRequest.Split', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.bigtable.admin.v2.CreateTableRequest.Split.key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=485, - serialized_end=505, + name="Split", + full_name="google.bigtable.admin.v2.CreateTableRequest.Split", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.bigtable.admin.v2.CreateTableRequest.Split.key", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=485, + serialized_end=505, ) _CREATETABLEREQUEST = _descriptor.Descriptor( - name='CreateTableRequest', - full_name='google.bigtable.admin.v2.CreateTableRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.CreateTableRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_id', full_name='google.bigtable.admin.v2.CreateTableRequest.table_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table', full_name='google.bigtable.admin.v2.CreateTableRequest.table', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='initial_splits', full_name='google.bigtable.admin.v2.CreateTableRequest.initial_splits', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CREATETABLEREQUEST_SPLIT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=305, - serialized_end=505, + name="CreateTableRequest", + full_name="google.bigtable.admin.v2.CreateTableRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.CreateTableRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_id", + full_name="google.bigtable.admin.v2.CreateTableRequest.table_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table", + full_name="google.bigtable.admin.v2.CreateTableRequest.table", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="initial_splits", + full_name="google.bigtable.admin.v2.CreateTableRequest.initial_splits", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CREATETABLEREQUEST_SPLIT], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=305, + serialized_end=505, ) _CREATETABLEFROMSNAPSHOTREQUEST = _descriptor.Descriptor( - name='CreateTableFromSnapshotRequest', - full_name='google.bigtable.admin.v2.CreateTableFromSnapshotRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.CreateTableFromSnapshotRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_id', full_name='google.bigtable.admin.v2.CreateTableFromSnapshotRequest.table_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_snapshot', full_name='google.bigtable.admin.v2.CreateTableFromSnapshotRequest.source_snapshot', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=507, - serialized_end=598, + name="CreateTableFromSnapshotRequest", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_id", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotRequest.table_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source_snapshot", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotRequest.source_snapshot", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=507, + serialized_end=598, ) _DROPROWRANGEREQUEST = _descriptor.Descriptor( - name='DropRowRangeRequest', - full_name='google.bigtable.admin.v2.DropRowRangeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.DropRowRangeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_key_prefix', full_name='google.bigtable.admin.v2.DropRowRangeRequest.row_key_prefix', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete_all_data_from_table', full_name='google.bigtable.admin.v2.DropRowRangeRequest.delete_all_data_from_table', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target', full_name='google.bigtable.admin.v2.DropRowRangeRequest.target', - index=0, containing_type=None, fields=[]), - ], - serialized_start=600, - serialized_end=709, + name="DropRowRangeRequest", + full_name="google.bigtable.admin.v2.DropRowRangeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.DropRowRangeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_key_prefix", + full_name="google.bigtable.admin.v2.DropRowRangeRequest.row_key_prefix", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete_all_data_from_table", + full_name="google.bigtable.admin.v2.DropRowRangeRequest.delete_all_data_from_table", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="target", + full_name="google.bigtable.admin.v2.DropRowRangeRequest.target", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=600, + serialized_end=709, ) _LISTTABLESREQUEST = _descriptor.Descriptor( - name='ListTablesRequest', - full_name='google.bigtable.admin.v2.ListTablesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.ListTablesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.bigtable.admin.v2.ListTablesRequest.view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.bigtable.admin.v2.ListTablesRequest.page_size', index=2, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.bigtable.admin.v2.ListTablesRequest.page_token', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=711, - serialized_end=837, + name="ListTablesRequest", + full_name="google.bigtable.admin.v2.ListTablesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.ListTablesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.bigtable.admin.v2.ListTablesRequest.view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.bigtable.admin.v2.ListTablesRequest.page_size", + index=2, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.bigtable.admin.v2.ListTablesRequest.page_token", + index=3, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=711, + serialized_end=837, ) _LISTTABLESRESPONSE = _descriptor.Descriptor( - name='ListTablesResponse', - full_name='google.bigtable.admin.v2.ListTablesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tables', full_name='google.bigtable.admin.v2.ListTablesResponse.tables', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.bigtable.admin.v2.ListTablesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=839, - serialized_end=933, + name="ListTablesResponse", + full_name="google.bigtable.admin.v2.ListTablesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="tables", + full_name="google.bigtable.admin.v2.ListTablesResponse.tables", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.bigtable.admin.v2.ListTablesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=839, + serialized_end=933, ) _GETTABLEREQUEST = _descriptor.Descriptor( - name='GetTableRequest', - full_name='google.bigtable.admin.v2.GetTableRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.GetTableRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.bigtable.admin.v2.GetTableRequest.view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=935, - serialized_end=1018, + name="GetTableRequest", + full_name="google.bigtable.admin.v2.GetTableRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.GetTableRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.bigtable.admin.v2.GetTableRequest.view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=935, + serialized_end=1018, ) _DELETETABLEREQUEST = _descriptor.Descriptor( - name='DeleteTableRequest', - full_name='google.bigtable.admin.v2.DeleteTableRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.DeleteTableRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1020, - serialized_end=1054, + name="DeleteTableRequest", + full_name="google.bigtable.admin.v2.DeleteTableRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.DeleteTableRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1020, + serialized_end=1054, ) _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION = _descriptor.Descriptor( - name='Modification', - full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.create', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.update', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='drop', full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.drop', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='mod', full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.mod', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1194, - serialized_end=1359, + name="Modification", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.create", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.update", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="drop", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.drop", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="mod", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.mod", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1194, + serialized_end=1359, ) _MODIFYCOLUMNFAMILIESREQUEST = _descriptor.Descriptor( - name='ModifyColumnFamiliesRequest', - full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='modifications', full_name='google.bigtable.admin.v2.ModifyColumnFamiliesRequest.modifications', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1057, - serialized_end=1359, + name="ModifyColumnFamiliesRequest", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="modifications", + full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.modifications", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1057, + serialized_end=1359, ) _GENERATECONSISTENCYTOKENREQUEST = _descriptor.Descriptor( - name='GenerateConsistencyTokenRequest', - full_name='google.bigtable.admin.v2.GenerateConsistencyTokenRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.GenerateConsistencyTokenRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1361, - serialized_end=1408, + name="GenerateConsistencyTokenRequest", + full_name="google.bigtable.admin.v2.GenerateConsistencyTokenRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.GenerateConsistencyTokenRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1361, + serialized_end=1408, ) _GENERATECONSISTENCYTOKENRESPONSE = _descriptor.Descriptor( - name='GenerateConsistencyTokenResponse', - full_name='google.bigtable.admin.v2.GenerateConsistencyTokenResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='consistency_token', full_name='google.bigtable.admin.v2.GenerateConsistencyTokenResponse.consistency_token', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1410, - serialized_end=1471, + name="GenerateConsistencyTokenResponse", + full_name="google.bigtable.admin.v2.GenerateConsistencyTokenResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="consistency_token", + full_name="google.bigtable.admin.v2.GenerateConsistencyTokenResponse.consistency_token", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1410, + serialized_end=1471, ) _CHECKCONSISTENCYREQUEST = _descriptor.Descriptor( - name='CheckConsistencyRequest', - full_name='google.bigtable.admin.v2.CheckConsistencyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.CheckConsistencyRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='consistency_token', full_name='google.bigtable.admin.v2.CheckConsistencyRequest.consistency_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1473, - serialized_end=1539, + name="CheckConsistencyRequest", + full_name="google.bigtable.admin.v2.CheckConsistencyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.CheckConsistencyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="consistency_token", + full_name="google.bigtable.admin.v2.CheckConsistencyRequest.consistency_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1473, + serialized_end=1539, ) _CHECKCONSISTENCYRESPONSE = _descriptor.Descriptor( - name='CheckConsistencyResponse', - full_name='google.bigtable.admin.v2.CheckConsistencyResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='consistent', full_name='google.bigtable.admin.v2.CheckConsistencyResponse.consistent', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1541, - serialized_end=1587, + name="CheckConsistencyResponse", + full_name="google.bigtable.admin.v2.CheckConsistencyResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="consistent", + full_name="google.bigtable.admin.v2.CheckConsistencyResponse.consistent", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1541, + serialized_end=1587, ) _SNAPSHOTTABLEREQUEST = _descriptor.Descriptor( - name='SnapshotTableRequest', - full_name='google.bigtable.admin.v2.SnapshotTableRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.SnapshotTableRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster', full_name='google.bigtable.admin.v2.SnapshotTableRequest.cluster', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='snapshot_id', full_name='google.bigtable.admin.v2.SnapshotTableRequest.snapshot_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ttl', full_name='google.bigtable.admin.v2.SnapshotTableRequest.ttl', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.bigtable.admin.v2.SnapshotTableRequest.description', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1590, - serialized_end=1725, + name="SnapshotTableRequest", + full_name="google.bigtable.admin.v2.SnapshotTableRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.SnapshotTableRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster", + full_name="google.bigtable.admin.v2.SnapshotTableRequest.cluster", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="snapshot_id", + full_name="google.bigtable.admin.v2.SnapshotTableRequest.snapshot_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ttl", + full_name="google.bigtable.admin.v2.SnapshotTableRequest.ttl", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.bigtable.admin.v2.SnapshotTableRequest.description", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1590, + serialized_end=1725, ) _GETSNAPSHOTREQUEST = _descriptor.Descriptor( - name='GetSnapshotRequest', - full_name='google.bigtable.admin.v2.GetSnapshotRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.GetSnapshotRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1727, - serialized_end=1761, + name="GetSnapshotRequest", + full_name="google.bigtable.admin.v2.GetSnapshotRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.GetSnapshotRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1727, + serialized_end=1761, ) _LISTSNAPSHOTSREQUEST = _descriptor.Descriptor( - name='ListSnapshotsRequest', - full_name='google.bigtable.admin.v2.ListSnapshotsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.bigtable.admin.v2.ListSnapshotsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.bigtable.admin.v2.ListSnapshotsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.bigtable.admin.v2.ListSnapshotsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1763, - serialized_end=1840, + name="ListSnapshotsRequest", + full_name="google.bigtable.admin.v2.ListSnapshotsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.ListSnapshotsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.bigtable.admin.v2.ListSnapshotsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.bigtable.admin.v2.ListSnapshotsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1763, + serialized_end=1840, ) _LISTSNAPSHOTSRESPONSE = _descriptor.Descriptor( - name='ListSnapshotsResponse', - full_name='google.bigtable.admin.v2.ListSnapshotsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshots', full_name='google.bigtable.admin.v2.ListSnapshotsResponse.snapshots', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.bigtable.admin.v2.ListSnapshotsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1842, - serialized_end=1945, + name="ListSnapshotsResponse", + full_name="google.bigtable.admin.v2.ListSnapshotsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshots", + full_name="google.bigtable.admin.v2.ListSnapshotsResponse.snapshots", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.bigtable.admin.v2.ListSnapshotsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1842, + serialized_end=1945, ) _DELETESNAPSHOTREQUEST = _descriptor.Descriptor( - name='DeleteSnapshotRequest', - full_name='google.bigtable.admin.v2.DeleteSnapshotRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.DeleteSnapshotRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1947, - serialized_end=1984, + name="DeleteSnapshotRequest", + full_name="google.bigtable.admin.v2.DeleteSnapshotRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.DeleteSnapshotRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1947, + serialized_end=1984, ) _SNAPSHOTTABLEMETADATA = _descriptor.Descriptor( - name='SnapshotTableMetadata', - full_name='google.bigtable.admin.v2.SnapshotTableMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='original_request', full_name='google.bigtable.admin.v2.SnapshotTableMetadata.original_request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_time', full_name='google.bigtable.admin.v2.SnapshotTableMetadata.request_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finish_time', full_name='google.bigtable.admin.v2.SnapshotTableMetadata.finish_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1987, - serialized_end=2183, + name="SnapshotTableMetadata", + full_name="google.bigtable.admin.v2.SnapshotTableMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="original_request", + full_name="google.bigtable.admin.v2.SnapshotTableMetadata.original_request", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_time", + full_name="google.bigtable.admin.v2.SnapshotTableMetadata.request_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finish_time", + full_name="google.bigtable.admin.v2.SnapshotTableMetadata.finish_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1987, + serialized_end=2183, ) _CREATETABLEFROMSNAPSHOTMETADATA = _descriptor.Descriptor( - name='CreateTableFromSnapshotMetadata', - full_name='google.bigtable.admin.v2.CreateTableFromSnapshotMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='original_request', full_name='google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.original_request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_time', full_name='google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.request_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finish_time', full_name='google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.finish_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2186, - serialized_end=2402, + name="CreateTableFromSnapshotMetadata", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="original_request", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.original_request", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_time", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.request_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finish_time", + full_name="google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.finish_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2186, + serialized_end=2402, ) _CREATETABLEREQUEST_SPLIT.containing_type = _CREATETABLEREQUEST -_CREATETABLEREQUEST.fields_by_name['table'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE -_CREATETABLEREQUEST.fields_by_name['initial_splits'].message_type = _CREATETABLEREQUEST_SPLIT -_DROPROWRANGEREQUEST.oneofs_by_name['target'].fields.append( - _DROPROWRANGEREQUEST.fields_by_name['row_key_prefix']) -_DROPROWRANGEREQUEST.fields_by_name['row_key_prefix'].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name['target'] -_DROPROWRANGEREQUEST.oneofs_by_name['target'].fields.append( - _DROPROWRANGEREQUEST.fields_by_name['delete_all_data_from_table']) -_DROPROWRANGEREQUEST.fields_by_name['delete_all_data_from_table'].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name['target'] -_LISTTABLESREQUEST.fields_by_name['view'].enum_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW -_LISTTABLESRESPONSE.fields_by_name['tables'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE -_GETTABLEREQUEST.fields_by_name['view'].enum_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['create'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['update'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY +_CREATETABLEREQUEST.fields_by_name[ + "table" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE +) +_CREATETABLEREQUEST.fields_by_name[ + "initial_splits" +].message_type = _CREATETABLEREQUEST_SPLIT +_DROPROWRANGEREQUEST.oneofs_by_name["target"].fields.append( + _DROPROWRANGEREQUEST.fields_by_name["row_key_prefix"] +) +_DROPROWRANGEREQUEST.fields_by_name[ + "row_key_prefix" +].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name["target"] +_DROPROWRANGEREQUEST.oneofs_by_name["target"].fields.append( + _DROPROWRANGEREQUEST.fields_by_name["delete_all_data_from_table"] +) +_DROPROWRANGEREQUEST.fields_by_name[ + "delete_all_data_from_table" +].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name["target"] +_LISTTABLESREQUEST.fields_by_name[ + "view" +].enum_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW +) +_LISTTABLESRESPONSE.fields_by_name[ + "tables" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE +) +_GETTABLEREQUEST.fields_by_name[ + "view" +].enum_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "create" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "update" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY +) _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.containing_type = _MODIFYCOLUMNFAMILIESREQUEST -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name['mod'].fields.append( - _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['create']) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['create'].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name['mod'] -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name['mod'].fields.append( - _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['update']) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['update'].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name['mod'] -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name['mod'].fields.append( - _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['drop']) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name['drop'].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name['mod'] -_MODIFYCOLUMNFAMILIESREQUEST.fields_by_name['modifications'].message_type = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION -_SNAPSHOTTABLEREQUEST.fields_by_name['ttl'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LISTSNAPSHOTSRESPONSE.fields_by_name['snapshots'].message_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._SNAPSHOT -_SNAPSHOTTABLEMETADATA.fields_by_name['original_request'].message_type = _SNAPSHOTTABLEREQUEST -_SNAPSHOTTABLEMETADATA.fields_by_name['request_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SNAPSHOTTABLEMETADATA.fields_by_name['finish_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name['original_request'].message_type = _CREATETABLEFROMSNAPSHOTREQUEST -_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name['request_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name['finish_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['CreateTableRequest'] = _CREATETABLEREQUEST -DESCRIPTOR.message_types_by_name['CreateTableFromSnapshotRequest'] = _CREATETABLEFROMSNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name['DropRowRangeRequest'] = _DROPROWRANGEREQUEST -DESCRIPTOR.message_types_by_name['ListTablesRequest'] = _LISTTABLESREQUEST -DESCRIPTOR.message_types_by_name['ListTablesResponse'] = _LISTTABLESRESPONSE -DESCRIPTOR.message_types_by_name['GetTableRequest'] = _GETTABLEREQUEST -DESCRIPTOR.message_types_by_name['DeleteTableRequest'] = _DELETETABLEREQUEST -DESCRIPTOR.message_types_by_name['ModifyColumnFamiliesRequest'] = _MODIFYCOLUMNFAMILIESREQUEST -DESCRIPTOR.message_types_by_name['GenerateConsistencyTokenRequest'] = _GENERATECONSISTENCYTOKENREQUEST -DESCRIPTOR.message_types_by_name['GenerateConsistencyTokenResponse'] = _GENERATECONSISTENCYTOKENRESPONSE -DESCRIPTOR.message_types_by_name['CheckConsistencyRequest'] = _CHECKCONSISTENCYREQUEST -DESCRIPTOR.message_types_by_name['CheckConsistencyResponse'] = _CHECKCONSISTENCYRESPONSE -DESCRIPTOR.message_types_by_name['SnapshotTableRequest'] = _SNAPSHOTTABLEREQUEST -DESCRIPTOR.message_types_by_name['GetSnapshotRequest'] = _GETSNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name['ListSnapshotsRequest'] = _LISTSNAPSHOTSREQUEST -DESCRIPTOR.message_types_by_name['ListSnapshotsResponse'] = _LISTSNAPSHOTSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteSnapshotRequest'] = _DELETESNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name['SnapshotTableMetadata'] = _SNAPSHOTTABLEMETADATA -DESCRIPTOR.message_types_by_name['CreateTableFromSnapshotMetadata'] = _CREATETABLEFROMSNAPSHOTMETADATA +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( + _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["create"] +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "create" +].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( + _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["update"] +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "update" +].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( + _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["drop"] +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "drop" +].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] +_MODIFYCOLUMNFAMILIESREQUEST.fields_by_name[ + "modifications" +].message_type = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION +_SNAPSHOTTABLEREQUEST.fields_by_name[ + "ttl" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LISTSNAPSHOTSRESPONSE.fields_by_name[ + "snapshots" +].message_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._SNAPSHOT +) +_SNAPSHOTTABLEMETADATA.fields_by_name[ + "original_request" +].message_type = _SNAPSHOTTABLEREQUEST +_SNAPSHOTTABLEMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SNAPSHOTTABLEMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ + "original_request" +].message_type = _CREATETABLEFROMSNAPSHOTREQUEST +_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["CreateTableRequest"] = _CREATETABLEREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateTableFromSnapshotRequest" +] = _CREATETABLEFROMSNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["DropRowRangeRequest"] = _DROPROWRANGEREQUEST +DESCRIPTOR.message_types_by_name["ListTablesRequest"] = _LISTTABLESREQUEST +DESCRIPTOR.message_types_by_name["ListTablesResponse"] = _LISTTABLESRESPONSE +DESCRIPTOR.message_types_by_name["GetTableRequest"] = _GETTABLEREQUEST +DESCRIPTOR.message_types_by_name["DeleteTableRequest"] = _DELETETABLEREQUEST +DESCRIPTOR.message_types_by_name[ + "ModifyColumnFamiliesRequest" +] = _MODIFYCOLUMNFAMILIESREQUEST +DESCRIPTOR.message_types_by_name[ + "GenerateConsistencyTokenRequest" +] = _GENERATECONSISTENCYTOKENREQUEST +DESCRIPTOR.message_types_by_name[ + "GenerateConsistencyTokenResponse" +] = _GENERATECONSISTENCYTOKENRESPONSE +DESCRIPTOR.message_types_by_name["CheckConsistencyRequest"] = _CHECKCONSISTENCYREQUEST +DESCRIPTOR.message_types_by_name["CheckConsistencyResponse"] = _CHECKCONSISTENCYRESPONSE +DESCRIPTOR.message_types_by_name["SnapshotTableRequest"] = _SNAPSHOTTABLEREQUEST +DESCRIPTOR.message_types_by_name["GetSnapshotRequest"] = _GETSNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["ListSnapshotsRequest"] = _LISTSNAPSHOTSREQUEST +DESCRIPTOR.message_types_by_name["ListSnapshotsResponse"] = _LISTSNAPSHOTSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteSnapshotRequest"] = _DELETESNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["SnapshotTableMetadata"] = _SNAPSHOTTABLEMETADATA +DESCRIPTOR.message_types_by_name[ + "CreateTableFromSnapshotMetadata" +] = _CREATETABLEFROMSNAPSHOTMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateTableRequest = _reflection.GeneratedProtocolMessageType('CreateTableRequest', (_message.Message,), dict( - - Split = _reflection.GeneratedProtocolMessageType('Split', (_message.Message,), dict( - DESCRIPTOR = _CREATETABLEREQUEST_SPLIT, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """An initial split point for a newly created table. +CreateTableRequest = _reflection.GeneratedProtocolMessageType( + "CreateTableRequest", + (_message.Message,), + dict( + Split=_reflection.GeneratedProtocolMessageType( + "Split", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETABLEREQUEST_SPLIT, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""An initial split point for a newly created table. Attributes: key: Row key to use as an initial tablet boundary. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest.Split) - )) - , - DESCRIPTOR = _CREATETABLEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest.Split) + ), + ), + DESCRIPTOR=_CREATETABLEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.BigtableTableAdmin.CreateTable] @@ -985,16 +1558,19 @@ Tablet 4 ``[customer_2, other) => {"customer_2"}.`` - Tablet 5 ``[other, ) => {"other", "zz"}.`` """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest) + ), +) _sym_db.RegisterMessage(CreateTableRequest) _sym_db.RegisterMessage(CreateTableRequest.Split) -CreateTableFromSnapshotRequest = _reflection.GeneratedProtocolMessageType('CreateTableFromSnapshotRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATETABLEFROMSNAPSHOTREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +CreateTableFromSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "CreateTableFromSnapshotRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETABLEFROMSNAPSHOTREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot] Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -1019,15 +1595,18 @@ instance. Values are of the form ``projects//instance s//clusters//snapshots/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableFromSnapshotRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableFromSnapshotRequest) + ), +) _sym_db.RegisterMessage(CreateTableFromSnapshotRequest) -DropRowRangeRequest = _reflection.GeneratedProtocolMessageType('DropRowRangeRequest', (_message.Message,), dict( - DESCRIPTOR = _DROPROWRANGEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +DropRowRangeRequest = _reflection.GeneratedProtocolMessageType( + "DropRowRangeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DROPROWRANGEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange] @@ -1045,15 +1624,18 @@ Delete all rows in the table. Setting this to false is a no- op. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DropRowRangeRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DropRowRangeRequest) + ), +) _sym_db.RegisterMessage(DropRowRangeRequest) -ListTablesRequest = _reflection.GeneratedProtocolMessageType('ListTablesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTABLESREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +ListTablesRequest = _reflection.GeneratedProtocolMessageType( + "ListTablesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTABLESREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] @@ -1072,15 +1654,18 @@ page_token: The value of ``next_page_token`` returned by a previous call. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListTablesRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListTablesRequest) + ), +) _sym_db.RegisterMessage(ListTablesRequest) -ListTablesResponse = _reflection.GeneratedProtocolMessageType('ListTablesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTABLESRESPONSE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Response message for +ListTablesResponse = _reflection.GeneratedProtocolMessageType( + "ListTablesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTABLESRESPONSE, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Response message for [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] @@ -1092,15 +1677,18 @@ Pass this value to ``page_token`` in another request to get the next page of results. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListTablesResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListTablesResponse) + ), +) _sym_db.RegisterMessage(ListTablesResponse) -GetTableRequest = _reflection.GeneratedProtocolMessageType('GetTableRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTABLEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +GetTableRequest = _reflection.GeneratedProtocolMessageType( + "GetTableRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTABLEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.GetTable][google.bigtable.admin.v2.BigtableTableAdmin.GetTable] @@ -1112,15 +1700,18 @@ The view to be applied to the returned table's fields. Defaults to ``SCHEMA_VIEW`` if unspecified. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetTableRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetTableRequest) + ), +) _sym_db.RegisterMessage(GetTableRequest) -DeleteTableRequest = _reflection.GeneratedProtocolMessageType('DeleteTableRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETETABLEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +DeleteTableRequest = _reflection.GeneratedProtocolMessageType( + "DeleteTableRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETETABLEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable] @@ -1130,17 +1721,22 @@ form ``projects//instances//tables/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteTableRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteTableRequest) + ), +) _sym_db.RegisterMessage(DeleteTableRequest) -ModifyColumnFamiliesRequest = _reflection.GeneratedProtocolMessageType('ModifyColumnFamiliesRequest', (_message.Message,), dict( - - Modification = _reflection.GeneratedProtocolMessageType('Modification', (_message.Message,), dict( - DESCRIPTOR = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """A create, update, or delete of a particular column family. +ModifyColumnFamiliesRequest = _reflection.GeneratedProtocolMessageType( + "ModifyColumnFamiliesRequest", + (_message.Message,), + dict( + Modification=_reflection.GeneratedProtocolMessageType( + "Modification", + (_message.Message,), + dict( + DESCRIPTOR=_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""A create, update, or delete of a particular column family. Attributes: @@ -1158,13 +1754,12 @@ Drop (delete) the column family with the given ID, or fail if no such family exists. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification) - )) - , - DESCRIPTOR = _MODIFYCOLUMNFAMILIESREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification) + ), + ), + DESCRIPTOR=_MODIFYCOLUMNFAMILIESREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies] @@ -1179,16 +1774,19 @@ earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example). """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ModifyColumnFamiliesRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ModifyColumnFamiliesRequest) + ), +) _sym_db.RegisterMessage(ModifyColumnFamiliesRequest) _sym_db.RegisterMessage(ModifyColumnFamiliesRequest.Modification) -GenerateConsistencyTokenRequest = _reflection.GeneratedProtocolMessageType('GenerateConsistencyTokenRequest', (_message.Message,), dict( - DESCRIPTOR = _GENERATECONSISTENCYTOKENREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +GenerateConsistencyTokenRequest = _reflection.GeneratedProtocolMessageType( + "GenerateConsistencyTokenRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GENERATECONSISTENCYTOKENREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] @@ -1198,15 +1796,18 @@ token. Values are of the form ``projects//instances//tables/
``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GenerateConsistencyTokenRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GenerateConsistencyTokenRequest) + ), +) _sym_db.RegisterMessage(GenerateConsistencyTokenRequest) -GenerateConsistencyTokenResponse = _reflection.GeneratedProtocolMessageType('GenerateConsistencyTokenResponse', (_message.Message,), dict( - DESCRIPTOR = _GENERATECONSISTENCYTOKENRESPONSE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Response message for +GenerateConsistencyTokenResponse = _reflection.GeneratedProtocolMessageType( + "GenerateConsistencyTokenResponse", + (_message.Message,), + dict( + DESCRIPTOR=_GENERATECONSISTENCYTOKENRESPONSE, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Response message for [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] @@ -1214,15 +1815,18 @@ consistency_token: The generated consistency token. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GenerateConsistencyTokenResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GenerateConsistencyTokenResponse) + ), +) _sym_db.RegisterMessage(GenerateConsistencyTokenResponse) -CheckConsistencyRequest = _reflection.GeneratedProtocolMessageType('CheckConsistencyRequest', (_message.Message,), dict( - DESCRIPTOR = _CHECKCONSISTENCYREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +CheckConsistencyRequest = _reflection.GeneratedProtocolMessageType( + "CheckConsistencyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CHECKCONSISTENCYREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] @@ -1235,15 +1839,18 @@ The token created using GenerateConsistencyToken for the Table. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CheckConsistencyRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CheckConsistencyRequest) + ), +) _sym_db.RegisterMessage(CheckConsistencyRequest) -CheckConsistencyResponse = _reflection.GeneratedProtocolMessageType('CheckConsistencyResponse', (_message.Message,), dict( - DESCRIPTOR = _CHECKCONSISTENCYRESPONSE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Response message for +CheckConsistencyResponse = _reflection.GeneratedProtocolMessageType( + "CheckConsistencyResponse", + (_message.Message,), + dict( + DESCRIPTOR=_CHECKCONSISTENCYRESPONSE, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Response message for [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] @@ -1253,15 +1860,18 @@ replication has caught up with the restrictions specified in the request. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CheckConsistencyResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CheckConsistencyResponse) + ), +) _sym_db.RegisterMessage(CheckConsistencyResponse) -SnapshotTableRequest = _reflection.GeneratedProtocolMessageType('SnapshotTableRequest', (_message.Message,), dict( - DESCRIPTOR = _SNAPSHOTTABLEREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +SnapshotTableRequest = _reflection.GeneratedProtocolMessageType( + "SnapshotTableRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SNAPSHOTTABLEREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable] Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -1294,15 +1904,18 @@ description: Description of the snapshot. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.SnapshotTableRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.SnapshotTableRequest) + ), +) _sym_db.RegisterMessage(SnapshotTableRequest) -GetSnapshotRequest = _reflection.GeneratedProtocolMessageType('GetSnapshotRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSNAPSHOTREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +GetSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "GetSnapshotRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSNAPSHOTREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot] Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -1318,15 +1931,18 @@ form ``projects//instances//clusters//snapshots/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetSnapshotRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetSnapshotRequest) + ), +) _sym_db.RegisterMessage(GetSnapshotRequest) -ListSnapshotsRequest = _reflection.GeneratedProtocolMessageType('ListSnapshotsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTSNAPSHOTSREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +ListSnapshotsRequest = _reflection.GeneratedProtocolMessageType( + "ListSnapshotsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSNAPSHOTSREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -1349,15 +1965,18 @@ page_token: The value of ``next_page_token`` returned by a previous call. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListSnapshotsRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListSnapshotsRequest) + ), +) _sym_db.RegisterMessage(ListSnapshotsRequest) -ListSnapshotsResponse = _reflection.GeneratedProtocolMessageType('ListSnapshotsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTSNAPSHOTSRESPONSE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Response message for +ListSnapshotsResponse = _reflection.GeneratedProtocolMessageType( + "ListSnapshotsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSNAPSHOTSRESPONSE, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Response message for [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -1375,15 +1994,18 @@ response. Pass this value to ``page_token`` in another request to get the next page of results. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListSnapshotsResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListSnapshotsResponse) + ), +) _sym_db.RegisterMessage(ListSnapshotsResponse) -DeleteSnapshotRequest = _reflection.GeneratedProtocolMessageType('DeleteSnapshotRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETESNAPSHOTREQUEST, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """Request message for +DeleteSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "DeleteSnapshotRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESNAPSHOTREQUEST, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""Request message for [google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot] Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -1399,15 +2021,18 @@ the form ``projects//instances//clusters//snapshots/``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteSnapshotRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteSnapshotRequest) + ), +) _sym_db.RegisterMessage(DeleteSnapshotRequest) -SnapshotTableMetadata = _reflection.GeneratedProtocolMessageType('SnapshotTableMetadata', (_message.Message,), dict( - DESCRIPTOR = _SNAPSHOTTABLEMETADATA, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """The metadata for the Operation returned by SnapshotTable. +SnapshotTableMetadata = _reflection.GeneratedProtocolMessageType( + "SnapshotTableMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_SNAPSHOTTABLEMETADATA, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""The metadata for the Operation returned by SnapshotTable. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. @@ -1426,15 +2051,18 @@ The time at which the operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.SnapshotTableMetadata) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.SnapshotTableMetadata) + ), +) _sym_db.RegisterMessage(SnapshotTableMetadata) -CreateTableFromSnapshotMetadata = _reflection.GeneratedProtocolMessageType('CreateTableFromSnapshotMetadata', (_message.Message,), dict( - DESCRIPTOR = _CREATETABLEFROMSNAPSHOTMETADATA, - __module__ = 'google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2' - , - __doc__ = """The metadata for the Operation returned by CreateTableFromSnapshot. +CreateTableFromSnapshotMetadata = _reflection.GeneratedProtocolMessageType( + "CreateTableFromSnapshotMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETABLEFROMSNAPSHOTMETADATA, + __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", + __doc__="""The metadata for the Operation returned by CreateTableFromSnapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. @@ -1453,143 +2081,213 @@ The time at which the operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata) + ), +) _sym_db.RegisterMessage(CreateTableFromSnapshotMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.bigtable.admin.v2B\027BigtableTableAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.bigtable.admin.v2B\027BigtableTableAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" + ), +) _BIGTABLETABLEADMIN = _descriptor.ServiceDescriptor( - name='BigtableTableAdmin', - full_name='google.bigtable.admin.v2.BigtableTableAdmin', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2405, - serialized_end=4636, - methods=[ - _descriptor.MethodDescriptor( - name='CreateTable', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.CreateTable', + name="BigtableTableAdmin", + full_name="google.bigtable.admin.v2.BigtableTableAdmin", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATETABLEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\"*/v2/{parent=projects/*/instances/*}/tables:\001*')), - ), - _descriptor.MethodDescriptor( - name='CreateTableFromSnapshot', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot', - index=1, - containing_service=None, - input_type=_CREATETABLEFROMSNAPSHOTREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListTables', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.ListTables', - index=2, - containing_service=None, - input_type=_LISTTABLESREQUEST, - output_type=_LISTTABLESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v2/{parent=projects/*/instances/*}/tables')), - ), - _descriptor.MethodDescriptor( - name='GetTable', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.GetTable', - index=3, - containing_service=None, - input_type=_GETTABLEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v2/{name=projects/*/instances/*/tables/*}')), - ), - _descriptor.MethodDescriptor( - name='DeleteTable', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable', - index=4, - containing_service=None, - input_type=_DELETETABLEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,**/v2/{name=projects/*/instances/*/tables/*}')), - ), - _descriptor.MethodDescriptor( - name='ModifyColumnFamilies', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies', - index=5, - containing_service=None, - input_type=_MODIFYCOLUMNFAMILIESREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002D\"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\001*')), - ), - _descriptor.MethodDescriptor( - name='DropRowRange', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange', - index=6, - containing_service=None, - input_type=_DROPROWRANGEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\001*')), - ), - _descriptor.MethodDescriptor( - name='GenerateConsistencyToken', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken', - index=7, - containing_service=None, - input_type=_GENERATECONSISTENCYTOKENREQUEST, - output_type=_GENERATECONSISTENCYTOKENRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002H\"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\001*')), - ), - _descriptor.MethodDescriptor( - name='CheckConsistency', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency', - index=8, - containing_service=None, - input_type=_CHECKCONSISTENCYREQUEST, - output_type=_CHECKCONSISTENCYRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\001*')), - ), - _descriptor.MethodDescriptor( - name='SnapshotTable', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable', - index=9, - containing_service=None, - input_type=_SNAPSHOTTABLEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetSnapshot', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot', - index=10, - containing_service=None, - input_type=_GETSNAPSHOTREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._SNAPSHOT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\0228/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}')), - ), - _descriptor.MethodDescriptor( - name='ListSnapshots', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots', - index=11, - containing_service=None, - input_type=_LISTSNAPSHOTSREQUEST, - output_type=_LISTSNAPSHOTSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\0228/v2/{parent=projects/*/instances/*/clusters/*}/snapshots')), - ), - _descriptor.MethodDescriptor( - name='DeleteSnapshot', - full_name='google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot', - index=12, - containing_service=None, - input_type=_DELETESNAPSHOTREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}')), - ), -]) + options=None, + serialized_start=2405, + serialized_end=4636, + methods=[ + _descriptor.MethodDescriptor( + name="CreateTable", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + index=0, + containing_service=None, + input_type=_CREATETABLEREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002/"*/v2/{parent=projects/*/instances/*}/tables:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateTableFromSnapshot", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + index=1, + containing_service=None, + input_type=_CREATETABLEFROMSNAPSHOTREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002B"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListTables", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + index=2, + containing_service=None, + input_type=_LISTTABLESREQUEST, + output_type=_LISTTABLESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v2/{parent=projects/*/instances/*}/tables" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetTable", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + index=3, + containing_service=None, + input_type=_GETTABLEREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v2/{name=projects/*/instances/*/tables/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteTable", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + index=4, + containing_service=None, + input_type=_DELETETABLEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002,**/v2/{name=projects/*/instances/*/tables/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ModifyColumnFamilies", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + index=5, + containing_service=None, + input_type=_MODIFYCOLUMNFAMILIESREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002D"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DropRowRange", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + index=6, + containing_service=None, + input_type=_DROPROWRANGEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002<"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GenerateConsistencyToken", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + index=7, + containing_service=None, + input_type=_GENERATECONSISTENCYTOKENREQUEST, + output_type=_GENERATECONSISTENCYTOKENRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002H"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="CheckConsistency", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + index=8, + containing_service=None, + input_type=_CHECKCONSISTENCYREQUEST, + output_type=_CHECKCONSISTENCYRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002@";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="SnapshotTable", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + index=9, + containing_service=None, + input_type=_SNAPSHOTTABLEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetSnapshot", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + index=10, + containing_service=None, + input_type=_GETSNAPSHOTREQUEST, + output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._SNAPSHOT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:\0228/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListSnapshots", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + index=11, + containing_service=None, + input_type=_LISTSNAPSHOTSREQUEST, + output_type=_LISTSNAPSHOTSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:\0228/v2/{parent=projects/*/instances/*/clusters/*}/snapshots" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteSnapshot", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + index=12, + containing_service=None, + input_type=_DELETESNAPSHOTREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_BIGTABLETABLEADMIN) -DESCRIPTOR.services_by_name['BigtableTableAdmin'] = _BIGTABLETABLEADMIN +DESCRIPTOR.services_by_name["BigtableTableAdmin"] = _BIGTABLETABLEADMIN # @@protoc_insertion_point(module_scope) diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py index 278c914f023b6..2c702413b4e46 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py @@ -1,112 +1,118 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.bigtable_admin_v2.proto import bigtable_table_admin_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2 -from google.cloud.bigtable_admin_v2.proto import table_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.bigtable_admin_v2.proto import ( + bigtable_table_admin_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2, +) +from google.cloud.bigtable_admin_v2.proto import ( + table_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class BigtableTableAdminStub(object): - """Service for creating, configuring, and deleting Cloud Bigtable tables. + """Service for creating, configuring, and deleting Cloud Bigtable tables. Provides access to the table schemas only, not the data stored within the tables. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateTable = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, + self.CreateTable = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, ) - self.CreateTableFromSnapshot = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/CreateTableFromSnapshot', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateTableFromSnapshot = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTableFromSnapshot", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.ListTables = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/ListTables', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.FromString, + self.ListTables = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/ListTables", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.FromString, ) - self.GetTable = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/GetTable', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, + self.GetTable = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/GetTable", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, ) - self.DeleteTable = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteTable = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ModifyColumnFamilies = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, + self.ModifyColumnFamilies = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, ) - self.DropRowRange = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DropRowRange = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GenerateConsistencyToken = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/GenerateConsistencyToken', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.FromString, + self.GenerateConsistencyToken = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/GenerateConsistencyToken", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.FromString, ) - self.CheckConsistency = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.FromString, + self.CheckConsistency = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.FromString, ) - self.SnapshotTable = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/SnapshotTable', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.SnapshotTable = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/SnapshotTable", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.GetSnapshot = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/GetSnapshot', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Snapshot.FromString, + self.GetSnapshot = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/GetSnapshot", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Snapshot.FromString, ) - self.ListSnapshots = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/ListSnapshots', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.FromString, + self.ListSnapshots = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/ListSnapshots", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.FromString, ) - self.DeleteSnapshot = channel.unary_unary( - '/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSnapshot', - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteSnapshot = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSnapshot", + request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class BigtableTableAdminServicer(object): - """Service for creating, configuring, and deleting Cloud Bigtable tables. + """Service for creating, configuring, and deleting Cloud Bigtable tables. Provides access to the table schemas only, not the data stored within the tables. """ - def CreateTable(self, request, context): - """Creates a new table in the specified instance. + def CreateTable(self, request, context): + """Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateTableFromSnapshot(self, request, context): - """Creates a new table from the specified snapshot. The target table must + def CreateTableFromSnapshot(self, request, context): + """Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -115,71 +121,71 @@ def CreateTableFromSnapshot(self, request, context): recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTables(self, request, context): - """Lists all tables served from a specified instance. + def ListTables(self, request, context): + """Lists all tables served from a specified instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTable(self, request, context): - """Gets metadata information about the specified table. + def GetTable(self, request, context): + """Gets metadata information about the specified table. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteTable(self, request, context): - """Permanently deletes a specified table and all of its data. + def DeleteTable(self, request, context): + """Permanently deletes a specified table and all of its data. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ModifyColumnFamilies(self, request, context): - """Performs a series of column family modifications on the specified table. + def ModifyColumnFamilies(self, request, context): + """Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DropRowRange(self, request, context): - """Permanently drop/delete a row range from a specified table. The request can + def DropRowRange(self, request, context): + """Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GenerateConsistencyToken(self, request, context): - """Generates a consistency token for a Table, which can be used in + def GenerateConsistencyToken(self, request, context): + """Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CheckConsistency(self, request, context): - """Checks replication consistency based on a consistency token, that is, if + def CheckConsistency(self, request, context): + """Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SnapshotTable(self, request, context): - """Creates a new snapshot in the specified cluster from the specified + def SnapshotTable(self, request, context): + """Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -188,12 +194,12 @@ def SnapshotTable(self, request, context): recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetSnapshot(self, request, context): - """Gets metadata information about the specified snapshot. + def GetSnapshot(self, request, context): + """Gets metadata information about the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This @@ -201,12 +207,12 @@ def GetSnapshot(self, request, context): recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListSnapshots(self, request, context): - """Lists all snapshots associated with the specified cluster. + def ListSnapshots(self, request, context): + """Lists all snapshots associated with the specified cluster. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This @@ -214,12 +220,12 @@ def ListSnapshots(self, request, context): recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteSnapshot(self, request, context): - """Permanently deletes the specified snapshot. + def DeleteSnapshot(self, request, context): + """Permanently deletes the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This @@ -227,79 +233,80 @@ def DeleteSnapshot(self, request, context): recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_BigtableTableAdminServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateTable': grpc.unary_unary_rpc_method_handler( - servicer.CreateTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, - ), - 'CreateTableFromSnapshot': grpc.unary_unary_rpc_method_handler( - servicer.CreateTableFromSnapshot, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'ListTables': grpc.unary_unary_rpc_method_handler( - servicer.ListTables, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.SerializeToString, - ), - 'GetTable': grpc.unary_unary_rpc_method_handler( - servicer.GetTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, - ), - 'DeleteTable': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ModifyColumnFamilies': grpc.unary_unary_rpc_method_handler( - servicer.ModifyColumnFamilies, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, - ), - 'DropRowRange': grpc.unary_unary_rpc_method_handler( - servicer.DropRowRange, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GenerateConsistencyToken': grpc.unary_unary_rpc_method_handler( - servicer.GenerateConsistencyToken, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.SerializeToString, - ), - 'CheckConsistency': grpc.unary_unary_rpc_method_handler( - servicer.CheckConsistency, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.SerializeToString, - ), - 'SnapshotTable': grpc.unary_unary_rpc_method_handler( - servicer.SnapshotTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'GetSnapshot': grpc.unary_unary_rpc_method_handler( - servicer.GetSnapshot, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Snapshot.SerializeToString, - ), - 'ListSnapshots': grpc.unary_unary_rpc_method_handler( - servicer.ListSnapshots, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.SerializeToString, - ), - 'DeleteSnapshot': grpc.unary_unary_rpc_method_handler( - servicer.DeleteSnapshot, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.bigtable.admin.v2.BigtableTableAdmin', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateTable": grpc.unary_unary_rpc_method_handler( + servicer.CreateTable, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, + ), + "CreateTableFromSnapshot": grpc.unary_unary_rpc_method_handler( + servicer.CreateTableFromSnapshot, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "ListTables": grpc.unary_unary_rpc_method_handler( + servicer.ListTables, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.SerializeToString, + ), + "GetTable": grpc.unary_unary_rpc_method_handler( + servicer.GetTable, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, + ), + "DeleteTable": grpc.unary_unary_rpc_method_handler( + servicer.DeleteTable, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ModifyColumnFamilies": grpc.unary_unary_rpc_method_handler( + servicer.ModifyColumnFamilies, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, + ), + "DropRowRange": grpc.unary_unary_rpc_method_handler( + servicer.DropRowRange, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GenerateConsistencyToken": grpc.unary_unary_rpc_method_handler( + servicer.GenerateConsistencyToken, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.SerializeToString, + ), + "CheckConsistency": grpc.unary_unary_rpc_method_handler( + servicer.CheckConsistency, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.SerializeToString, + ), + "SnapshotTable": grpc.unary_unary_rpc_method_handler( + servicer.SnapshotTable, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "GetSnapshot": grpc.unary_unary_rpc_method_handler( + servicer.GetSnapshot, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Snapshot.SerializeToString, + ), + "ListSnapshots": grpc.unary_unary_rpc_method_handler( + servicer.ListSnapshots, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.SerializeToString, + ), + "DeleteSnapshot": grpc.unary_unary_rpc_method_handler( + servicer.DeleteSnapshot, + request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.bigtable.admin.v2.BigtableTableAdmin", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2.py b/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2.py index 0b3427c58d936..6e8e4ee89b485 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/bigtable/admin_v2/proto/common.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,36 +21,38 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigtable/admin_v2/proto/common.proto', - package='google.bigtable.admin.v2', - syntax='proto3', - serialized_pb=_b('\n1google/cloud/bigtable/admin_v2/proto/common.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto*=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02\x42\xae\x01\n\x1c\x63om.google.bigtable.admin.v2B\x0b\x43ommonProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/bigtable/admin_v2/proto/common.proto", + package="google.bigtable.admin.v2", + syntax="proto3", + serialized_pb=_b( + "\n1google/cloud/bigtable/admin_v2/proto/common.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto*=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02\x42\xae\x01\n\x1c\x63om.google.bigtable.admin.v2B\x0b\x43ommonProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3" + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _STORAGETYPE = _descriptor.EnumDescriptor( - name='StorageType', - full_name='google.bigtable.admin.v2.StorageType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STORAGE_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SSD', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HDD', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=142, - serialized_end=203, + name="StorageType", + full_name="google.bigtable.admin.v2.StorageType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STORAGE_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SSD", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HDD", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=142, + serialized_end=203, ) _sym_db.RegisterEnumDescriptor(_STORAGETYPE) @@ -58,10 +62,15 @@ HDD = 2 -DESCRIPTOR.enum_types_by_name['StorageType'] = _STORAGETYPE +DESCRIPTOR.enum_types_by_name["StorageType"] = _STORAGETYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.bigtable.admin.v2B\013CommonProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.bigtable.admin.v2B\013CommonProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2_grpc.py b/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2_grpc.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/common_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2.py b/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2.py index 3e44d81aa2e47..ebf96b37b74ad 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2.py @@ -2,433 +2,643 @@ # source: google/cloud/bigtable/admin_v2/proto/instance.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.bigtable_admin_v2.proto import common_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2 +from google.cloud.bigtable_admin_v2.proto import ( + common_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigtable/admin_v2/proto/instance.proto', - package='google.bigtable.admin.v2', - syntax='proto3', - serialized_pb=_b('\n3google/cloud/bigtable/admin_v2/proto/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x31google/cloud/bigtable/admin_v2/proto/common.proto\"\x83\x03\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x37\n\x05state\x18\x03 \x01(\x0e\x32(.google.bigtable.admin.v2.Instance.State\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.google.bigtable.admin.v2.Instance.Type\x12>\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02\"\x8e\x02\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x36\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.State\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12\x43\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageType\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"\x82\x03\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x1a\x1b\n\x19MultiClusterRoutingUseAny\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x42\x10\n\x0erouting_policyB\xb0\x01\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2.DESCRIPTOR,]) - + name="google/cloud/bigtable/admin_v2/proto/instance.proto", + package="google.bigtable.admin.v2", + syntax="proto3", + serialized_pb=_b( + '\n3google/cloud/bigtable/admin_v2/proto/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x31google/cloud/bigtable/admin_v2/proto/common.proto"\x83\x03\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x37\n\x05state\x18\x03 \x01(\x0e\x32(.google.bigtable.admin.v2.Instance.State\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.google.bigtable.admin.v2.Instance.Type\x12>\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02"\x8e\x02\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x36\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.State\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12\x43\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageType"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04"\x82\x03\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x1a\x1b\n\x19MultiClusterRoutingUseAny\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x42\x10\n\x0erouting_policyB\xb0\x01\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2.DESCRIPTOR, + ], +) _INSTANCE_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.bigtable.admin.v2.Instance.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_NOT_KNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=434, - serialized_end=487, + name="State", + full_name="google.bigtable.admin.v2.Instance.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_NOT_KNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=434, + serialized_end=487, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_STATE) _INSTANCE_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.bigtable.admin.v2.Instance.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRODUCTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEVELOPMENT', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=489, - serialized_end=550, + name="Type", + full_name="google.bigtable.admin.v2.Instance.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRODUCTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DEVELOPMENT", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=489, + serialized_end=550, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_TYPE) _CLUSTER_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.bigtable.admin.v2.Cluster.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_NOT_KNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESIZING', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISABLED', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=742, - serialized_end=823, + name="State", + full_name="google.bigtable.admin.v2.Cluster.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_NOT_KNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RESIZING", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISABLED", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=742, + serialized_end=823, ) _sym_db.RegisterEnumDescriptor(_CLUSTER_STATE) _INSTANCE_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.bigtable.admin.v2.Instance.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.bigtable.admin.v2.Instance.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.bigtable.admin.v2.Instance.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=387, - serialized_end=432, + name="LabelsEntry", + full_name="google.bigtable.admin.v2.Instance.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.bigtable.admin.v2.Instance.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.bigtable.admin.v2.Instance.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=387, + serialized_end=432, ) _INSTANCE = _descriptor.Descriptor( - name='Instance', - full_name='google.bigtable.admin.v2.Instance', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.Instance.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.bigtable.admin.v2.Instance.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.bigtable.admin.v2.Instance.state', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.bigtable.admin.v2.Instance.type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.bigtable.admin.v2.Instance.labels', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSTANCE_LABELSENTRY, ], - enum_types=[ - _INSTANCE_STATE, - _INSTANCE_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=163, - serialized_end=550, + name="Instance", + full_name="google.bigtable.admin.v2.Instance", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.Instance.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.bigtable.admin.v2.Instance.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.bigtable.admin.v2.Instance.state", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.bigtable.admin.v2.Instance.type", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.bigtable.admin.v2.Instance.labels", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_INSTANCE_LABELSENTRY], + enum_types=[_INSTANCE_STATE, _INSTANCE_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=163, + serialized_end=550, ) _CLUSTER = _descriptor.Descriptor( - name='Cluster', - full_name='google.bigtable.admin.v2.Cluster', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.Cluster.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location', full_name='google.bigtable.admin.v2.Cluster.location', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.bigtable.admin.v2.Cluster.state', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='serve_nodes', full_name='google.bigtable.admin.v2.Cluster.serve_nodes', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='default_storage_type', full_name='google.bigtable.admin.v2.Cluster.default_storage_type', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CLUSTER_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=553, - serialized_end=823, + name="Cluster", + full_name="google.bigtable.admin.v2.Cluster", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.Cluster.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location", + full_name="google.bigtable.admin.v2.Cluster.location", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.bigtable.admin.v2.Cluster.state", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="serve_nodes", + full_name="google.bigtable.admin.v2.Cluster.serve_nodes", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="default_storage_type", + full_name="google.bigtable.admin.v2.Cluster.default_storage_type", + index=4, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_CLUSTER_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=553, + serialized_end=823, ) _APPPROFILE_MULTICLUSTERROUTINGUSEANY = _descriptor.Descriptor( - name='MultiClusterRoutingUseAny', - full_name='google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1087, - serialized_end=1114, + name="MultiClusterRoutingUseAny", + full_name="google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1087, + serialized_end=1114, ) _APPPROFILE_SINGLECLUSTERROUTING = _descriptor.Descriptor( - name='SingleClusterRouting', - full_name='google.bigtable.admin.v2.AppProfile.SingleClusterRouting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cluster_id', full_name='google.bigtable.admin.v2.AppProfile.SingleClusterRouting.cluster_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='allow_transactional_writes', full_name='google.bigtable.admin.v2.AppProfile.SingleClusterRouting.allow_transactional_writes', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1116, - serialized_end=1194, + name="SingleClusterRouting", + full_name="google.bigtable.admin.v2.AppProfile.SingleClusterRouting", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="cluster_id", + full_name="google.bigtable.admin.v2.AppProfile.SingleClusterRouting.cluster_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="allow_transactional_writes", + full_name="google.bigtable.admin.v2.AppProfile.SingleClusterRouting.allow_transactional_writes", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1116, + serialized_end=1194, ) _APPPROFILE = _descriptor.Descriptor( - name='AppProfile', - full_name='google.bigtable.admin.v2.AppProfile', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.AppProfile.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='etag', full_name='google.bigtable.admin.v2.AppProfile.etag', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.bigtable.admin.v2.AppProfile.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='multi_cluster_routing_use_any', full_name='google.bigtable.admin.v2.AppProfile.multi_cluster_routing_use_any', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='single_cluster_routing', full_name='google.bigtable.admin.v2.AppProfile.single_cluster_routing', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_APPPROFILE_MULTICLUSTERROUTINGUSEANY, _APPPROFILE_SINGLECLUSTERROUTING, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='routing_policy', full_name='google.bigtable.admin.v2.AppProfile.routing_policy', - index=0, containing_type=None, fields=[]), - ], - serialized_start=826, - serialized_end=1212, + name="AppProfile", + full_name="google.bigtable.admin.v2.AppProfile", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.AppProfile.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="etag", + full_name="google.bigtable.admin.v2.AppProfile.etag", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.bigtable.admin.v2.AppProfile.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="multi_cluster_routing_use_any", + full_name="google.bigtable.admin.v2.AppProfile.multi_cluster_routing_use_any", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="single_cluster_routing", + full_name="google.bigtable.admin.v2.AppProfile.single_cluster_routing", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _APPPROFILE_MULTICLUSTERROUTINGUSEANY, + _APPPROFILE_SINGLECLUSTERROUTING, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="routing_policy", + full_name="google.bigtable.admin.v2.AppProfile.routing_policy", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=826, + serialized_end=1212, ) _INSTANCE_LABELSENTRY.containing_type = _INSTANCE -_INSTANCE.fields_by_name['state'].enum_type = _INSTANCE_STATE -_INSTANCE.fields_by_name['type'].enum_type = _INSTANCE_TYPE -_INSTANCE.fields_by_name['labels'].message_type = _INSTANCE_LABELSENTRY +_INSTANCE.fields_by_name["state"].enum_type = _INSTANCE_STATE +_INSTANCE.fields_by_name["type"].enum_type = _INSTANCE_TYPE +_INSTANCE.fields_by_name["labels"].message_type = _INSTANCE_LABELSENTRY _INSTANCE_STATE.containing_type = _INSTANCE _INSTANCE_TYPE.containing_type = _INSTANCE -_CLUSTER.fields_by_name['state'].enum_type = _CLUSTER_STATE -_CLUSTER.fields_by_name['default_storage_type'].enum_type = google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2._STORAGETYPE +_CLUSTER.fields_by_name["state"].enum_type = _CLUSTER_STATE +_CLUSTER.fields_by_name[ + "default_storage_type" +].enum_type = ( + google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2._STORAGETYPE +) _CLUSTER_STATE.containing_type = _CLUSTER _APPPROFILE_MULTICLUSTERROUTINGUSEANY.containing_type = _APPPROFILE _APPPROFILE_SINGLECLUSTERROUTING.containing_type = _APPPROFILE -_APPPROFILE.fields_by_name['multi_cluster_routing_use_any'].message_type = _APPPROFILE_MULTICLUSTERROUTINGUSEANY -_APPPROFILE.fields_by_name['single_cluster_routing'].message_type = _APPPROFILE_SINGLECLUSTERROUTING -_APPPROFILE.oneofs_by_name['routing_policy'].fields.append( - _APPPROFILE.fields_by_name['multi_cluster_routing_use_any']) -_APPPROFILE.fields_by_name['multi_cluster_routing_use_any'].containing_oneof = _APPPROFILE.oneofs_by_name['routing_policy'] -_APPPROFILE.oneofs_by_name['routing_policy'].fields.append( - _APPPROFILE.fields_by_name['single_cluster_routing']) -_APPPROFILE.fields_by_name['single_cluster_routing'].containing_oneof = _APPPROFILE.oneofs_by_name['routing_policy'] -DESCRIPTOR.message_types_by_name['Instance'] = _INSTANCE -DESCRIPTOR.message_types_by_name['Cluster'] = _CLUSTER -DESCRIPTOR.message_types_by_name['AppProfile'] = _APPPROFILE +_APPPROFILE.fields_by_name[ + "multi_cluster_routing_use_any" +].message_type = _APPPROFILE_MULTICLUSTERROUTINGUSEANY +_APPPROFILE.fields_by_name[ + "single_cluster_routing" +].message_type = _APPPROFILE_SINGLECLUSTERROUTING +_APPPROFILE.oneofs_by_name["routing_policy"].fields.append( + _APPPROFILE.fields_by_name["multi_cluster_routing_use_any"] +) +_APPPROFILE.fields_by_name[ + "multi_cluster_routing_use_any" +].containing_oneof = _APPPROFILE.oneofs_by_name["routing_policy"] +_APPPROFILE.oneofs_by_name["routing_policy"].fields.append( + _APPPROFILE.fields_by_name["single_cluster_routing"] +) +_APPPROFILE.fields_by_name[ + "single_cluster_routing" +].containing_oneof = _APPPROFILE.oneofs_by_name["routing_policy"] +DESCRIPTOR.message_types_by_name["Instance"] = _INSTANCE +DESCRIPTOR.message_types_by_name["Cluster"] = _CLUSTER +DESCRIPTOR.message_types_by_name["AppProfile"] = _APPPROFILE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Instance = _reflection.GeneratedProtocolMessageType('Instance', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _INSTANCE_LABELSENTRY, - __module__ = 'google.cloud.bigtable.admin_v2.proto.instance_pb2' - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Instance.LabelsEntry) - )) - , - DESCRIPTOR = _INSTANCE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.instance_pb2' - , - __doc__ = """A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and +Instance = _reflection.GeneratedProtocolMessageType( + "Instance", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCE_LABELSENTRY, + __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2" + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Instance.LabelsEntry) + ), + ), + DESCRIPTOR=_INSTANCE, + __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", + __doc__="""A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and the resources that serve them. All tables in an instance are served from a single [Cluster][google.bigtable.admin.v2.Cluster]. @@ -459,16 +669,19 @@ No more than 64 labels can be associated with a given resource. - Keys and values must both be under 128 bytes. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Instance) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Instance) + ), +) _sym_db.RegisterMessage(Instance) _sym_db.RegisterMessage(Instance.LabelsEntry) -Cluster = _reflection.GeneratedProtocolMessageType('Cluster', (_message.Message,), dict( - DESCRIPTOR = _CLUSTER, - __module__ = 'google.cloud.bigtable.admin_v2.proto.instance_pb2' - , - __doc__ = """A resizable group of nodes in a particular cloud location, capable of +Cluster = _reflection.GeneratedProtocolMessageType( + "Cluster", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTER, + __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", + __doc__="""A resizable group of nodes in a particular cloud location, capable of serving all [Tables][google.bigtable.admin.v2.Table] in the parent [Instance][google.bigtable.admin.v2.Instance]. @@ -494,30 +707,36 @@ serve its parent instance's tables, unless explicitly overridden. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Cluster) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Cluster) + ), +) _sym_db.RegisterMessage(Cluster) -AppProfile = _reflection.GeneratedProtocolMessageType('AppProfile', (_message.Message,), dict( - - MultiClusterRoutingUseAny = _reflection.GeneratedProtocolMessageType('MultiClusterRoutingUseAny', (_message.Message,), dict( - DESCRIPTOR = _APPPROFILE_MULTICLUSTERROUTINGUSEANY, - __module__ = 'google.cloud.bigtable.admin_v2.proto.instance_pb2' - , - __doc__ = """Read/write requests may be routed to any cluster in the instance, and +AppProfile = _reflection.GeneratedProtocolMessageType( + "AppProfile", + (_message.Message,), + dict( + MultiClusterRoutingUseAny=_reflection.GeneratedProtocolMessageType( + "MultiClusterRoutingUseAny", + (_message.Message,), + dict( + DESCRIPTOR=_APPPROFILE_MULTICLUSTERROUTINGUSEANY, + __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", + __doc__="""Read/write requests may be routed to any cluster in the instance, and will fail over to another cluster in the event of transient errors or delays. Choosing this option sacrifices read-your-writes consistency to improve availability. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) - )) - , - - SingleClusterRouting = _reflection.GeneratedProtocolMessageType('SingleClusterRouting', (_message.Message,), dict( - DESCRIPTOR = _APPPROFILE_SINGLECLUSTERROUTING, - __module__ = 'google.cloud.bigtable.admin_v2.proto.instance_pb2' - , - __doc__ = """Unconditionally routes all read/write requests to a specific cluster. + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) + ), + ), + SingleClusterRouting=_reflection.GeneratedProtocolMessageType( + "SingleClusterRouting", + (_message.Message,), + dict( + DESCRIPTOR=_APPPROFILE_SINGLECLUSTERROUTING, + __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", + __doc__="""Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency, but does not improve availability. @@ -531,13 +750,12 @@ profile. It is unsafe to send these requests to the same table/row/column in multiple clusters. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile.SingleClusterRouting) - )) - , - DESCRIPTOR = _APPPROFILE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.instance_pb2' - , - __doc__ = """A configuration object describing how Cloud Bigtable should treat + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile.SingleClusterRouting) + ), + ), + DESCRIPTOR=_APPPROFILE, + __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", + __doc__="""A configuration object describing how Cloud Bigtable should treat traffic from a particular end user application. @@ -568,15 +786,23 @@ single_cluster_routing: Use a single-cluster routing policy. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile) + ), +) _sym_db.RegisterMessage(AppProfile) _sym_db.RegisterMessage(AppProfile.MultiClusterRoutingUseAny) _sym_db.RegisterMessage(AppProfile.SingleClusterRouting) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.bigtable.admin.v2B\rInstanceProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.bigtable.admin.v2B\rInstanceProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" + ), +) _INSTANCE_LABELSENTRY.has_options = True -_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2_grpc.py b/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2_grpc.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/instance_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2.py b/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2.py index 4d76257036943..8b309a67256f6 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/bigtable/admin_v2/proto/table.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,560 +21,795 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigtable/admin_v2/proto/table.proto', - package='google.bigtable.admin.v2', - syntax='proto3', - serialized_pb=_b('\n0google/cloud/bigtable/admin_v2/proto/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x06\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12J\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntry\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12I\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularity\x1a\xe2\x01\n\x0c\x43lusterState\x12X\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationState\"x\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"\\\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x08\n\x04\x46ULL\x10\x04\"A\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xcf\x02\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.State\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x42\xad\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/bigtable/admin_v2/proto/table.proto", + package="google.bigtable.admin.v2", + syntax="proto3", + serialized_pb=_b( + '\n0google/cloud/bigtable/admin_v2/proto/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xcb\x06\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12J\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntry\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12I\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularity\x1a\xe2\x01\n\x0c\x43lusterState\x12X\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationState"x\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01"\\\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x08\n\x04\x46ULL\x10\x04"A\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule"\xcf\x02\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.State\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x42\xad\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _TABLE_CLUSTERSTATE_REPLICATIONSTATE = _descriptor.EnumDescriptor( - name='ReplicationState', - full_name='google.bigtable.admin.v2.Table.ClusterState.ReplicationState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_NOT_KNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INITIALIZING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLANNED_MAINTENANCE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNPLANNED_MAINTENANCE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=533, - serialized_end=653, + name="ReplicationState", + full_name="google.bigtable.admin.v2.Table.ClusterState.ReplicationState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_NOT_KNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INITIALIZING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLANNED_MAINTENANCE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNPLANNED_MAINTENANCE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=533, + serialized_end=653, ) _sym_db.RegisterEnumDescriptor(_TABLE_CLUSTERSTATE_REPLICATIONSTATE) _TABLE_TIMESTAMPGRANULARITY = _descriptor.EnumDescriptor( - name='TimestampGranularity', - full_name='google.bigtable.admin.v2.Table.TimestampGranularity', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TIMESTAMP_GRANULARITY_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MILLIS', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=850, - serialized_end=923, + name="TimestampGranularity", + full_name="google.bigtable.admin.v2.Table.TimestampGranularity", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TIMESTAMP_GRANULARITY_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="MILLIS", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=850, + serialized_end=923, ) _sym_db.RegisterEnumDescriptor(_TABLE_TIMESTAMPGRANULARITY) _TABLE_VIEW = _descriptor.EnumDescriptor( - name='View', - full_name='google.bigtable.admin.v2.Table.View', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VIEW_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NAME_ONLY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SCHEMA_VIEW', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REPLICATION_VIEW', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FULL', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=925, - serialized_end=1017, + name="View", + full_name="google.bigtable.admin.v2.Table.View", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VIEW_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NAME_ONLY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SCHEMA_VIEW", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REPLICATION_VIEW", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FULL", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=925, + serialized_end=1017, ) _sym_db.RegisterEnumDescriptor(_TABLE_VIEW) _SNAPSHOT_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.bigtable.admin.v2.Snapshot.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_NOT_KNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1713, - serialized_end=1766, + name="State", + full_name="google.bigtable.admin.v2.Snapshot.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_NOT_KNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1713, + serialized_end=1766, ) _sym_db.RegisterEnumDescriptor(_SNAPSHOT_STATE) _TABLE_CLUSTERSTATE = _descriptor.Descriptor( - name='ClusterState', - full_name='google.bigtable.admin.v2.Table.ClusterState', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='replication_state', full_name='google.bigtable.admin.v2.Table.ClusterState.replication_state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TABLE_CLUSTERSTATE_REPLICATIONSTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=427, - serialized_end=653, + name="ClusterState", + full_name="google.bigtable.admin.v2.Table.ClusterState", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="replication_state", + full_name="google.bigtable.admin.v2.Table.ClusterState.replication_state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[_TABLE_CLUSTERSTATE_REPLICATIONSTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=427, + serialized_end=653, ) _TABLE_CLUSTERSTATESENTRY = _descriptor.Descriptor( - name='ClusterStatesEntry', - full_name='google.bigtable.admin.v2.Table.ClusterStatesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.bigtable.admin.v2.Table.ClusterStatesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.bigtable.admin.v2.Table.ClusterStatesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=655, - serialized_end=753, + name="ClusterStatesEntry", + full_name="google.bigtable.admin.v2.Table.ClusterStatesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.bigtable.admin.v2.Table.ClusterStatesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.bigtable.admin.v2.Table.ClusterStatesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=655, + serialized_end=753, ) _TABLE_COLUMNFAMILIESENTRY = _descriptor.Descriptor( - name='ColumnFamiliesEntry', - full_name='google.bigtable.admin.v2.Table.ColumnFamiliesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.bigtable.admin.v2.Table.ColumnFamiliesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.bigtable.admin.v2.Table.ColumnFamiliesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=755, - serialized_end=848, + name="ColumnFamiliesEntry", + full_name="google.bigtable.admin.v2.Table.ColumnFamiliesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.bigtable.admin.v2.Table.ColumnFamiliesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.bigtable.admin.v2.Table.ColumnFamiliesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=755, + serialized_end=848, ) _TABLE = _descriptor.Descriptor( - name='Table', - full_name='google.bigtable.admin.v2.Table', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.Table.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_states', full_name='google.bigtable.admin.v2.Table.cluster_states', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_families', full_name='google.bigtable.admin.v2.Table.column_families', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='granularity', full_name='google.bigtable.admin.v2.Table.granularity', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TABLE_CLUSTERSTATE, _TABLE_CLUSTERSTATESENTRY, _TABLE_COLUMNFAMILIESENTRY, ], - enum_types=[ - _TABLE_TIMESTAMPGRANULARITY, - _TABLE_VIEW, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=174, - serialized_end=1017, + name="Table", + full_name="google.bigtable.admin.v2.Table", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.Table.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_states", + full_name="google.bigtable.admin.v2.Table.cluster_states", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_families", + full_name="google.bigtable.admin.v2.Table.column_families", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="granularity", + full_name="google.bigtable.admin.v2.Table.granularity", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _TABLE_CLUSTERSTATE, + _TABLE_CLUSTERSTATESENTRY, + _TABLE_COLUMNFAMILIESENTRY, + ], + enum_types=[_TABLE_TIMESTAMPGRANULARITY, _TABLE_VIEW], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=174, + serialized_end=1017, ) _COLUMNFAMILY = _descriptor.Descriptor( - name='ColumnFamily', - full_name='google.bigtable.admin.v2.ColumnFamily', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gc_rule', full_name='google.bigtable.admin.v2.ColumnFamily.gc_rule', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1019, - serialized_end=1084, + name="ColumnFamily", + full_name="google.bigtable.admin.v2.ColumnFamily", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gc_rule", + full_name="google.bigtable.admin.v2.ColumnFamily.gc_rule", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1019, + serialized_end=1084, ) _GCRULE_INTERSECTION = _descriptor.Descriptor( - name='Intersection', - full_name='google.bigtable.admin.v2.GcRule.Intersection', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='rules', full_name='google.bigtable.admin.v2.GcRule.Intersection.rules', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1299, - serialized_end=1362, + name="Intersection", + full_name="google.bigtable.admin.v2.GcRule.Intersection", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="rules", + full_name="google.bigtable.admin.v2.GcRule.Intersection.rules", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1299, + serialized_end=1362, ) _GCRULE_UNION = _descriptor.Descriptor( - name='Union', - full_name='google.bigtable.admin.v2.GcRule.Union', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='rules', full_name='google.bigtable.admin.v2.GcRule.Union.rules', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1364, - serialized_end=1420, + name="Union", + full_name="google.bigtable.admin.v2.GcRule.Union", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="rules", + full_name="google.bigtable.admin.v2.GcRule.Union.rules", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1364, + serialized_end=1420, ) _GCRULE = _descriptor.Descriptor( - name='GcRule', - full_name='google.bigtable.admin.v2.GcRule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_num_versions', full_name='google.bigtable.admin.v2.GcRule.max_num_versions', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_age', full_name='google.bigtable.admin.v2.GcRule.max_age', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='intersection', full_name='google.bigtable.admin.v2.GcRule.intersection', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='union', full_name='google.bigtable.admin.v2.GcRule.union', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_GCRULE_INTERSECTION, _GCRULE_UNION, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='rule', full_name='google.bigtable.admin.v2.GcRule.rule', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1087, - serialized_end=1428, + name="GcRule", + full_name="google.bigtable.admin.v2.GcRule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_num_versions", + full_name="google.bigtable.admin.v2.GcRule.max_num_versions", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_age", + full_name="google.bigtable.admin.v2.GcRule.max_age", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="intersection", + full_name="google.bigtable.admin.v2.GcRule.intersection", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="union", + full_name="google.bigtable.admin.v2.GcRule.union", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_GCRULE_INTERSECTION, _GCRULE_UNION], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="rule", + full_name="google.bigtable.admin.v2.GcRule.rule", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1087, + serialized_end=1428, ) _SNAPSHOT = _descriptor.Descriptor( - name='Snapshot', - full_name='google.bigtable.admin.v2.Snapshot', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.admin.v2.Snapshot.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_table', full_name='google.bigtable.admin.v2.Snapshot.source_table', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_size_bytes', full_name='google.bigtable.admin.v2.Snapshot.data_size_bytes', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.bigtable.admin.v2.Snapshot.create_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete_time', full_name='google.bigtable.admin.v2.Snapshot.delete_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.bigtable.admin.v2.Snapshot.state', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.bigtable.admin.v2.Snapshot.description', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SNAPSHOT_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1431, - serialized_end=1766, + name="Snapshot", + full_name="google.bigtable.admin.v2.Snapshot", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.Snapshot.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source_table", + full_name="google.bigtable.admin.v2.Snapshot.source_table", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data_size_bytes", + full_name="google.bigtable.admin.v2.Snapshot.data_size_bytes", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.bigtable.admin.v2.Snapshot.create_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete_time", + full_name="google.bigtable.admin.v2.Snapshot.delete_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.bigtable.admin.v2.Snapshot.state", + index=5, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.bigtable.admin.v2.Snapshot.description", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_SNAPSHOT_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1431, + serialized_end=1766, ) -_TABLE_CLUSTERSTATE.fields_by_name['replication_state'].enum_type = _TABLE_CLUSTERSTATE_REPLICATIONSTATE +_TABLE_CLUSTERSTATE.fields_by_name[ + "replication_state" +].enum_type = _TABLE_CLUSTERSTATE_REPLICATIONSTATE _TABLE_CLUSTERSTATE.containing_type = _TABLE _TABLE_CLUSTERSTATE_REPLICATIONSTATE.containing_type = _TABLE_CLUSTERSTATE -_TABLE_CLUSTERSTATESENTRY.fields_by_name['value'].message_type = _TABLE_CLUSTERSTATE +_TABLE_CLUSTERSTATESENTRY.fields_by_name["value"].message_type = _TABLE_CLUSTERSTATE _TABLE_CLUSTERSTATESENTRY.containing_type = _TABLE -_TABLE_COLUMNFAMILIESENTRY.fields_by_name['value'].message_type = _COLUMNFAMILY +_TABLE_COLUMNFAMILIESENTRY.fields_by_name["value"].message_type = _COLUMNFAMILY _TABLE_COLUMNFAMILIESENTRY.containing_type = _TABLE -_TABLE.fields_by_name['cluster_states'].message_type = _TABLE_CLUSTERSTATESENTRY -_TABLE.fields_by_name['column_families'].message_type = _TABLE_COLUMNFAMILIESENTRY -_TABLE.fields_by_name['granularity'].enum_type = _TABLE_TIMESTAMPGRANULARITY +_TABLE.fields_by_name["cluster_states"].message_type = _TABLE_CLUSTERSTATESENTRY +_TABLE.fields_by_name["column_families"].message_type = _TABLE_COLUMNFAMILIESENTRY +_TABLE.fields_by_name["granularity"].enum_type = _TABLE_TIMESTAMPGRANULARITY _TABLE_TIMESTAMPGRANULARITY.containing_type = _TABLE _TABLE_VIEW.containing_type = _TABLE -_COLUMNFAMILY.fields_by_name['gc_rule'].message_type = _GCRULE -_GCRULE_INTERSECTION.fields_by_name['rules'].message_type = _GCRULE +_COLUMNFAMILY.fields_by_name["gc_rule"].message_type = _GCRULE +_GCRULE_INTERSECTION.fields_by_name["rules"].message_type = _GCRULE _GCRULE_INTERSECTION.containing_type = _GCRULE -_GCRULE_UNION.fields_by_name['rules'].message_type = _GCRULE +_GCRULE_UNION.fields_by_name["rules"].message_type = _GCRULE _GCRULE_UNION.containing_type = _GCRULE -_GCRULE.fields_by_name['max_age'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_GCRULE.fields_by_name['intersection'].message_type = _GCRULE_INTERSECTION -_GCRULE.fields_by_name['union'].message_type = _GCRULE_UNION -_GCRULE.oneofs_by_name['rule'].fields.append( - _GCRULE.fields_by_name['max_num_versions']) -_GCRULE.fields_by_name['max_num_versions'].containing_oneof = _GCRULE.oneofs_by_name['rule'] -_GCRULE.oneofs_by_name['rule'].fields.append( - _GCRULE.fields_by_name['max_age']) -_GCRULE.fields_by_name['max_age'].containing_oneof = _GCRULE.oneofs_by_name['rule'] -_GCRULE.oneofs_by_name['rule'].fields.append( - _GCRULE.fields_by_name['intersection']) -_GCRULE.fields_by_name['intersection'].containing_oneof = _GCRULE.oneofs_by_name['rule'] -_GCRULE.oneofs_by_name['rule'].fields.append( - _GCRULE.fields_by_name['union']) -_GCRULE.fields_by_name['union'].containing_oneof = _GCRULE.oneofs_by_name['rule'] -_SNAPSHOT.fields_by_name['source_table'].message_type = _TABLE -_SNAPSHOT.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SNAPSHOT.fields_by_name['delete_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SNAPSHOT.fields_by_name['state'].enum_type = _SNAPSHOT_STATE +_GCRULE.fields_by_name[ + "max_age" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_GCRULE.fields_by_name["intersection"].message_type = _GCRULE_INTERSECTION +_GCRULE.fields_by_name["union"].message_type = _GCRULE_UNION +_GCRULE.oneofs_by_name["rule"].fields.append(_GCRULE.fields_by_name["max_num_versions"]) +_GCRULE.fields_by_name["max_num_versions"].containing_oneof = _GCRULE.oneofs_by_name[ + "rule" +] +_GCRULE.oneofs_by_name["rule"].fields.append(_GCRULE.fields_by_name["max_age"]) +_GCRULE.fields_by_name["max_age"].containing_oneof = _GCRULE.oneofs_by_name["rule"] +_GCRULE.oneofs_by_name["rule"].fields.append(_GCRULE.fields_by_name["intersection"]) +_GCRULE.fields_by_name["intersection"].containing_oneof = _GCRULE.oneofs_by_name["rule"] +_GCRULE.oneofs_by_name["rule"].fields.append(_GCRULE.fields_by_name["union"]) +_GCRULE.fields_by_name["union"].containing_oneof = _GCRULE.oneofs_by_name["rule"] +_SNAPSHOT.fields_by_name["source_table"].message_type = _TABLE +_SNAPSHOT.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SNAPSHOT.fields_by_name[ + "delete_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SNAPSHOT.fields_by_name["state"].enum_type = _SNAPSHOT_STATE _SNAPSHOT_STATE.containing_type = _SNAPSHOT -DESCRIPTOR.message_types_by_name['Table'] = _TABLE -DESCRIPTOR.message_types_by_name['ColumnFamily'] = _COLUMNFAMILY -DESCRIPTOR.message_types_by_name['GcRule'] = _GCRULE -DESCRIPTOR.message_types_by_name['Snapshot'] = _SNAPSHOT +DESCRIPTOR.message_types_by_name["Table"] = _TABLE +DESCRIPTOR.message_types_by_name["ColumnFamily"] = _COLUMNFAMILY +DESCRIPTOR.message_types_by_name["GcRule"] = _GCRULE +DESCRIPTOR.message_types_by_name["Snapshot"] = _SNAPSHOT _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Table = _reflection.GeneratedProtocolMessageType('Table', (_message.Message,), dict( - - ClusterState = _reflection.GeneratedProtocolMessageType('ClusterState', (_message.Message,), dict( - DESCRIPTOR = _TABLE_CLUSTERSTATE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - , - __doc__ = """The state of a table's data in a particular cluster. +Table = _reflection.GeneratedProtocolMessageType( + "Table", + (_message.Message,), + dict( + ClusterState=_reflection.GeneratedProtocolMessageType( + "ClusterState", + (_message.Message,), + dict( + DESCRIPTOR=_TABLE_CLUSTERSTATE, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", + __doc__="""The state of a table's data in a particular cluster. Attributes: @@ -580,27 +817,30 @@ (``OutputOnly``) The state of replication for the table in this cluster. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ClusterState) - )) - , - - ClusterStatesEntry = _reflection.GeneratedProtocolMessageType('ClusterStatesEntry', (_message.Message,), dict( - DESCRIPTOR = _TABLE_CLUSTERSTATESENTRY, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ClusterStatesEntry) - )) - , - - ColumnFamiliesEntry = _reflection.GeneratedProtocolMessageType('ColumnFamiliesEntry', (_message.Message,), dict( - DESCRIPTOR = _TABLE_COLUMNFAMILIESENTRY, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ColumnFamiliesEntry) - )) - , - DESCRIPTOR = _TABLE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - , - __doc__ = """A collection of user data indexed by row, column, and timestamp. Each + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ClusterState) + ), + ), + ClusterStatesEntry=_reflection.GeneratedProtocolMessageType( + "ClusterStatesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_TABLE_CLUSTERSTATESENTRY, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2" + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ClusterStatesEntry) + ), + ), + ColumnFamiliesEntry=_reflection.GeneratedProtocolMessageType( + "ColumnFamiliesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_TABLE_COLUMNFAMILIESENTRY, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2" + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ColumnFamiliesEntry) + ), + ), + DESCRIPTOR=_TABLE, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", + __doc__="""A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster. @@ -628,18 +868,21 @@ time, the value will be set to ``MILLIS``. Views: ``SCHEMA_VIEW``, ``FULL`` """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table) + ), +) _sym_db.RegisterMessage(Table) _sym_db.RegisterMessage(Table.ClusterState) _sym_db.RegisterMessage(Table.ClusterStatesEntry) _sym_db.RegisterMessage(Table.ColumnFamiliesEntry) -ColumnFamily = _reflection.GeneratedProtocolMessageType('ColumnFamily', (_message.Message,), dict( - DESCRIPTOR = _COLUMNFAMILY, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - , - __doc__ = """A set of columns within a table which share a common configuration. +ColumnFamily = _reflection.GeneratedProtocolMessageType( + "ColumnFamily", + (_message.Message,), + dict( + DESCRIPTOR=_COLUMNFAMILY, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", + __doc__="""A set of columns within a table which share a common configuration. Attributes: @@ -650,17 +893,22 @@ possible for reads to return a cell even if it matches the active GC expression for its family. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ColumnFamily) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ColumnFamily) + ), +) _sym_db.RegisterMessage(ColumnFamily) -GcRule = _reflection.GeneratedProtocolMessageType('GcRule', (_message.Message,), dict( - - Intersection = _reflection.GeneratedProtocolMessageType('Intersection', (_message.Message,), dict( - DESCRIPTOR = _GCRULE_INTERSECTION, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - , - __doc__ = """A GcRule which deletes cells matching all of the given rules. +GcRule = _reflection.GeneratedProtocolMessageType( + "GcRule", + (_message.Message,), + dict( + Intersection=_reflection.GeneratedProtocolMessageType( + "Intersection", + (_message.Message,), + dict( + DESCRIPTOR=_GCRULE_INTERSECTION, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", + __doc__="""A GcRule which deletes cells matching all of the given rules. Attributes: @@ -668,15 +916,16 @@ Only delete cells which would be deleted by every element of ``rules``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule.Intersection) - )) - , - - Union = _reflection.GeneratedProtocolMessageType('Union', (_message.Message,), dict( - DESCRIPTOR = _GCRULE_UNION, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - , - __doc__ = """A GcRule which deletes cells matching any of the given rules. + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule.Intersection) + ), + ), + Union=_reflection.GeneratedProtocolMessageType( + "Union", + (_message.Message,), + dict( + DESCRIPTOR=_GCRULE_UNION, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", + __doc__="""A GcRule which deletes cells matching any of the given rules. Attributes: @@ -684,13 +933,12 @@ Delete cells which would be deleted by any element of ``rules``. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule.Union) - )) - , - DESCRIPTOR = _GCRULE, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - , - __doc__ = """Rule for determining which cells to delete during garbage collection. + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule.Union) + ), + ), + DESCRIPTOR=_GCRULE, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", + __doc__="""Rule for determining which cells to delete during garbage collection. Attributes: @@ -707,17 +955,20 @@ union: Delete cells that would be deleted by any nested rule. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule) + ), +) _sym_db.RegisterMessage(GcRule) _sym_db.RegisterMessage(GcRule.Intersection) _sym_db.RegisterMessage(GcRule.Union) -Snapshot = _reflection.GeneratedProtocolMessageType('Snapshot', (_message.Message,), dict( - DESCRIPTOR = _SNAPSHOT, - __module__ = 'google.cloud.bigtable.admin_v2.proto.table_pb2' - , - __doc__ = """A snapshot of a table at a particular time. A snapshot can be used as a +Snapshot = _reflection.GeneratedProtocolMessageType( + "Snapshot", + (_message.Message,), + dict( + DESCRIPTOR=_SNAPSHOT, + __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", + __doc__="""A snapshot of a table at a particular time. A snapshot can be used as a checkpoint for data restoration or a data source for a new table. Note: This is a private alpha release of Cloud Bigtable snapshots. This @@ -752,15 +1003,25 @@ description: (``OutputOnly``) Description of the snapshot. """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Snapshot) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Snapshot) + ), +) _sym_db.RegisterMessage(Snapshot) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.bigtable.admin.v2B\nTableProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.bigtable.admin.v2B\nTableProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" + ), +) _TABLE_CLUSTERSTATESENTRY.has_options = True -_TABLE_CLUSTERSTATESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_TABLE_CLUSTERSTATESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _TABLE_COLUMNFAMILIESENTRY.has_options = True -_TABLE_COLUMNFAMILIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_TABLE_COLUMNFAMILIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2_grpc.py b/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2_grpc.py +++ b/bigtable/google/cloud/bigtable_admin_v2/proto/table_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2.py b/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2.py index da10ffd36bdaf..994ca3d6a6f93 100644 --- a/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2.py +++ b/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2.py @@ -2,744 +2,1236 @@ # source: google/cloud/bigtable_v2/proto/bigtable.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.bigtable_v2.proto import data_pb2 as google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2 +from google.cloud.bigtable_v2.proto import ( + data_pb2 as google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2, +) from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigtable_v2/proto/bigtable.proto', - package='google.bigtable.v2', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/bigtable_v2/proto/bigtable.proto\x12\x12google.bigtable.v2\x1a\x1cgoogle/api/annotations.proto\x1a)google/cloud/bigtable_v2/proto/data.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xaa\x01\n\x0fReadRowsRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x05 \x01(\t\x12(\n\x04rows\x18\x02 \x01(\x0b\x32\x1a.google.bigtable.v2.RowSet\x12-\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x12\n\nrows_limit\x18\x04 \x01(\x03\"\xf8\x02\n\x10ReadRowsResponse\x12>\n\x06\x63hunks\x18\x01 \x03(\x0b\x32..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1c\n\x14last_scanned_row_key\x18\x02 \x01(\x0c\x1a\x85\x02\n\tCellChunk\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x31\n\x0b\x66\x61mily_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\tqualifier\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x18\n\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0e\n\x06labels\x18\x05 \x03(\t\x12\r\n\x05value\x18\x06 \x01(\x0c\x12\x12\n\nvalue_size\x18\x07 \x01(\x05\x12\x13\n\treset_row\x18\x08 \x01(\x08H\x00\x12\x14\n\ncommit_row\x18\t \x01(\x08H\x00\x42\x0c\n\nrow_status\"B\n\x14SampleRowKeysRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\">\n\x15SampleRowKeysResponse\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x14\n\x0coffset_bytes\x18\x02 \x01(\x03\"\x80\x01\n\x10MutateRowRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x0f\n\x07row_key\x18\x02 \x01(\x0c\x12/\n\tmutations\x18\x03 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\"\x13\n\x11MutateRowResponse\"\xc8\x01\n\x11MutateRowsRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x03 \x01(\t\x12<\n\x07\x65ntries\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.MutateRowsRequest.Entry\x1aI\n\x05\x45ntry\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12/\n\tmutations\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\"\x8f\x01\n\x12MutateRowsResponse\x12=\n\x07\x65ntries\x18\x01 \x03(\x0b\x32,.google.bigtable.v2.MutateRowsResponse.Entry\x1a:\n\x05\x45ntry\x12\r\n\x05index\x18\x01 \x01(\x03\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xfd\x01\n\x18\x43heckAndMutateRowRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x07 \x01(\t\x12\x0f\n\x07row_key\x18\x02 \x01(\x0c\x12\x37\n\x10predicate_filter\x18\x06 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x34\n\x0etrue_mutations\x18\x04 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\x12\x35\n\x0f\x66\x61lse_mutations\x18\x05 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\"6\n\x19\x43heckAndMutateRowResponse\x12\x19\n\x11predicate_matched\x18\x01 \x01(\x08\"\x90\x01\n\x19ReadModifyWriteRowRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x0f\n\x07row_key\x18\x02 \x01(\x0c\x12\x36\n\x05rules\x18\x03 \x03(\x0b\x32\'.google.bigtable.v2.ReadModifyWriteRule\"B\n\x1aReadModifyWriteRowResponse\x12$\n\x03row\x18\x01 \x01(\x0b\x32\x17.google.bigtable.v2.Row2\xad\x08\n\x08\x42igtable\x12\x9d\x01\n\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1a$.google.bigtable.v2.ReadRowsResponse\"D\x82\xd3\xe4\x93\x02>\"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*0\x01\x12\xae\x01\n\rSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse\"F\x82\xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys0\x01\x12\x9f\x01\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.google.bigtable.v2.MutateRowResponse\"E\x82\xd3\xe4\x93\x02?\":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*\x12\xa5\x01\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1a&.google.bigtable.v2.MutateRowsResponse\"F\x82\xd3\xe4\x93\x02@\";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*0\x01\x12\xbf\x01\n\x11\x43heckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse\"M\x82\xd3\xe4\x93\x02G\"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*\x12\xc3\x01\n\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.v2.ReadModifyWriteRowResponse\"N\x82\xd3\xe4\x93\x02H\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*B\x9b\x01\n\x16\x63om.google.bigtable.v2B\rBigtableProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - + name="google/cloud/bigtable_v2/proto/bigtable.proto", + package="google.bigtable.v2", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/bigtable_v2/proto/bigtable.proto\x12\x12google.bigtable.v2\x1a\x1cgoogle/api/annotations.proto\x1a)google/cloud/bigtable_v2/proto/data.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xaa\x01\n\x0fReadRowsRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x05 \x01(\t\x12(\n\x04rows\x18\x02 \x01(\x0b\x32\x1a.google.bigtable.v2.RowSet\x12-\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x12\n\nrows_limit\x18\x04 \x01(\x03"\xf8\x02\n\x10ReadRowsResponse\x12>\n\x06\x63hunks\x18\x01 \x03(\x0b\x32..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1c\n\x14last_scanned_row_key\x18\x02 \x01(\x0c\x1a\x85\x02\n\tCellChunk\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x31\n\x0b\x66\x61mily_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\tqualifier\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x18\n\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0e\n\x06labels\x18\x05 \x03(\t\x12\r\n\x05value\x18\x06 \x01(\x0c\x12\x12\n\nvalue_size\x18\x07 \x01(\x05\x12\x13\n\treset_row\x18\x08 \x01(\x08H\x00\x12\x14\n\ncommit_row\x18\t \x01(\x08H\x00\x42\x0c\n\nrow_status"B\n\x14SampleRowKeysRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t">\n\x15SampleRowKeysResponse\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x14\n\x0coffset_bytes\x18\x02 \x01(\x03"\x80\x01\n\x10MutateRowRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x0f\n\x07row_key\x18\x02 \x01(\x0c\x12/\n\tmutations\x18\x03 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation"\x13\n\x11MutateRowResponse"\xc8\x01\n\x11MutateRowsRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x03 \x01(\t\x12<\n\x07\x65ntries\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.MutateRowsRequest.Entry\x1aI\n\x05\x45ntry\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12/\n\tmutations\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation"\x8f\x01\n\x12MutateRowsResponse\x12=\n\x07\x65ntries\x18\x01 \x03(\x0b\x32,.google.bigtable.v2.MutateRowsResponse.Entry\x1a:\n\x05\x45ntry\x12\r\n\x05index\x18\x01 \x01(\x03\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status"\xfd\x01\n\x18\x43heckAndMutateRowRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x07 \x01(\t\x12\x0f\n\x07row_key\x18\x02 \x01(\x0c\x12\x37\n\x10predicate_filter\x18\x06 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x34\n\x0etrue_mutations\x18\x04 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\x12\x35\n\x0f\x66\x61lse_mutations\x18\x05 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation"6\n\x19\x43heckAndMutateRowResponse\x12\x19\n\x11predicate_matched\x18\x01 \x01(\x08"\x90\x01\n\x19ReadModifyWriteRowRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x0f\n\x07row_key\x18\x02 \x01(\x0c\x12\x36\n\x05rules\x18\x03 \x03(\x0b\x32\'.google.bigtable.v2.ReadModifyWriteRule"B\n\x1aReadModifyWriteRowResponse\x12$\n\x03row\x18\x01 \x01(\x0b\x32\x17.google.bigtable.v2.Row2\xad\x08\n\x08\x42igtable\x12\x9d\x01\n\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1a$.google.bigtable.v2.ReadRowsResponse"D\x82\xd3\xe4\x93\x02>"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*0\x01\x12\xae\x01\n\rSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse"F\x82\xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys0\x01\x12\x9f\x01\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.google.bigtable.v2.MutateRowResponse"E\x82\xd3\xe4\x93\x02?":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*\x12\xa5\x01\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1a&.google.bigtable.v2.MutateRowsResponse"F\x82\xd3\xe4\x93\x02@";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*0\x01\x12\xbf\x01\n\x11\x43heckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse"M\x82\xd3\xe4\x93\x02G"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*\x12\xc3\x01\n\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.v2.ReadModifyWriteRowResponse"N\x82\xd3\xe4\x93\x02H"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*B\x9b\x01\n\x16\x63om.google.bigtable.v2B\rBigtableProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _READROWSREQUEST = _descriptor.Descriptor( - name='ReadRowsRequest', - full_name='google.bigtable.v2.ReadRowsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_name', full_name='google.bigtable.v2.ReadRowsRequest.table_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile_id', full_name='google.bigtable.v2.ReadRowsRequest.app_profile_id', index=1, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rows', full_name='google.bigtable.v2.ReadRowsRequest.rows', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.bigtable.v2.ReadRowsRequest.filter', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rows_limit', full_name='google.bigtable.v2.ReadRowsRequest.rows_limit', index=4, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=200, - serialized_end=370, + name="ReadRowsRequest", + full_name="google.bigtable.v2.ReadRowsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_name", + full_name="google.bigtable.v2.ReadRowsRequest.table_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile_id", + full_name="google.bigtable.v2.ReadRowsRequest.app_profile_id", + index=1, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rows", + full_name="google.bigtable.v2.ReadRowsRequest.rows", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.bigtable.v2.ReadRowsRequest.filter", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rows_limit", + full_name="google.bigtable.v2.ReadRowsRequest.rows_limit", + index=4, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=200, + serialized_end=370, ) _READROWSRESPONSE_CELLCHUNK = _descriptor.Descriptor( - name='CellChunk', - full_name='google.bigtable.v2.ReadRowsResponse.CellChunk', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='row_key', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.row_key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='family_name', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.family_name', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='qualifier', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.qualifier', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp_micros', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.timestamp_micros', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.labels', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.value', index=5, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_size', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.value_size', index=6, - number=7, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reset_row', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.reset_row', index=7, - number=8, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='commit_row', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.commit_row', index=8, - number=9, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='row_status', full_name='google.bigtable.v2.ReadRowsResponse.CellChunk.row_status', - index=0, containing_type=None, fields=[]), - ], - serialized_start=488, - serialized_end=749, + name="CellChunk", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="row_key", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.row_key", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="family_name", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.family_name", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="qualifier", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.qualifier", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timestamp_micros", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.timestamp_micros", + index=3, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.labels", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.value", + index=5, + number=6, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value_size", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.value_size", + index=6, + number=7, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reset_row", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.reset_row", + index=7, + number=8, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="commit_row", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.commit_row", + index=8, + number=9, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="row_status", + full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.row_status", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=488, + serialized_end=749, ) _READROWSRESPONSE = _descriptor.Descriptor( - name='ReadRowsResponse', - full_name='google.bigtable.v2.ReadRowsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='chunks', full_name='google.bigtable.v2.ReadRowsResponse.chunks', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_scanned_row_key', full_name='google.bigtable.v2.ReadRowsResponse.last_scanned_row_key', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_READROWSRESPONSE_CELLCHUNK, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=373, - serialized_end=749, + name="ReadRowsResponse", + full_name="google.bigtable.v2.ReadRowsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="chunks", + full_name="google.bigtable.v2.ReadRowsResponse.chunks", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_scanned_row_key", + full_name="google.bigtable.v2.ReadRowsResponse.last_scanned_row_key", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_READROWSRESPONSE_CELLCHUNK], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=373, + serialized_end=749, ) _SAMPLEROWKEYSREQUEST = _descriptor.Descriptor( - name='SampleRowKeysRequest', - full_name='google.bigtable.v2.SampleRowKeysRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_name', full_name='google.bigtable.v2.SampleRowKeysRequest.table_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile_id', full_name='google.bigtable.v2.SampleRowKeysRequest.app_profile_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=751, - serialized_end=817, + name="SampleRowKeysRequest", + full_name="google.bigtable.v2.SampleRowKeysRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_name", + full_name="google.bigtable.v2.SampleRowKeysRequest.table_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile_id", + full_name="google.bigtable.v2.SampleRowKeysRequest.app_profile_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=751, + serialized_end=817, ) _SAMPLEROWKEYSRESPONSE = _descriptor.Descriptor( - name='SampleRowKeysResponse', - full_name='google.bigtable.v2.SampleRowKeysResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='row_key', full_name='google.bigtable.v2.SampleRowKeysResponse.row_key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='offset_bytes', full_name='google.bigtable.v2.SampleRowKeysResponse.offset_bytes', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=819, - serialized_end=881, + name="SampleRowKeysResponse", + full_name="google.bigtable.v2.SampleRowKeysResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="row_key", + full_name="google.bigtable.v2.SampleRowKeysResponse.row_key", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="offset_bytes", + full_name="google.bigtable.v2.SampleRowKeysResponse.offset_bytes", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=819, + serialized_end=881, ) _MUTATEROWREQUEST = _descriptor.Descriptor( - name='MutateRowRequest', - full_name='google.bigtable.v2.MutateRowRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_name', full_name='google.bigtable.v2.MutateRowRequest.table_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile_id', full_name='google.bigtable.v2.MutateRowRequest.app_profile_id', index=1, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_key', full_name='google.bigtable.v2.MutateRowRequest.row_key', index=2, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutations', full_name='google.bigtable.v2.MutateRowRequest.mutations', index=3, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=884, - serialized_end=1012, + name="MutateRowRequest", + full_name="google.bigtable.v2.MutateRowRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_name", + full_name="google.bigtable.v2.MutateRowRequest.table_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile_id", + full_name="google.bigtable.v2.MutateRowRequest.app_profile_id", + index=1, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_key", + full_name="google.bigtable.v2.MutateRowRequest.row_key", + index=2, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mutations", + full_name="google.bigtable.v2.MutateRowRequest.mutations", + index=3, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=884, + serialized_end=1012, ) _MUTATEROWRESPONSE = _descriptor.Descriptor( - name='MutateRowResponse', - full_name='google.bigtable.v2.MutateRowResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1014, - serialized_end=1033, + name="MutateRowResponse", + full_name="google.bigtable.v2.MutateRowResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1014, + serialized_end=1033, ) _MUTATEROWSREQUEST_ENTRY = _descriptor.Descriptor( - name='Entry', - full_name='google.bigtable.v2.MutateRowsRequest.Entry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='row_key', full_name='google.bigtable.v2.MutateRowsRequest.Entry.row_key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutations', full_name='google.bigtable.v2.MutateRowsRequest.Entry.mutations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1163, - serialized_end=1236, + name="Entry", + full_name="google.bigtable.v2.MutateRowsRequest.Entry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="row_key", + full_name="google.bigtable.v2.MutateRowsRequest.Entry.row_key", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mutations", + full_name="google.bigtable.v2.MutateRowsRequest.Entry.mutations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1163, + serialized_end=1236, ) _MUTATEROWSREQUEST = _descriptor.Descriptor( - name='MutateRowsRequest', - full_name='google.bigtable.v2.MutateRowsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_name', full_name='google.bigtable.v2.MutateRowsRequest.table_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile_id', full_name='google.bigtable.v2.MutateRowsRequest.app_profile_id', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='entries', full_name='google.bigtable.v2.MutateRowsRequest.entries', index=2, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_MUTATEROWSREQUEST_ENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1036, - serialized_end=1236, + name="MutateRowsRequest", + full_name="google.bigtable.v2.MutateRowsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_name", + full_name="google.bigtable.v2.MutateRowsRequest.table_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile_id", + full_name="google.bigtable.v2.MutateRowsRequest.app_profile_id", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="entries", + full_name="google.bigtable.v2.MutateRowsRequest.entries", + index=2, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_MUTATEROWSREQUEST_ENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1036, + serialized_end=1236, ) _MUTATEROWSRESPONSE_ENTRY = _descriptor.Descriptor( - name='Entry', - full_name='google.bigtable.v2.MutateRowsResponse.Entry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='index', full_name='google.bigtable.v2.MutateRowsResponse.Entry.index', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.bigtable.v2.MutateRowsResponse.Entry.status', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1324, - serialized_end=1382, + name="Entry", + full_name="google.bigtable.v2.MutateRowsResponse.Entry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="index", + full_name="google.bigtable.v2.MutateRowsResponse.Entry.index", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.bigtable.v2.MutateRowsResponse.Entry.status", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1324, + serialized_end=1382, ) _MUTATEROWSRESPONSE = _descriptor.Descriptor( - name='MutateRowsResponse', - full_name='google.bigtable.v2.MutateRowsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entries', full_name='google.bigtable.v2.MutateRowsResponse.entries', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_MUTATEROWSRESPONSE_ENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1239, - serialized_end=1382, + name="MutateRowsResponse", + full_name="google.bigtable.v2.MutateRowsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entries", + full_name="google.bigtable.v2.MutateRowsResponse.entries", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_MUTATEROWSRESPONSE_ENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1239, + serialized_end=1382, ) _CHECKANDMUTATEROWREQUEST = _descriptor.Descriptor( - name='CheckAndMutateRowRequest', - full_name='google.bigtable.v2.CheckAndMutateRowRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_name', full_name='google.bigtable.v2.CheckAndMutateRowRequest.table_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile_id', full_name='google.bigtable.v2.CheckAndMutateRowRequest.app_profile_id', index=1, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_key', full_name='google.bigtable.v2.CheckAndMutateRowRequest.row_key', index=2, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='predicate_filter', full_name='google.bigtable.v2.CheckAndMutateRowRequest.predicate_filter', index=3, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='true_mutations', full_name='google.bigtable.v2.CheckAndMutateRowRequest.true_mutations', index=4, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='false_mutations', full_name='google.bigtable.v2.CheckAndMutateRowRequest.false_mutations', index=5, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1385, - serialized_end=1638, + name="CheckAndMutateRowRequest", + full_name="google.bigtable.v2.CheckAndMutateRowRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_name", + full_name="google.bigtable.v2.CheckAndMutateRowRequest.table_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile_id", + full_name="google.bigtable.v2.CheckAndMutateRowRequest.app_profile_id", + index=1, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_key", + full_name="google.bigtable.v2.CheckAndMutateRowRequest.row_key", + index=2, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="predicate_filter", + full_name="google.bigtable.v2.CheckAndMutateRowRequest.predicate_filter", + index=3, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="true_mutations", + full_name="google.bigtable.v2.CheckAndMutateRowRequest.true_mutations", + index=4, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="false_mutations", + full_name="google.bigtable.v2.CheckAndMutateRowRequest.false_mutations", + index=5, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1385, + serialized_end=1638, ) _CHECKANDMUTATEROWRESPONSE = _descriptor.Descriptor( - name='CheckAndMutateRowResponse', - full_name='google.bigtable.v2.CheckAndMutateRowResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='predicate_matched', full_name='google.bigtable.v2.CheckAndMutateRowResponse.predicate_matched', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1640, - serialized_end=1694, + name="CheckAndMutateRowResponse", + full_name="google.bigtable.v2.CheckAndMutateRowResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="predicate_matched", + full_name="google.bigtable.v2.CheckAndMutateRowResponse.predicate_matched", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1640, + serialized_end=1694, ) _READMODIFYWRITEROWREQUEST = _descriptor.Descriptor( - name='ReadModifyWriteRowRequest', - full_name='google.bigtable.v2.ReadModifyWriteRowRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_name', full_name='google.bigtable.v2.ReadModifyWriteRowRequest.table_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_profile_id', full_name='google.bigtable.v2.ReadModifyWriteRowRequest.app_profile_id', index=1, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_key', full_name='google.bigtable.v2.ReadModifyWriteRowRequest.row_key', index=2, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rules', full_name='google.bigtable.v2.ReadModifyWriteRowRequest.rules', index=3, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1697, - serialized_end=1841, + name="ReadModifyWriteRowRequest", + full_name="google.bigtable.v2.ReadModifyWriteRowRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_name", + full_name="google.bigtable.v2.ReadModifyWriteRowRequest.table_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_profile_id", + full_name="google.bigtable.v2.ReadModifyWriteRowRequest.app_profile_id", + index=1, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_key", + full_name="google.bigtable.v2.ReadModifyWriteRowRequest.row_key", + index=2, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rules", + full_name="google.bigtable.v2.ReadModifyWriteRowRequest.rules", + index=3, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1697, + serialized_end=1841, ) _READMODIFYWRITEROWRESPONSE = _descriptor.Descriptor( - name='ReadModifyWriteRowResponse', - full_name='google.bigtable.v2.ReadModifyWriteRowResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='row', full_name='google.bigtable.v2.ReadModifyWriteRowResponse.row', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1843, - serialized_end=1909, + name="ReadModifyWriteRowResponse", + full_name="google.bigtable.v2.ReadModifyWriteRowResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="row", + full_name="google.bigtable.v2.ReadModifyWriteRowResponse.row", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1843, + serialized_end=1909, ) -_READROWSREQUEST.fields_by_name['rows'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROWSET -_READROWSREQUEST.fields_by_name['filter'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROWFILTER -_READROWSRESPONSE_CELLCHUNK.fields_by_name['family_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_READROWSRESPONSE_CELLCHUNK.fields_by_name['qualifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE +_READROWSREQUEST.fields_by_name[ + "rows" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROWSET +_READROWSREQUEST.fields_by_name[ + "filter" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROWFILTER +_READROWSRESPONSE_CELLCHUNK.fields_by_name[ + "family_name" +].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_READROWSRESPONSE_CELLCHUNK.fields_by_name[ + "qualifier" +].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE _READROWSRESPONSE_CELLCHUNK.containing_type = _READROWSRESPONSE -_READROWSRESPONSE_CELLCHUNK.oneofs_by_name['row_status'].fields.append( - _READROWSRESPONSE_CELLCHUNK.fields_by_name['reset_row']) -_READROWSRESPONSE_CELLCHUNK.fields_by_name['reset_row'].containing_oneof = _READROWSRESPONSE_CELLCHUNK.oneofs_by_name['row_status'] -_READROWSRESPONSE_CELLCHUNK.oneofs_by_name['row_status'].fields.append( - _READROWSRESPONSE_CELLCHUNK.fields_by_name['commit_row']) -_READROWSRESPONSE_CELLCHUNK.fields_by_name['commit_row'].containing_oneof = _READROWSRESPONSE_CELLCHUNK.oneofs_by_name['row_status'] -_READROWSRESPONSE.fields_by_name['chunks'].message_type = _READROWSRESPONSE_CELLCHUNK -_MUTATEROWREQUEST.fields_by_name['mutations'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION -_MUTATEROWSREQUEST_ENTRY.fields_by_name['mutations'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION +_READROWSRESPONSE_CELLCHUNK.oneofs_by_name["row_status"].fields.append( + _READROWSRESPONSE_CELLCHUNK.fields_by_name["reset_row"] +) +_READROWSRESPONSE_CELLCHUNK.fields_by_name[ + "reset_row" +].containing_oneof = _READROWSRESPONSE_CELLCHUNK.oneofs_by_name["row_status"] +_READROWSRESPONSE_CELLCHUNK.oneofs_by_name["row_status"].fields.append( + _READROWSRESPONSE_CELLCHUNK.fields_by_name["commit_row"] +) +_READROWSRESPONSE_CELLCHUNK.fields_by_name[ + "commit_row" +].containing_oneof = _READROWSRESPONSE_CELLCHUNK.oneofs_by_name["row_status"] +_READROWSRESPONSE.fields_by_name["chunks"].message_type = _READROWSRESPONSE_CELLCHUNK +_MUTATEROWREQUEST.fields_by_name[ + "mutations" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION +_MUTATEROWSREQUEST_ENTRY.fields_by_name[ + "mutations" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION _MUTATEROWSREQUEST_ENTRY.containing_type = _MUTATEROWSREQUEST -_MUTATEROWSREQUEST.fields_by_name['entries'].message_type = _MUTATEROWSREQUEST_ENTRY -_MUTATEROWSRESPONSE_ENTRY.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEROWSREQUEST.fields_by_name["entries"].message_type = _MUTATEROWSREQUEST_ENTRY +_MUTATEROWSRESPONSE_ENTRY.fields_by_name[ + "status" +].message_type = google_dot_rpc_dot_status__pb2._STATUS _MUTATEROWSRESPONSE_ENTRY.containing_type = _MUTATEROWSRESPONSE -_MUTATEROWSRESPONSE.fields_by_name['entries'].message_type = _MUTATEROWSRESPONSE_ENTRY -_CHECKANDMUTATEROWREQUEST.fields_by_name['predicate_filter'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROWFILTER -_CHECKANDMUTATEROWREQUEST.fields_by_name['true_mutations'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION -_CHECKANDMUTATEROWREQUEST.fields_by_name['false_mutations'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION -_READMODIFYWRITEROWREQUEST.fields_by_name['rules'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._READMODIFYWRITERULE -_READMODIFYWRITEROWRESPONSE.fields_by_name['row'].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROW -DESCRIPTOR.message_types_by_name['ReadRowsRequest'] = _READROWSREQUEST -DESCRIPTOR.message_types_by_name['ReadRowsResponse'] = _READROWSRESPONSE -DESCRIPTOR.message_types_by_name['SampleRowKeysRequest'] = _SAMPLEROWKEYSREQUEST -DESCRIPTOR.message_types_by_name['SampleRowKeysResponse'] = _SAMPLEROWKEYSRESPONSE -DESCRIPTOR.message_types_by_name['MutateRowRequest'] = _MUTATEROWREQUEST -DESCRIPTOR.message_types_by_name['MutateRowResponse'] = _MUTATEROWRESPONSE -DESCRIPTOR.message_types_by_name['MutateRowsRequest'] = _MUTATEROWSREQUEST -DESCRIPTOR.message_types_by_name['MutateRowsResponse'] = _MUTATEROWSRESPONSE -DESCRIPTOR.message_types_by_name['CheckAndMutateRowRequest'] = _CHECKANDMUTATEROWREQUEST -DESCRIPTOR.message_types_by_name['CheckAndMutateRowResponse'] = _CHECKANDMUTATEROWRESPONSE -DESCRIPTOR.message_types_by_name['ReadModifyWriteRowRequest'] = _READMODIFYWRITEROWREQUEST -DESCRIPTOR.message_types_by_name['ReadModifyWriteRowResponse'] = _READMODIFYWRITEROWRESPONSE +_MUTATEROWSRESPONSE.fields_by_name["entries"].message_type = _MUTATEROWSRESPONSE_ENTRY +_CHECKANDMUTATEROWREQUEST.fields_by_name[ + "predicate_filter" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROWFILTER +_CHECKANDMUTATEROWREQUEST.fields_by_name[ + "true_mutations" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION +_CHECKANDMUTATEROWREQUEST.fields_by_name[ + "false_mutations" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._MUTATION +_READMODIFYWRITEROWREQUEST.fields_by_name[ + "rules" +].message_type = ( + google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._READMODIFYWRITERULE +) +_READMODIFYWRITEROWRESPONSE.fields_by_name[ + "row" +].message_type = google_dot_cloud_dot_bigtable__v2_dot_proto_dot_data__pb2._ROW +DESCRIPTOR.message_types_by_name["ReadRowsRequest"] = _READROWSREQUEST +DESCRIPTOR.message_types_by_name["ReadRowsResponse"] = _READROWSRESPONSE +DESCRIPTOR.message_types_by_name["SampleRowKeysRequest"] = _SAMPLEROWKEYSREQUEST +DESCRIPTOR.message_types_by_name["SampleRowKeysResponse"] = _SAMPLEROWKEYSRESPONSE +DESCRIPTOR.message_types_by_name["MutateRowRequest"] = _MUTATEROWREQUEST +DESCRIPTOR.message_types_by_name["MutateRowResponse"] = _MUTATEROWRESPONSE +DESCRIPTOR.message_types_by_name["MutateRowsRequest"] = _MUTATEROWSREQUEST +DESCRIPTOR.message_types_by_name["MutateRowsResponse"] = _MUTATEROWSRESPONSE +DESCRIPTOR.message_types_by_name["CheckAndMutateRowRequest"] = _CHECKANDMUTATEROWREQUEST +DESCRIPTOR.message_types_by_name[ + "CheckAndMutateRowResponse" +] = _CHECKANDMUTATEROWRESPONSE +DESCRIPTOR.message_types_by_name[ + "ReadModifyWriteRowRequest" +] = _READMODIFYWRITEROWREQUEST +DESCRIPTOR.message_types_by_name[ + "ReadModifyWriteRowResponse" +] = _READMODIFYWRITEROWRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ReadRowsRequest = _reflection.GeneratedProtocolMessageType('ReadRowsRequest', (_message.Message,), dict( - DESCRIPTOR = _READROWSREQUEST, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Request message for Bigtable.ReadRows. +ReadRowsRequest = _reflection.GeneratedProtocolMessageType( + "ReadRowsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_READROWSREQUEST, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Request message for Bigtable.ReadRows. Attributes: @@ -760,17 +1252,22 @@ The read will terminate after committing to N rows' worth of results. The default (zero) is to return all results. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsRequest) + ), +) _sym_db.RegisterMessage(ReadRowsRequest) -ReadRowsResponse = _reflection.GeneratedProtocolMessageType('ReadRowsResponse', (_message.Message,), dict( - - CellChunk = _reflection.GeneratedProtocolMessageType('CellChunk', (_message.Message,), dict( - DESCRIPTOR = _READROWSRESPONSE_CELLCHUNK, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Specifies a piece of a row's contents returned as part of the read +ReadRowsResponse = _reflection.GeneratedProtocolMessageType( + "ReadRowsResponse", + (_message.Message,), + dict( + CellChunk=_reflection.GeneratedProtocolMessageType( + "CellChunk", + (_message.Message,), + dict( + DESCRIPTOR=_READROWSRESPONSE_CELLCHUNK, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Specifies a piece of a row's contents returned as part of the read response stream. @@ -824,13 +1321,12 @@ Indicates that the client can safely process all previous chunks for ``row_key``, as its data has been fully read. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsResponse.CellChunk) - )) - , - DESCRIPTOR = _READROWSRESPONSE, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Response message for Bigtable.ReadRows. + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsResponse.CellChunk) + ), + ), + DESCRIPTOR=_READROWSRESPONSE, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Response message for Bigtable.ReadRows. Attributes: @@ -843,16 +1339,19 @@ lot of data that was filtered out since the last committed row key, allowing the client to skip that work on a retry. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsResponse) + ), +) _sym_db.RegisterMessage(ReadRowsResponse) _sym_db.RegisterMessage(ReadRowsResponse.CellChunk) -SampleRowKeysRequest = _reflection.GeneratedProtocolMessageType('SampleRowKeysRequest', (_message.Message,), dict( - DESCRIPTOR = _SAMPLEROWKEYSREQUEST, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Request message for Bigtable.SampleRowKeys. +SampleRowKeysRequest = _reflection.GeneratedProtocolMessageType( + "SampleRowKeysRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SAMPLEROWKEYSREQUEST, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Request message for Bigtable.SampleRowKeys. Attributes: @@ -864,15 +1363,18 @@ This value specifies routing for replication. If not specified, the "default" application profile will be used. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.SampleRowKeysRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.SampleRowKeysRequest) + ), +) _sym_db.RegisterMessage(SampleRowKeysRequest) -SampleRowKeysResponse = _reflection.GeneratedProtocolMessageType('SampleRowKeysResponse', (_message.Message,), dict( - DESCRIPTOR = _SAMPLEROWKEYSRESPONSE, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Response message for Bigtable.SampleRowKeys. +SampleRowKeysResponse = _reflection.GeneratedProtocolMessageType( + "SampleRowKeysResponse", + (_message.Message,), + dict( + DESCRIPTOR=_SAMPLEROWKEYSRESPONSE, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Response message for Bigtable.SampleRowKeys. Attributes: @@ -891,15 +1393,18 @@ between two subsequent samples would require space roughly equal to the difference in their ``offset_bytes`` fields. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.SampleRowKeysResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.SampleRowKeysResponse) + ), +) _sym_db.RegisterMessage(SampleRowKeysResponse) -MutateRowRequest = _reflection.GeneratedProtocolMessageType('MutateRowRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEROWREQUEST, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Request message for Bigtable.MutateRow. +MutateRowRequest = _reflection.GeneratedProtocolMessageType( + "MutateRowRequest", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATEROWREQUEST, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Request message for Bigtable.MutateRow. Attributes: @@ -918,27 +1423,35 @@ masked by later ones. Must contain at least one entry and at most 100000. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowRequest) + ), +) _sym_db.RegisterMessage(MutateRowRequest) -MutateRowResponse = _reflection.GeneratedProtocolMessageType('MutateRowResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEROWRESPONSE, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Response message for Bigtable.MutateRow. +MutateRowResponse = _reflection.GeneratedProtocolMessageType( + "MutateRowResponse", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATEROWRESPONSE, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Response message for Bigtable.MutateRow. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowResponse) + ), +) _sym_db.RegisterMessage(MutateRowResponse) -MutateRowsRequest = _reflection.GeneratedProtocolMessageType('MutateRowsRequest', (_message.Message,), dict( - - Entry = _reflection.GeneratedProtocolMessageType('Entry', (_message.Message,), dict( - DESCRIPTOR = _MUTATEROWSREQUEST_ENTRY, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Attributes: +MutateRowsRequest = _reflection.GeneratedProtocolMessageType( + "MutateRowsRequest", + (_message.Message,), + dict( + Entry=_reflection.GeneratedProtocolMessageType( + "Entry", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATEROWSREQUEST_ENTRY, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Attributes: row_key: The key of the row to which the ``mutations`` should be applied. @@ -948,13 +1461,12 @@ can be masked by later ones. You must specify at least one mutation. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsRequest.Entry) - )) - , - DESCRIPTOR = _MUTATEROWSREQUEST, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Request message for BigtableService.MutateRows. + # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsRequest.Entry) + ), + ), + DESCRIPTOR=_MUTATEROWSREQUEST, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Request message for BigtableService.MutateRows. Attributes: @@ -972,18 +1484,23 @@ specified, and in total the entries can contain at most 100000 mutations. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsRequest) + ), +) _sym_db.RegisterMessage(MutateRowsRequest) _sym_db.RegisterMessage(MutateRowsRequest.Entry) -MutateRowsResponse = _reflection.GeneratedProtocolMessageType('MutateRowsResponse', (_message.Message,), dict( - - Entry = _reflection.GeneratedProtocolMessageType('Entry', (_message.Message,), dict( - DESCRIPTOR = _MUTATEROWSRESPONSE_ENTRY, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Attributes: +MutateRowsResponse = _reflection.GeneratedProtocolMessageType( + "MutateRowsResponse", + (_message.Message,), + dict( + Entry=_reflection.GeneratedProtocolMessageType( + "Entry", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATEROWSRESPONSE_ENTRY, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Attributes: index: The index into the original request's ``entries`` list of the Entry for which a result is being reported. @@ -994,29 +1511,31 @@ Entry. In the event that this occurs, the same error will be reported for both entries. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsResponse.Entry) - )) - , - DESCRIPTOR = _MUTATEROWSRESPONSE, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Response message for BigtableService.MutateRows. + # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsResponse.Entry) + ), + ), + DESCRIPTOR=_MUTATEROWSRESPONSE, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Response message for BigtableService.MutateRows. Attributes: entries: One or more results for Entries from the batch request. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsResponse) + ), +) _sym_db.RegisterMessage(MutateRowsResponse) _sym_db.RegisterMessage(MutateRowsResponse.Entry) -CheckAndMutateRowRequest = _reflection.GeneratedProtocolMessageType('CheckAndMutateRowRequest', (_message.Message,), dict( - DESCRIPTOR = _CHECKANDMUTATEROWREQUEST, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Request message for Bigtable.CheckAndMutateRow. +CheckAndMutateRowRequest = _reflection.GeneratedProtocolMessageType( + "CheckAndMutateRowRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CHECKANDMUTATEROWREQUEST, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Request message for Bigtable.CheckAndMutateRow. Attributes: @@ -1050,15 +1569,18 @@ least one entry if ``true_mutations`` is empty, and at most 100000. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.CheckAndMutateRowRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.CheckAndMutateRowRequest) + ), +) _sym_db.RegisterMessage(CheckAndMutateRowRequest) -CheckAndMutateRowResponse = _reflection.GeneratedProtocolMessageType('CheckAndMutateRowResponse', (_message.Message,), dict( - DESCRIPTOR = _CHECKANDMUTATEROWRESPONSE, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Response message for Bigtable.CheckAndMutateRow. +CheckAndMutateRowResponse = _reflection.GeneratedProtocolMessageType( + "CheckAndMutateRowResponse", + (_message.Message,), + dict( + DESCRIPTOR=_CHECKANDMUTATEROWRESPONSE, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Response message for Bigtable.CheckAndMutateRow. Attributes: @@ -1066,15 +1588,18 @@ Whether or not the request's ``predicate_filter`` yielded any results for the specified row. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.CheckAndMutateRowResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.CheckAndMutateRowResponse) + ), +) _sym_db.RegisterMessage(CheckAndMutateRowResponse) -ReadModifyWriteRowRequest = _reflection.GeneratedProtocolMessageType('ReadModifyWriteRowRequest', (_message.Message,), dict( - DESCRIPTOR = _READMODIFYWRITEROWREQUEST, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Request message for Bigtable.ReadModifyWriteRow. +ReadModifyWriteRowRequest = _reflection.GeneratedProtocolMessageType( + "ReadModifyWriteRowRequest", + (_message.Message,), + dict( + DESCRIPTOR=_READMODIFYWRITEROWREQUEST, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Request message for Bigtable.ReadModifyWriteRow. Attributes: @@ -1093,15 +1618,18 @@ transformed into writes. Entries are applied in order, meaning that earlier rules will affect the results of later ones. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRowRequest) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRowRequest) + ), +) _sym_db.RegisterMessage(ReadModifyWriteRowRequest) -ReadModifyWriteRowResponse = _reflection.GeneratedProtocolMessageType('ReadModifyWriteRowResponse', (_message.Message,), dict( - DESCRIPTOR = _READMODIFYWRITEROWRESPONSE, - __module__ = 'google.cloud.bigtable_v2.proto.bigtable_pb2' - , - __doc__ = """Response message for Bigtable.ReadModifyWriteRow. +ReadModifyWriteRowResponse = _reflection.GeneratedProtocolMessageType( + "ReadModifyWriteRowResponse", + (_message.Message,), + dict( + DESCRIPTOR=_READMODIFYWRITEROWRESPONSE, + __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", + __doc__="""Response message for Bigtable.ReadModifyWriteRow. Attributes: @@ -1109,80 +1637,117 @@ A Row containing the new contents of all cells modified by the request. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRowResponse) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRowResponse) + ), +) _sym_db.RegisterMessage(ReadModifyWriteRowResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\026com.google.bigtable.v2B\rBigtableProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\026com.google.bigtable.v2B\rBigtableProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2" + ), +) _BIGTABLE = _descriptor.ServiceDescriptor( - name='Bigtable', - full_name='google.bigtable.v2.Bigtable', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1912, - serialized_end=2981, - methods=[ - _descriptor.MethodDescriptor( - name='ReadRows', - full_name='google.bigtable.v2.Bigtable.ReadRows', + name="Bigtable", + full_name="google.bigtable.v2.Bigtable", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_READROWSREQUEST, - output_type=_READROWSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>\"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\001*')), - ), - _descriptor.MethodDescriptor( - name='SampleRowKeys', - full_name='google.bigtable.v2.Bigtable.SampleRowKeys', - index=1, - containing_service=None, - input_type=_SAMPLEROWKEYSREQUEST, - output_type=_SAMPLEROWKEYSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\022>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys')), - ), - _descriptor.MethodDescriptor( - name='MutateRow', - full_name='google.bigtable.v2.Bigtable.MutateRow', - index=2, - containing_service=None, - input_type=_MUTATEROWREQUEST, - output_type=_MUTATEROWRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?\":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\001*')), - ), - _descriptor.MethodDescriptor( - name='MutateRows', - full_name='google.bigtable.v2.Bigtable.MutateRows', - index=3, - containing_service=None, - input_type=_MUTATEROWSREQUEST, - output_type=_MUTATEROWSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\001*')), - ), - _descriptor.MethodDescriptor( - name='CheckAndMutateRow', - full_name='google.bigtable.v2.Bigtable.CheckAndMutateRow', - index=4, - containing_service=None, - input_type=_CHECKANDMUTATEROWREQUEST, - output_type=_CHECKANDMUTATEROWRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G\"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\001*')), - ), - _descriptor.MethodDescriptor( - name='ReadModifyWriteRow', - full_name='google.bigtable.v2.Bigtable.ReadModifyWriteRow', - index=5, - containing_service=None, - input_type=_READMODIFYWRITEROWREQUEST, - output_type=_READMODIFYWRITEROWRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002H\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\001*')), - ), -]) + options=None, + serialized_start=1912, + serialized_end=2981, + methods=[ + _descriptor.MethodDescriptor( + name="ReadRows", + full_name="google.bigtable.v2.Bigtable.ReadRows", + index=0, + containing_service=None, + input_type=_READROWSREQUEST, + output_type=_READROWSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002>"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="SampleRowKeys", + full_name="google.bigtable.v2.Bigtable.SampleRowKeys", + index=1, + containing_service=None, + input_type=_SAMPLEROWKEYSREQUEST, + output_type=_SAMPLEROWKEYSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002@\022>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys" + ), + ), + ), + _descriptor.MethodDescriptor( + name="MutateRow", + full_name="google.bigtable.v2.Bigtable.MutateRow", + index=2, + containing_service=None, + input_type=_MUTATEROWREQUEST, + output_type=_MUTATEROWRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002?":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="MutateRows", + full_name="google.bigtable.v2.Bigtable.MutateRows", + index=3, + containing_service=None, + input_type=_MUTATEROWSREQUEST, + output_type=_MUTATEROWSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002@";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="CheckAndMutateRow", + full_name="google.bigtable.v2.Bigtable.CheckAndMutateRow", + index=4, + containing_service=None, + input_type=_CHECKANDMUTATEROWREQUEST, + output_type=_CHECKANDMUTATEROWRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002G"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ReadModifyWriteRow", + full_name="google.bigtable.v2.Bigtable.ReadModifyWriteRow", + index=5, + containing_service=None, + input_type=_READMODIFYWRITEROWREQUEST, + output_type=_READMODIFYWRITEROWRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002H"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_BIGTABLE) -DESCRIPTOR.services_by_name['Bigtable'] = _BIGTABLE +DESCRIPTOR.services_by_name["Bigtable"] = _BIGTABLE # @@protoc_insertion_point(module_scope) diff --git a/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2_grpc.py b/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2_grpc.py index 950b89f98023b..4dd6cded9bc4d 100644 --- a/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2_grpc.py +++ b/bigtable/google/cloud/bigtable_v2/proto/bigtable_pb2_grpc.py @@ -1,145 +1,148 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.bigtable_v2.proto import bigtable_pb2 as google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2 +from google.cloud.bigtable_v2.proto import ( + bigtable_pb2 as google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2, +) class BigtableStub(object): - """Service for reading from and writing to existing Bigtable tables. + """Service for reading from and writing to existing Bigtable tables. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ReadRows = channel.unary_stream( - '/google.bigtable.v2.Bigtable/ReadRows', - request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsResponse.FromString, + self.ReadRows = channel.unary_stream( + "/google.bigtable.v2.Bigtable/ReadRows", + request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsResponse.FromString, ) - self.SampleRowKeys = channel.unary_stream( - '/google.bigtable.v2.Bigtable/SampleRowKeys', - request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysResponse.FromString, + self.SampleRowKeys = channel.unary_stream( + "/google.bigtable.v2.Bigtable/SampleRowKeys", + request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysResponse.FromString, ) - self.MutateRow = channel.unary_unary( - '/google.bigtable.v2.Bigtable/MutateRow', - request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowResponse.FromString, + self.MutateRow = channel.unary_unary( + "/google.bigtable.v2.Bigtable/MutateRow", + request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowResponse.FromString, ) - self.MutateRows = channel.unary_stream( - '/google.bigtable.v2.Bigtable/MutateRows', - request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsResponse.FromString, + self.MutateRows = channel.unary_stream( + "/google.bigtable.v2.Bigtable/MutateRows", + request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsResponse.FromString, ) - self.CheckAndMutateRow = channel.unary_unary( - '/google.bigtable.v2.Bigtable/CheckAndMutateRow', - request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowResponse.FromString, + self.CheckAndMutateRow = channel.unary_unary( + "/google.bigtable.v2.Bigtable/CheckAndMutateRow", + request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowResponse.FromString, ) - self.ReadModifyWriteRow = channel.unary_unary( - '/google.bigtable.v2.Bigtable/ReadModifyWriteRow', - request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowResponse.FromString, + self.ReadModifyWriteRow = channel.unary_unary( + "/google.bigtable.v2.Bigtable/ReadModifyWriteRow", + request_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowResponse.FromString, ) class BigtableServicer(object): - """Service for reading from and writing to existing Bigtable tables. + """Service for reading from and writing to existing Bigtable tables. """ - def ReadRows(self, request, context): - """Streams back the contents of all requested rows in key order, optionally + def ReadRows(self, request, context): + """Streams back the contents of all requested rows in key order, optionally applying the same Reader filter to each. Depending on their size, rows and cells may be broken up across multiple responses, but atomicity of each row will still be preserved. See the ReadRowsResponse documentation for details. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SampleRowKeys(self, request, context): - """Returns a sample of row keys in the table. The returned row keys will + def SampleRowKeys(self, request, context): + """Returns a sample of row keys in the table. The returned row keys will delimit contiguous sections of the table of approximately equal size, which can be used to break up the data for distributed tasks like mapreduces. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def MutateRow(self, request, context): - """Mutates a row atomically. Cells already present in the row are left + def MutateRow(self, request, context): + """Mutates a row atomically. Cells already present in the row are left unchanged unless explicitly changed by `mutation`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def MutateRows(self, request, context): - """Mutates multiple rows in a batch. Each individual row is mutated + def MutateRows(self, request, context): + """Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow, but the entire batch is not executed atomically. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CheckAndMutateRow(self, request, context): - """Mutates a row atomically based on the output of a predicate Reader filter. + def CheckAndMutateRow(self, request, context): + """Mutates a row atomically based on the output of a predicate Reader filter. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ReadModifyWriteRow(self, request, context): - """Modifies a row atomically on the server. The method reads the latest + def ReadModifyWriteRow(self, request, context): + """Modifies a row atomically on the server. The method reads the latest existing timestamp and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the timestamp is the greater of the existing timestamp or the current server time. The method returns the new contents of all modified cells. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_BigtableServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ReadRows': grpc.unary_stream_rpc_method_handler( - servicer.ReadRows, - request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsResponse.SerializeToString, - ), - 'SampleRowKeys': grpc.unary_stream_rpc_method_handler( - servicer.SampleRowKeys, - request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysResponse.SerializeToString, - ), - 'MutateRow': grpc.unary_unary_rpc_method_handler( - servicer.MutateRow, - request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowResponse.SerializeToString, - ), - 'MutateRows': grpc.unary_stream_rpc_method_handler( - servicer.MutateRows, - request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsResponse.SerializeToString, - ), - 'CheckAndMutateRow': grpc.unary_unary_rpc_method_handler( - servicer.CheckAndMutateRow, - request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowResponse.SerializeToString, - ), - 'ReadModifyWriteRow': grpc.unary_unary_rpc_method_handler( - servicer.ReadModifyWriteRow, - request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.bigtable.v2.Bigtable', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ReadRows": grpc.unary_stream_rpc_method_handler( + servicer.ReadRows, + request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadRowsResponse.SerializeToString, + ), + "SampleRowKeys": grpc.unary_stream_rpc_method_handler( + servicer.SampleRowKeys, + request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.SampleRowKeysResponse.SerializeToString, + ), + "MutateRow": grpc.unary_unary_rpc_method_handler( + servicer.MutateRow, + request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowResponse.SerializeToString, + ), + "MutateRows": grpc.unary_stream_rpc_method_handler( + servicer.MutateRows, + request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.MutateRowsResponse.SerializeToString, + ), + "CheckAndMutateRow": grpc.unary_unary_rpc_method_handler( + servicer.CheckAndMutateRow, + request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.CheckAndMutateRowResponse.SerializeToString, + ), + "ReadModifyWriteRow": grpc.unary_unary_rpc_method_handler( + servicer.ReadModifyWriteRow, + request_deserializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__v2_dot_proto_dot_bigtable__pb2.ReadModifyWriteRowResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.bigtable.v2.Bigtable", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/bigtable/google/cloud/bigtable_v2/proto/data_pb2.py b/bigtable/google/cloud/bigtable_v2/proto/data_pb2.py index 70a305b87aa34..af8d88968798a 100644 --- a/bigtable/google/cloud/bigtable_v2/proto/data_pb2.py +++ b/bigtable/google/cloud/bigtable_v2/proto/data_pb2.py @@ -2,1123 +2,1943 @@ # source: google/cloud/bigtable_v2/proto/data.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/bigtable_v2/proto/data.proto', - package='google.bigtable.v2', - syntax='proto3', - serialized_pb=_b('\n)google/cloud/bigtable_v2/proto/data.proto\x12\x12google.bigtable.v2\"@\n\x03Row\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12,\n\x08\x66\x61milies\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Family\"C\n\x06\x46\x61mily\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Column\"D\n\x06\x43olumn\x12\x11\n\tqualifier\x18\x01 \x01(\x0c\x12\'\n\x05\x63\x65lls\x18\x02 \x03(\x0b\x32\x18.google.bigtable.v2.Cell\"?\n\x04\x43\x65ll\x12\x18\n\x10timestamp_micros\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06labels\x18\x03 \x03(\t\"\x8a\x01\n\x08RowRange\x12\x1a\n\x10start_key_closed\x18\x01 \x01(\x0cH\x00\x12\x18\n\x0estart_key_open\x18\x02 \x01(\x0cH\x00\x12\x16\n\x0c\x65nd_key_open\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_key_closed\x18\x04 \x01(\x0cH\x01\x42\x0b\n\tstart_keyB\t\n\x07\x65nd_key\"L\n\x06RowSet\x12\x10\n\x08row_keys\x18\x01 \x03(\x0c\x12\x30\n\nrow_ranges\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.RowRange\"\xc6\x01\n\x0b\x43olumnRange\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12 \n\x16start_qualifier_closed\x18\x02 \x01(\x0cH\x00\x12\x1e\n\x14start_qualifier_open\x18\x03 \x01(\x0cH\x00\x12\x1e\n\x14\x65nd_qualifier_closed\x18\x04 \x01(\x0cH\x01\x12\x1c\n\x12\x65nd_qualifier_open\x18\x05 \x01(\x0cH\x01\x42\x11\n\x0fstart_qualifierB\x0f\n\rend_qualifier\"N\n\x0eTimestampRange\x12\x1e\n\x16start_timestamp_micros\x18\x01 \x01(\x03\x12\x1c\n\x14\x65nd_timestamp_micros\x18\x02 \x01(\x03\"\x98\x01\n\nValueRange\x12\x1c\n\x12start_value_closed\x18\x01 \x01(\x0cH\x00\x12\x1a\n\x10start_value_open\x18\x02 \x01(\x0cH\x00\x12\x1a\n\x10\x65nd_value_closed\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_value_open\x18\x04 \x01(\x0cH\x01\x42\r\n\x0bstart_valueB\x0b\n\tend_value\"\xdf\x08\n\tRowFilter\x12\x34\n\x05\x63hain\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.RowFilter.ChainH\x00\x12>\n\ninterleave\x18\x02 \x01(\x0b\x32(.google.bigtable.v2.RowFilter.InterleaveH\x00\x12<\n\tcondition\x18\x03 \x01(\x0b\x32\'.google.bigtable.v2.RowFilter.ConditionH\x00\x12\x0e\n\x04sink\x18\x10 \x01(\x08H\x00\x12\x19\n\x0fpass_all_filter\x18\x11 \x01(\x08H\x00\x12\x1a\n\x10\x62lock_all_filter\x18\x12 \x01(\x08H\x00\x12\x1e\n\x14row_key_regex_filter\x18\x04 \x01(\x0cH\x00\x12\x1b\n\x11row_sample_filter\x18\x0e \x01(\x01H\x00\x12\"\n\x18\x66\x61mily_name_regex_filter\x18\x05 \x01(\tH\x00\x12\'\n\x1d\x63olumn_qualifier_regex_filter\x18\x06 \x01(\x0cH\x00\x12>\n\x13\x63olumn_range_filter\x18\x07 \x01(\x0b\x32\x1f.google.bigtable.v2.ColumnRangeH\x00\x12\x44\n\x16timestamp_range_filter\x18\x08 \x01(\x0b\x32\".google.bigtable.v2.TimestampRangeH\x00\x12\x1c\n\x12value_regex_filter\x18\t \x01(\x0cH\x00\x12<\n\x12value_range_filter\x18\x0f \x01(\x0b\x32\x1e.google.bigtable.v2.ValueRangeH\x00\x12%\n\x1b\x63\x65lls_per_row_offset_filter\x18\n \x01(\x05H\x00\x12$\n\x1a\x63\x65lls_per_row_limit_filter\x18\x0b \x01(\x05H\x00\x12\'\n\x1d\x63\x65lls_per_column_limit_filter\x18\x0c \x01(\x05H\x00\x12!\n\x17strip_value_transformer\x18\r \x01(\x08H\x00\x12!\n\x17\x61pply_label_transformer\x18\x13 \x01(\tH\x00\x1a\x37\n\x05\x43hain\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a<\n\nInterleave\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a\xad\x01\n\tCondition\x12\x37\n\x10predicate_filter\x18\x01 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x32\n\x0btrue_filter\x18\x02 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x33\n\x0c\x66\x61lse_filter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilterB\x08\n\x06\x66ilter\"\xc9\x04\n\x08Mutation\x12\x38\n\x08set_cell\x18\x01 \x01(\x0b\x32$.google.bigtable.v2.Mutation.SetCellH\x00\x12K\n\x12\x64\x65lete_from_column\x18\x02 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromColumnH\x00\x12K\n\x12\x64\x65lete_from_family\x18\x03 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromFamilyH\x00\x12\x45\n\x0f\x64\x65lete_from_row\x18\x04 \x01(\x0b\x32*.google.bigtable.v2.Mutation.DeleteFromRowH\x00\x1a\x61\n\x07SetCell\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x18\n\x10timestamp_micros\x18\x03 \x01(\x03\x12\r\n\x05value\x18\x04 \x01(\x0c\x1ay\n\x10\x44\x65leteFromColumn\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x36\n\ntime_range\x18\x03 \x01(\x0b\x32\".google.bigtable.v2.TimestampRange\x1a\'\n\x10\x44\x65leteFromFamily\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x1a\x0f\n\rDeleteFromRowB\n\n\x08mutation\"\x80\x01\n\x13ReadModifyWriteRule\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x16\n\x0c\x61ppend_value\x18\x03 \x01(\x0cH\x00\x12\x1a\n\x10increment_amount\x18\x04 \x01(\x03H\x00\x42\x06\n\x04ruleB\x97\x01\n\x16\x63om.google.bigtable.v2B\tDataProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2b\x06proto3') + name="google/cloud/bigtable_v2/proto/data.proto", + package="google.bigtable.v2", + syntax="proto3", + serialized_pb=_b( + '\n)google/cloud/bigtable_v2/proto/data.proto\x12\x12google.bigtable.v2"@\n\x03Row\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12,\n\x08\x66\x61milies\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Family"C\n\x06\x46\x61mily\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Column"D\n\x06\x43olumn\x12\x11\n\tqualifier\x18\x01 \x01(\x0c\x12\'\n\x05\x63\x65lls\x18\x02 \x03(\x0b\x32\x18.google.bigtable.v2.Cell"?\n\x04\x43\x65ll\x12\x18\n\x10timestamp_micros\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06labels\x18\x03 \x03(\t"\x8a\x01\n\x08RowRange\x12\x1a\n\x10start_key_closed\x18\x01 \x01(\x0cH\x00\x12\x18\n\x0estart_key_open\x18\x02 \x01(\x0cH\x00\x12\x16\n\x0c\x65nd_key_open\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_key_closed\x18\x04 \x01(\x0cH\x01\x42\x0b\n\tstart_keyB\t\n\x07\x65nd_key"L\n\x06RowSet\x12\x10\n\x08row_keys\x18\x01 \x03(\x0c\x12\x30\n\nrow_ranges\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.RowRange"\xc6\x01\n\x0b\x43olumnRange\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12 \n\x16start_qualifier_closed\x18\x02 \x01(\x0cH\x00\x12\x1e\n\x14start_qualifier_open\x18\x03 \x01(\x0cH\x00\x12\x1e\n\x14\x65nd_qualifier_closed\x18\x04 \x01(\x0cH\x01\x12\x1c\n\x12\x65nd_qualifier_open\x18\x05 \x01(\x0cH\x01\x42\x11\n\x0fstart_qualifierB\x0f\n\rend_qualifier"N\n\x0eTimestampRange\x12\x1e\n\x16start_timestamp_micros\x18\x01 \x01(\x03\x12\x1c\n\x14\x65nd_timestamp_micros\x18\x02 \x01(\x03"\x98\x01\n\nValueRange\x12\x1c\n\x12start_value_closed\x18\x01 \x01(\x0cH\x00\x12\x1a\n\x10start_value_open\x18\x02 \x01(\x0cH\x00\x12\x1a\n\x10\x65nd_value_closed\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_value_open\x18\x04 \x01(\x0cH\x01\x42\r\n\x0bstart_valueB\x0b\n\tend_value"\xdf\x08\n\tRowFilter\x12\x34\n\x05\x63hain\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.RowFilter.ChainH\x00\x12>\n\ninterleave\x18\x02 \x01(\x0b\x32(.google.bigtable.v2.RowFilter.InterleaveH\x00\x12<\n\tcondition\x18\x03 \x01(\x0b\x32\'.google.bigtable.v2.RowFilter.ConditionH\x00\x12\x0e\n\x04sink\x18\x10 \x01(\x08H\x00\x12\x19\n\x0fpass_all_filter\x18\x11 \x01(\x08H\x00\x12\x1a\n\x10\x62lock_all_filter\x18\x12 \x01(\x08H\x00\x12\x1e\n\x14row_key_regex_filter\x18\x04 \x01(\x0cH\x00\x12\x1b\n\x11row_sample_filter\x18\x0e \x01(\x01H\x00\x12"\n\x18\x66\x61mily_name_regex_filter\x18\x05 \x01(\tH\x00\x12\'\n\x1d\x63olumn_qualifier_regex_filter\x18\x06 \x01(\x0cH\x00\x12>\n\x13\x63olumn_range_filter\x18\x07 \x01(\x0b\x32\x1f.google.bigtable.v2.ColumnRangeH\x00\x12\x44\n\x16timestamp_range_filter\x18\x08 \x01(\x0b\x32".google.bigtable.v2.TimestampRangeH\x00\x12\x1c\n\x12value_regex_filter\x18\t \x01(\x0cH\x00\x12<\n\x12value_range_filter\x18\x0f \x01(\x0b\x32\x1e.google.bigtable.v2.ValueRangeH\x00\x12%\n\x1b\x63\x65lls_per_row_offset_filter\x18\n \x01(\x05H\x00\x12$\n\x1a\x63\x65lls_per_row_limit_filter\x18\x0b \x01(\x05H\x00\x12\'\n\x1d\x63\x65lls_per_column_limit_filter\x18\x0c \x01(\x05H\x00\x12!\n\x17strip_value_transformer\x18\r \x01(\x08H\x00\x12!\n\x17\x61pply_label_transformer\x18\x13 \x01(\tH\x00\x1a\x37\n\x05\x43hain\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a<\n\nInterleave\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a\xad\x01\n\tCondition\x12\x37\n\x10predicate_filter\x18\x01 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x32\n\x0btrue_filter\x18\x02 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x33\n\x0c\x66\x61lse_filter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilterB\x08\n\x06\x66ilter"\xc9\x04\n\x08Mutation\x12\x38\n\x08set_cell\x18\x01 \x01(\x0b\x32$.google.bigtable.v2.Mutation.SetCellH\x00\x12K\n\x12\x64\x65lete_from_column\x18\x02 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromColumnH\x00\x12K\n\x12\x64\x65lete_from_family\x18\x03 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromFamilyH\x00\x12\x45\n\x0f\x64\x65lete_from_row\x18\x04 \x01(\x0b\x32*.google.bigtable.v2.Mutation.DeleteFromRowH\x00\x1a\x61\n\x07SetCell\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x18\n\x10timestamp_micros\x18\x03 \x01(\x03\x12\r\n\x05value\x18\x04 \x01(\x0c\x1ay\n\x10\x44\x65leteFromColumn\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x36\n\ntime_range\x18\x03 \x01(\x0b\x32".google.bigtable.v2.TimestampRange\x1a\'\n\x10\x44\x65leteFromFamily\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x1a\x0f\n\rDeleteFromRowB\n\n\x08mutation"\x80\x01\n\x13ReadModifyWriteRule\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x16\n\x0c\x61ppend_value\x18\x03 \x01(\x0cH\x00\x12\x1a\n\x10increment_amount\x18\x04 \x01(\x03H\x00\x42\x06\n\x04ruleB\x97\x01\n\x16\x63om.google.bigtable.v2B\tDataProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2b\x06proto3' + ), ) - - _ROW = _descriptor.Descriptor( - name='Row', - full_name='google.bigtable.v2.Row', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.bigtable.v2.Row.key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='families', full_name='google.bigtable.v2.Row.families', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=65, - serialized_end=129, + name="Row", + full_name="google.bigtable.v2.Row", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.bigtable.v2.Row.key", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="families", + full_name="google.bigtable.v2.Row.families", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=65, + serialized_end=129, ) _FAMILY = _descriptor.Descriptor( - name='Family', - full_name='google.bigtable.v2.Family', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.bigtable.v2.Family.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='columns', full_name='google.bigtable.v2.Family.columns', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=131, - serialized_end=198, + name="Family", + full_name="google.bigtable.v2.Family", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.v2.Family.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="columns", + full_name="google.bigtable.v2.Family.columns", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=131, + serialized_end=198, ) _COLUMN = _descriptor.Descriptor( - name='Column', - full_name='google.bigtable.v2.Column', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='qualifier', full_name='google.bigtable.v2.Column.qualifier', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cells', full_name='google.bigtable.v2.Column.cells', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=200, - serialized_end=268, + name="Column", + full_name="google.bigtable.v2.Column", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="qualifier", + full_name="google.bigtable.v2.Column.qualifier", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cells", + full_name="google.bigtable.v2.Column.cells", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=200, + serialized_end=268, ) _CELL = _descriptor.Descriptor( - name='Cell', - full_name='google.bigtable.v2.Cell', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp_micros', full_name='google.bigtable.v2.Cell.timestamp_micros', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.bigtable.v2.Cell.value', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.bigtable.v2.Cell.labels', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=270, - serialized_end=333, + name="Cell", + full_name="google.bigtable.v2.Cell", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="timestamp_micros", + full_name="google.bigtable.v2.Cell.timestamp_micros", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.bigtable.v2.Cell.value", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.bigtable.v2.Cell.labels", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=270, + serialized_end=333, ) _ROWRANGE = _descriptor.Descriptor( - name='RowRange', - full_name='google.bigtable.v2.RowRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_key_closed', full_name='google.bigtable.v2.RowRange.start_key_closed', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_key_open', full_name='google.bigtable.v2.RowRange.start_key_open', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_key_open', full_name='google.bigtable.v2.RowRange.end_key_open', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_key_closed', full_name='google.bigtable.v2.RowRange.end_key_closed', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='start_key', full_name='google.bigtable.v2.RowRange.start_key', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='end_key', full_name='google.bigtable.v2.RowRange.end_key', - index=1, containing_type=None, fields=[]), - ], - serialized_start=336, - serialized_end=474, + name="RowRange", + full_name="google.bigtable.v2.RowRange", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_key_closed", + full_name="google.bigtable.v2.RowRange.start_key_closed", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_key_open", + full_name="google.bigtable.v2.RowRange.start_key_open", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_key_open", + full_name="google.bigtable.v2.RowRange.end_key_open", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_key_closed", + full_name="google.bigtable.v2.RowRange.end_key_closed", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="start_key", + full_name="google.bigtable.v2.RowRange.start_key", + index=0, + containing_type=None, + fields=[], + ), + _descriptor.OneofDescriptor( + name="end_key", + full_name="google.bigtable.v2.RowRange.end_key", + index=1, + containing_type=None, + fields=[], + ), + ], + serialized_start=336, + serialized_end=474, ) _ROWSET = _descriptor.Descriptor( - name='RowSet', - full_name='google.bigtable.v2.RowSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='row_keys', full_name='google.bigtable.v2.RowSet.row_keys', index=0, - number=1, type=12, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_ranges', full_name='google.bigtable.v2.RowSet.row_ranges', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=476, - serialized_end=552, + name="RowSet", + full_name="google.bigtable.v2.RowSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="row_keys", + full_name="google.bigtable.v2.RowSet.row_keys", + index=0, + number=1, + type=12, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_ranges", + full_name="google.bigtable.v2.RowSet.row_ranges", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=476, + serialized_end=552, ) _COLUMNRANGE = _descriptor.Descriptor( - name='ColumnRange', - full_name='google.bigtable.v2.ColumnRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='family_name', full_name='google.bigtable.v2.ColumnRange.family_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_qualifier_closed', full_name='google.bigtable.v2.ColumnRange.start_qualifier_closed', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_qualifier_open', full_name='google.bigtable.v2.ColumnRange.start_qualifier_open', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_qualifier_closed', full_name='google.bigtable.v2.ColumnRange.end_qualifier_closed', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_qualifier_open', full_name='google.bigtable.v2.ColumnRange.end_qualifier_open', index=4, - number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='start_qualifier', full_name='google.bigtable.v2.ColumnRange.start_qualifier', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='end_qualifier', full_name='google.bigtable.v2.ColumnRange.end_qualifier', - index=1, containing_type=None, fields=[]), - ], - serialized_start=555, - serialized_end=753, + name="ColumnRange", + full_name="google.bigtable.v2.ColumnRange", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="family_name", + full_name="google.bigtable.v2.ColumnRange.family_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_qualifier_closed", + full_name="google.bigtable.v2.ColumnRange.start_qualifier_closed", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_qualifier_open", + full_name="google.bigtable.v2.ColumnRange.start_qualifier_open", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_qualifier_closed", + full_name="google.bigtable.v2.ColumnRange.end_qualifier_closed", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_qualifier_open", + full_name="google.bigtable.v2.ColumnRange.end_qualifier_open", + index=4, + number=5, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="start_qualifier", + full_name="google.bigtable.v2.ColumnRange.start_qualifier", + index=0, + containing_type=None, + fields=[], + ), + _descriptor.OneofDescriptor( + name="end_qualifier", + full_name="google.bigtable.v2.ColumnRange.end_qualifier", + index=1, + containing_type=None, + fields=[], + ), + ], + serialized_start=555, + serialized_end=753, ) _TIMESTAMPRANGE = _descriptor.Descriptor( - name='TimestampRange', - full_name='google.bigtable.v2.TimestampRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_timestamp_micros', full_name='google.bigtable.v2.TimestampRange.start_timestamp_micros', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_timestamp_micros', full_name='google.bigtable.v2.TimestampRange.end_timestamp_micros', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=755, - serialized_end=833, + name="TimestampRange", + full_name="google.bigtable.v2.TimestampRange", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_timestamp_micros", + full_name="google.bigtable.v2.TimestampRange.start_timestamp_micros", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_timestamp_micros", + full_name="google.bigtable.v2.TimestampRange.end_timestamp_micros", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=755, + serialized_end=833, ) _VALUERANGE = _descriptor.Descriptor( - name='ValueRange', - full_name='google.bigtable.v2.ValueRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_value_closed', full_name='google.bigtable.v2.ValueRange.start_value_closed', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_value_open', full_name='google.bigtable.v2.ValueRange.start_value_open', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_value_closed', full_name='google.bigtable.v2.ValueRange.end_value_closed', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_value_open', full_name='google.bigtable.v2.ValueRange.end_value_open', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='start_value', full_name='google.bigtable.v2.ValueRange.start_value', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='end_value', full_name='google.bigtable.v2.ValueRange.end_value', - index=1, containing_type=None, fields=[]), - ], - serialized_start=836, - serialized_end=988, + name="ValueRange", + full_name="google.bigtable.v2.ValueRange", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_value_closed", + full_name="google.bigtable.v2.ValueRange.start_value_closed", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_value_open", + full_name="google.bigtable.v2.ValueRange.start_value_open", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_value_closed", + full_name="google.bigtable.v2.ValueRange.end_value_closed", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_value_open", + full_name="google.bigtable.v2.ValueRange.end_value_open", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="start_value", + full_name="google.bigtable.v2.ValueRange.start_value", + index=0, + containing_type=None, + fields=[], + ), + _descriptor.OneofDescriptor( + name="end_value", + full_name="google.bigtable.v2.ValueRange.end_value", + index=1, + containing_type=None, + fields=[], + ), + ], + serialized_start=836, + serialized_end=988, ) _ROWFILTER_CHAIN = _descriptor.Descriptor( - name='Chain', - full_name='google.bigtable.v2.RowFilter.Chain', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='filters', full_name='google.bigtable.v2.RowFilter.Chain.filters', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1807, - serialized_end=1862, + name="Chain", + full_name="google.bigtable.v2.RowFilter.Chain", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="filters", + full_name="google.bigtable.v2.RowFilter.Chain.filters", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1807, + serialized_end=1862, ) _ROWFILTER_INTERLEAVE = _descriptor.Descriptor( - name='Interleave', - full_name='google.bigtable.v2.RowFilter.Interleave', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='filters', full_name='google.bigtable.v2.RowFilter.Interleave.filters', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1864, - serialized_end=1924, + name="Interleave", + full_name="google.bigtable.v2.RowFilter.Interleave", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="filters", + full_name="google.bigtable.v2.RowFilter.Interleave.filters", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1864, + serialized_end=1924, ) _ROWFILTER_CONDITION = _descriptor.Descriptor( - name='Condition', - full_name='google.bigtable.v2.RowFilter.Condition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='predicate_filter', full_name='google.bigtable.v2.RowFilter.Condition.predicate_filter', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='true_filter', full_name='google.bigtable.v2.RowFilter.Condition.true_filter', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='false_filter', full_name='google.bigtable.v2.RowFilter.Condition.false_filter', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1927, - serialized_end=2100, + name="Condition", + full_name="google.bigtable.v2.RowFilter.Condition", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="predicate_filter", + full_name="google.bigtable.v2.RowFilter.Condition.predicate_filter", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="true_filter", + full_name="google.bigtable.v2.RowFilter.Condition.true_filter", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="false_filter", + full_name="google.bigtable.v2.RowFilter.Condition.false_filter", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1927, + serialized_end=2100, ) _ROWFILTER = _descriptor.Descriptor( - name='RowFilter', - full_name='google.bigtable.v2.RowFilter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='chain', full_name='google.bigtable.v2.RowFilter.chain', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interleave', full_name='google.bigtable.v2.RowFilter.interleave', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='condition', full_name='google.bigtable.v2.RowFilter.condition', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sink', full_name='google.bigtable.v2.RowFilter.sink', index=3, - number=16, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pass_all_filter', full_name='google.bigtable.v2.RowFilter.pass_all_filter', index=4, - number=17, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='block_all_filter', full_name='google.bigtable.v2.RowFilter.block_all_filter', index=5, - number=18, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_key_regex_filter', full_name='google.bigtable.v2.RowFilter.row_key_regex_filter', index=6, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_sample_filter', full_name='google.bigtable.v2.RowFilter.row_sample_filter', index=7, - number=14, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='family_name_regex_filter', full_name='google.bigtable.v2.RowFilter.family_name_regex_filter', index=8, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_qualifier_regex_filter', full_name='google.bigtable.v2.RowFilter.column_qualifier_regex_filter', index=9, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_range_filter', full_name='google.bigtable.v2.RowFilter.column_range_filter', index=10, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp_range_filter', full_name='google.bigtable.v2.RowFilter.timestamp_range_filter', index=11, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_regex_filter', full_name='google.bigtable.v2.RowFilter.value_regex_filter', index=12, - number=9, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_range_filter', full_name='google.bigtable.v2.RowFilter.value_range_filter', index=13, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cells_per_row_offset_filter', full_name='google.bigtable.v2.RowFilter.cells_per_row_offset_filter', index=14, - number=10, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cells_per_row_limit_filter', full_name='google.bigtable.v2.RowFilter.cells_per_row_limit_filter', index=15, - number=11, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cells_per_column_limit_filter', full_name='google.bigtable.v2.RowFilter.cells_per_column_limit_filter', index=16, - number=12, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='strip_value_transformer', full_name='google.bigtable.v2.RowFilter.strip_value_transformer', index=17, - number=13, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='apply_label_transformer', full_name='google.bigtable.v2.RowFilter.apply_label_transformer', index=18, - number=19, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ROWFILTER_CHAIN, _ROWFILTER_INTERLEAVE, _ROWFILTER_CONDITION, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='filter', full_name='google.bigtable.v2.RowFilter.filter', - index=0, containing_type=None, fields=[]), - ], - serialized_start=991, - serialized_end=2110, + name="RowFilter", + full_name="google.bigtable.v2.RowFilter", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="chain", + full_name="google.bigtable.v2.RowFilter.chain", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="interleave", + full_name="google.bigtable.v2.RowFilter.interleave", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="condition", + full_name="google.bigtable.v2.RowFilter.condition", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sink", + full_name="google.bigtable.v2.RowFilter.sink", + index=3, + number=16, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pass_all_filter", + full_name="google.bigtable.v2.RowFilter.pass_all_filter", + index=4, + number=17, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="block_all_filter", + full_name="google.bigtable.v2.RowFilter.block_all_filter", + index=5, + number=18, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_key_regex_filter", + full_name="google.bigtable.v2.RowFilter.row_key_regex_filter", + index=6, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_sample_filter", + full_name="google.bigtable.v2.RowFilter.row_sample_filter", + index=7, + number=14, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="family_name_regex_filter", + full_name="google.bigtable.v2.RowFilter.family_name_regex_filter", + index=8, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_qualifier_regex_filter", + full_name="google.bigtable.v2.RowFilter.column_qualifier_regex_filter", + index=9, + number=6, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_range_filter", + full_name="google.bigtable.v2.RowFilter.column_range_filter", + index=10, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timestamp_range_filter", + full_name="google.bigtable.v2.RowFilter.timestamp_range_filter", + index=11, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value_regex_filter", + full_name="google.bigtable.v2.RowFilter.value_regex_filter", + index=12, + number=9, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value_range_filter", + full_name="google.bigtable.v2.RowFilter.value_range_filter", + index=13, + number=15, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cells_per_row_offset_filter", + full_name="google.bigtable.v2.RowFilter.cells_per_row_offset_filter", + index=14, + number=10, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cells_per_row_limit_filter", + full_name="google.bigtable.v2.RowFilter.cells_per_row_limit_filter", + index=15, + number=11, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cells_per_column_limit_filter", + full_name="google.bigtable.v2.RowFilter.cells_per_column_limit_filter", + index=16, + number=12, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="strip_value_transformer", + full_name="google.bigtable.v2.RowFilter.strip_value_transformer", + index=17, + number=13, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="apply_label_transformer", + full_name="google.bigtable.v2.RowFilter.apply_label_transformer", + index=18, + number=19, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ROWFILTER_CHAIN, _ROWFILTER_INTERLEAVE, _ROWFILTER_CONDITION], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="filter", + full_name="google.bigtable.v2.RowFilter.filter", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=991, + serialized_end=2110, ) _MUTATION_SETCELL = _descriptor.Descriptor( - name='SetCell', - full_name='google.bigtable.v2.Mutation.SetCell', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='family_name', full_name='google.bigtable.v2.Mutation.SetCell.family_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_qualifier', full_name='google.bigtable.v2.Mutation.SetCell.column_qualifier', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp_micros', full_name='google.bigtable.v2.Mutation.SetCell.timestamp_micros', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.bigtable.v2.Mutation.SetCell.value', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2408, - serialized_end=2505, + name="SetCell", + full_name="google.bigtable.v2.Mutation.SetCell", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="family_name", + full_name="google.bigtable.v2.Mutation.SetCell.family_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_qualifier", + full_name="google.bigtable.v2.Mutation.SetCell.column_qualifier", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timestamp_micros", + full_name="google.bigtable.v2.Mutation.SetCell.timestamp_micros", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.bigtable.v2.Mutation.SetCell.value", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2408, + serialized_end=2505, ) _MUTATION_DELETEFROMCOLUMN = _descriptor.Descriptor( - name='DeleteFromColumn', - full_name='google.bigtable.v2.Mutation.DeleteFromColumn', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='family_name', full_name='google.bigtable.v2.Mutation.DeleteFromColumn.family_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_qualifier', full_name='google.bigtable.v2.Mutation.DeleteFromColumn.column_qualifier', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_range', full_name='google.bigtable.v2.Mutation.DeleteFromColumn.time_range', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2507, - serialized_end=2628, + name="DeleteFromColumn", + full_name="google.bigtable.v2.Mutation.DeleteFromColumn", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="family_name", + full_name="google.bigtable.v2.Mutation.DeleteFromColumn.family_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_qualifier", + full_name="google.bigtable.v2.Mutation.DeleteFromColumn.column_qualifier", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_range", + full_name="google.bigtable.v2.Mutation.DeleteFromColumn.time_range", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2507, + serialized_end=2628, ) _MUTATION_DELETEFROMFAMILY = _descriptor.Descriptor( - name='DeleteFromFamily', - full_name='google.bigtable.v2.Mutation.DeleteFromFamily', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='family_name', full_name='google.bigtable.v2.Mutation.DeleteFromFamily.family_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2630, - serialized_end=2669, + name="DeleteFromFamily", + full_name="google.bigtable.v2.Mutation.DeleteFromFamily", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="family_name", + full_name="google.bigtable.v2.Mutation.DeleteFromFamily.family_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2630, + serialized_end=2669, ) _MUTATION_DELETEFROMROW = _descriptor.Descriptor( - name='DeleteFromRow', - full_name='google.bigtable.v2.Mutation.DeleteFromRow', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2671, - serialized_end=2686, + name="DeleteFromRow", + full_name="google.bigtable.v2.Mutation.DeleteFromRow", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2671, + serialized_end=2686, ) _MUTATION = _descriptor.Descriptor( - name='Mutation', - full_name='google.bigtable.v2.Mutation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='set_cell', full_name='google.bigtable.v2.Mutation.set_cell', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete_from_column', full_name='google.bigtable.v2.Mutation.delete_from_column', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete_from_family', full_name='google.bigtable.v2.Mutation.delete_from_family', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete_from_row', full_name='google.bigtable.v2.Mutation.delete_from_row', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_MUTATION_SETCELL, _MUTATION_DELETEFROMCOLUMN, _MUTATION_DELETEFROMFAMILY, _MUTATION_DELETEFROMROW, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='mutation', full_name='google.bigtable.v2.Mutation.mutation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2113, - serialized_end=2698, + name="Mutation", + full_name="google.bigtable.v2.Mutation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="set_cell", + full_name="google.bigtable.v2.Mutation.set_cell", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete_from_column", + full_name="google.bigtable.v2.Mutation.delete_from_column", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete_from_family", + full_name="google.bigtable.v2.Mutation.delete_from_family", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete_from_row", + full_name="google.bigtable.v2.Mutation.delete_from_row", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _MUTATION_SETCELL, + _MUTATION_DELETEFROMCOLUMN, + _MUTATION_DELETEFROMFAMILY, + _MUTATION_DELETEFROMROW, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="mutation", + full_name="google.bigtable.v2.Mutation.mutation", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2113, + serialized_end=2698, ) _READMODIFYWRITERULE = _descriptor.Descriptor( - name='ReadModifyWriteRule', - full_name='google.bigtable.v2.ReadModifyWriteRule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='family_name', full_name='google.bigtable.v2.ReadModifyWriteRule.family_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_qualifier', full_name='google.bigtable.v2.ReadModifyWriteRule.column_qualifier', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='append_value', full_name='google.bigtable.v2.ReadModifyWriteRule.append_value', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='increment_amount', full_name='google.bigtable.v2.ReadModifyWriteRule.increment_amount', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='rule', full_name='google.bigtable.v2.ReadModifyWriteRule.rule', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2701, - serialized_end=2829, + name="ReadModifyWriteRule", + full_name="google.bigtable.v2.ReadModifyWriteRule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="family_name", + full_name="google.bigtable.v2.ReadModifyWriteRule.family_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_qualifier", + full_name="google.bigtable.v2.ReadModifyWriteRule.column_qualifier", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="append_value", + full_name="google.bigtable.v2.ReadModifyWriteRule.append_value", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="increment_amount", + full_name="google.bigtable.v2.ReadModifyWriteRule.increment_amount", + index=3, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="rule", + full_name="google.bigtable.v2.ReadModifyWriteRule.rule", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2701, + serialized_end=2829, ) -_ROW.fields_by_name['families'].message_type = _FAMILY -_FAMILY.fields_by_name['columns'].message_type = _COLUMN -_COLUMN.fields_by_name['cells'].message_type = _CELL -_ROWRANGE.oneofs_by_name['start_key'].fields.append( - _ROWRANGE.fields_by_name['start_key_closed']) -_ROWRANGE.fields_by_name['start_key_closed'].containing_oneof = _ROWRANGE.oneofs_by_name['start_key'] -_ROWRANGE.oneofs_by_name['start_key'].fields.append( - _ROWRANGE.fields_by_name['start_key_open']) -_ROWRANGE.fields_by_name['start_key_open'].containing_oneof = _ROWRANGE.oneofs_by_name['start_key'] -_ROWRANGE.oneofs_by_name['end_key'].fields.append( - _ROWRANGE.fields_by_name['end_key_open']) -_ROWRANGE.fields_by_name['end_key_open'].containing_oneof = _ROWRANGE.oneofs_by_name['end_key'] -_ROWRANGE.oneofs_by_name['end_key'].fields.append( - _ROWRANGE.fields_by_name['end_key_closed']) -_ROWRANGE.fields_by_name['end_key_closed'].containing_oneof = _ROWRANGE.oneofs_by_name['end_key'] -_ROWSET.fields_by_name['row_ranges'].message_type = _ROWRANGE -_COLUMNRANGE.oneofs_by_name['start_qualifier'].fields.append( - _COLUMNRANGE.fields_by_name['start_qualifier_closed']) -_COLUMNRANGE.fields_by_name['start_qualifier_closed'].containing_oneof = _COLUMNRANGE.oneofs_by_name['start_qualifier'] -_COLUMNRANGE.oneofs_by_name['start_qualifier'].fields.append( - _COLUMNRANGE.fields_by_name['start_qualifier_open']) -_COLUMNRANGE.fields_by_name['start_qualifier_open'].containing_oneof = _COLUMNRANGE.oneofs_by_name['start_qualifier'] -_COLUMNRANGE.oneofs_by_name['end_qualifier'].fields.append( - _COLUMNRANGE.fields_by_name['end_qualifier_closed']) -_COLUMNRANGE.fields_by_name['end_qualifier_closed'].containing_oneof = _COLUMNRANGE.oneofs_by_name['end_qualifier'] -_COLUMNRANGE.oneofs_by_name['end_qualifier'].fields.append( - _COLUMNRANGE.fields_by_name['end_qualifier_open']) -_COLUMNRANGE.fields_by_name['end_qualifier_open'].containing_oneof = _COLUMNRANGE.oneofs_by_name['end_qualifier'] -_VALUERANGE.oneofs_by_name['start_value'].fields.append( - _VALUERANGE.fields_by_name['start_value_closed']) -_VALUERANGE.fields_by_name['start_value_closed'].containing_oneof = _VALUERANGE.oneofs_by_name['start_value'] -_VALUERANGE.oneofs_by_name['start_value'].fields.append( - _VALUERANGE.fields_by_name['start_value_open']) -_VALUERANGE.fields_by_name['start_value_open'].containing_oneof = _VALUERANGE.oneofs_by_name['start_value'] -_VALUERANGE.oneofs_by_name['end_value'].fields.append( - _VALUERANGE.fields_by_name['end_value_closed']) -_VALUERANGE.fields_by_name['end_value_closed'].containing_oneof = _VALUERANGE.oneofs_by_name['end_value'] -_VALUERANGE.oneofs_by_name['end_value'].fields.append( - _VALUERANGE.fields_by_name['end_value_open']) -_VALUERANGE.fields_by_name['end_value_open'].containing_oneof = _VALUERANGE.oneofs_by_name['end_value'] -_ROWFILTER_CHAIN.fields_by_name['filters'].message_type = _ROWFILTER +_ROW.fields_by_name["families"].message_type = _FAMILY +_FAMILY.fields_by_name["columns"].message_type = _COLUMN +_COLUMN.fields_by_name["cells"].message_type = _CELL +_ROWRANGE.oneofs_by_name["start_key"].fields.append( + _ROWRANGE.fields_by_name["start_key_closed"] +) +_ROWRANGE.fields_by_name[ + "start_key_closed" +].containing_oneof = _ROWRANGE.oneofs_by_name["start_key"] +_ROWRANGE.oneofs_by_name["start_key"].fields.append( + _ROWRANGE.fields_by_name["start_key_open"] +) +_ROWRANGE.fields_by_name["start_key_open"].containing_oneof = _ROWRANGE.oneofs_by_name[ + "start_key" +] +_ROWRANGE.oneofs_by_name["end_key"].fields.append( + _ROWRANGE.fields_by_name["end_key_open"] +) +_ROWRANGE.fields_by_name["end_key_open"].containing_oneof = _ROWRANGE.oneofs_by_name[ + "end_key" +] +_ROWRANGE.oneofs_by_name["end_key"].fields.append( + _ROWRANGE.fields_by_name["end_key_closed"] +) +_ROWRANGE.fields_by_name["end_key_closed"].containing_oneof = _ROWRANGE.oneofs_by_name[ + "end_key" +] +_ROWSET.fields_by_name["row_ranges"].message_type = _ROWRANGE +_COLUMNRANGE.oneofs_by_name["start_qualifier"].fields.append( + _COLUMNRANGE.fields_by_name["start_qualifier_closed"] +) +_COLUMNRANGE.fields_by_name[ + "start_qualifier_closed" +].containing_oneof = _COLUMNRANGE.oneofs_by_name["start_qualifier"] +_COLUMNRANGE.oneofs_by_name["start_qualifier"].fields.append( + _COLUMNRANGE.fields_by_name["start_qualifier_open"] +) +_COLUMNRANGE.fields_by_name[ + "start_qualifier_open" +].containing_oneof = _COLUMNRANGE.oneofs_by_name["start_qualifier"] +_COLUMNRANGE.oneofs_by_name["end_qualifier"].fields.append( + _COLUMNRANGE.fields_by_name["end_qualifier_closed"] +) +_COLUMNRANGE.fields_by_name[ + "end_qualifier_closed" +].containing_oneof = _COLUMNRANGE.oneofs_by_name["end_qualifier"] +_COLUMNRANGE.oneofs_by_name["end_qualifier"].fields.append( + _COLUMNRANGE.fields_by_name["end_qualifier_open"] +) +_COLUMNRANGE.fields_by_name[ + "end_qualifier_open" +].containing_oneof = _COLUMNRANGE.oneofs_by_name["end_qualifier"] +_VALUERANGE.oneofs_by_name["start_value"].fields.append( + _VALUERANGE.fields_by_name["start_value_closed"] +) +_VALUERANGE.fields_by_name[ + "start_value_closed" +].containing_oneof = _VALUERANGE.oneofs_by_name["start_value"] +_VALUERANGE.oneofs_by_name["start_value"].fields.append( + _VALUERANGE.fields_by_name["start_value_open"] +) +_VALUERANGE.fields_by_name[ + "start_value_open" +].containing_oneof = _VALUERANGE.oneofs_by_name["start_value"] +_VALUERANGE.oneofs_by_name["end_value"].fields.append( + _VALUERANGE.fields_by_name["end_value_closed"] +) +_VALUERANGE.fields_by_name[ + "end_value_closed" +].containing_oneof = _VALUERANGE.oneofs_by_name["end_value"] +_VALUERANGE.oneofs_by_name["end_value"].fields.append( + _VALUERANGE.fields_by_name["end_value_open"] +) +_VALUERANGE.fields_by_name[ + "end_value_open" +].containing_oneof = _VALUERANGE.oneofs_by_name["end_value"] +_ROWFILTER_CHAIN.fields_by_name["filters"].message_type = _ROWFILTER _ROWFILTER_CHAIN.containing_type = _ROWFILTER -_ROWFILTER_INTERLEAVE.fields_by_name['filters'].message_type = _ROWFILTER +_ROWFILTER_INTERLEAVE.fields_by_name["filters"].message_type = _ROWFILTER _ROWFILTER_INTERLEAVE.containing_type = _ROWFILTER -_ROWFILTER_CONDITION.fields_by_name['predicate_filter'].message_type = _ROWFILTER -_ROWFILTER_CONDITION.fields_by_name['true_filter'].message_type = _ROWFILTER -_ROWFILTER_CONDITION.fields_by_name['false_filter'].message_type = _ROWFILTER +_ROWFILTER_CONDITION.fields_by_name["predicate_filter"].message_type = _ROWFILTER +_ROWFILTER_CONDITION.fields_by_name["true_filter"].message_type = _ROWFILTER +_ROWFILTER_CONDITION.fields_by_name["false_filter"].message_type = _ROWFILTER _ROWFILTER_CONDITION.containing_type = _ROWFILTER -_ROWFILTER.fields_by_name['chain'].message_type = _ROWFILTER_CHAIN -_ROWFILTER.fields_by_name['interleave'].message_type = _ROWFILTER_INTERLEAVE -_ROWFILTER.fields_by_name['condition'].message_type = _ROWFILTER_CONDITION -_ROWFILTER.fields_by_name['column_range_filter'].message_type = _COLUMNRANGE -_ROWFILTER.fields_by_name['timestamp_range_filter'].message_type = _TIMESTAMPRANGE -_ROWFILTER.fields_by_name['value_range_filter'].message_type = _VALUERANGE -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['chain']) -_ROWFILTER.fields_by_name['chain'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['interleave']) -_ROWFILTER.fields_by_name['interleave'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['condition']) -_ROWFILTER.fields_by_name['condition'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['sink']) -_ROWFILTER.fields_by_name['sink'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['pass_all_filter']) -_ROWFILTER.fields_by_name['pass_all_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['block_all_filter']) -_ROWFILTER.fields_by_name['block_all_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['row_key_regex_filter']) -_ROWFILTER.fields_by_name['row_key_regex_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['row_sample_filter']) -_ROWFILTER.fields_by_name['row_sample_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['family_name_regex_filter']) -_ROWFILTER.fields_by_name['family_name_regex_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['column_qualifier_regex_filter']) -_ROWFILTER.fields_by_name['column_qualifier_regex_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['column_range_filter']) -_ROWFILTER.fields_by_name['column_range_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['timestamp_range_filter']) -_ROWFILTER.fields_by_name['timestamp_range_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['value_regex_filter']) -_ROWFILTER.fields_by_name['value_regex_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['value_range_filter']) -_ROWFILTER.fields_by_name['value_range_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['cells_per_row_offset_filter']) -_ROWFILTER.fields_by_name['cells_per_row_offset_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['cells_per_row_limit_filter']) -_ROWFILTER.fields_by_name['cells_per_row_limit_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['cells_per_column_limit_filter']) -_ROWFILTER.fields_by_name['cells_per_column_limit_filter'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['strip_value_transformer']) -_ROWFILTER.fields_by_name['strip_value_transformer'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] -_ROWFILTER.oneofs_by_name['filter'].fields.append( - _ROWFILTER.fields_by_name['apply_label_transformer']) -_ROWFILTER.fields_by_name['apply_label_transformer'].containing_oneof = _ROWFILTER.oneofs_by_name['filter'] +_ROWFILTER.fields_by_name["chain"].message_type = _ROWFILTER_CHAIN +_ROWFILTER.fields_by_name["interleave"].message_type = _ROWFILTER_INTERLEAVE +_ROWFILTER.fields_by_name["condition"].message_type = _ROWFILTER_CONDITION +_ROWFILTER.fields_by_name["column_range_filter"].message_type = _COLUMNRANGE +_ROWFILTER.fields_by_name["timestamp_range_filter"].message_type = _TIMESTAMPRANGE +_ROWFILTER.fields_by_name["value_range_filter"].message_type = _VALUERANGE +_ROWFILTER.oneofs_by_name["filter"].fields.append(_ROWFILTER.fields_by_name["chain"]) +_ROWFILTER.fields_by_name["chain"].containing_oneof = _ROWFILTER.oneofs_by_name[ + "filter" +] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["interleave"] +) +_ROWFILTER.fields_by_name["interleave"].containing_oneof = _ROWFILTER.oneofs_by_name[ + "filter" +] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["condition"] +) +_ROWFILTER.fields_by_name["condition"].containing_oneof = _ROWFILTER.oneofs_by_name[ + "filter" +] +_ROWFILTER.oneofs_by_name["filter"].fields.append(_ROWFILTER.fields_by_name["sink"]) +_ROWFILTER.fields_by_name["sink"].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["pass_all_filter"] +) +_ROWFILTER.fields_by_name[ + "pass_all_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["block_all_filter"] +) +_ROWFILTER.fields_by_name[ + "block_all_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["row_key_regex_filter"] +) +_ROWFILTER.fields_by_name[ + "row_key_regex_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["row_sample_filter"] +) +_ROWFILTER.fields_by_name[ + "row_sample_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["family_name_regex_filter"] +) +_ROWFILTER.fields_by_name[ + "family_name_regex_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["column_qualifier_regex_filter"] +) +_ROWFILTER.fields_by_name[ + "column_qualifier_regex_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["column_range_filter"] +) +_ROWFILTER.fields_by_name[ + "column_range_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["timestamp_range_filter"] +) +_ROWFILTER.fields_by_name[ + "timestamp_range_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["value_regex_filter"] +) +_ROWFILTER.fields_by_name[ + "value_regex_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["value_range_filter"] +) +_ROWFILTER.fields_by_name[ + "value_range_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["cells_per_row_offset_filter"] +) +_ROWFILTER.fields_by_name[ + "cells_per_row_offset_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["cells_per_row_limit_filter"] +) +_ROWFILTER.fields_by_name[ + "cells_per_row_limit_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["cells_per_column_limit_filter"] +) +_ROWFILTER.fields_by_name[ + "cells_per_column_limit_filter" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["strip_value_transformer"] +) +_ROWFILTER.fields_by_name[ + "strip_value_transformer" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] +_ROWFILTER.oneofs_by_name["filter"].fields.append( + _ROWFILTER.fields_by_name["apply_label_transformer"] +) +_ROWFILTER.fields_by_name[ + "apply_label_transformer" +].containing_oneof = _ROWFILTER.oneofs_by_name["filter"] _MUTATION_SETCELL.containing_type = _MUTATION -_MUTATION_DELETEFROMCOLUMN.fields_by_name['time_range'].message_type = _TIMESTAMPRANGE +_MUTATION_DELETEFROMCOLUMN.fields_by_name["time_range"].message_type = _TIMESTAMPRANGE _MUTATION_DELETEFROMCOLUMN.containing_type = _MUTATION _MUTATION_DELETEFROMFAMILY.containing_type = _MUTATION _MUTATION_DELETEFROMROW.containing_type = _MUTATION -_MUTATION.fields_by_name['set_cell'].message_type = _MUTATION_SETCELL -_MUTATION.fields_by_name['delete_from_column'].message_type = _MUTATION_DELETEFROMCOLUMN -_MUTATION.fields_by_name['delete_from_family'].message_type = _MUTATION_DELETEFROMFAMILY -_MUTATION.fields_by_name['delete_from_row'].message_type = _MUTATION_DELETEFROMROW -_MUTATION.oneofs_by_name['mutation'].fields.append( - _MUTATION.fields_by_name['set_cell']) -_MUTATION.fields_by_name['set_cell'].containing_oneof = _MUTATION.oneofs_by_name['mutation'] -_MUTATION.oneofs_by_name['mutation'].fields.append( - _MUTATION.fields_by_name['delete_from_column']) -_MUTATION.fields_by_name['delete_from_column'].containing_oneof = _MUTATION.oneofs_by_name['mutation'] -_MUTATION.oneofs_by_name['mutation'].fields.append( - _MUTATION.fields_by_name['delete_from_family']) -_MUTATION.fields_by_name['delete_from_family'].containing_oneof = _MUTATION.oneofs_by_name['mutation'] -_MUTATION.oneofs_by_name['mutation'].fields.append( - _MUTATION.fields_by_name['delete_from_row']) -_MUTATION.fields_by_name['delete_from_row'].containing_oneof = _MUTATION.oneofs_by_name['mutation'] -_READMODIFYWRITERULE.oneofs_by_name['rule'].fields.append( - _READMODIFYWRITERULE.fields_by_name['append_value']) -_READMODIFYWRITERULE.fields_by_name['append_value'].containing_oneof = _READMODIFYWRITERULE.oneofs_by_name['rule'] -_READMODIFYWRITERULE.oneofs_by_name['rule'].fields.append( - _READMODIFYWRITERULE.fields_by_name['increment_amount']) -_READMODIFYWRITERULE.fields_by_name['increment_amount'].containing_oneof = _READMODIFYWRITERULE.oneofs_by_name['rule'] -DESCRIPTOR.message_types_by_name['Row'] = _ROW -DESCRIPTOR.message_types_by_name['Family'] = _FAMILY -DESCRIPTOR.message_types_by_name['Column'] = _COLUMN -DESCRIPTOR.message_types_by_name['Cell'] = _CELL -DESCRIPTOR.message_types_by_name['RowRange'] = _ROWRANGE -DESCRIPTOR.message_types_by_name['RowSet'] = _ROWSET -DESCRIPTOR.message_types_by_name['ColumnRange'] = _COLUMNRANGE -DESCRIPTOR.message_types_by_name['TimestampRange'] = _TIMESTAMPRANGE -DESCRIPTOR.message_types_by_name['ValueRange'] = _VALUERANGE -DESCRIPTOR.message_types_by_name['RowFilter'] = _ROWFILTER -DESCRIPTOR.message_types_by_name['Mutation'] = _MUTATION -DESCRIPTOR.message_types_by_name['ReadModifyWriteRule'] = _READMODIFYWRITERULE +_MUTATION.fields_by_name["set_cell"].message_type = _MUTATION_SETCELL +_MUTATION.fields_by_name["delete_from_column"].message_type = _MUTATION_DELETEFROMCOLUMN +_MUTATION.fields_by_name["delete_from_family"].message_type = _MUTATION_DELETEFROMFAMILY +_MUTATION.fields_by_name["delete_from_row"].message_type = _MUTATION_DELETEFROMROW +_MUTATION.oneofs_by_name["mutation"].fields.append(_MUTATION.fields_by_name["set_cell"]) +_MUTATION.fields_by_name["set_cell"].containing_oneof = _MUTATION.oneofs_by_name[ + "mutation" +] +_MUTATION.oneofs_by_name["mutation"].fields.append( + _MUTATION.fields_by_name["delete_from_column"] +) +_MUTATION.fields_by_name[ + "delete_from_column" +].containing_oneof = _MUTATION.oneofs_by_name["mutation"] +_MUTATION.oneofs_by_name["mutation"].fields.append( + _MUTATION.fields_by_name["delete_from_family"] +) +_MUTATION.fields_by_name[ + "delete_from_family" +].containing_oneof = _MUTATION.oneofs_by_name["mutation"] +_MUTATION.oneofs_by_name["mutation"].fields.append( + _MUTATION.fields_by_name["delete_from_row"] +) +_MUTATION.fields_by_name["delete_from_row"].containing_oneof = _MUTATION.oneofs_by_name[ + "mutation" +] +_READMODIFYWRITERULE.oneofs_by_name["rule"].fields.append( + _READMODIFYWRITERULE.fields_by_name["append_value"] +) +_READMODIFYWRITERULE.fields_by_name[ + "append_value" +].containing_oneof = _READMODIFYWRITERULE.oneofs_by_name["rule"] +_READMODIFYWRITERULE.oneofs_by_name["rule"].fields.append( + _READMODIFYWRITERULE.fields_by_name["increment_amount"] +) +_READMODIFYWRITERULE.fields_by_name[ + "increment_amount" +].containing_oneof = _READMODIFYWRITERULE.oneofs_by_name["rule"] +DESCRIPTOR.message_types_by_name["Row"] = _ROW +DESCRIPTOR.message_types_by_name["Family"] = _FAMILY +DESCRIPTOR.message_types_by_name["Column"] = _COLUMN +DESCRIPTOR.message_types_by_name["Cell"] = _CELL +DESCRIPTOR.message_types_by_name["RowRange"] = _ROWRANGE +DESCRIPTOR.message_types_by_name["RowSet"] = _ROWSET +DESCRIPTOR.message_types_by_name["ColumnRange"] = _COLUMNRANGE +DESCRIPTOR.message_types_by_name["TimestampRange"] = _TIMESTAMPRANGE +DESCRIPTOR.message_types_by_name["ValueRange"] = _VALUERANGE +DESCRIPTOR.message_types_by_name["RowFilter"] = _ROWFILTER +DESCRIPTOR.message_types_by_name["Mutation"] = _MUTATION +DESCRIPTOR.message_types_by_name["ReadModifyWriteRule"] = _READMODIFYWRITERULE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Row = _reflection.GeneratedProtocolMessageType('Row', (_message.Message,), dict( - DESCRIPTOR = _ROW, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies the complete (requested) contents of a single row of a table. +Row = _reflection.GeneratedProtocolMessageType( + "Row", + (_message.Message,), + dict( + DESCRIPTOR=_ROW, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies the complete (requested) contents of a single row of a table. Rows which exceed 256MiB in size cannot be read in full. @@ -1132,15 +1952,18 @@ May be empty, but only if the entire row is empty. The mutual ordering of column families is not specified. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Row) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Row) + ), +) _sym_db.RegisterMessage(Row) -Family = _reflection.GeneratedProtocolMessageType('Family', (_message.Message,), dict( - DESCRIPTOR = _FAMILY, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies (some of) the contents of a single row/column family +Family = _reflection.GeneratedProtocolMessageType( + "Family", + (_message.Message,), + dict( + DESCRIPTOR=_FAMILY, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies (some of) the contents of a single row/column family intersection of a table. @@ -1156,15 +1979,18 @@ columns: Must not be empty. Sorted in order of increasing "qualifier". """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Family) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Family) + ), +) _sym_db.RegisterMessage(Family) -Column = _reflection.GeneratedProtocolMessageType('Column', (_message.Message,), dict( - DESCRIPTOR = _COLUMN, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies (some of) the contents of a single row/column intersection of +Column = _reflection.GeneratedProtocolMessageType( + "Column", + (_message.Message,), + dict( + DESCRIPTOR=_COLUMN, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies (some of) the contents of a single row/column intersection of a table. @@ -1179,15 +2005,18 @@ Must not be empty. Sorted in order of decreasing "timestamp\_micros". """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Column) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Column) + ), +) _sym_db.RegisterMessage(Column) -Cell = _reflection.GeneratedProtocolMessageType('Cell', (_message.Message,), dict( - DESCRIPTOR = _CELL, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies (some of) the contents of a single row/column/timestamp of a +Cell = _reflection.GeneratedProtocolMessageType( + "Cell", + (_message.Message,), + dict( + DESCRIPTOR=_CELL, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies (some of) the contents of a single row/column/timestamp of a table. @@ -1207,15 +2036,18 @@ Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Cell) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Cell) + ), +) _sym_db.RegisterMessage(Cell) -RowRange = _reflection.GeneratedProtocolMessageType('RowRange', (_message.Message,), dict( - DESCRIPTOR = _ROWRANGE, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies a contiguous range of rows. +RowRange = _reflection.GeneratedProtocolMessageType( + "RowRange", + (_message.Message,), + dict( + DESCRIPTOR=_ROWRANGE, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies a contiguous range of rows. Attributes: @@ -1234,15 +2066,18 @@ end_key_closed: Used when giving an inclusive upper bound for the range. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowRange) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowRange) + ), +) _sym_db.RegisterMessage(RowRange) -RowSet = _reflection.GeneratedProtocolMessageType('RowSet', (_message.Message,), dict( - DESCRIPTOR = _ROWSET, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies a non-contiguous set of rows. +RowSet = _reflection.GeneratedProtocolMessageType( + "RowSet", + (_message.Message,), + dict( + DESCRIPTOR=_ROWSET, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies a non-contiguous set of rows. Attributes: @@ -1251,15 +2086,18 @@ row_ranges: Contiguous row ranges included in the set. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowSet) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowSet) + ), +) _sym_db.RegisterMessage(RowSet) -ColumnRange = _reflection.GeneratedProtocolMessageType('ColumnRange', (_message.Message,), dict( - DESCRIPTOR = _COLUMNRANGE, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies a contiguous range of columns within a single column family. +ColumnRange = _reflection.GeneratedProtocolMessageType( + "ColumnRange", + (_message.Message,), + dict( + DESCRIPTOR=_COLUMNRANGE, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies a contiguous range of columns within a single column family. The range spans from : to :, where both bounds can be either inclusive or exclusive. @@ -1285,15 +2123,18 @@ end_qualifier_open: Used when giving an exclusive upper bound for the range. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ColumnRange) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ColumnRange) + ), +) _sym_db.RegisterMessage(ColumnRange) -TimestampRange = _reflection.GeneratedProtocolMessageType('TimestampRange', (_message.Message,), dict( - DESCRIPTOR = _TIMESTAMPRANGE, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specified a contiguous range of microsecond timestamps. +TimestampRange = _reflection.GeneratedProtocolMessageType( + "TimestampRange", + (_message.Message,), + dict( + DESCRIPTOR=_TIMESTAMPRANGE, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specified a contiguous range of microsecond timestamps. Attributes: @@ -1302,15 +2143,18 @@ end_timestamp_micros: Exclusive upper bound. If left empty, interpreted as infinity. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.TimestampRange) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.TimestampRange) + ), +) _sym_db.RegisterMessage(TimestampRange) -ValueRange = _reflection.GeneratedProtocolMessageType('ValueRange', (_message.Message,), dict( - DESCRIPTOR = _VALUERANGE, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies a contiguous range of raw byte values. +ValueRange = _reflection.GeneratedProtocolMessageType( + "ValueRange", + (_message.Message,), + dict( + DESCRIPTOR=_VALUERANGE, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies a contiguous range of raw byte values. Attributes: @@ -1329,17 +2173,22 @@ end_value_open: Used when giving an exclusive upper bound for the range. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ValueRange) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ValueRange) + ), +) _sym_db.RegisterMessage(ValueRange) -RowFilter = _reflection.GeneratedProtocolMessageType('RowFilter', (_message.Message,), dict( - - Chain = _reflection.GeneratedProtocolMessageType('Chain', (_message.Message,), dict( - DESCRIPTOR = _ROWFILTER_CHAIN, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """A RowFilter which sends rows through several RowFilters in sequence. +RowFilter = _reflection.GeneratedProtocolMessageType( + "RowFilter", + (_message.Message,), + dict( + Chain=_reflection.GeneratedProtocolMessageType( + "Chain", + (_message.Message,), + dict( + DESCRIPTOR=_ROWFILTER_CHAIN, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""A RowFilter which sends rows through several RowFilters in sequence. Attributes: @@ -1348,15 +2197,16 @@ input row: in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row The full chain is executed atomically. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Chain) - )) - , - - Interleave = _reflection.GeneratedProtocolMessageType('Interleave', (_message.Message,), dict( - DESCRIPTOR = _ROWFILTER_INTERLEAVE, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """A RowFilter which sends each row to each of several component RowFilters + # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Chain) + ), + ), + Interleave=_reflection.GeneratedProtocolMessageType( + "Interleave", + (_message.Message,), + dict( + DESCRIPTOR=_ROWFILTER_INTERLEAVE, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""A RowFilter which sends each row to each of several component RowFilters and interleaves the results. @@ -1386,15 +2236,16 @@ far,blah,5,x // identical to #5 All interleaved filters are executed atomically. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Interleave) - )) - , - - Condition = _reflection.GeneratedProtocolMessageType('Condition', (_message.Message,), dict( - DESCRIPTOR = _ROWFILTER_CONDITION, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """A RowFilter which evaluates one of two possible RowFilters, depending on + # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Interleave) + ), + ), + Condition=_reflection.GeneratedProtocolMessageType( + "Condition", + (_message.Message,), + dict( + DESCRIPTOR=_ROWFILTER_CONDITION, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""A RowFilter which evaluates one of two possible RowFilters, depending on whether or not a predicate RowFilter outputs any cells from the input row. @@ -1418,13 +2269,12 @@ does not return any results. If not provided, no results will be returned in the false case. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Condition) - )) - , - DESCRIPTOR = _ROWFILTER, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Takes a row as input and produces an alternate view of the row based on + # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Condition) + ), + ), + DESCRIPTOR=_ROWFILTER, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Takes a row as input and produces an alternate view of the row based on specified rules. For example, a RowFilter might trim down a row to include just the cells from columns matching a given regular expression, or might return all the cells of a row but not their values. More @@ -1595,20 +2445,25 @@ as they will be applied to separate copies of the input. This may be relaxed in the future. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter) + ), +) _sym_db.RegisterMessage(RowFilter) _sym_db.RegisterMessage(RowFilter.Chain) _sym_db.RegisterMessage(RowFilter.Interleave) _sym_db.RegisterMessage(RowFilter.Condition) -Mutation = _reflection.GeneratedProtocolMessageType('Mutation', (_message.Message,), dict( - - SetCell = _reflection.GeneratedProtocolMessageType('SetCell', (_message.Message,), dict( - DESCRIPTOR = _MUTATION_SETCELL, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """A Mutation which sets the value of the specified cell. +Mutation = _reflection.GeneratedProtocolMessageType( + "Mutation", + (_message.Message,), + dict( + SetCell=_reflection.GeneratedProtocolMessageType( + "SetCell", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATION_SETCELL, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""A Mutation which sets the value of the specified cell. Attributes: @@ -1628,15 +2483,16 @@ value: The value to be written into the specified cell. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.SetCell) - )) - , - - DeleteFromColumn = _reflection.GeneratedProtocolMessageType('DeleteFromColumn', (_message.Message,), dict( - DESCRIPTOR = _MUTATION_DELETEFROMCOLUMN, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """A Mutation which deletes cells from the specified column, optionally + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.SetCell) + ), + ), + DeleteFromColumn=_reflection.GeneratedProtocolMessageType( + "DeleteFromColumn", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATION_DELETEFROMCOLUMN, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""A Mutation which deletes cells from the specified column, optionally restricting the deletions to a given timestamp range. @@ -1650,15 +2506,16 @@ time_range: The range of timestamps within which cells should be deleted. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromColumn) - )) - , - - DeleteFromFamily = _reflection.GeneratedProtocolMessageType('DeleteFromFamily', (_message.Message,), dict( - DESCRIPTOR = _MUTATION_DELETEFROMFAMILY, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """A Mutation which deletes all cells from the specified column family. + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromColumn) + ), + ), + DeleteFromFamily=_reflection.GeneratedProtocolMessageType( + "DeleteFromFamily", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATION_DELETEFROMFAMILY, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""A Mutation which deletes all cells from the specified column family. Attributes: @@ -1666,23 +2523,23 @@ The name of the family from which cells should be deleted. Must match ``[-_.a-zA-Z0-9]+`` """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromFamily) - )) - , - - DeleteFromRow = _reflection.GeneratedProtocolMessageType('DeleteFromRow', (_message.Message,), dict( - DESCRIPTOR = _MUTATION_DELETEFROMROW, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """A Mutation which deletes all cells from the containing row. + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromFamily) + ), + ), + DeleteFromRow=_reflection.GeneratedProtocolMessageType( + "DeleteFromRow", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATION_DELETEFROMROW, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""A Mutation which deletes all cells from the containing row. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromRow) - )) - , - DESCRIPTOR = _MUTATION, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies a particular change to be made to the contents of a row. + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromRow) + ), + ), + DESCRIPTOR=_MUTATION, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies a particular change to be made to the contents of a row. Attributes: @@ -1697,19 +2554,22 @@ delete_from_row: Deletes cells from the entire row. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation) + ), +) _sym_db.RegisterMessage(Mutation) _sym_db.RegisterMessage(Mutation.SetCell) _sym_db.RegisterMessage(Mutation.DeleteFromColumn) _sym_db.RegisterMessage(Mutation.DeleteFromFamily) _sym_db.RegisterMessage(Mutation.DeleteFromRow) -ReadModifyWriteRule = _reflection.GeneratedProtocolMessageType('ReadModifyWriteRule', (_message.Message,), dict( - DESCRIPTOR = _READMODIFYWRITERULE, - __module__ = 'google.cloud.bigtable_v2.proto.data_pb2' - , - __doc__ = """Specifies an atomic read/modify/write operation on the latest value of +ReadModifyWriteRule = _reflection.GeneratedProtocolMessageType( + "ReadModifyWriteRule", + (_message.Message,), + dict( + DESCRIPTOR=_READMODIFYWRITERULE, + __module__="google.cloud.bigtable_v2.proto.data_pb2", + __doc__="""Specifies an atomic read/modify/write operation on the latest value of the specified column. @@ -1735,11 +2595,17 @@ must contain an 8-byte value (interpreted as a 64-bit big- endian signed integer), or the entire request will fail. """, - # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRule) - )) + # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRule) + ), +) _sym_db.RegisterMessage(ReadModifyWriteRule) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\026com.google.bigtable.v2B\tDataProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\026com.google.bigtable.v2B\tDataProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/bigtable/google/cloud/bigtable_v2/proto/data_pb2_grpc.py b/bigtable/google/cloud/bigtable_v2/proto/data_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/bigtable/google/cloud/bigtable_v2/proto/data_pb2_grpc.py +++ b/bigtable/google/cloud/bigtable_v2/proto/data_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/container/google/cloud/container_v1/__init__.py b/container/google/cloud/container_v1/__init__.py index 174e3fb4faa96..a249d25f7e149 100644 --- a/container/google/cloud/container_v1/__init__.py +++ b/container/google/cloud/container_v1/__init__.py @@ -26,8 +26,4 @@ class ClusterManagerClient(cluster_manager_client.ClusterManagerClient): enums = enums -__all__ = ( - 'enums', - 'types', - 'ClusterManagerClient', -) +__all__ = ("enums", "types", "ClusterManagerClient") diff --git a/container/google/cloud/container_v1/gapic/cluster_manager_client.py b/container/google/cloud/container_v1/gapic/cluster_manager_client.py index c0acbdd8d6b5c..ce004e1b4f002 100644 --- a/container/google/cloud/container_v1/gapic/cluster_manager_client.py +++ b/container/google/cloud/container_v1/gapic/cluster_manager_client.py @@ -33,18 +33,19 @@ from google.protobuf import empty_pb2 _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-container', ).version + "google-cloud-container" +).version class ClusterManagerClient(object): """Google Kubernetes Engine Cluster Manager v1""" - SERVICE_ADDRESS = 'container.googleapis.com:443' + SERVICE_ADDRESS = "container.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.container.v1.ClusterManager' + _INTERFACE_NAME = "google.container.v1.ClusterManager" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -60,19 +61,20 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: ClusterManagerClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -106,18 +108,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = cluster_manager_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -126,25 +129,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=cluster_manager_grpc_transport. - ClusterManagerGrpcTransport, + default_class=cluster_manager_grpc_transport.ClusterManagerGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = cluster_manager_grpc_transport.ClusterManagerGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -154,7 +156,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -163,13 +166,15 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def list_clusters(self, - project_id, - zone, - parent=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def list_clusters( + self, + project_id, + zone, + parent=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists all clusters owned by a project in either the specified zone or all zones. @@ -218,32 +223,33 @@ def list_clusters(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_clusters' not in self._inner_api_calls: + if "list_clusters" not in self._inner_api_calls: self._inner_api_calls[ - 'list_clusters'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_clusters, - default_retry=self._method_configs['ListClusters'].retry, - default_timeout=self._method_configs['ListClusters']. - timeout, - client_info=self._client_info, - ) + "list_clusters" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_clusters, + default_retry=self._method_configs["ListClusters"].retry, + default_timeout=self._method_configs["ListClusters"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.ListClustersRequest( - project_id=project_id, - zone=zone, - parent=parent, + project_id=project_id, zone=zone, parent=parent + ) + return self._inner_api_calls["list_clusters"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['list_clusters']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_cluster(self, - project_id, - zone, - cluster_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def get_cluster( + self, + project_id, + zone, + cluster_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets the details of a specific cluster. @@ -295,32 +301,33 @@ def get_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_cluster' not in self._inner_api_calls: + if "get_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'get_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_cluster, - default_retry=self._method_configs['GetCluster'].retry, - default_timeout=self._method_configs['GetCluster'].timeout, - client_info=self._client_info, - ) + "get_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_cluster, + default_retry=self._method_configs["GetCluster"].retry, + default_timeout=self._method_configs["GetCluster"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.GetClusterRequest( - project_id=project_id, - zone=zone, - cluster_id=cluster_id, - name=name, + project_id=project_id, zone=zone, cluster_id=cluster_id, name=name + ) + return self._inner_api_calls["get_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['get_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def create_cluster(self, - project_id, - zone, - cluster, - parent=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def create_cluster( + self, + project_id, + zone, + cluster, + parent=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. @@ -386,34 +393,34 @@ def create_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'create_cluster' not in self._inner_api_calls: + if "create_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'create_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_cluster, - default_retry=self._method_configs['CreateCluster'].retry, - default_timeout=self._method_configs['CreateCluster']. - timeout, - client_info=self._client_info, - ) + "create_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_cluster, + default_retry=self._method_configs["CreateCluster"].retry, + default_timeout=self._method_configs["CreateCluster"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.CreateClusterRequest( - project_id=project_id, - zone=zone, - cluster=cluster, - parent=parent, + project_id=project_id, zone=zone, cluster=cluster, parent=parent + ) + return self._inner_api_calls["create_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['create_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def update_cluster(self, - project_id, - zone, - cluster_id, - update, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def update_cluster( + self, + project_id, + zone, + cluster_id, + update, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Updates the settings of a specific cluster. @@ -472,15 +479,15 @@ def update_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'update_cluster' not in self._inner_api_calls: + if "update_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'update_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_cluster, - default_retry=self._method_configs['UpdateCluster'].retry, - default_timeout=self._method_configs['UpdateCluster']. - timeout, - client_info=self._client_info, - ) + "update_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_cluster, + default_retry=self._method_configs["UpdateCluster"].retry, + default_timeout=self._method_configs["UpdateCluster"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.UpdateClusterRequest( project_id=project_id, @@ -489,20 +496,23 @@ def update_cluster(self, update=update, name=name, ) - return self._inner_api_calls['update_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def update_node_pool(self, - project_id, - zone, - cluster_id, - node_pool_id, - node_version, - image_type, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["update_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def update_node_pool( + self, + project_id, + zone, + cluster_id, + node_pool_id, + node_version, + image_type, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Updates the version and/or image type for a specific node pool. @@ -578,15 +588,15 @@ def update_node_pool(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'update_node_pool' not in self._inner_api_calls: + if "update_node_pool" not in self._inner_api_calls: self._inner_api_calls[ - 'update_node_pool'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_node_pool, - default_retry=self._method_configs['UpdateNodePool'].retry, - default_timeout=self._method_configs['UpdateNodePool']. - timeout, - client_info=self._client_info, - ) + "update_node_pool" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_node_pool, + default_retry=self._method_configs["UpdateNodePool"].retry, + default_timeout=self._method_configs["UpdateNodePool"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.UpdateNodePoolRequest( project_id=project_id, @@ -597,20 +607,22 @@ def update_node_pool(self, image_type=image_type, name=name, ) - return self._inner_api_calls['update_node_pool']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["update_node_pool"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) def set_node_pool_autoscaling( - self, - project_id, - zone, - cluster_id, - node_pool_id, - autoscaling, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + project_id, + zone, + cluster_id, + node_pool_id, + autoscaling, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the autoscaling settings for a specific node pool. @@ -675,16 +687,15 @@ def set_node_pool_autoscaling( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_node_pool_autoscaling' not in self._inner_api_calls: + if "set_node_pool_autoscaling" not in self._inner_api_calls: self._inner_api_calls[ - 'set_node_pool_autoscaling'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_node_pool_autoscaling, - default_retry=self. - _method_configs['SetNodePoolAutoscaling'].retry, - default_timeout=self. - _method_configs['SetNodePoolAutoscaling'].timeout, - client_info=self._client_info, - ) + "set_node_pool_autoscaling" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_node_pool_autoscaling, + default_retry=self._method_configs["SetNodePoolAutoscaling"].retry, + default_timeout=self._method_configs["SetNodePoolAutoscaling"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetNodePoolAutoscalingRequest( project_id=project_id, @@ -694,18 +705,21 @@ def set_node_pool_autoscaling( autoscaling=autoscaling, name=name, ) - return self._inner_api_calls['set_node_pool_autoscaling']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_logging_service(self, - project_id, - zone, - cluster_id, - logging_service, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_node_pool_autoscaling"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_logging_service( + self, + project_id, + zone, + cluster_id, + logging_service, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the logging service for a specific cluster. @@ -765,16 +779,15 @@ def set_logging_service(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_logging_service' not in self._inner_api_calls: + if "set_logging_service" not in self._inner_api_calls: self._inner_api_calls[ - 'set_logging_service'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_logging_service, - default_retry=self._method_configs['SetLoggingService']. - retry, - default_timeout=self._method_configs['SetLoggingService']. - timeout, - client_info=self._client_info, - ) + "set_logging_service" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_logging_service, + default_retry=self._method_configs["SetLoggingService"].retry, + default_timeout=self._method_configs["SetLoggingService"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetLoggingServiceRequest( project_id=project_id, @@ -783,18 +796,21 @@ def set_logging_service(self, logging_service=logging_service, name=name, ) - return self._inner_api_calls['set_logging_service']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_monitoring_service(self, - project_id, - zone, - cluster_id, - monitoring_service, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_logging_service"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_monitoring_service( + self, + project_id, + zone, + cluster_id, + monitoring_service, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the monitoring service for a specific cluster. @@ -854,16 +870,15 @@ def set_monitoring_service(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_monitoring_service' not in self._inner_api_calls: + if "set_monitoring_service" not in self._inner_api_calls: self._inner_api_calls[ - 'set_monitoring_service'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_monitoring_service, - default_retry=self._method_configs['SetMonitoringService']. - retry, - default_timeout=self. - _method_configs['SetMonitoringService'].timeout, - client_info=self._client_info, - ) + "set_monitoring_service" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_monitoring_service, + default_retry=self._method_configs["SetMonitoringService"].retry, + default_timeout=self._method_configs["SetMonitoringService"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetMonitoringServiceRequest( project_id=project_id, @@ -872,18 +887,21 @@ def set_monitoring_service(self, monitoring_service=monitoring_service, name=name, ) - return self._inner_api_calls['set_monitoring_service']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_addons_config(self, - project_id, - zone, - cluster_id, - addons_config, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_monitoring_service"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_addons_config( + self, + project_id, + zone, + cluster_id, + addons_config, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the addons for a specific cluster. @@ -943,16 +961,15 @@ def set_addons_config(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_addons_config' not in self._inner_api_calls: + if "set_addons_config" not in self._inner_api_calls: self._inner_api_calls[ - 'set_addons_config'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_addons_config, - default_retry=self._method_configs['SetAddonsConfig']. - retry, - default_timeout=self._method_configs['SetAddonsConfig']. - timeout, - client_info=self._client_info, - ) + "set_addons_config" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_addons_config, + default_retry=self._method_configs["SetAddonsConfig"].retry, + default_timeout=self._method_configs["SetAddonsConfig"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetAddonsConfigRequest( project_id=project_id, @@ -961,18 +978,21 @@ def set_addons_config(self, addons_config=addons_config, name=name, ) - return self._inner_api_calls['set_addons_config']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_locations(self, - project_id, - zone, - cluster_id, - locations, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_addons_config"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_locations( + self, + project_id, + zone, + cluster_id, + locations, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the locations for a specific cluster. @@ -1034,15 +1054,15 @@ def set_locations(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_locations' not in self._inner_api_calls: + if "set_locations" not in self._inner_api_calls: self._inner_api_calls[ - 'set_locations'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_locations, - default_retry=self._method_configs['SetLocations'].retry, - default_timeout=self._method_configs['SetLocations']. - timeout, - client_info=self._client_info, - ) + "set_locations" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_locations, + default_retry=self._method_configs["SetLocations"].retry, + default_timeout=self._method_configs["SetLocations"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetLocationsRequest( project_id=project_id, @@ -1051,18 +1071,21 @@ def set_locations(self, locations=locations, name=name, ) - return self._inner_api_calls['set_locations']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def update_master(self, - project_id, - zone, - cluster_id, - master_version, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_locations"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def update_master( + self, + project_id, + zone, + cluster_id, + master_version, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Updates the master for a specific cluster. @@ -1127,15 +1150,15 @@ def update_master(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'update_master' not in self._inner_api_calls: + if "update_master" not in self._inner_api_calls: self._inner_api_calls[ - 'update_master'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_master, - default_retry=self._method_configs['UpdateMaster'].retry, - default_timeout=self._method_configs['UpdateMaster']. - timeout, - client_info=self._client_info, - ) + "update_master" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_master, + default_retry=self._method_configs["UpdateMaster"].retry, + default_timeout=self._method_configs["UpdateMaster"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.UpdateMasterRequest( project_id=project_id, @@ -1144,19 +1167,22 @@ def update_master(self, master_version=master_version, name=name, ) - return self._inner_api_calls['update_master']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_master_auth(self, - project_id, - zone, - cluster_id, - action, - update, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["update_master"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_master_auth( + self, + project_id, + zone, + cluster_id, + action, + update, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Used to set master auth materials. Currently supports :- Changing the admin password for a specific cluster. @@ -1222,15 +1248,15 @@ def set_master_auth(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_master_auth' not in self._inner_api_calls: + if "set_master_auth" not in self._inner_api_calls: self._inner_api_calls[ - 'set_master_auth'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_master_auth, - default_retry=self._method_configs['SetMasterAuth'].retry, - default_timeout=self._method_configs['SetMasterAuth']. - timeout, - client_info=self._client_info, - ) + "set_master_auth" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_master_auth, + default_retry=self._method_configs["SetMasterAuth"].retry, + default_timeout=self._method_configs["SetMasterAuth"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetMasterAuthRequest( project_id=project_id, @@ -1240,17 +1266,20 @@ def set_master_auth(self, update=update, name=name, ) - return self._inner_api_calls['set_master_auth']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def delete_cluster(self, - project_id, - zone, - cluster_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_master_auth"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def delete_cluster( + self, + project_id, + zone, + cluster_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deletes the cluster, including the Kubernetes endpoint and all worker nodes. @@ -1310,32 +1339,32 @@ def delete_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'delete_cluster' not in self._inner_api_calls: + if "delete_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'delete_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_cluster, - default_retry=self._method_configs['DeleteCluster'].retry, - default_timeout=self._method_configs['DeleteCluster']. - timeout, - client_info=self._client_info, - ) + "delete_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_cluster, + default_retry=self._method_configs["DeleteCluster"].retry, + default_timeout=self._method_configs["DeleteCluster"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.DeleteClusterRequest( - project_id=project_id, - zone=zone, - cluster_id=cluster_id, - name=name, + project_id=project_id, zone=zone, cluster_id=cluster_id, name=name + ) + return self._inner_api_calls["delete_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['delete_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_operations(self, - project_id, - zone, - parent=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def list_operations( + self, + project_id, + zone, + parent=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists all operations in a project in a specific zone or all zones. @@ -1383,32 +1412,33 @@ def list_operations(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_operations' not in self._inner_api_calls: + if "list_operations" not in self._inner_api_calls: self._inner_api_calls[ - 'list_operations'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_operations, - default_retry=self._method_configs['ListOperations'].retry, - default_timeout=self._method_configs['ListOperations']. - timeout, - client_info=self._client_info, - ) + "list_operations" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_operations, + default_retry=self._method_configs["ListOperations"].retry, + default_timeout=self._method_configs["ListOperations"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.ListOperationsRequest( - project_id=project_id, - zone=zone, - parent=parent, + project_id=project_id, zone=zone, parent=parent + ) + return self._inner_api_calls["list_operations"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['list_operations']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_operation(self, - project_id, - zone, - operation_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def get_operation( + self, + project_id, + zone, + operation_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets the specified operation. @@ -1460,33 +1490,33 @@ def get_operation(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_operation' not in self._inner_api_calls: + if "get_operation" not in self._inner_api_calls: self._inner_api_calls[ - 'get_operation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_operation, - default_retry=self._method_configs['GetOperation'].retry, - default_timeout=self._method_configs['GetOperation']. - timeout, - client_info=self._client_info, - ) + "get_operation" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_operation, + default_retry=self._method_configs["GetOperation"].retry, + default_timeout=self._method_configs["GetOperation"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.GetOperationRequest( - project_id=project_id, - zone=zone, - operation_id=operation_id, - name=name, + project_id=project_id, zone=zone, operation_id=operation_id, name=name + ) + return self._inner_api_calls["get_operation"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['get_operation']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def cancel_operation(self, - project_id, - zone, - operation_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def cancel_operation( + self, + project_id, + zone, + operation_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Cancels the specified operation. @@ -1535,33 +1565,32 @@ def cancel_operation(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'cancel_operation' not in self._inner_api_calls: + if "cancel_operation" not in self._inner_api_calls: self._inner_api_calls[ - 'cancel_operation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.cancel_operation, - default_retry=self._method_configs['CancelOperation']. - retry, - default_timeout=self._method_configs['CancelOperation']. - timeout, - client_info=self._client_info, - ) + "cancel_operation" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.cancel_operation, + default_retry=self._method_configs["CancelOperation"].retry, + default_timeout=self._method_configs["CancelOperation"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.CancelOperationRequest( - project_id=project_id, - zone=zone, - operation_id=operation_id, - name=name, + project_id=project_id, zone=zone, operation_id=operation_id, name=name + ) + self._inner_api_calls["cancel_operation"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - self._inner_api_calls['cancel_operation']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_server_config(self, - project_id, - zone, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def get_server_config( + self, + project_id, + zone, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Returns configuration info about the Kubernetes Engine service. @@ -1608,33 +1637,33 @@ def get_server_config(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_server_config' not in self._inner_api_calls: + if "get_server_config" not in self._inner_api_calls: self._inner_api_calls[ - 'get_server_config'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_server_config, - default_retry=self._method_configs['GetServerConfig']. - retry, - default_timeout=self._method_configs['GetServerConfig']. - timeout, - client_info=self._client_info, - ) + "get_server_config" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_server_config, + default_retry=self._method_configs["GetServerConfig"].retry, + default_timeout=self._method_configs["GetServerConfig"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.GetServerConfigRequest( - project_id=project_id, - zone=zone, - name=name, + project_id=project_id, zone=zone, name=name ) - return self._inner_api_calls['get_server_config']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_node_pools(self, - project_id, - zone, - cluster_id, - parent=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["get_server_config"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def list_node_pools( + self, + project_id, + zone, + cluster_id, + parent=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists the node pools for a cluster. @@ -1686,34 +1715,34 @@ def list_node_pools(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_node_pools' not in self._inner_api_calls: + if "list_node_pools" not in self._inner_api_calls: self._inner_api_calls[ - 'list_node_pools'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_node_pools, - default_retry=self._method_configs['ListNodePools'].retry, - default_timeout=self._method_configs['ListNodePools']. - timeout, - client_info=self._client_info, - ) + "list_node_pools" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_node_pools, + default_retry=self._method_configs["ListNodePools"].retry, + default_timeout=self._method_configs["ListNodePools"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.ListNodePoolsRequest( - project_id=project_id, - zone=zone, - cluster_id=cluster_id, - parent=parent, + project_id=project_id, zone=zone, cluster_id=cluster_id, parent=parent + ) + return self._inner_api_calls["list_node_pools"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['list_node_pools']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_node_pool(self, - project_id, - zone, - cluster_id, - node_pool_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def get_node_pool( + self, + project_id, + zone, + cluster_id, + node_pool_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Retrieves the node pool requested. @@ -1771,15 +1800,15 @@ def get_node_pool(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_node_pool' not in self._inner_api_calls: + if "get_node_pool" not in self._inner_api_calls: self._inner_api_calls[ - 'get_node_pool'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_node_pool, - default_retry=self._method_configs['GetNodePool'].retry, - default_timeout=self._method_configs['GetNodePool']. - timeout, - client_info=self._client_info, - ) + "get_node_pool" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_node_pool, + default_retry=self._method_configs["GetNodePool"].retry, + default_timeout=self._method_configs["GetNodePool"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.GetNodePoolRequest( project_id=project_id, @@ -1788,18 +1817,21 @@ def get_node_pool(self, node_pool_id=node_pool_id, name=name, ) - return self._inner_api_calls['get_node_pool']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def create_node_pool(self, - project_id, - zone, - cluster_id, - node_pool, - parent=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["get_node_pool"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def create_node_pool( + self, + project_id, + zone, + cluster_id, + node_pool, + parent=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates a node pool for a cluster. @@ -1858,15 +1890,15 @@ def create_node_pool(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'create_node_pool' not in self._inner_api_calls: + if "create_node_pool" not in self._inner_api_calls: self._inner_api_calls[ - 'create_node_pool'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_node_pool, - default_retry=self._method_configs['CreateNodePool'].retry, - default_timeout=self._method_configs['CreateNodePool']. - timeout, - client_info=self._client_info, - ) + "create_node_pool" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_node_pool, + default_retry=self._method_configs["CreateNodePool"].retry, + default_timeout=self._method_configs["CreateNodePool"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.CreateNodePoolRequest( project_id=project_id, @@ -1875,18 +1907,21 @@ def create_node_pool(self, node_pool=node_pool, parent=parent, ) - return self._inner_api_calls['create_node_pool']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def delete_node_pool(self, - project_id, - zone, - cluster_id, - node_pool_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["create_node_pool"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def delete_node_pool( + self, + project_id, + zone, + cluster_id, + node_pool_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deletes a node pool from a cluster. @@ -1944,15 +1979,15 @@ def delete_node_pool(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'delete_node_pool' not in self._inner_api_calls: + if "delete_node_pool" not in self._inner_api_calls: self._inner_api_calls[ - 'delete_node_pool'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_node_pool, - default_retry=self._method_configs['DeleteNodePool'].retry, - default_timeout=self._method_configs['DeleteNodePool']. - timeout, - client_info=self._client_info, - ) + "delete_node_pool" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_node_pool, + default_retry=self._method_configs["DeleteNodePool"].retry, + default_timeout=self._method_configs["DeleteNodePool"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.DeleteNodePoolRequest( project_id=project_id, @@ -1961,19 +1996,21 @@ def delete_node_pool(self, node_pool_id=node_pool_id, name=name, ) - return self._inner_api_calls['delete_node_pool']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["delete_node_pool"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) def rollback_node_pool_upgrade( - self, - project_id, - zone, - cluster_id, - node_pool_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + project_id, + zone, + cluster_id, + node_pool_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed. @@ -2032,16 +2069,15 @@ def rollback_node_pool_upgrade( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'rollback_node_pool_upgrade' not in self._inner_api_calls: + if "rollback_node_pool_upgrade" not in self._inner_api_calls: self._inner_api_calls[ - 'rollback_node_pool_upgrade'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.rollback_node_pool_upgrade, - default_retry=self. - _method_configs['RollbackNodePoolUpgrade'].retry, - default_timeout=self. - _method_configs['RollbackNodePoolUpgrade'].timeout, - client_info=self._client_info, - ) + "rollback_node_pool_upgrade" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.rollback_node_pool_upgrade, + default_retry=self._method_configs["RollbackNodePoolUpgrade"].retry, + default_timeout=self._method_configs["RollbackNodePoolUpgrade"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.RollbackNodePoolUpgradeRequest( project_id=project_id, @@ -2050,20 +2086,22 @@ def rollback_node_pool_upgrade( node_pool_id=node_pool_id, name=name, ) - return self._inner_api_calls['rollback_node_pool_upgrade']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["rollback_node_pool_upgrade"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) def set_node_pool_management( - self, - project_id, - zone, - cluster_id, - node_pool_id, - management, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + project_id, + zone, + cluster_id, + node_pool_id, + management, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the NodeManagement options for a node pool. @@ -2128,16 +2166,15 @@ def set_node_pool_management( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_node_pool_management' not in self._inner_api_calls: + if "set_node_pool_management" not in self._inner_api_calls: self._inner_api_calls[ - 'set_node_pool_management'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_node_pool_management, - default_retry=self. - _method_configs['SetNodePoolManagement'].retry, - default_timeout=self. - _method_configs['SetNodePoolManagement'].timeout, - client_info=self._client_info, - ) + "set_node_pool_management" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_node_pool_management, + default_retry=self._method_configs["SetNodePoolManagement"].retry, + default_timeout=self._method_configs["SetNodePoolManagement"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetNodePoolManagementRequest( project_id=project_id, @@ -2147,19 +2184,22 @@ def set_node_pool_management( management=management, name=name, ) - return self._inner_api_calls['set_node_pool_management']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_labels(self, - project_id, - zone, - cluster_id, - resource_labels, - label_fingerprint, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_node_pool_management"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_labels( + self, + project_id, + zone, + cluster_id, + resource_labels, + label_fingerprint, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets labels on a cluster. @@ -2224,14 +2264,15 @@ def set_labels(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_labels' not in self._inner_api_calls: + if "set_labels" not in self._inner_api_calls: self._inner_api_calls[ - 'set_labels'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_labels, - default_retry=self._method_configs['SetLabels'].retry, - default_timeout=self._method_configs['SetLabels'].timeout, - client_info=self._client_info, - ) + "set_labels" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_labels, + default_retry=self._method_configs["SetLabels"].retry, + default_timeout=self._method_configs["SetLabels"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetLabelsRequest( project_id=project_id, @@ -2241,18 +2282,21 @@ def set_labels(self, label_fingerprint=label_fingerprint, name=name, ) - return self._inner_api_calls['set_labels']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_legacy_abac(self, - project_id, - zone, - cluster_id, - enabled, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_labels"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_legacy_abac( + self, + project_id, + zone, + cluster_id, + enabled, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Enables or disables the ABAC authorization mechanism on a cluster. @@ -2308,15 +2352,15 @@ def set_legacy_abac(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_legacy_abac' not in self._inner_api_calls: + if "set_legacy_abac" not in self._inner_api_calls: self._inner_api_calls[ - 'set_legacy_abac'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_legacy_abac, - default_retry=self._method_configs['SetLegacyAbac'].retry, - default_timeout=self._method_configs['SetLegacyAbac']. - timeout, - client_info=self._client_info, - ) + "set_legacy_abac" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_legacy_abac, + default_retry=self._method_configs["SetLegacyAbac"].retry, + default_timeout=self._method_configs["SetLegacyAbac"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetLegacyAbacRequest( project_id=project_id, @@ -2325,18 +2369,21 @@ def set_legacy_abac(self, enabled=enabled, name=name, ) - return self._inner_api_calls['set_legacy_abac']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def start_i_p_rotation(self, - project_id, - zone, - cluster_id, - name=None, - rotate_credentials=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_legacy_abac"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def start_i_p_rotation( + self, + project_id, + zone, + cluster_id, + name=None, + rotate_credentials=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Start master IP rotation. @@ -2389,16 +2436,15 @@ def start_i_p_rotation(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'start_i_p_rotation' not in self._inner_api_calls: + if "start_i_p_rotation" not in self._inner_api_calls: self._inner_api_calls[ - 'start_i_p_rotation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.start_i_p_rotation, - default_retry=self._method_configs['StartIPRotation']. - retry, - default_timeout=self._method_configs['StartIPRotation']. - timeout, - client_info=self._client_info, - ) + "start_i_p_rotation" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.start_i_p_rotation, + default_retry=self._method_configs["StartIPRotation"].retry, + default_timeout=self._method_configs["StartIPRotation"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.StartIPRotationRequest( project_id=project_id, @@ -2407,17 +2453,20 @@ def start_i_p_rotation(self, name=name, rotate_credentials=rotate_credentials, ) - return self._inner_api_calls['start_i_p_rotation']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def complete_i_p_rotation(self, - project_id, - zone, - cluster_id, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["start_i_p_rotation"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def complete_i_p_rotation( + self, + project_id, + zone, + cluster_id, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Completes master IP rotation. @@ -2469,36 +2518,35 @@ def complete_i_p_rotation(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'complete_i_p_rotation' not in self._inner_api_calls: + if "complete_i_p_rotation" not in self._inner_api_calls: self._inner_api_calls[ - 'complete_i_p_rotation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.complete_i_p_rotation, - default_retry=self._method_configs['CompleteIPRotation']. - retry, - default_timeout=self._method_configs['CompleteIPRotation']. - timeout, - client_info=self._client_info, - ) + "complete_i_p_rotation" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.complete_i_p_rotation, + default_retry=self._method_configs["CompleteIPRotation"].retry, + default_timeout=self._method_configs["CompleteIPRotation"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.CompleteIPRotationRequest( - project_id=project_id, - zone=zone, - cluster_id=cluster_id, - name=name, + project_id=project_id, zone=zone, cluster_id=cluster_id, name=name + ) + return self._inner_api_calls["complete_i_p_rotation"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['complete_i_p_rotation']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_node_pool_size(self, - project_id, - zone, - cluster_id, - node_pool_id, - node_count, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def set_node_pool_size( + self, + project_id, + zone, + cluster_id, + node_pool_id, + node_count, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the size for a specific node pool. @@ -2560,16 +2608,15 @@ def set_node_pool_size(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_node_pool_size' not in self._inner_api_calls: + if "set_node_pool_size" not in self._inner_api_calls: self._inner_api_calls[ - 'set_node_pool_size'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_node_pool_size, - default_retry=self._method_configs['SetNodePoolSize']. - retry, - default_timeout=self._method_configs['SetNodePoolSize']. - timeout, - client_info=self._client_info, - ) + "set_node_pool_size" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_node_pool_size, + default_retry=self._method_configs["SetNodePoolSize"].retry, + default_timeout=self._method_configs["SetNodePoolSize"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetNodePoolSizeRequest( project_id=project_id, @@ -2579,18 +2626,21 @@ def set_node_pool_size(self, node_count=node_count, name=name, ) - return self._inner_api_calls['set_node_pool_size']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_network_policy(self, - project_id, - zone, - cluster_id, - network_policy, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_node_pool_size"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_network_policy( + self, + project_id, + zone, + cluster_id, + network_policy, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Enables/Disables Network Policy for a cluster. @@ -2650,16 +2700,15 @@ def set_network_policy(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_network_policy' not in self._inner_api_calls: + if "set_network_policy" not in self._inner_api_calls: self._inner_api_calls[ - 'set_network_policy'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_network_policy, - default_retry=self._method_configs['SetNetworkPolicy']. - retry, - default_timeout=self._method_configs['SetNetworkPolicy']. - timeout, - client_info=self._client_info, - ) + "set_network_policy" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_network_policy, + default_retry=self._method_configs["SetNetworkPolicy"].retry, + default_timeout=self._method_configs["SetNetworkPolicy"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetNetworkPolicyRequest( project_id=project_id, @@ -2668,18 +2717,21 @@ def set_network_policy(self, network_policy=network_policy, name=name, ) - return self._inner_api_calls['set_network_policy']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def set_maintenance_policy(self, - project_id, - zone, - cluster_id, - maintenance_policy, - name=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["set_network_policy"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def set_maintenance_policy( + self, + project_id, + zone, + cluster_id, + maintenance_policy, + name=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Sets the maintenance policy for a cluster. @@ -2737,16 +2789,15 @@ def set_maintenance_policy(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'set_maintenance_policy' not in self._inner_api_calls: + if "set_maintenance_policy" not in self._inner_api_calls: self._inner_api_calls[ - 'set_maintenance_policy'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.set_maintenance_policy, - default_retry=self._method_configs['SetMaintenancePolicy']. - retry, - default_timeout=self. - _method_configs['SetMaintenancePolicy'].timeout, - client_info=self._client_info, - ) + "set_maintenance_policy" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.set_maintenance_policy, + default_retry=self._method_configs["SetMaintenancePolicy"].retry, + default_timeout=self._method_configs["SetMaintenancePolicy"].timeout, + client_info=self._client_info, + ) request = cluster_service_pb2.SetMaintenancePolicyRequest( project_id=project_id, @@ -2755,5 +2806,6 @@ def set_maintenance_policy(self, maintenance_policy=maintenance_policy, name=name, ) - return self._inner_api_calls['set_maintenance_policy']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls["set_maintenance_policy"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) diff --git a/container/google/cloud/container_v1/gapic/cluster_manager_client_config.py b/container/google/cloud/container_v1/gapic/cluster_manager_client_config.py index c48f8bc20ebf1..cf96a732a581d 100644 --- a/container/google/cloud/container_v1/gapic/cluster_manager_client_config.py +++ b/container/google/cloud/container_v1/gapic/cluster_manager_client_config.py @@ -3,7 +3,7 @@ "google.container.v1.ClusterManager": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] + "non_idempotent": [], }, "retry_params": { "default": { @@ -13,161 +13,161 @@ "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 + "total_timeout_millis": 600000, } }, "methods": { "ListClusters": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetCluster": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "CreateCluster": { "timeout_millis": 45000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "UpdateCluster": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "UpdateNodePool": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetNodePoolAutoscaling": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetLoggingService": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetMonitoringService": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetAddonsConfig": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetLocations": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "UpdateMaster": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetMasterAuth": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeleteCluster": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListOperations": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetOperation": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "CancelOperation": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetServerConfig": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListNodePools": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetNodePool": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "CreateNodePool": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeleteNodePool": { "timeout_millis": 20000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "RollbackNodePoolUpgrade": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetNodePoolManagement": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetLabels": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetLegacyAbac": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "StartIPRotation": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "CompleteIPRotation": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetNodePoolSize": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetNetworkPolicy": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "SetMaintenancePolicy": { "timeout_millis": 20000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/container/google/cloud/container_v1/gapic/enums.py b/container/google/cloud/container_v1/gapic/enums.py index 190325408d5f7..b66805fe39b66 100644 --- a/container/google/cloud/container_v1/gapic/enums.py +++ b/container/google/cloud/container_v1/gapic/enums.py @@ -27,6 +27,7 @@ class Provider(enum.IntEnum): PROVIDER_UNSPECIFIED (int): Not set CALICO (int): Tigera (Calico Felix). """ + PROVIDER_UNSPECIFIED = 0 CALICO = 1 @@ -50,6 +51,7 @@ class Status(enum.IntEnum): DEGRADED (int): The DEGRADED state indicates the cluster requires user action to restore full functionality. Details can be found in the ``statusMessage`` field. """ + STATUS_UNSPECIFIED = 0 PROVISIONING = 1 RUNNING = 2 @@ -71,6 +73,7 @@ class Status(enum.IntEnum): DONE (int): The operation is done, either cancelled or completed. ABORTING (int): The operation is aborting. """ + STATUS_UNSPECIFIED = 0 PENDING = 1 RUNNING = 2 @@ -100,6 +103,7 @@ class Type(enum.IntEnum): SET_NETWORK_POLICY (int): Updates network policy for a cluster. SET_MAINTENANCE_POLICY (int): Set the maintenance policy. """ + TYPE_UNSPECIFIED = 0 CREATE_CLUSTER = 1 DELETE_CLUSTER = 2 @@ -133,6 +137,7 @@ class Action(enum.IntEnum): authentication is enabled, with either a provided password or a generated one. """ + UNKNOWN = 0 SET_PASSWORD = 1 GENERATE_PASSWORD = 2 @@ -160,6 +165,7 @@ class Status(enum.IntEnum): ERROR (int): The ERROR state indicates the node pool may be unusable. Details can be found in the ``statusMessage`` field. """ + STATUS_UNSPECIFIED = 0 PROVISIONING = 1 RUNNING = 2 diff --git a/container/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py b/container/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py index 62e1c4c9ccbb0..4230163493f2d 100644 --- a/container/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py +++ b/container/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py @@ -27,14 +27,14 @@ class ClusterManagerGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', ) + _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) - def __init__(self, - channel=None, - credentials=None, - address='container.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="container.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -52,29 +52,23 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - 'cluster_manager_stub': - cluster_service_pb2_grpc.ClusterManagerStub(channel), + "cluster_manager_stub": cluster_service_pb2_grpc.ClusterManagerStub(channel) } @classmethod - def create_channel(cls, - address='container.googleapis.com:443', - credentials=None): + def create_channel(cls, address="container.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -89,9 +83,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -115,7 +107,7 @@ def list_clusters(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].ListClusters + return self._stubs["cluster_manager_stub"].ListClusters @property def get_cluster(self): @@ -128,7 +120,7 @@ def get_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].GetCluster + return self._stubs["cluster_manager_stub"].GetCluster @property def create_cluster(self): @@ -152,7 +144,7 @@ def create_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].CreateCluster + return self._stubs["cluster_manager_stub"].CreateCluster @property def update_cluster(self): @@ -165,7 +157,7 @@ def update_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].UpdateCluster + return self._stubs["cluster_manager_stub"].UpdateCluster @property def update_node_pool(self): @@ -178,7 +170,7 @@ def update_node_pool(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].UpdateNodePool + return self._stubs["cluster_manager_stub"].UpdateNodePool @property def set_node_pool_autoscaling(self): @@ -191,7 +183,7 @@ def set_node_pool_autoscaling(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetNodePoolAutoscaling + return self._stubs["cluster_manager_stub"].SetNodePoolAutoscaling @property def set_logging_service(self): @@ -204,7 +196,7 @@ def set_logging_service(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetLoggingService + return self._stubs["cluster_manager_stub"].SetLoggingService @property def set_monitoring_service(self): @@ -217,7 +209,7 @@ def set_monitoring_service(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetMonitoringService + return self._stubs["cluster_manager_stub"].SetMonitoringService @property def set_addons_config(self): @@ -230,7 +222,7 @@ def set_addons_config(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetAddonsConfig + return self._stubs["cluster_manager_stub"].SetAddonsConfig @property def set_locations(self): @@ -243,7 +235,7 @@ def set_locations(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetLocations + return self._stubs["cluster_manager_stub"].SetLocations @property def update_master(self): @@ -256,7 +248,7 @@ def update_master(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].UpdateMaster + return self._stubs["cluster_manager_stub"].UpdateMaster @property def set_master_auth(self): @@ -271,7 +263,7 @@ def set_master_auth(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetMasterAuth + return self._stubs["cluster_manager_stub"].SetMasterAuth @property def delete_cluster(self): @@ -292,7 +284,7 @@ def delete_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].DeleteCluster + return self._stubs["cluster_manager_stub"].DeleteCluster @property def list_operations(self): @@ -305,7 +297,7 @@ def list_operations(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].ListOperations + return self._stubs["cluster_manager_stub"].ListOperations @property def get_operation(self): @@ -318,7 +310,7 @@ def get_operation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].GetOperation + return self._stubs["cluster_manager_stub"].GetOperation @property def cancel_operation(self): @@ -331,7 +323,7 @@ def cancel_operation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].CancelOperation + return self._stubs["cluster_manager_stub"].CancelOperation @property def get_server_config(self): @@ -344,7 +336,7 @@ def get_server_config(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].GetServerConfig + return self._stubs["cluster_manager_stub"].GetServerConfig @property def list_node_pools(self): @@ -357,7 +349,7 @@ def list_node_pools(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].ListNodePools + return self._stubs["cluster_manager_stub"].ListNodePools @property def get_node_pool(self): @@ -370,7 +362,7 @@ def get_node_pool(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].GetNodePool + return self._stubs["cluster_manager_stub"].GetNodePool @property def create_node_pool(self): @@ -383,7 +375,7 @@ def create_node_pool(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].CreateNodePool + return self._stubs["cluster_manager_stub"].CreateNodePool @property def delete_node_pool(self): @@ -396,7 +388,7 @@ def delete_node_pool(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].DeleteNodePool + return self._stubs["cluster_manager_stub"].DeleteNodePool @property def rollback_node_pool_upgrade(self): @@ -410,7 +402,7 @@ def rollback_node_pool_upgrade(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].RollbackNodePoolUpgrade + return self._stubs["cluster_manager_stub"].RollbackNodePoolUpgrade @property def set_node_pool_management(self): @@ -423,7 +415,7 @@ def set_node_pool_management(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetNodePoolManagement + return self._stubs["cluster_manager_stub"].SetNodePoolManagement @property def set_labels(self): @@ -436,7 +428,7 @@ def set_labels(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetLabels + return self._stubs["cluster_manager_stub"].SetLabels @property def set_legacy_abac(self): @@ -449,7 +441,7 @@ def set_legacy_abac(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetLegacyAbac + return self._stubs["cluster_manager_stub"].SetLegacyAbac @property def start_i_p_rotation(self): @@ -462,7 +454,7 @@ def start_i_p_rotation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].StartIPRotation + return self._stubs["cluster_manager_stub"].StartIPRotation @property def complete_i_p_rotation(self): @@ -475,7 +467,7 @@ def complete_i_p_rotation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].CompleteIPRotation + return self._stubs["cluster_manager_stub"].CompleteIPRotation @property def set_node_pool_size(self): @@ -488,7 +480,7 @@ def set_node_pool_size(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetNodePoolSize + return self._stubs["cluster_manager_stub"].SetNodePoolSize @property def set_network_policy(self): @@ -501,7 +493,7 @@ def set_network_policy(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetNetworkPolicy + return self._stubs["cluster_manager_stub"].SetNetworkPolicy @property def set_maintenance_policy(self): @@ -514,4 +506,4 @@ def set_maintenance_policy(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_manager_stub'].SetMaintenancePolicy + return self._stubs["cluster_manager_stub"].SetMaintenancePolicy diff --git a/container/google/cloud/container_v1/proto/cluster_service_pb2.py b/container/google/cloud/container_v1/proto/cluster_service_pb2.py index 8d70ca9fb1348..71f8a330423c8 100644 --- a/container/google/cloud/container_v1/proto/cluster_service_pb2.py +++ b/container/google/cloud/container_v1/proto/cluster_service_pb2.py @@ -3,12 +3,14 @@ # source: google/cloud/container_v1/proto/cluster_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,4029 +21,7306 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/container_v1/proto/cluster_service.proto', - package='google.container.v1', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/container_v1/proto/cluster_service.proto\x12\x13google.container.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x80\x04\n\nNodeConfig\x12\x14\n\x0cmachine_type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x02 \x01(\x05\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x17\n\x0fservice_account\x18\t \x01(\t\x12?\n\x08metadata\x18\x04 \x03(\x0b\x32-.google.container.v1.NodeConfig.MetadataEntry\x12\x12\n\nimage_type\x18\x05 \x01(\t\x12;\n\x06labels\x18\x06 \x03(\x0b\x32+.google.container.v1.NodeConfig.LabelsEntry\x12\x17\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x12\x0c\n\x04tags\x18\x08 \x03(\t\x12\x13\n\x0bpreemptible\x18\n \x01(\x08\x12<\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32&.google.container.v1.AcceleratorConfig\x12\x11\n\tdisk_type\x18\x0c \x01(\t\x12\x18\n\x10min_cpu_platform\x18\r \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd1\x01\n\nMasterAuth\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12O\n\x19\x63lient_certificate_config\x18\x03 \x01(\x0b\x32,.google.container.v1.ClientCertificateConfig\x12\x1e\n\x16\x63luster_ca_certificate\x18\x64 \x01(\t\x12\x1a\n\x12\x63lient_certificate\x18\x65 \x01(\t\x12\x12\n\nclient_key\x18\x66 \x01(\t\";\n\x17\x43lientCertificateConfig\x12 \n\x18issue_client_certificate\x18\x01 \x01(\x08\"\xb7\x02\n\x0c\x41\x64\x64onsConfig\x12\x43\n\x13http_load_balancing\x18\x01 \x01(\x0b\x32&.google.container.v1.HttpLoadBalancing\x12Q\n\x1ahorizontal_pod_autoscaling\x18\x02 \x01(\x0b\x32-.google.container.v1.HorizontalPodAutoscaling\x12\x46\n\x14kubernetes_dashboard\x18\x03 \x01(\x0b\x32(.google.container.v1.KubernetesDashboard\x12G\n\x15network_policy_config\x18\x04 \x01(\x0b\x32(.google.container.v1.NetworkPolicyConfig\"%\n\x11HttpLoadBalancing\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\",\n\x18HorizontalPodAutoscaling\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\"\'\n\x13KubernetesDashboard\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\"\'\n\x13NetworkPolicyConfig\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\"\xa8\x01\n\x14PrivateClusterConfig\x12\x1c\n\x14\x65nable_private_nodes\x18\x01 \x01(\x08\x12\x1f\n\x17\x65nable_private_endpoint\x18\x02 \x01(\x08\x12\x1e\n\x16master_ipv4_cidr_block\x18\x03 \x01(\t\x12\x18\n\x10private_endpoint\x18\x04 \x01(\t\x12\x17\n\x0fpublic_endpoint\x18\x05 \x01(\t\"\xbc\x01\n\x1eMasterAuthorizedNetworksConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12R\n\x0b\x63idr_blocks\x18\x02 \x03(\x0b\x32=.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock\x1a\x35\n\tCidrBlock\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x12\n\ncidr_block\x18\x02 \x01(\t\"\x1d\n\nLegacyAbac\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"\x91\x01\n\rNetworkPolicy\x12=\n\x08provider\x18\x01 \x01(\x0e\x32+.google.container.v1.NetworkPolicy.Provider\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08\"0\n\x08Provider\x12\x18\n\x14PROVIDER_UNSPECIFIED\x10\x00\x12\n\n\x06\x43\x41LICO\x10\x01\"\xe9\x02\n\x12IPAllocationPolicy\x12\x16\n\x0euse_ip_aliases\x18\x01 \x01(\x08\x12\x19\n\x11\x63reate_subnetwork\x18\x02 \x01(\x08\x12\x17\n\x0fsubnetwork_name\x18\x03 \x01(\t\x12\x1d\n\x11\x63luster_ipv4_cidr\x18\x04 \x01(\tB\x02\x18\x01\x12\x1a\n\x0enode_ipv4_cidr\x18\x05 \x01(\tB\x02\x18\x01\x12\x1e\n\x12services_ipv4_cidr\x18\x06 \x01(\tB\x02\x18\x01\x12$\n\x1c\x63luster_secondary_range_name\x18\x07 \x01(\t\x12%\n\x1dservices_secondary_range_name\x18\x08 \x01(\t\x12\x1f\n\x17\x63luster_ipv4_cidr_block\x18\t \x01(\t\x12\x1c\n\x14node_ipv4_cidr_block\x18\n \x01(\t\x12 \n\x18services_ipv4_cidr_block\x18\x0b \x01(\t\"\xdd\x0c\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1a\n\x12initial_node_count\x18\x03 \x01(\x05\x12\x34\n\x0bnode_config\x18\x04 \x01(\x0b\x32\x1f.google.container.v1.NodeConfig\x12\x34\n\x0bmaster_auth\x18\x05 \x01(\x0b\x32\x1f.google.container.v1.MasterAuth\x12\x17\n\x0flogging_service\x18\x06 \x01(\t\x12\x1a\n\x12monitoring_service\x18\x07 \x01(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x19\n\x11\x63luster_ipv4_cidr\x18\t \x01(\t\x12\x38\n\raddons_config\x18\n \x01(\x0b\x32!.google.container.v1.AddonsConfig\x12\x12\n\nsubnetwork\x18\x0b \x01(\t\x12\x31\n\nnode_pools\x18\x0c \x03(\x0b\x32\x1d.google.container.v1.NodePool\x12\x11\n\tlocations\x18\r \x03(\t\x12\x1f\n\x17\x65nable_kubernetes_alpha\x18\x0e \x01(\x08\x12I\n\x0fresource_labels\x18\x0f \x03(\x0b\x32\x30.google.container.v1.Cluster.ResourceLabelsEntry\x12\x19\n\x11label_fingerprint\x18\x10 \x01(\t\x12\x34\n\x0blegacy_abac\x18\x12 \x01(\x0b\x32\x1f.google.container.v1.LegacyAbac\x12:\n\x0enetwork_policy\x18\x13 \x01(\x0b\x32\".google.container.v1.NetworkPolicy\x12\x45\n\x14ip_allocation_policy\x18\x14 \x01(\x0b\x32\'.google.container.v1.IPAllocationPolicy\x12^\n!master_authorized_networks_config\x18\x16 \x01(\x0b\x32\x33.google.container.v1.MasterAuthorizedNetworksConfig\x12\x42\n\x12maintenance_policy\x18\x17 \x01(\x0b\x32&.google.container.v1.MaintenancePolicy\x12:\n\x0enetwork_config\x18\x1b \x01(\x0b\x32\".google.container.v1.NetworkConfig\x12I\n\x16private_cluster_config\x18% \x01(\x0b\x32).google.container.v1.PrivateClusterConfig\x12\x11\n\tself_link\x18\x64 \x01(\t\x12\x10\n\x04zone\x18\x65 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x65ndpoint\x18\x66 \x01(\t\x12\x1f\n\x17initial_cluster_version\x18g \x01(\t\x12\x1e\n\x16\x63urrent_master_version\x18h \x01(\t\x12 \n\x14\x63urrent_node_version\x18i \x01(\tB\x02\x18\x01\x12\x13\n\x0b\x63reate_time\x18j \x01(\t\x12\x33\n\x06status\x18k \x01(\x0e\x32#.google.container.v1.Cluster.Status\x12\x16\n\x0estatus_message\x18l \x01(\t\x12\x1b\n\x13node_ipv4_cidr_size\x18m \x01(\x05\x12\x1a\n\x12services_ipv4_cidr\x18n \x01(\t\x12\x1f\n\x13instance_group_urls\x18o \x03(\tB\x02\x18\x01\x12\x1a\n\x12\x63urrent_node_count\x18p \x01(\x05\x12\x13\n\x0b\x65xpire_time\x18q \x01(\t\x12\x10\n\x08location\x18r \x01(\t\x1a\x35\n\x13ResourceLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"w\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0f\n\x0bRECONCILING\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\t\n\x05\x45RROR\x10\x05\x12\x0c\n\x08\x44\x45GRADED\x10\x06\"\xc1\x03\n\rClusterUpdate\x12\x1c\n\x14\x64\x65sired_node_version\x18\x04 \x01(\t\x12\"\n\x1a\x64\x65sired_monitoring_service\x18\x05 \x01(\t\x12@\n\x15\x64\x65sired_addons_config\x18\x06 \x01(\x0b\x32!.google.container.v1.AddonsConfig\x12\x1c\n\x14\x64\x65sired_node_pool_id\x18\x07 \x01(\t\x12\x1a\n\x12\x64\x65sired_image_type\x18\x08 \x01(\t\x12O\n\x1d\x64\x65sired_node_pool_autoscaling\x18\t \x01(\x0b\x32(.google.container.v1.NodePoolAutoscaling\x12\x19\n\x11\x64\x65sired_locations\x18\n \x03(\t\x12\x66\n)desired_master_authorized_networks_config\x18\x0c \x01(\x0b\x32\x33.google.container.v1.MasterAuthorizedNetworksConfig\x12\x1e\n\x16\x64\x65sired_master_version\x18\x64 \x01(\t\"\xfb\x05\n\tOperation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12;\n\x0eoperation_type\x18\x03 \x01(\x0e\x32#.google.container.v1.Operation.Type\x12\x35\n\x06status\x18\x04 \x01(\x0e\x32%.google.container.v1.Operation.Status\x12\x0e\n\x06\x64\x65tail\x18\x08 \x01(\t\x12\x16\n\x0estatus_message\x18\x05 \x01(\t\x12\x11\n\tself_link\x18\x06 \x01(\t\x12\x13\n\x0btarget_link\x18\x07 \x01(\t\x12\x10\n\x08location\x18\t \x01(\t\x12\x12\n\nstart_time\x18\n \x01(\t\x12\x10\n\x08\x65nd_time\x18\x0b \x01(\t\"R\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\x0c\n\x08\x41\x42ORTING\x10\x04\"\xfd\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43REATE_CLUSTER\x10\x01\x12\x12\n\x0e\x44\x45LETE_CLUSTER\x10\x02\x12\x12\n\x0eUPGRADE_MASTER\x10\x03\x12\x11\n\rUPGRADE_NODES\x10\x04\x12\x12\n\x0eREPAIR_CLUSTER\x10\x05\x12\x12\n\x0eUPDATE_CLUSTER\x10\x06\x12\x14\n\x10\x43REATE_NODE_POOL\x10\x07\x12\x14\n\x10\x44\x45LETE_NODE_POOL\x10\x08\x12\x1c\n\x18SET_NODE_POOL_MANAGEMENT\x10\t\x12\x15\n\x11\x41UTO_REPAIR_NODES\x10\n\x12\x16\n\x12\x41UTO_UPGRADE_NODES\x10\x0b\x12\x0e\n\nSET_LABELS\x10\x0c\x12\x13\n\x0fSET_MASTER_AUTH\x10\r\x12\x16\n\x12SET_NODE_POOL_SIZE\x10\x0e\x12\x16\n\x12SET_NETWORK_POLICY\x10\x0f\x12\x1a\n\x16SET_MAINTENANCE_POLICY\x10\x10\"\x7f\n\x14\x43reateClusterRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12-\n\x07\x63luster\x18\x03 \x01(\x0b\x32\x1c.google.container.v1.Cluster\x12\x0e\n\x06parent\x18\x05 \x01(\t\"c\n\x11GetClusterRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x05 \x01(\t\"\x9a\x01\n\x14UpdateClusterRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x32\n\x06update\x18\x04 \x01(\x0b\x32\".google.container.v1.ClusterUpdate\x12\x0c\n\x04name\x18\x05 \x01(\t\"\xab\x01\n\x15UpdateNodePoolRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x14\n\x0cnode_version\x18\x05 \x01(\t\x12\x12\n\nimage_type\x18\x06 \x01(\t\x12\x0c\n\x04name\x18\x08 \x01(\t\"\xc8\x01\n\x1dSetNodePoolAutoscalingRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12=\n\x0b\x61utoscaling\x18\x05 \x01(\x0b\x32(.google.container.v1.NodePoolAutoscaling\x12\x0c\n\x04name\x18\x06 \x01(\t\"\x7f\n\x18SetLoggingServiceRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x17\n\x0flogging_service\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x05 \x01(\t\"\x89\x01\n\x1bSetMonitoringServiceRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x1a\n\x12monitoring_service\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\"\xa2\x01\n\x16SetAddonsConfigRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x38\n\raddons_config\x18\x04 \x01(\x0b\x32!.google.container.v1.AddonsConfig\x12\x0c\n\x04name\x18\x06 \x01(\t\"x\n\x13SetLocationsRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\"}\n\x13UpdateMasterRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x16\n\x0emaster_version\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x07 \x01(\t\"\xab\x02\n\x14SetMasterAuthRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12@\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x30.google.container.v1.SetMasterAuthRequest.Action\x12/\n\x06update\x18\x05 \x01(\x0b\x32\x1f.google.container.v1.MasterAuth\x12\x0c\n\x04name\x18\x07 \x01(\t\"P\n\x06\x41\x63tion\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x10\n\x0cSET_PASSWORD\x10\x01\x12\x15\n\x11GENERATE_PASSWORD\x10\x02\x12\x10\n\x0cSET_USERNAME\x10\x03\"f\n\x14\x44\x65leteClusterRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x04 \x01(\t\"O\n\x13ListClustersRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x0e\n\x06parent\x18\x04 \x01(\t\"]\n\x14ListClustersResponse\x12.\n\x08\x63lusters\x18\x01 \x03(\x0b\x32\x1c.google.container.v1.Cluster\x12\x15\n\rmissing_zones\x18\x02 \x03(\t\"g\n\x13GetOperationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x18\n\x0coperation_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x05 \x01(\t\"Q\n\x15ListOperationsRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x0e\n\x06parent\x18\x04 \x01(\t\"j\n\x16\x43\x61ncelOperationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x18\n\x0coperation_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x04 \x01(\t\"c\n\x16ListOperationsResponse\x12\x32\n\noperations\x18\x01 \x03(\x0b\x32\x1e.google.container.v1.Operation\x12\x15\n\rmissing_zones\x18\x02 \x03(\t\"P\n\x16GetServerConfigRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x04 \x01(\t\"\xa2\x01\n\x0cServerConfig\x12\x1f\n\x17\x64\x65\x66\x61ult_cluster_version\x18\x01 \x01(\t\x12\x1b\n\x13valid_node_versions\x18\x03 \x03(\t\x12\x1a\n\x12\x64\x65\x66\x61ult_image_type\x18\x04 \x01(\t\x12\x19\n\x11valid_image_types\x18\x05 \x03(\t\x12\x1d\n\x15valid_master_versions\x18\x06 \x03(\t\"\x9b\x01\n\x15\x43reateNodePoolRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x30\n\tnode_pool\x18\x04 \x01(\x0b\x32\x1d.google.container.v1.NodePool\x12\x0e\n\x06parent\x18\x06 \x01(\t\"\x81\x01\n\x15\x44\x65leteNodePoolRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t\"h\n\x14ListNodePoolsRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0e\n\x06parent\x18\x05 \x01(\t\"~\n\x12GetNodePoolRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t\"\xf0\x03\n\x08NodePool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1f.google.container.v1.NodeConfig\x12\x1a\n\x12initial_node_count\x18\x03 \x01(\x05\x12\x11\n\tself_link\x18\x64 \x01(\t\x12\x0f\n\x07version\x18\x65 \x01(\t\x12\x1b\n\x13instance_group_urls\x18\x66 \x03(\t\x12\x34\n\x06status\x18g \x01(\x0e\x32$.google.container.v1.NodePool.Status\x12\x16\n\x0estatus_message\x18h \x01(\t\x12=\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32(.google.container.v1.NodePoolAutoscaling\x12\x37\n\nmanagement\x18\x05 \x01(\x0b\x32#.google.container.v1.NodeManagement\"\x81\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x16\n\x12RUNNING_WITH_ERROR\x10\x03\x12\x0f\n\x0bRECONCILING\x10\x04\x12\x0c\n\x08STOPPING\x10\x05\x12\t\n\x05\x45RROR\x10\x06\"}\n\x0eNodeManagement\x12\x14\n\x0c\x61uto_upgrade\x18\x01 \x01(\x08\x12\x13\n\x0b\x61uto_repair\x18\x02 \x01(\x08\x12@\n\x0fupgrade_options\x18\n \x01(\x0b\x32\'.google.container.v1.AutoUpgradeOptions\"J\n\x12\x41utoUpgradeOptions\x12\x1f\n\x17\x61uto_upgrade_start_time\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"K\n\x11MaintenancePolicy\x12\x36\n\x06window\x18\x01 \x01(\x0b\x32&.google.container.v1.MaintenanceWindow\"n\n\x11MaintenanceWindow\x12O\n\x18\x64\x61ily_maintenance_window\x18\x02 \x01(\x0b\x32+.google.container.v1.DailyMaintenanceWindowH\x00\x42\x08\n\x06policy\">\n\x16\x44\x61ilyMaintenanceWindow\x12\x12\n\nstart_time\x18\x02 \x01(\t\x12\x10\n\x08\x64uration\x18\x03 \x01(\t\"\xc1\x01\n\x1cSetNodePoolManagementRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x37\n\nmanagement\x18\x05 \x01(\x0b\x32#.google.container.v1.NodeManagement\x12\x0c\n\x04name\x18\x07 \x01(\t\"\x96\x01\n\x16SetNodePoolSizeRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12\x0c\n\x04name\x18\x07 \x01(\t\"\x8a\x01\n\x1eRollbackNodePoolUpgradeRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t\"J\n\x15ListNodePoolsResponse\x12\x31\n\nnode_pools\x18\x01 \x03(\x0b\x32\x1d.google.container.v1.NodePool\"V\n\x13NodePoolAutoscaling\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"\x88\x02\n\x10SetLabelsRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12R\n\x0fresource_labels\x18\x04 \x03(\x0b\x32\x39.google.container.v1.SetLabelsRequest.ResourceLabelsEntry\x12\x19\n\x11label_fingerprint\x18\x05 \x01(\t\x12\x0c\n\x04name\x18\x07 \x01(\t\x1a\x35\n\x13ResourceLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"w\n\x14SetLegacyAbacRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\x12\x0c\n\x04name\x18\x06 \x01(\t\"\x84\x01\n\x16StartIPRotationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x1a\n\x12rotate_credentials\x18\x07 \x01(\x08\"k\n\x19\x43ompleteIPRotationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x07 \x01(\t\"H\n\x11\x41\x63\x63\x65leratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\"\xa5\x01\n\x17SetNetworkPolicyRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12:\n\x0enetwork_policy\x18\x04 \x01(\x0b\x32\".google.container.v1.NetworkPolicy\x12\x0c\n\x04name\x18\x06 \x01(\t\"\xa5\x01\n\x1bSetMaintenancePolicyRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x42\n\x12maintenance_policy\x18\x04 \x01(\x0b\x32&.google.container.v1.MaintenancePolicy\x12\x0c\n\x04name\x18\x05 \x01(\t\"4\n\rNetworkConfig\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x12\n\nsubnetwork\x18\x02 \x01(\t2\xcb\x39\n\x0e\x43lusterManager\x12\xcc\x01\n\x0cListClusters\x12(.google.container.v1.ListClustersRequest\x1a).google.container.v1.ListClustersResponse\"g\x82\xd3\xe4\x93\x02\x61\x12,/v1/{parent=projects/*/locations/*}/clustersZ1\x12//v1/projects/{project_id}/zones/{zone}/clusters\x12\xc8\x01\n\nGetCluster\x12&.google.container.v1.GetClusterRequest\x1a\x1c.google.container.v1.Cluster\"t\x82\xd3\xe4\x93\x02n\x12,/v1/{name=projects/*/locations/*/clusters/*}Z>\x12*/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels:\x01*ZP\"K/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels:\x01*\x12\xf1\x01\n\rSetLegacyAbac\x12).google.container.v1.SetLegacyAbacRequest\x1a\x1e.google.container.v1.Operation\"\x94\x01\x82\xd3\xe4\x93\x02\x8d\x01\":/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac:\x01*ZL\"G/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac:\x01*\x12\xfc\x01\n\x0fStartIPRotation\x12+.google.container.v1.StartIPRotationRequest\x1a\x1e.google.container.v1.Operation\"\x9b\x01\x82\xd3\xe4\x93\x02\x94\x01\"\n\x16\x44\x61ilyMaintenanceWindow\x12\x12\n\nstart_time\x18\x02 \x01(\t\x12\x10\n\x08\x64uration\x18\x03 \x01(\t"\xc1\x01\n\x1cSetNodePoolManagementRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x37\n\nmanagement\x18\x05 \x01(\x0b\x32#.google.container.v1.NodeManagement\x12\x0c\n\x04name\x18\x07 \x01(\t"\x96\x01\n\x16SetNodePoolSizeRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12\x0c\n\x04name\x18\x07 \x01(\t"\x8a\x01\n\x1eRollbackNodePoolUpgradeRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t"J\n\x15ListNodePoolsResponse\x12\x31\n\nnode_pools\x18\x01 \x03(\x0b\x32\x1d.google.container.v1.NodePool"V\n\x13NodePoolAutoscaling\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05"\x88\x02\n\x10SetLabelsRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12R\n\x0fresource_labels\x18\x04 \x03(\x0b\x32\x39.google.container.v1.SetLabelsRequest.ResourceLabelsEntry\x12\x19\n\x11label_fingerprint\x18\x05 \x01(\t\x12\x0c\n\x04name\x18\x07 \x01(\t\x1a\x35\n\x13ResourceLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"w\n\x14SetLegacyAbacRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\x12\x0c\n\x04name\x18\x06 \x01(\t"\x84\x01\n\x16StartIPRotationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x1a\n\x12rotate_credentials\x18\x07 \x01(\x08"k\n\x19\x43ompleteIPRotationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x07 \x01(\t"H\n\x11\x41\x63\x63\x65leratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t"\xa5\x01\n\x17SetNetworkPolicyRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12:\n\x0enetwork_policy\x18\x04 \x01(\x0b\x32".google.container.v1.NetworkPolicy\x12\x0c\n\x04name\x18\x06 \x01(\t"\xa5\x01\n\x1bSetMaintenancePolicyRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x42\n\x12maintenance_policy\x18\x04 \x01(\x0b\x32&.google.container.v1.MaintenancePolicy\x12\x0c\n\x04name\x18\x05 \x01(\t"4\n\rNetworkConfig\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x12\n\nsubnetwork\x18\x02 \x01(\t2\xcb\x39\n\x0e\x43lusterManager\x12\xcc\x01\n\x0cListClusters\x12(.google.container.v1.ListClustersRequest\x1a).google.container.v1.ListClustersResponse"g\x82\xd3\xe4\x93\x02\x61\x12,/v1/{parent=projects/*/locations/*}/clustersZ1\x12//v1/projects/{project_id}/zones/{zone}/clusters\x12\xc8\x01\n\nGetCluster\x12&.google.container.v1.GetClusterRequest\x1a\x1c.google.container.v1.Cluster"t\x82\xd3\xe4\x93\x02n\x12,/v1/{name=projects/*/locations/*/clusters/*}Z>\x12*/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels:\x01*ZP"K/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels:\x01*\x12\xf1\x01\n\rSetLegacyAbac\x12).google.container.v1.SetLegacyAbacRequest\x1a\x1e.google.container.v1.Operation"\x94\x01\x82\xd3\xe4\x93\x02\x8d\x01":/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac:\x01*ZL"G/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac:\x01*\x12\xfc\x01\n\x0fStartIPRotation\x12+.google.container.v1.StartIPRotationRequest\x1a\x1e.google.container.v1.Operation"\x9b\x01\x82\xd3\xe4\x93\x02\x94\x01"`__ """, - # @@protoc_insertion_point(class_scope:google.container.v1.NodeConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.NodeConfig) + ), +) _sym_db.RegisterMessage(NodeConfig) _sym_db.RegisterMessage(NodeConfig.MetadataEntry) _sym_db.RegisterMessage(NodeConfig.LabelsEntry) -MasterAuth = _reflection.GeneratedProtocolMessageType('MasterAuth', (_message.Message,), dict( - DESCRIPTOR = _MASTERAUTH, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """The authentication information for accessing the master endpoint. +MasterAuth = _reflection.GeneratedProtocolMessageType( + "MasterAuth", + (_message.Message,), + dict( + DESCRIPTOR=_MASTERAUTH, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates. @@ -4171,30 +7453,36 @@ [Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint. """, - # @@protoc_insertion_point(class_scope:google.container.v1.MasterAuth) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.MasterAuth) + ), +) _sym_db.RegisterMessage(MasterAuth) -ClientCertificateConfig = _reflection.GeneratedProtocolMessageType('ClientCertificateConfig', (_message.Message,), dict( - DESCRIPTOR = _CLIENTCERTIFICATECONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration for client certificates on the cluster. +ClientCertificateConfig = _reflection.GeneratedProtocolMessageType( + "ClientCertificateConfig", + (_message.Message,), + dict( + DESCRIPTOR=_CLIENTCERTIFICATECONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration for client certificates on the cluster. Attributes: issue_client_certificate: Issue a client certificate. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ClientCertificateConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ClientCertificateConfig) + ), +) _sym_db.RegisterMessage(ClientCertificateConfig) -AddonsConfig = _reflection.GeneratedProtocolMessageType('AddonsConfig', (_message.Message,), dict( - DESCRIPTOR = _ADDONSCONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration for the addons that can be automatically spun up in the +AddonsConfig = _reflection.GeneratedProtocolMessageType( + "AddonsConfig", + (_message.Message,), + dict( + DESCRIPTOR=_ADDONSCONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality. @@ -4215,15 +7503,18 @@ addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. """, - # @@protoc_insertion_point(class_scope:google.container.v1.AddonsConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.AddonsConfig) + ), +) _sym_db.RegisterMessage(AddonsConfig) -HttpLoadBalancing = _reflection.GeneratedProtocolMessageType('HttpLoadBalancing', (_message.Message,), dict( - DESCRIPTOR = _HTTPLOADBALANCING, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration options for the HTTP (L7) load balancing controller addon, +HttpLoadBalancing = _reflection.GeneratedProtocolMessageType( + "HttpLoadBalancing", + (_message.Message,), + dict( + DESCRIPTOR=_HTTPLOADBALANCING, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. @@ -4234,15 +7525,18 @@ cluster. When enabled, it runs a small pod in the cluster that manages the load balancers. """, - # @@protoc_insertion_point(class_scope:google.container.v1.HttpLoadBalancing) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.HttpLoadBalancing) + ), +) _sym_db.RegisterMessage(HttpLoadBalancing) -HorizontalPodAutoscaling = _reflection.GeneratedProtocolMessageType('HorizontalPodAutoscaling', (_message.Message,), dict( - DESCRIPTOR = _HORIZONTALPODAUTOSCALING, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration options for the horizontal pod autoscaling feature, which +HorizontalPodAutoscaling = _reflection.GeneratedProtocolMessageType( + "HorizontalPodAutoscaling", + (_message.Message,), + dict( + DESCRIPTOR=_HORIZONTALPODAUTOSCALING, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. @@ -4254,30 +7548,36 @@ running in the cluster, which is also used by the Cloud Monitoring service. """, - # @@protoc_insertion_point(class_scope:google.container.v1.HorizontalPodAutoscaling) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.HorizontalPodAutoscaling) + ), +) _sym_db.RegisterMessage(HorizontalPodAutoscaling) -KubernetesDashboard = _reflection.GeneratedProtocolMessageType('KubernetesDashboard', (_message.Message,), dict( - DESCRIPTOR = _KUBERNETESDASHBOARD, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration for the Kubernetes Dashboard. +KubernetesDashboard = _reflection.GeneratedProtocolMessageType( + "KubernetesDashboard", + (_message.Message,), + dict( + DESCRIPTOR=_KUBERNETESDASHBOARD, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration for the Kubernetes Dashboard. Attributes: disabled: Whether the Kubernetes Dashboard is enabled for this cluster. """, - # @@protoc_insertion_point(class_scope:google.container.v1.KubernetesDashboard) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.KubernetesDashboard) + ), +) _sym_db.RegisterMessage(KubernetesDashboard) -NetworkPolicyConfig = _reflection.GeneratedProtocolMessageType('NetworkPolicyConfig', (_message.Message,), dict( - DESCRIPTOR = _NETWORKPOLICYCONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration for NetworkPolicy. This only tracks whether the addon is +NetworkPolicyConfig = _reflection.GeneratedProtocolMessageType( + "NetworkPolicyConfig", + (_message.Message,), + dict( + DESCRIPTOR=_NETWORKPOLICYCONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. @@ -4286,15 +7586,18 @@ disabled: Whether NetworkPolicy is enabled for this cluster. """, - # @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicyConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicyConfig) + ), +) _sym_db.RegisterMessage(NetworkPolicyConfig) -PrivateClusterConfig = _reflection.GeneratedProtocolMessageType('PrivateClusterConfig', (_message.Message,), dict( - DESCRIPTOR = _PRIVATECLUSTERCONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration options for private clusters. +PrivateClusterConfig = _reflection.GeneratedProtocolMessageType( + "PrivateClusterConfig", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVATECLUSTERCONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration options for private clusters. Attributes: @@ -4318,17 +7621,22 @@ Output only. The external IP address of this cluster's master endpoint. """, - # @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterConfig) + ), +) _sym_db.RegisterMessage(PrivateClusterConfig) -MasterAuthorizedNetworksConfig = _reflection.GeneratedProtocolMessageType('MasterAuthorizedNetworksConfig', (_message.Message,), dict( - - CidrBlock = _reflection.GeneratedProtocolMessageType('CidrBlock', (_message.Message,), dict( - DESCRIPTOR = _MASTERAUTHORIZEDNETWORKSCONFIG_CIDRBLOCK, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """CidrBlock contains an optional name and one CIDR block. +MasterAuthorizedNetworksConfig = _reflection.GeneratedProtocolMessageType( + "MasterAuthorizedNetworksConfig", + (_message.Message,), + dict( + CidrBlock=_reflection.GeneratedProtocolMessageType( + "CidrBlock", + (_message.Message,), + dict( + DESCRIPTOR=_MASTERAUTHORIZEDNETWORKSCONFIG_CIDRBLOCK, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""CidrBlock contains an optional name and one CIDR block. Attributes: @@ -4338,13 +7646,12 @@ cidr_block: cidr\_block must be specified in CIDR notation. """, - # @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - )) - , - DESCRIPTOR = _MASTERAUTHORIZEDNETWORKSCONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration options for the master authorized networks feature. + # @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) + ), + ), + DESCRIPTOR=_MASTERAUTHORIZEDNETWORKSCONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs. @@ -4357,16 +7664,19 @@ cidr\_blocks define up to 10 external networks that could access Kubernetes master through HTTPS. """, - # @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig) + ), +) _sym_db.RegisterMessage(MasterAuthorizedNetworksConfig) _sym_db.RegisterMessage(MasterAuthorizedNetworksConfig.CidrBlock) -LegacyAbac = _reflection.GeneratedProtocolMessageType('LegacyAbac', (_message.Message,), dict( - DESCRIPTOR = _LEGACYABAC, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration for the legacy Attribute Based Access Control +LegacyAbac = _reflection.GeneratedProtocolMessageType( + "LegacyAbac", + (_message.Message,), + dict( + DESCRIPTOR=_LEGACYABAC, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration for the legacy Attribute Based Access Control authorization mode. @@ -4378,15 +7688,18 @@ permissions beyond those provided by the RBAC configuration or IAM. """, - # @@protoc_insertion_point(class_scope:google.container.v1.LegacyAbac) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.LegacyAbac) + ), +) _sym_db.RegisterMessage(LegacyAbac) -NetworkPolicy = _reflection.GeneratedProtocolMessageType('NetworkPolicy', (_message.Message,), dict( - DESCRIPTOR = _NETWORKPOLICY, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration options for the NetworkPolicy feature. +NetworkPolicy = _reflection.GeneratedProtocolMessageType( + "NetworkPolicy", + (_message.Message,), + dict( + DESCRIPTOR=_NETWORKPOLICY, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ @@ -4396,15 +7709,18 @@ enabled: Whether network policy is enabled on the cluster. """, - # @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicy) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicy) + ), +) _sym_db.RegisterMessage(NetworkPolicy) -IPAllocationPolicy = _reflection.GeneratedProtocolMessageType('IPAllocationPolicy', (_message.Message,), dict( - DESCRIPTOR = _IPALLOCATIONPOLICY, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Configuration for controlling how IPs are allocated in the cluster. +IPAllocationPolicy = _reflection.GeneratedProtocolMessageType( + "IPAllocationPolicy", + (_message.Message,), + dict( + DESCRIPTOR=_IPALLOCATIONPOLICY, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Configuration for controlling how IPs are allocated in the cluster. Attributes: @@ -4473,22 +7789,27 @@ ``172.16.0.0/12``, ``192.168.0.0/16``) to pick a specific range to use. """, - # @@protoc_insertion_point(class_scope:google.container.v1.IPAllocationPolicy) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.IPAllocationPolicy) + ), +) _sym_db.RegisterMessage(IPAllocationPolicy) -Cluster = _reflection.GeneratedProtocolMessageType('Cluster', (_message.Message,), dict( - - ResourceLabelsEntry = _reflection.GeneratedProtocolMessageType('ResourceLabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTER_RESOURCELABELSENTRY, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - # @@protoc_insertion_point(class_scope:google.container.v1.Cluster.ResourceLabelsEntry) - )) - , - DESCRIPTOR = _CLUSTER, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """A Google Kubernetes Engine cluster. +Cluster = _reflection.GeneratedProtocolMessageType( + "Cluster", + (_message.Message,), + dict( + ResourceLabelsEntry=_reflection.GeneratedProtocolMessageType( + "ResourceLabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTER_RESOURCELABELSENTRY, + __module__="google.cloud.container_v1.proto.cluster_service_pb2" + # @@protoc_insertion_point(class_scope:google.container.v1.Cluster.ResourceLabelsEntry) + ), + ), + DESCRIPTOR=_CLUSTER, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""A Google Kubernetes Engine cluster. Attributes: @@ -4656,16 +7977,19 @@ `region `__ in which the cluster resides. """, - # @@protoc_insertion_point(class_scope:google.container.v1.Cluster) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.Cluster) + ), +) _sym_db.RegisterMessage(Cluster) _sym_db.RegisterMessage(Cluster.ResourceLabelsEntry) -ClusterUpdate = _reflection.GeneratedProtocolMessageType('ClusterUpdate', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERUPDATE, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """ClusterUpdate describes an update to the cluster. Exactly one update can +ClusterUpdate = _reflection.GeneratedProtocolMessageType( + "ClusterUpdate", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERUPDATE, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""ClusterUpdate describes an update to the cluster. Exactly one update can be applied to a cluster with each request, so at most one field can be provided. @@ -4724,15 +8048,18 @@ version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "-": picks the default Kubernetes version """, - # @@protoc_insertion_point(class_scope:google.container.v1.ClusterUpdate) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ClusterUpdate) + ), +) _sym_db.RegisterMessage(ClusterUpdate) -Operation = _reflection.GeneratedProtocolMessageType('Operation', (_message.Message,), dict( - DESCRIPTOR = _OPERATION, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """This operation resource represents operations that may have happened or +Operation = _reflection.GeneratedProtocolMessageType( + "Operation", + (_message.Message,), + dict( + DESCRIPTOR=_OPERATION, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only. @@ -4767,15 +8094,18 @@ [Output only] The time the operation completed, in `RFC3339 `__ text format. """, - # @@protoc_insertion_point(class_scope:google.container.v1.Operation) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.Operation) + ), +) _sym_db.RegisterMessage(Operation) -CreateClusterRequest = _reflection.GeneratedProtocolMessageType('CreateClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECLUSTERREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """CreateClusterRequest creates a cluster. +CreateClusterRequest = _reflection.GeneratedProtocolMessageType( + "CreateClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATECLUSTERREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""CreateClusterRequest creates a cluster. Attributes: @@ -4796,15 +8126,18 @@ The parent (project and location) where the cluster will be created. Specified in the format 'projects/*/locations/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.CreateClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.CreateClusterRequest) + ), +) _sym_db.RegisterMessage(CreateClusterRequest) -GetClusterRequest = _reflection.GeneratedProtocolMessageType('GetClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCLUSTERREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """GetClusterRequest gets the settings of a cluster. +GetClusterRequest = _reflection.GeneratedProtocolMessageType( + "GetClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETCLUSTERREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""GetClusterRequest gets the settings of a cluster. Attributes: @@ -4826,15 +8159,18 @@ retrieve. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.GetClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.GetClusterRequest) + ), +) _sym_db.RegisterMessage(GetClusterRequest) -UpdateClusterRequest = _reflection.GeneratedProtocolMessageType('UpdateClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATECLUSTERREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """UpdateClusterRequest updates the settings of a cluster. +UpdateClusterRequest = _reflection.GeneratedProtocolMessageType( + "UpdateClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATECLUSTERREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""UpdateClusterRequest updates the settings of a cluster. Attributes: @@ -4858,15 +8194,18 @@ update. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.UpdateClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.UpdateClusterRequest) + ), +) _sym_db.RegisterMessage(UpdateClusterRequest) -UpdateNodePoolRequest = _reflection.GeneratedProtocolMessageType('UpdateNodePoolRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATENODEPOOLREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """UpdateNodePoolRequests update a node pool's image and/or version. +UpdateNodePoolRequest = _reflection.GeneratedProtocolMessageType( + "UpdateNodePoolRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATENODEPOOLREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""UpdateNodePoolRequests update a node pool's image and/or version. Attributes: @@ -4903,15 +8242,18 @@ pool to update. Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.UpdateNodePoolRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.UpdateNodePoolRequest) + ), +) _sym_db.RegisterMessage(UpdateNodePoolRequest) -SetNodePoolAutoscalingRequest = _reflection.GeneratedProtocolMessageType('SetNodePoolAutoscalingRequest', (_message.Message,), dict( - DESCRIPTOR = _SETNODEPOOLAUTOSCALINGREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetNodePoolAutoscalingRequest sets the autoscaler settings of a node +SetNodePoolAutoscalingRequest = _reflection.GeneratedProtocolMessageType( + "SetNodePoolAutoscalingRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETNODEPOOLAUTOSCALINGREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -4939,15 +8281,18 @@ pool to set autoscaler settings. Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolAutoscalingRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolAutoscalingRequest) + ), +) _sym_db.RegisterMessage(SetNodePoolAutoscalingRequest) -SetLoggingServiceRequest = _reflection.GeneratedProtocolMessageType('SetLoggingServiceRequest', (_message.Message,), dict( - DESCRIPTOR = _SETLOGGINGSERVICEREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetLoggingServiceRequest sets the logging service of a cluster. +SetLoggingServiceRequest = _reflection.GeneratedProtocolMessageType( + "SetLoggingServiceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETLOGGINGSERVICEREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetLoggingServiceRequest sets the logging service of a cluster. Attributes: @@ -4974,15 +8319,18 @@ logging. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetLoggingServiceRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetLoggingServiceRequest) + ), +) _sym_db.RegisterMessage(SetLoggingServiceRequest) -SetMonitoringServiceRequest = _reflection.GeneratedProtocolMessageType('SetMonitoringServiceRequest', (_message.Message,), dict( - DESCRIPTOR = _SETMONITORINGSERVICEREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetMonitoringServiceRequest sets the monitoring service of a cluster. +SetMonitoringServiceRequest = _reflection.GeneratedProtocolMessageType( + "SetMonitoringServiceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETMONITORINGSERVICEREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetMonitoringServiceRequest sets the monitoring service of a cluster. Attributes: @@ -5010,15 +8358,18 @@ monitoring. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetMonitoringServiceRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetMonitoringServiceRequest) + ), +) _sym_db.RegisterMessage(SetMonitoringServiceRequest) -SetAddonsConfigRequest = _reflection.GeneratedProtocolMessageType('SetAddonsConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _SETADDONSCONFIGREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetAddonsConfigRequest sets the addons associated with the cluster. +SetAddonsConfigRequest = _reflection.GeneratedProtocolMessageType( + "SetAddonsConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETADDONSCONFIGREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetAddonsConfigRequest sets the addons associated with the cluster. Attributes: @@ -5043,15 +8394,18 @@ addons. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetAddonsConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetAddonsConfigRequest) + ), +) _sym_db.RegisterMessage(SetAddonsConfigRequest) -SetLocationsRequest = _reflection.GeneratedProtocolMessageType('SetLocationsRequest', (_message.Message,), dict( - DESCRIPTOR = _SETLOCATIONSREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetLocationsRequest sets the locations of the cluster. +SetLocationsRequest = _reflection.GeneratedProtocolMessageType( + "SetLocationsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETLOCATIONSREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetLocationsRequest sets the locations of the cluster. Attributes: @@ -5081,15 +8435,18 @@ locations. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetLocationsRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetLocationsRequest) + ), +) _sym_db.RegisterMessage(SetLocationsRequest) -UpdateMasterRequest = _reflection.GeneratedProtocolMessageType('UpdateMasterRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEMASTERREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """UpdateMasterRequest updates the master of the cluster. +UpdateMasterRequest = _reflection.GeneratedProtocolMessageType( + "UpdateMasterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEMASTERREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""UpdateMasterRequest updates the master of the cluster. Attributes: @@ -5120,15 +8477,18 @@ update. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.UpdateMasterRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.UpdateMasterRequest) + ), +) _sym_db.RegisterMessage(UpdateMasterRequest) -SetMasterAuthRequest = _reflection.GeneratedProtocolMessageType('SetMasterAuthRequest', (_message.Message,), dict( - DESCRIPTOR = _SETMASTERAUTHREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetMasterAuthRequest updates the admin password of a cluster. +SetMasterAuthRequest = _reflection.GeneratedProtocolMessageType( + "SetMasterAuthRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETMASTERAUTHREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetMasterAuthRequest updates the admin password of a cluster. Attributes: @@ -5154,15 +8514,18 @@ auth. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetMasterAuthRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetMasterAuthRequest) + ), +) _sym_db.RegisterMessage(SetMasterAuthRequest) -DeleteClusterRequest = _reflection.GeneratedProtocolMessageType('DeleteClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETECLUSTERREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """DeleteClusterRequest deletes a cluster. +DeleteClusterRequest = _reflection.GeneratedProtocolMessageType( + "DeleteClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETECLUSTERREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""DeleteClusterRequest deletes a cluster. Attributes: @@ -5184,15 +8547,18 @@ delete. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.DeleteClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.DeleteClusterRequest) + ), +) _sym_db.RegisterMessage(DeleteClusterRequest) -ListClustersRequest = _reflection.GeneratedProtocolMessageType('ListClustersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """ListClustersRequest lists clusters. +ListClustersRequest = _reflection.GeneratedProtocolMessageType( + "ListClustersRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""ListClustersRequest lists clusters. Attributes: @@ -5211,15 +8577,18 @@ listed. Specified in the format 'projects/*/locations/*'. Location "-" matches all zones and all regions. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ListClustersRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ListClustersRequest) + ), +) _sym_db.RegisterMessage(ListClustersRequest) -ListClustersResponse = _reflection.GeneratedProtocolMessageType('ListClustersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSRESPONSE, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """ListClustersResponse is the result of ListClustersRequest. +ListClustersResponse = _reflection.GeneratedProtocolMessageType( + "ListClustersResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSRESPONSE, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""ListClustersResponse is the result of ListClustersRequest. Attributes: @@ -5230,15 +8599,18 @@ If any zones are listed here, the list of clusters returned may be missing those zones. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ListClustersResponse) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ListClustersResponse) + ), +) _sym_db.RegisterMessage(ListClustersResponse) -GetOperationRequest = _reflection.GeneratedProtocolMessageType('GetOperationRequest', (_message.Message,), dict( - DESCRIPTOR = _GETOPERATIONREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """GetOperationRequest gets a single operation. +GetOperationRequest = _reflection.GeneratedProtocolMessageType( + "GetOperationRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETOPERATIONREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""GetOperationRequest gets a single operation. Attributes: @@ -5260,15 +8632,18 @@ get. Specified in the format 'projects/*/locations/*/operations/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.GetOperationRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.GetOperationRequest) + ), +) _sym_db.RegisterMessage(GetOperationRequest) -ListOperationsRequest = _reflection.GeneratedProtocolMessageType('ListOperationsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTOPERATIONSREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """ListOperationsRequest lists operations. +ListOperationsRequest = _reflection.GeneratedProtocolMessageType( + "ListOperationsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTOPERATIONSREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""ListOperationsRequest lists operations. Attributes: @@ -5287,15 +8662,18 @@ listed. Specified in the format 'projects/*/locations/*'. Location "-" matches all zones and all regions. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsRequest) + ), +) _sym_db.RegisterMessage(ListOperationsRequest) -CancelOperationRequest = _reflection.GeneratedProtocolMessageType('CancelOperationRequest', (_message.Message,), dict( - DESCRIPTOR = _CANCELOPERATIONREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """CancelOperationRequest cancels a single operation. +CancelOperationRequest = _reflection.GeneratedProtocolMessageType( + "CancelOperationRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CANCELOPERATIONREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""CancelOperationRequest cancels a single operation. Attributes: @@ -5317,15 +8695,18 @@ cancel. Specified in the format 'projects/*/locations/*/operations/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.CancelOperationRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.CancelOperationRequest) + ), +) _sym_db.RegisterMessage(CancelOperationRequest) -ListOperationsResponse = _reflection.GeneratedProtocolMessageType('ListOperationsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTOPERATIONSRESPONSE, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """ListOperationsResponse is the result of ListOperationsRequest. +ListOperationsResponse = _reflection.GeneratedProtocolMessageType( + "ListOperationsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTOPERATIONSRESPONSE, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""ListOperationsResponse is the result of ListOperationsRequest. Attributes: @@ -5335,15 +8716,18 @@ If any zones are listed here, the list of operations returned may be missing the operations from those zones. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsResponse) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsResponse) + ), +) _sym_db.RegisterMessage(ListOperationsResponse) -GetServerConfigRequest = _reflection.GeneratedProtocolMessageType('GetServerConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSERVERCONFIGREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Gets the current Kubernetes Engine service configuration. +GetServerConfigRequest = _reflection.GeneratedProtocolMessageType( + "GetServerConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSERVERCONFIGREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Gets the current Kubernetes Engine service configuration. Attributes: @@ -5360,15 +8744,18 @@ The name (project and location) of the server config to get Specified in the format 'projects/*/locations/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.GetServerConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.GetServerConfigRequest) + ), +) _sym_db.RegisterMessage(GetServerConfigRequest) -ServerConfig = _reflection.GeneratedProtocolMessageType('ServerConfig', (_message.Message,), dict( - DESCRIPTOR = _SERVERCONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Kubernetes Engine service configuration. +ServerConfig = _reflection.GeneratedProtocolMessageType( + "ServerConfig", + (_message.Message,), + dict( + DESCRIPTOR=_SERVERCONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Kubernetes Engine service configuration. Attributes: @@ -5383,15 +8770,18 @@ valid_master_versions: List of valid master versions. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig) + ), +) _sym_db.RegisterMessage(ServerConfig) -CreateNodePoolRequest = _reflection.GeneratedProtocolMessageType('CreateNodePoolRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATENODEPOOLREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """CreateNodePoolRequest creates a node pool for a cluster. +CreateNodePoolRequest = _reflection.GeneratedProtocolMessageType( + "CreateNodePoolRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATENODEPOOLREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""CreateNodePoolRequest creates a node pool for a cluster. Attributes: @@ -5415,15 +8805,18 @@ will be created. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.CreateNodePoolRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.CreateNodePoolRequest) + ), +) _sym_db.RegisterMessage(CreateNodePoolRequest) -DeleteNodePoolRequest = _reflection.GeneratedProtocolMessageType('DeleteNodePoolRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETENODEPOOLREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """DeleteNodePoolRequest deletes a node pool for a cluster. +DeleteNodePoolRequest = _reflection.GeneratedProtocolMessageType( + "DeleteNodePoolRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETENODEPOOLREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""DeleteNodePoolRequest deletes a node pool for a cluster. Attributes: @@ -5448,15 +8841,18 @@ node pool to delete. Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.DeleteNodePoolRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.DeleteNodePoolRequest) + ), +) _sym_db.RegisterMessage(DeleteNodePoolRequest) -ListNodePoolsRequest = _reflection.GeneratedProtocolMessageType('ListNodePoolsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTNODEPOOLSREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """ListNodePoolsRequest lists the node pool(s) for a cluster. +ListNodePoolsRequest = _reflection.GeneratedProtocolMessageType( + "ListNodePoolsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNODEPOOLSREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""ListNodePoolsRequest lists the node pool(s) for a cluster. Attributes: @@ -5478,15 +8874,18 @@ pools will be listed. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsRequest) + ), +) _sym_db.RegisterMessage(ListNodePoolsRequest) -GetNodePoolRequest = _reflection.GeneratedProtocolMessageType('GetNodePoolRequest', (_message.Message,), dict( - DESCRIPTOR = _GETNODEPOOLREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """GetNodePoolRequest retrieves a node pool for a cluster. +GetNodePoolRequest = _reflection.GeneratedProtocolMessageType( + "GetNodePoolRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETNODEPOOLREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""GetNodePoolRequest retrieves a node pool for a cluster. Attributes: @@ -5511,15 +8910,18 @@ node pool to get. Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.GetNodePoolRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.GetNodePoolRequest) + ), +) _sym_db.RegisterMessage(GetNodePoolRequest) -NodePool = _reflection.GeneratedProtocolMessageType('NodePool', (_message.Message,), dict( - DESCRIPTOR = _NODEPOOL, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """NodePool contains the name and configuration for a cluster's node pool. +NodePool = _reflection.GeneratedProtocolMessageType( + "NodePool", + (_message.Message,), + dict( + DESCRIPTOR=_NODEPOOL, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""NodePool contains the name and configuration for a cluster's node pool. Node pools are a set of nodes (i.e. VM's), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to @@ -5556,15 +8958,18 @@ management: NodeManagement configuration for this NodePool. """, - # @@protoc_insertion_point(class_scope:google.container.v1.NodePool) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.NodePool) + ), +) _sym_db.RegisterMessage(NodePool) -NodeManagement = _reflection.GeneratedProtocolMessageType('NodeManagement', (_message.Message,), dict( - DESCRIPTOR = _NODEMANAGEMENT, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """NodeManagement defines the set of node management services turned on for +NodeManagement = _reflection.GeneratedProtocolMessageType( + "NodeManagement", + (_message.Message,), + dict( + DESCRIPTOR=_NODEMANAGEMENT, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""NodeManagement defines the set of node management services turned on for the node pool. @@ -5582,15 +8987,18 @@ upgrade_options: Specifies the Auto Upgrade knobs for the node pool. """, - # @@protoc_insertion_point(class_scope:google.container.v1.NodeManagement) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.NodeManagement) + ), +) _sym_db.RegisterMessage(NodeManagement) -AutoUpgradeOptions = _reflection.GeneratedProtocolMessageType('AutoUpgradeOptions', (_message.Message,), dict( - DESCRIPTOR = _AUTOUPGRADEOPTIONS, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """AutoUpgradeOptions defines the set of options for the user to control +AutoUpgradeOptions = _reflection.GeneratedProtocolMessageType( + "AutoUpgradeOptions", + (_message.Message,), + dict( + DESCRIPTOR=_AUTOUPGRADEOPTIONS, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. @@ -5604,15 +9012,18 @@ [Output only] This field is set when upgrades are about to commence with the description of the upgrade. """, - # @@protoc_insertion_point(class_scope:google.container.v1.AutoUpgradeOptions) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.AutoUpgradeOptions) + ), +) _sym_db.RegisterMessage(AutoUpgradeOptions) -MaintenancePolicy = _reflection.GeneratedProtocolMessageType('MaintenancePolicy', (_message.Message,), dict( - DESCRIPTOR = _MAINTENANCEPOLICY, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """MaintenancePolicy defines the maintenance policy to be used for the +MaintenancePolicy = _reflection.GeneratedProtocolMessageType( + "MaintenancePolicy", + (_message.Message,), + dict( + DESCRIPTOR=_MAINTENANCEPOLICY, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""MaintenancePolicy defines the maintenance policy to be used for the cluster. @@ -5621,15 +9032,18 @@ Specifies the maintenance window in which maintenance may be performed. """, - # @@protoc_insertion_point(class_scope:google.container.v1.MaintenancePolicy) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.MaintenancePolicy) + ), +) _sym_db.RegisterMessage(MaintenancePolicy) -MaintenanceWindow = _reflection.GeneratedProtocolMessageType('MaintenanceWindow', (_message.Message,), dict( - DESCRIPTOR = _MAINTENANCEWINDOW, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """MaintenanceWindow defines the maintenance window to be used for the +MaintenanceWindow = _reflection.GeneratedProtocolMessageType( + "MaintenanceWindow", + (_message.Message,), + dict( + DESCRIPTOR=_MAINTENANCEWINDOW, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""MaintenanceWindow defines the maintenance window to be used for the cluster. @@ -5638,15 +9052,18 @@ DailyMaintenanceWindow specifies a daily maintenance operation window. """, - # @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceWindow) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceWindow) + ), +) _sym_db.RegisterMessage(MaintenanceWindow) -DailyMaintenanceWindow = _reflection.GeneratedProtocolMessageType('DailyMaintenanceWindow', (_message.Message,), dict( - DESCRIPTOR = _DAILYMAINTENANCEWINDOW, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """Time window specified for daily maintenance operations. +DailyMaintenanceWindow = _reflection.GeneratedProtocolMessageType( + "DailyMaintenanceWindow", + (_message.Message,), + dict( + DESCRIPTOR=_DAILYMAINTENANCEWINDOW, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""Time window specified for daily maintenance operations. Attributes: @@ -5661,15 +9078,18 @@ will be in `RFC3339 `__ format "PTnHnMnS". """, - # @@protoc_insertion_point(class_scope:google.container.v1.DailyMaintenanceWindow) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.DailyMaintenanceWindow) + ), +) _sym_db.RegisterMessage(DailyMaintenanceWindow) -SetNodePoolManagementRequest = _reflection.GeneratedProtocolMessageType('SetNodePoolManagementRequest', (_message.Message,), dict( - DESCRIPTOR = _SETNODEPOOLMANAGEMENTREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetNodePoolManagementRequest sets the node management properties of a +SetNodePoolManagementRequest = _reflection.GeneratedProtocolMessageType( + "SetNodePoolManagementRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETNODEPOOLMANAGEMENTREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetNodePoolManagementRequest sets the node management properties of a node pool. @@ -5697,15 +9117,18 @@ node pool to set management properties. Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolManagementRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolManagementRequest) + ), +) _sym_db.RegisterMessage(SetNodePoolManagementRequest) -SetNodePoolSizeRequest = _reflection.GeneratedProtocolMessageType('SetNodePoolSizeRequest', (_message.Message,), dict( - DESCRIPTOR = _SETNODEPOOLSIZEREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetNodePoolSizeRequest sets the size a node pool. +SetNodePoolSizeRequest = _reflection.GeneratedProtocolMessageType( + "SetNodePoolSizeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETNODEPOOLSIZEREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetNodePoolSizeRequest sets the size a node pool. Attributes: @@ -5732,15 +9155,18 @@ node pool to set size. Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolSizeRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolSizeRequest) + ), +) _sym_db.RegisterMessage(SetNodePoolSizeRequest) -RollbackNodePoolUpgradeRequest = _reflection.GeneratedProtocolMessageType('RollbackNodePoolUpgradeRequest', (_message.Message,), dict( - DESCRIPTOR = _ROLLBACKNODEPOOLUPGRADEREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or +RollbackNodePoolUpgradeRequest = _reflection.GeneratedProtocolMessageType( + "RollbackNodePoolUpgradeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ROLLBACKNODEPOOLUPGRADEREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed. @@ -5767,30 +9193,36 @@ node poll to rollback upgrade. Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.RollbackNodePoolUpgradeRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.RollbackNodePoolUpgradeRequest) + ), +) _sym_db.RegisterMessage(RollbackNodePoolUpgradeRequest) -ListNodePoolsResponse = _reflection.GeneratedProtocolMessageType('ListNodePoolsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTNODEPOOLSRESPONSE, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """ListNodePoolsResponse is the result of ListNodePoolsRequest. +ListNodePoolsResponse = _reflection.GeneratedProtocolMessageType( + "ListNodePoolsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNODEPOOLSRESPONSE, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""ListNodePoolsResponse is the result of ListNodePoolsRequest. Attributes: node_pools: A list of node pools for a cluster. """, - # @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsResponse) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsResponse) + ), +) _sym_db.RegisterMessage(ListNodePoolsResponse) -NodePoolAutoscaling = _reflection.GeneratedProtocolMessageType('NodePoolAutoscaling', (_message.Message,), dict( - DESCRIPTOR = _NODEPOOLAUTOSCALING, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """NodePoolAutoscaling contains information required by cluster autoscaler +NodePoolAutoscaling = _reflection.GeneratedProtocolMessageType( + "NodePoolAutoscaling", + (_message.Message,), + dict( + DESCRIPTOR=_NODEPOOLAUTOSCALING, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. @@ -5805,22 +9237,27 @@ min\_node\_count. There has to enough quota to scale up the cluster. """, - # @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoscaling) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoscaling) + ), +) _sym_db.RegisterMessage(NodePoolAutoscaling) -SetLabelsRequest = _reflection.GeneratedProtocolMessageType('SetLabelsRequest', (_message.Message,), dict( - - ResourceLabelsEntry = _reflection.GeneratedProtocolMessageType('ResourceLabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _SETLABELSREQUEST_RESOURCELABELSENTRY, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - # @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest.ResourceLabelsEntry) - )) - , - DESCRIPTOR = _SETLABELSREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetLabelsRequest sets the Google Cloud Platform labels on a Google +SetLabelsRequest = _reflection.GeneratedProtocolMessageType( + "SetLabelsRequest", + (_message.Message,), + dict( + ResourceLabelsEntry=_reflection.GeneratedProtocolMessageType( + "ResourceLabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SETLABELSREQUEST_RESOURCELABELSENTRY, + __module__="google.cloud.container_v1.proto.cluster_service_pb2" + # @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest.ResourceLabelsEntry) + ), + ), + DESCRIPTOR=_SETLABELSREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetLabelsRequest sets the Google Cloud Platform labels on a Google Container Engine cluster, which will in turn set them for Google Compute Engine resources used by that cluster @@ -5854,16 +9291,19 @@ labels. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest) + ), +) _sym_db.RegisterMessage(SetLabelsRequest) _sym_db.RegisterMessage(SetLabelsRequest.ResourceLabelsEntry) -SetLegacyAbacRequest = _reflection.GeneratedProtocolMessageType('SetLegacyAbacRequest', (_message.Message,), dict( - DESCRIPTOR = _SETLEGACYABACREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetLegacyAbacRequest enables or disables the ABAC authorization +SetLegacyAbacRequest = _reflection.GeneratedProtocolMessageType( + "SetLegacyAbacRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETLEGACYABACREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for a cluster. @@ -5888,15 +9328,18 @@ legacy abac. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetLegacyAbacRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetLegacyAbacRequest) + ), +) _sym_db.RegisterMessage(SetLegacyAbacRequest) -StartIPRotationRequest = _reflection.GeneratedProtocolMessageType('StartIPRotationRequest', (_message.Message,), dict( - DESCRIPTOR = _STARTIPROTATIONREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """StartIPRotationRequest creates a new IP for the cluster and then +StartIPRotationRequest = _reflection.GeneratedProtocolMessageType( + "StartIPRotationRequest", + (_message.Message,), + dict( + DESCRIPTOR=_STARTIPROTATIONREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""StartIPRotationRequest creates a new IP for the cluster and then performs a node upgrade on each node pool to point to the new IP. @@ -5921,15 +9364,18 @@ rotate_credentials: Whether to rotate credentials during IP rotation. """, - # @@protoc_insertion_point(class_scope:google.container.v1.StartIPRotationRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.StartIPRotationRequest) + ), +) _sym_db.RegisterMessage(StartIPRotationRequest) -CompleteIPRotationRequest = _reflection.GeneratedProtocolMessageType('CompleteIPRotationRequest', (_message.Message,), dict( - DESCRIPTOR = _COMPLETEIPROTATIONREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """CompleteIPRotationRequest moves the cluster master back into single-IP +CompleteIPRotationRequest = _reflection.GeneratedProtocolMessageType( + "CompleteIPRotationRequest", + (_message.Message,), + dict( + DESCRIPTOR=_COMPLETEIPROTATIONREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""CompleteIPRotationRequest moves the cluster master back into single-IP mode. @@ -5952,15 +9398,18 @@ complete IP rotation. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.CompleteIPRotationRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.CompleteIPRotationRequest) + ), +) _sym_db.RegisterMessage(CompleteIPRotationRequest) -AcceleratorConfig = _reflection.GeneratedProtocolMessageType('AcceleratorConfig', (_message.Message,), dict( - DESCRIPTOR = _ACCELERATORCONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """AcceleratorConfig represents a Hardware Accelerator request. +AcceleratorConfig = _reflection.GeneratedProtocolMessageType( + "AcceleratorConfig", + (_message.Message,), + dict( + DESCRIPTOR=_ACCELERATORCONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""AcceleratorConfig represents a Hardware Accelerator request. Attributes: @@ -5970,15 +9419,18 @@ The accelerator type resource name. List of supported accelerators `here `__ """, - # @@protoc_insertion_point(class_scope:google.container.v1.AcceleratorConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.AcceleratorConfig) + ), +) _sym_db.RegisterMessage(AcceleratorConfig) -SetNetworkPolicyRequest = _reflection.GeneratedProtocolMessageType('SetNetworkPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _SETNETWORKPOLICYREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetNetworkPolicyRequest enables/disables network policy for a cluster. +SetNetworkPolicyRequest = _reflection.GeneratedProtocolMessageType( + "SetNetworkPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETNETWORKPOLICYREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetNetworkPolicyRequest enables/disables network policy for a cluster. Attributes: @@ -6002,15 +9454,18 @@ networking policy. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetNetworkPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetNetworkPolicyRequest) + ), +) _sym_db.RegisterMessage(SetNetworkPolicyRequest) -SetMaintenancePolicyRequest = _reflection.GeneratedProtocolMessageType('SetMaintenancePolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _SETMAINTENANCEPOLICYREQUEST, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """SetMaintenancePolicyRequest sets the maintenance policy for a cluster. +SetMaintenancePolicyRequest = _reflection.GeneratedProtocolMessageType( + "SetMaintenancePolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SETMAINTENANCEPOLICYREQUEST, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""SetMaintenancePolicyRequest sets the maintenance policy for a cluster. Attributes: @@ -6031,15 +9486,18 @@ maintenance policy. Specified in the format 'projects/*/locations/*/clusters/\*'. """, - # @@protoc_insertion_point(class_scope:google.container.v1.SetMaintenancePolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.SetMaintenancePolicyRequest) + ), +) _sym_db.RegisterMessage(SetMaintenancePolicyRequest) -NetworkConfig = _reflection.GeneratedProtocolMessageType('NetworkConfig', (_message.Message,), dict( - DESCRIPTOR = _NETWORKCONFIG, - __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' - , - __doc__ = """NetworkConfig reports the relative names of network & subnetwork. +NetworkConfig = _reflection.GeneratedProtocolMessageType( + "NetworkConfig", + (_message.Message,), + dict( + DESCRIPTOR=_NETWORKCONFIG, + __module__="google.cloud.container_v1.proto.cluster_service_pb2", + __doc__="""NetworkConfig reports the relative names of network & subnetwork. Attributes: @@ -6055,496 +9513,853 @@ connected. Example: projects/my-project/regions/us- central1/subnetworks/my-subnet """, - # @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig) - )) + # @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig) + ), +) _sym_db.RegisterMessage(NetworkConfig) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.google.container.v1B\023ClusterServiceProtoP\001Z\022*/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels:\001*ZP\"K/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels:\001*')), - ), - _descriptor.MethodDescriptor( - name='SetLegacyAbac', - full_name='google.container.v1.ClusterManager.SetLegacyAbac', - index=24, - containing_service=None, - input_type=_SETLEGACYABACREQUEST, - output_type=_OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\215\001\":/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac:\001*ZL\"G/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac:\001*')), - ), - _descriptor.MethodDescriptor( - name='StartIPRotation', - full_name='google.container.v1.ClusterManager.StartIPRotation', - index=25, - containing_service=None, - input_type=_STARTIPROTATIONREQUEST, - output_type=_OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\224\001\"\022*/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels:\001*ZP"K/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="SetLegacyAbac", + full_name="google.container.v1.ClusterManager.SetLegacyAbac", + index=24, + containing_service=None, + input_type=_SETLEGACYABACREQUEST, + output_type=_OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\215\001":/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac:\001*ZL"G/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="StartIPRotation", + full_name="google.container.v1.ClusterManager.StartIPRotation", + index=25, + containing_service=None, + input_type=_STARTIPROTATIONREQUEST, + output_type=_OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\224\001" v documentation". -#html_title = None +# html_title = None # A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None +# html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. -#html_logo = None +# html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -#html_favicon = None +# html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, @@ -154,78 +154,75 @@ # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied # directly to the root of the documentation. -#html_extra_path = [] +# html_extra_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. -#html_last_updated_fmt = '%b %d, %Y' +# html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. -#html_use_smartypants = True +# html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -#html_sidebars = {} +# html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. -#html_additional_pages = {} +# html_additional_pages = {} # If false, no module index is generated. -#html_domain_indices = True +# html_domain_indices = True # If false, no index is generated. -#html_use_index = True +# html_use_index = True # If true, the index is split into individual pages for each letter. -#html_split_index = False +# html_split_index = False # If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True +# html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True +# html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True +# html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. -#html_use_opensearch = '' +# html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None +# html_file_suffix = None # Language to be used for generating the HTML full-text search index. # Sphinx supports the following languages: # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' -#html_search_language = 'en' +# html_search_language = 'en' # A dictionary with options for the search language support, empty by default. # Now only 'ja' uses this config value -#html_search_options = {'type': 'default'} +# html_search_options = {'type': 'default'} # The name of a javascript file (relative to the configuration directory) that # implements a search results scorer. If empty, the default will be used. -#html_search_scorer = 'scorer.js' +# html_search_scorer = 'scorer.js' # Output file base name for HTML help builder. -htmlhelp_basename = 'google-cloud-dataproc-doc' +htmlhelp_basename = "google-cloud-dataproc-doc" # -- Options for LaTeX output --------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', - # The font size ('10pt', '11pt' or '12pt'). #'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. #'preamble': '', - # Latex figure (float) alignment #'figure_align': 'htbp', } @@ -234,39 +231,51 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'google-cloud-dataproc.tex', - u'google-cloud-dataproc Documentation', author, 'manual'), + ( + master_doc, + "google-cloud-dataproc.tex", + u"google-cloud-dataproc Documentation", + author, + "manual", + ) ] # The name of an image file (relative to this directory) to place at the top of # the title page. -#latex_logo = None +# latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. -#latex_use_parts = False +# latex_use_parts = False # If true, show page references after internal links. -#latex_show_pagerefs = False +# latex_show_pagerefs = False # If true, show URL addresses after external links. -#latex_show_urls = False +# latex_show_urls = False # Documents to append as an appendix to all manuals. -#latex_appendices = [] +# latex_appendices = [] # If false, no module index is generated. -#latex_domain_indices = True +# latex_domain_indices = True # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [(master_doc, 'google-cloud-dataproc', - u'google-cloud-dataproc Documentation', [author], 1)] +man_pages = [ + ( + master_doc, + "google-cloud-dataproc", + u"google-cloud-dataproc Documentation", + [author], + 1, + ) +] # If true, show URL addresses after external links. -#man_show_urls = False +# man_show_urls = False # -- Options for Texinfo output ------------------------------------------- @@ -274,27 +283,33 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'google-cloud-dataproc', - u'google-cloud-dataproc Documentation', author, 'google-cloud-dataproc', - 'GAPIC library for the {metadata.shortName} v1 service', 'APIs'), + ( + master_doc, + "google-cloud-dataproc", + u"google-cloud-dataproc Documentation", + author, + "google-cloud-dataproc", + "GAPIC library for the {metadata.shortName} v1 service", + "APIs", + ) ] # Documents to append as an appendix to all manuals. -#texinfo_appendices = [] +# texinfo_appendices = [] # If false, no module index is generated. -#texinfo_domain_indices = True +# texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' +# texinfo_show_urls = 'footnote' # If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False +# texinfo_no_detailmenu = False # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - 'python': ('http://python.readthedocs.org/en/latest/', None), - 'gax': ('https://gax-python.readthedocs.org/en/latest/', None), + "python": ("http://python.readthedocs.org/en/latest/", None), + "gax": ("https://gax-python.readthedocs.org/en/latest/", None), } # Napoleon settings diff --git a/dataproc/google/__init__.py b/dataproc/google/__init__.py index f65701dd143ff..7aa71bb4e2f1f 100644 --- a/dataproc/google/__init__.py +++ b/dataproc/google/__init__.py @@ -16,7 +16,9 @@ try: import pkg_resources + pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/dataproc/google/cloud/__init__.py b/dataproc/google/cloud/__init__.py index f65701dd143ff..7aa71bb4e2f1f 100644 --- a/dataproc/google/cloud/__init__.py +++ b/dataproc/google/cloud/__init__.py @@ -16,7 +16,9 @@ try: import pkg_resources + pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/dataproc/google/cloud/dataproc.py b/dataproc/google/cloud/dataproc.py index c064373670d2f..f707c5fad6d4f 100644 --- a/dataproc/google/cloud/dataproc.py +++ b/dataproc/google/cloud/dataproc.py @@ -23,9 +23,9 @@ from google.cloud.dataproc_v1 import types __all__ = ( - 'enums', - 'types', - 'ClusterControllerClient', - 'JobControllerClient', - 'WorkflowTemplateServiceClient', + "enums", + "types", + "ClusterControllerClient", + "JobControllerClient", + "WorkflowTemplateServiceClient", ) diff --git a/dataproc/google/cloud/dataproc_v1/__init__.py b/dataproc/google/cloud/dataproc_v1/__init__.py index 24ef51068a204..ca1bd76e31ce2 100644 --- a/dataproc/google/cloud/dataproc_v1/__init__.py +++ b/dataproc/google/cloud/dataproc_v1/__init__.py @@ -23,8 +23,7 @@ from google.cloud.dataproc_v1.gapic import workflow_template_service_client -class ClusterControllerClient( - cluster_controller_client.ClusterControllerClient): +class ClusterControllerClient(cluster_controller_client.ClusterControllerClient): __doc__ = cluster_controller_client.ClusterControllerClient.__doc__ enums = enums @@ -35,15 +34,16 @@ class JobControllerClient(job_controller_client.JobControllerClient): class WorkflowTemplateServiceClient( - workflow_template_service_client.WorkflowTemplateServiceClient): + workflow_template_service_client.WorkflowTemplateServiceClient +): __doc__ = workflow_template_service_client.WorkflowTemplateServiceClient.__doc__ enums = enums __all__ = ( - 'enums', - 'types', - 'ClusterControllerClient', - 'JobControllerClient', - 'WorkflowTemplateServiceClient', + "enums", + "types", + "ClusterControllerClient", + "JobControllerClient", + "WorkflowTemplateServiceClient", ) diff --git a/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py b/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py index 0bb3fa41e8358..ead71a14ed0fc 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py @@ -40,8 +40,7 @@ from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-dataproc', ).version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-dataproc").version class ClusterControllerClient(object): @@ -50,12 +49,12 @@ class ClusterControllerClient(object): of Compute Engine instances. """ - SERVICE_ADDRESS = 'dataproc.googleapis.com:443' + SERVICE_ADDRESS = "dataproc.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.cloud.dataproc.v1.ClusterController' + _INTERFACE_NAME = "google.cloud.dataproc.v1.ClusterController" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -71,19 +70,20 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: ClusterControllerClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -117,18 +117,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = cluster_controller_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -137,25 +138,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=cluster_controller_grpc_transport. - ClusterControllerGrpcTransport, + default_class=cluster_controller_grpc_transport.ClusterControllerGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = cluster_controller_grpc_transport.ClusterControllerGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -165,7 +165,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -174,14 +175,16 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def create_cluster(self, - project_id, - region, - cluster, - request_id=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def create_cluster( + self, + project_id, + region, + cluster, + request_id=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates a cluster in a project. @@ -249,24 +252,22 @@ def create_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'create_cluster' not in self._inner_api_calls: + if "create_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'create_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_cluster, - default_retry=self._method_configs['CreateCluster'].retry, - default_timeout=self._method_configs['CreateCluster']. - timeout, - client_info=self._client_info, - ) + "create_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_cluster, + default_retry=self._method_configs["CreateCluster"].retry, + default_timeout=self._method_configs["CreateCluster"].timeout, + client_info=self._client_info, + ) request = clusters_pb2.CreateClusterRequest( - project_id=project_id, - region=region, - cluster=cluster, - request_id=request_id, + project_id=project_id, region=region, cluster=cluster, request_id=request_id + ) + operation = self._inner_api_calls["create_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - operation = self._inner_api_calls['create_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -274,17 +275,19 @@ def create_cluster(self, metadata_type=proto_operations_pb2.ClusterOperationMetadata, ) - def update_cluster(self, - project_id, - region, - cluster_name, - cluster, - update_mask, - graceful_decommission_timeout=None, - request_id=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def update_cluster( + self, + project_id, + region, + cluster_name, + cluster, + update_mask, + graceful_decommission_timeout=None, + request_id=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Updates a cluster in a project. @@ -533,15 +536,15 @@ def update_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'update_cluster' not in self._inner_api_calls: + if "update_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'update_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_cluster, - default_retry=self._method_configs['UpdateCluster'].retry, - default_timeout=self._method_configs['UpdateCluster']. - timeout, - client_info=self._client_info, - ) + "update_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_cluster, + default_retry=self._method_configs["UpdateCluster"].retry, + default_timeout=self._method_configs["UpdateCluster"].timeout, + client_info=self._client_info, + ) request = clusters_pb2.UpdateClusterRequest( project_id=project_id, @@ -552,8 +555,9 @@ def update_cluster(self, graceful_decommission_timeout=graceful_decommission_timeout, request_id=request_id, ) - operation = self._inner_api_calls['update_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) + operation = self._inner_api_calls["update_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -561,15 +565,17 @@ def update_cluster(self, metadata_type=proto_operations_pb2.ClusterOperationMetadata, ) - def delete_cluster(self, - project_id, - region, - cluster_name, - cluster_uuid=None, - request_id=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def delete_cluster( + self, + project_id, + region, + cluster_name, + cluster_uuid=None, + request_id=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deletes a cluster in a project. @@ -636,15 +642,15 @@ def delete_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'delete_cluster' not in self._inner_api_calls: + if "delete_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'delete_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_cluster, - default_retry=self._method_configs['DeleteCluster'].retry, - default_timeout=self._method_configs['DeleteCluster']. - timeout, - client_info=self._client_info, - ) + "delete_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_cluster, + default_retry=self._method_configs["DeleteCluster"].retry, + default_timeout=self._method_configs["DeleteCluster"].timeout, + client_info=self._client_info, + ) request = clusters_pb2.DeleteClusterRequest( project_id=project_id, @@ -653,8 +659,9 @@ def delete_cluster(self, cluster_uuid=cluster_uuid, request_id=request_id, ) - operation = self._inner_api_calls['delete_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) + operation = self._inner_api_calls["delete_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -662,13 +669,15 @@ def delete_cluster(self, metadata_type=proto_operations_pb2.ClusterOperationMetadata, ) - def get_cluster(self, - project_id, - region, - cluster_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_cluster( + self, + project_id, + region, + cluster_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets the resource representation for a cluster in a project. @@ -713,31 +722,33 @@ def get_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_cluster' not in self._inner_api_calls: + if "get_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'get_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_cluster, - default_retry=self._method_configs['GetCluster'].retry, - default_timeout=self._method_configs['GetCluster'].timeout, - client_info=self._client_info, - ) + "get_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_cluster, + default_retry=self._method_configs["GetCluster"].retry, + default_timeout=self._method_configs["GetCluster"].timeout, + client_info=self._client_info, + ) request = clusters_pb2.GetClusterRequest( - project_id=project_id, - region=region, - cluster_name=cluster_name, + project_id=project_id, region=region, cluster_name=cluster_name ) - return self._inner_api_calls['get_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_clusters(self, - project_id, - region, - filter_=None, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["get_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def list_clusters( + self, + project_id, + region, + filter_=None, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists all regions/{region}/clusters in a project. @@ -818,43 +829,43 @@ def list_clusters(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_clusters' not in self._inner_api_calls: + if "list_clusters" not in self._inner_api_calls: self._inner_api_calls[ - 'list_clusters'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_clusters, - default_retry=self._method_configs['ListClusters'].retry, - default_timeout=self._method_configs['ListClusters']. - timeout, - client_info=self._client_info, - ) + "list_clusters" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_clusters, + default_retry=self._method_configs["ListClusters"].retry, + default_timeout=self._method_configs["ListClusters"].timeout, + client_info=self._client_info, + ) request = clusters_pb2.ListClustersRequest( - project_id=project_id, - region=region, - filter=filter_, - page_size=page_size, + project_id=project_id, region=region, filter=filter_, page_size=page_size ) iterator = google.api_core.page_iterator.GRPCIterator( client=None, method=functools.partial( - self._inner_api_calls['list_clusters'], + self._inner_api_calls["list_clusters"], retry=retry, timeout=timeout, - metadata=metadata), + metadata=metadata, + ), request=request, - items_field='clusters', - request_token_field='page_token', - response_token_field='next_page_token', + items_field="clusters", + request_token_field="page_token", + response_token_field="next_page_token", ) return iterator - def diagnose_cluster(self, - project_id, - region, - cluster_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def diagnose_cluster( + self, + project_id, + region, + cluster_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets cluster diagnostic information. After the operation completes, the Operation.response field contains ``DiagnoseClusterOutputLocation``. @@ -909,24 +920,22 @@ def diagnose_cluster(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'diagnose_cluster' not in self._inner_api_calls: + if "diagnose_cluster" not in self._inner_api_calls: self._inner_api_calls[ - 'diagnose_cluster'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.diagnose_cluster, - default_retry=self._method_configs['DiagnoseCluster']. - retry, - default_timeout=self._method_configs['DiagnoseCluster']. - timeout, - client_info=self._client_info, - ) + "diagnose_cluster" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.diagnose_cluster, + default_retry=self._method_configs["DiagnoseCluster"].retry, + default_timeout=self._method_configs["DiagnoseCluster"].timeout, + client_info=self._client_info, + ) request = clusters_pb2.DiagnoseClusterRequest( - project_id=project_id, - region=region, - cluster_name=cluster_name, + project_id=project_id, region=region, cluster_name=cluster_name + ) + operation = self._inner_api_calls["diagnose_cluster"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - operation = self._inner_api_calls['diagnose_cluster']( - request, retry=retry, timeout=timeout, metadata=metadata) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, diff --git a/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client_config.py b/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client_config.py index 2662bba0fc7fe..02c0cb49d0996 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client_config.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client_config.py @@ -3,7 +3,7 @@ "google.cloud.dataproc.v1.ClusterController": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "INTERNAL", "UNAVAILABLE"], - "non_idempotent": ["UNAVAILABLE"] + "non_idempotent": ["UNAVAILABLE"], }, "retry_params": { "default": { @@ -13,41 +13,41 @@ "initial_rpc_timeout_millis": 10000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 10000, - "total_timeout_millis": 300000 + "total_timeout_millis": 300000, } }, "methods": { "CreateCluster": { "timeout_millis": 30000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "UpdateCluster": { "timeout_millis": 30000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeleteCluster": { "timeout_millis": 30000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetCluster": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListClusters": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DiagnoseCluster": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/dataproc/google/cloud/dataproc_v1/gapic/enums.py b/dataproc/google/cloud/dataproc_v1/gapic/enums.py index 65f776eaeca92..0b68e1fdeaf66 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/enums.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/enums.py @@ -31,6 +31,7 @@ class State(enum.IntEnum): DELETING (int): The cluster is being deleted. It cannot be used. UPDATING (int): The cluster is being updated. It continues to accept and process jobs. """ + UNKNOWN = 0 CREATING = 1 RUNNING = 2 @@ -54,6 +55,7 @@ class Substate(enum.IntEnum): Applies to RUNNING state. """ + UNSPECIFIED = 0 UNHEALTHY = 1 STALE_STATUS = 2 @@ -77,6 +79,7 @@ class Level(enum.IntEnum): FATAL (int): Use FATAL level for log4j. OFF (int): Turn off log4j. """ + LEVEL_UNSPECIFIED = 0 ALL = 1 TRACE = 2 @@ -110,6 +113,7 @@ class State(enum.IntEnum): Applies to restartable jobs only. """ + STATE_UNSPECIFIED = 0 PENDING = 1 SETUP_DONE = 8 @@ -141,6 +145,7 @@ class Substate(enum.IntEnum): Applies to RUNNING state. """ + UNSPECIFIED = 0 SUBMITTED = 1 QUEUED = 2 @@ -164,6 +169,7 @@ class State(enum.IntEnum): FAILED (int): Status is FAILED. KILLED (int): Status is KILLED. """ + STATE_UNSPECIFIED = 0 NEW = 1 NEW_SAVING = 2 @@ -186,6 +192,7 @@ class JobStateMatcher(enum.IntEnum): CANCEL\_PENDING. NON_ACTIVE (int): Only match jobs in terminal states: CANCELLED, DONE, or ERROR. """ + ALL = 0 ACTIVE = 1 NON_ACTIVE = 2 @@ -202,6 +209,7 @@ class State(enum.IntEnum): RUNNING (int): The operation is running. DONE (int): The operation is done; either cancelled or completed. """ + UNKNOWN = 0 PENDING = 1 RUNNING = 2 @@ -219,6 +227,7 @@ class State(enum.IntEnum): RUNNING (int): The operation is running. DONE (int): The operation is done; either cancelled or completed. """ + UNKNOWN = 0 PENDING = 1 RUNNING = 2 @@ -239,6 +248,7 @@ class NodeState(enum.IntEnum): FAILED (int): The node failed. A node can be marked FAILED because its ancestor or peer failed. """ + NODE_STATE_UNSPECIFIED = 0 BLOCKED = 1 RUNNABLE = 2 diff --git a/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client.py b/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client.py index 47b1c35795721..1e821e7b4c866 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client.py @@ -40,19 +40,18 @@ from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-dataproc', ).version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-dataproc").version class JobControllerClient(object): """The JobController provides methods to manage jobs.""" - SERVICE_ADDRESS = 'dataproc.googleapis.com:443' + SERVICE_ADDRESS = "dataproc.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.cloud.dataproc.v1.JobController' + _INTERFACE_NAME = "google.cloud.dataproc.v1.JobController" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -68,19 +67,20 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: JobControllerClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -114,18 +114,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = job_controller_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -134,25 +135,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=job_controller_grpc_transport. - JobControllerGrpcTransport, + default_class=job_controller_grpc_transport.JobControllerGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = job_controller_grpc_transport.JobControllerGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -162,7 +162,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -171,14 +172,16 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def submit_job(self, - project_id, - region, - job, - request_id=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def submit_job( + self, + project_id, + region, + job, + request_id=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Submits a job to a cluster. @@ -236,31 +239,32 @@ def submit_job(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'submit_job' not in self._inner_api_calls: + if "submit_job" not in self._inner_api_calls: self._inner_api_calls[ - 'submit_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.submit_job, - default_retry=self._method_configs['SubmitJob'].retry, - default_timeout=self._method_configs['SubmitJob'].timeout, - client_info=self._client_info, - ) + "submit_job" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.submit_job, + default_retry=self._method_configs["SubmitJob"].retry, + default_timeout=self._method_configs["SubmitJob"].timeout, + client_info=self._client_info, + ) request = jobs_pb2.SubmitJobRequest( - project_id=project_id, - region=region, - job=job, - request_id=request_id, + project_id=project_id, region=region, job=job, request_id=request_id + ) + return self._inner_api_calls["submit_job"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['submit_job']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_job(self, - project_id, - region, - job_id, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def get_job( + self, + project_id, + region, + job_id, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Gets the resource representation for a job in a project. @@ -305,33 +309,35 @@ def get_job(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_job' not in self._inner_api_calls: + if "get_job" not in self._inner_api_calls: self._inner_api_calls[ - 'get_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_job, - default_retry=self._method_configs['GetJob'].retry, - default_timeout=self._method_configs['GetJob'].timeout, - client_info=self._client_info, - ) + "get_job" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_job, + default_retry=self._method_configs["GetJob"].retry, + default_timeout=self._method_configs["GetJob"].timeout, + client_info=self._client_info, + ) request = jobs_pb2.GetJobRequest( - project_id=project_id, - region=region, - job_id=job_id, + project_id=project_id, region=region, job_id=job_id + ) + return self._inner_api_calls["get_job"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['get_job']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_jobs(self, - project_id, - region, - page_size=None, - cluster_name=None, - job_state_matcher=None, - filter_=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def list_jobs( + self, + project_id, + region, + page_size=None, + cluster_name=None, + job_state_matcher=None, + filter_=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists regions/{region}/jobs in a project. @@ -412,14 +418,15 @@ def list_jobs(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_jobs' not in self._inner_api_calls: + if "list_jobs" not in self._inner_api_calls: self._inner_api_calls[ - 'list_jobs'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_jobs, - default_retry=self._method_configs['ListJobs'].retry, - default_timeout=self._method_configs['ListJobs'].timeout, - client_info=self._client_info, - ) + "list_jobs" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_jobs, + default_retry=self._method_configs["ListJobs"].retry, + default_timeout=self._method_configs["ListJobs"].timeout, + client_info=self._client_info, + ) request = jobs_pb2.ListJobsRequest( project_id=project_id, @@ -432,26 +439,29 @@ def list_jobs(self, iterator = google.api_core.page_iterator.GRPCIterator( client=None, method=functools.partial( - self._inner_api_calls['list_jobs'], + self._inner_api_calls["list_jobs"], retry=retry, timeout=timeout, - metadata=metadata), + metadata=metadata, + ), request=request, - items_field='jobs', - request_token_field='page_token', - response_token_field='next_page_token', + items_field="jobs", + request_token_field="page_token", + response_token_field="next_page_token", ) return iterator - def update_job(self, - project_id, - region, - job_id, - job, - update_mask, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def update_job( + self, + project_id, + region, + job_id, + job, + update_mask, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Updates a job in a project. @@ -514,14 +524,15 @@ def update_job(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'update_job' not in self._inner_api_calls: + if "update_job" not in self._inner_api_calls: self._inner_api_calls[ - 'update_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_job, - default_retry=self._method_configs['UpdateJob'].retry, - default_timeout=self._method_configs['UpdateJob'].timeout, - client_info=self._client_info, - ) + "update_job" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_job, + default_retry=self._method_configs["UpdateJob"].retry, + default_timeout=self._method_configs["UpdateJob"].timeout, + client_info=self._client_info, + ) request = jobs_pb2.UpdateJobRequest( project_id=project_id, @@ -530,16 +541,19 @@ def update_job(self, job=job, update_mask=update_mask, ) - return self._inner_api_calls['update_job']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def cancel_job(self, - project_id, - region, - job_id, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["update_job"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def cancel_job( + self, + project_id, + region, + job_id, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Starts a job cancellation request. To access the job resource after cancellation, call @@ -588,30 +602,32 @@ def cancel_job(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'cancel_job' not in self._inner_api_calls: + if "cancel_job" not in self._inner_api_calls: self._inner_api_calls[ - 'cancel_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.cancel_job, - default_retry=self._method_configs['CancelJob'].retry, - default_timeout=self._method_configs['CancelJob'].timeout, - client_info=self._client_info, - ) + "cancel_job" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.cancel_job, + default_retry=self._method_configs["CancelJob"].retry, + default_timeout=self._method_configs["CancelJob"].timeout, + client_info=self._client_info, + ) request = jobs_pb2.CancelJobRequest( - project_id=project_id, - region=region, - job_id=job_id, + project_id=project_id, region=region, job_id=job_id + ) + return self._inner_api_calls["cancel_job"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['cancel_job']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def delete_job(self, - project_id, - region, - job_id, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def delete_job( + self, + project_id, + region, + job_id, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deletes the job from the project. If the job is active, the delete fails, and the response returns ``FAILED_PRECONDITION``. @@ -654,19 +670,19 @@ def delete_job(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'delete_job' not in self._inner_api_calls: + if "delete_job" not in self._inner_api_calls: self._inner_api_calls[ - 'delete_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_job, - default_retry=self._method_configs['DeleteJob'].retry, - default_timeout=self._method_configs['DeleteJob'].timeout, - client_info=self._client_info, - ) + "delete_job" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_job, + default_retry=self._method_configs["DeleteJob"].retry, + default_timeout=self._method_configs["DeleteJob"].timeout, + client_info=self._client_info, + ) request = jobs_pb2.DeleteJobRequest( - project_id=project_id, - region=region, - job_id=job_id, + project_id=project_id, region=region, job_id=job_id + ) + self._inner_api_calls["delete_job"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - self._inner_api_calls['delete_job']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client_config.py b/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client_config.py index e9ef06504cc22..7cc7eaba38df3 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client_config.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/job_controller_client_config.py @@ -3,7 +3,7 @@ "google.cloud.dataproc.v1.JobController": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "INTERNAL", "UNAVAILABLE"], - "non_idempotent": ["UNAVAILABLE"] + "non_idempotent": ["UNAVAILABLE"], }, "retry_params": { "default": { @@ -13,41 +13,41 @@ "initial_rpc_timeout_millis": 30000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 900000 + "total_timeout_millis": 900000, } }, "methods": { "SubmitJob": { "timeout_millis": 30000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetJob": { "timeout_millis": 30000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListJobs": { "timeout_millis": 30000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "UpdateJob": { "timeout_millis": 30000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "CancelJob": { "timeout_millis": 30000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeleteJob": { "timeout_millis": 30000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/dataproc/google/cloud/dataproc_v1/gapic/transports/cluster_controller_grpc_transport.py b/dataproc/google/cloud/dataproc_v1/gapic/transports/cluster_controller_grpc_transport.py index c9ce91b99ee0d..93e39b64ce3e0 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/transports/cluster_controller_grpc_transport.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/transports/cluster_controller_grpc_transport.py @@ -28,14 +28,14 @@ class ClusterControllerGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', ) + _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) - def __init__(self, - channel=None, - credentials=None, - address='dataproc.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="dataproc.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -53,35 +53,30 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - 'cluster_controller_stub': - clusters_pb2_grpc.ClusterControllerStub(channel), + "cluster_controller_stub": clusters_pb2_grpc.ClusterControllerStub(channel) } # Because this API includes a method that returns a # long-running operation (proto: google.longrunning.Operation), # instantiate an LRO client. self._operations_client = google.api_core.operations_v1.OperationsClient( - channel) + channel + ) @classmethod - def create_channel(cls, - address='dataproc.googleapis.com:443', - credentials=None): + def create_channel(cls, address="dataproc.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -96,9 +91,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -121,7 +114,7 @@ def create_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_controller_stub'].CreateCluster + return self._stubs["cluster_controller_stub"].CreateCluster @property def update_cluster(self): @@ -134,7 +127,7 @@ def update_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_controller_stub'].UpdateCluster + return self._stubs["cluster_controller_stub"].UpdateCluster @property def delete_cluster(self): @@ -147,7 +140,7 @@ def delete_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_controller_stub'].DeleteCluster + return self._stubs["cluster_controller_stub"].DeleteCluster @property def get_cluster(self): @@ -160,7 +153,7 @@ def get_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_controller_stub'].GetCluster + return self._stubs["cluster_controller_stub"].GetCluster @property def list_clusters(self): @@ -173,7 +166,7 @@ def list_clusters(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_controller_stub'].ListClusters + return self._stubs["cluster_controller_stub"].ListClusters @property def diagnose_cluster(self): @@ -187,4 +180,4 @@ def diagnose_cluster(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['cluster_controller_stub'].DiagnoseCluster + return self._stubs["cluster_controller_stub"].DiagnoseCluster diff --git a/dataproc/google/cloud/dataproc_v1/gapic/transports/job_controller_grpc_transport.py b/dataproc/google/cloud/dataproc_v1/gapic/transports/job_controller_grpc_transport.py index 77a8e35d2b9ee..2237d44c3797c 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/transports/job_controller_grpc_transport.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/transports/job_controller_grpc_transport.py @@ -27,14 +27,14 @@ class JobControllerGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', ) + _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) - def __init__(self, - channel=None, - credentials=None, - address='dataproc.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="dataproc.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -52,28 +52,21 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. - self._stubs = { - 'job_controller_stub': jobs_pb2_grpc.JobControllerStub(channel), - } + self._stubs = {"job_controller_stub": jobs_pb2_grpc.JobControllerStub(channel)} @classmethod - def create_channel(cls, - address='dataproc.googleapis.com:443', - credentials=None): + def create_channel(cls, address="dataproc.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -88,9 +81,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -113,7 +104,7 @@ def submit_job(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['job_controller_stub'].SubmitJob + return self._stubs["job_controller_stub"].SubmitJob @property def get_job(self): @@ -126,7 +117,7 @@ def get_job(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['job_controller_stub'].GetJob + return self._stubs["job_controller_stub"].GetJob @property def list_jobs(self): @@ -139,7 +130,7 @@ def list_jobs(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['job_controller_stub'].ListJobs + return self._stubs["job_controller_stub"].ListJobs @property def update_job(self): @@ -152,7 +143,7 @@ def update_job(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['job_controller_stub'].UpdateJob + return self._stubs["job_controller_stub"].UpdateJob @property def cancel_job(self): @@ -169,7 +160,7 @@ def cancel_job(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['job_controller_stub'].CancelJob + return self._stubs["job_controller_stub"].CancelJob @property def delete_job(self): @@ -183,4 +174,4 @@ def delete_job(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['job_controller_stub'].DeleteJob + return self._stubs["job_controller_stub"].DeleteJob diff --git a/dataproc/google/cloud/dataproc_v1/gapic/transports/workflow_template_service_grpc_transport.py b/dataproc/google/cloud/dataproc_v1/gapic/transports/workflow_template_service_grpc_transport.py index 7e4708fb6f71b..bdf1c84ed79e8 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/transports/workflow_template_service_grpc_transport.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/transports/workflow_template_service_grpc_transport.py @@ -28,14 +28,14 @@ class WorkflowTemplateServiceGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', ) + _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) - def __init__(self, - channel=None, - credentials=None, - address='dataproc.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="dataproc.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -53,35 +53,32 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - 'workflow_template_service_stub': - workflow_templates_pb2_grpc.WorkflowTemplateServiceStub(channel), + "workflow_template_service_stub": workflow_templates_pb2_grpc.WorkflowTemplateServiceStub( + channel + ) } # Because this API includes a method that returns a # long-running operation (proto: google.longrunning.Operation), # instantiate an LRO client. self._operations_client = google.api_core.operations_v1.OperationsClient( - channel) + channel + ) @classmethod - def create_channel(cls, - address='dataproc.googleapis.com:443', - credentials=None): + def create_channel(cls, address="dataproc.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -96,9 +93,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -121,8 +116,7 @@ def create_workflow_template(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'workflow_template_service_stub'].CreateWorkflowTemplate + return self._stubs["workflow_template_service_stub"].CreateWorkflowTemplate @property def get_workflow_template(self): @@ -138,8 +132,7 @@ def get_workflow_template(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'workflow_template_service_stub'].GetWorkflowTemplate + return self._stubs["workflow_template_service_stub"].GetWorkflowTemplate @property def instantiate_workflow_template(self): @@ -164,8 +157,7 @@ def instantiate_workflow_template(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'workflow_template_service_stub'].InstantiateWorkflowTemplate + return self._stubs["workflow_template_service_stub"].InstantiateWorkflowTemplate @property def instantiate_inline_workflow_template(self): @@ -195,7 +187,8 @@ def instantiate_inline_workflow_template(self): deserialized response object. """ return self._stubs[ - 'workflow_template_service_stub'].InstantiateInlineWorkflowTemplate + "workflow_template_service_stub" + ].InstantiateInlineWorkflowTemplate @property def update_workflow_template(self): @@ -209,8 +202,7 @@ def update_workflow_template(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'workflow_template_service_stub'].UpdateWorkflowTemplate + return self._stubs["workflow_template_service_stub"].UpdateWorkflowTemplate @property def list_workflow_templates(self): @@ -223,8 +215,7 @@ def list_workflow_templates(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'workflow_template_service_stub'].ListWorkflowTemplates + return self._stubs["workflow_template_service_stub"].ListWorkflowTemplates @property def delete_workflow_template(self): @@ -237,5 +228,4 @@ def delete_workflow_template(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'workflow_template_service_stub'].DeleteWorkflowTemplate + return self._stubs["workflow_template_service_stub"].DeleteWorkflowTemplate diff --git a/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client.py b/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client.py index 5e97b4ea63274..25507ea49f75a 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client.py @@ -32,7 +32,9 @@ from google.cloud.dataproc_v1.gapic import enums from google.cloud.dataproc_v1.gapic import workflow_template_service_client_config -from google.cloud.dataproc_v1.gapic.transports import workflow_template_service_grpc_transport +from google.cloud.dataproc_v1.gapic.transports import ( + workflow_template_service_grpc_transport, +) from google.cloud.dataproc_v1.proto import clusters_pb2 from google.cloud.dataproc_v1.proto import clusters_pb2_grpc from google.cloud.dataproc_v1.proto import jobs_pb2 @@ -45,8 +47,7 @@ from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-dataproc', ).version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-dataproc").version class WorkflowTemplateServiceClient(object): @@ -55,12 +56,12 @@ class WorkflowTemplateServiceClient(object): Cloud Dataproc API. """ - SERVICE_ADDRESS = 'dataproc.googleapis.com:443' + SERVICE_ADDRESS = "dataproc.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.cloud.dataproc.v1.WorkflowTemplateService' + _INTERFACE_NAME = "google.cloud.dataproc.v1.WorkflowTemplateService" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -76,9 +77,8 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: WorkflowTemplateServiceClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file @@ -87,27 +87,27 @@ def from_service_account_file(cls, filename, *args, **kwargs): def region_path(cls, project, region): """Return a fully-qualified region string.""" return google.api_core.path_template.expand( - 'projects/{project}/regions/{region}', - project=project, - region=region, + "projects/{project}/regions/{region}", project=project, region=region ) @classmethod def workflow_template_path(cls, project, region, workflow_template): """Return a fully-qualified workflow_template string.""" return google.api_core.path_template.expand( - 'projects/{project}/regions/{region}/workflowTemplates/{workflow_template}', + "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}", project=project, region=region, workflow_template=workflow_template, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -141,18 +141,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = workflow_template_service_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -161,25 +162,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=workflow_template_service_grpc_transport. - WorkflowTemplateServiceGrpcTransport, + default_class=workflow_template_service_grpc_transport.WorkflowTemplateServiceGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = workflow_template_service_grpc_transport.WorkflowTemplateServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -189,7 +189,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -199,12 +200,13 @@ def __init__(self, # Service calls def create_workflow_template( - self, - parent, - template, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + parent, + template, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Creates new workflow template. @@ -248,30 +250,31 @@ def create_workflow_template( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'create_workflow_template' not in self._inner_api_calls: + if "create_workflow_template" not in self._inner_api_calls: self._inner_api_calls[ - 'create_workflow_template'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_workflow_template, - default_retry=self. - _method_configs['CreateWorkflowTemplate'].retry, - default_timeout=self. - _method_configs['CreateWorkflowTemplate'].timeout, - client_info=self._client_info, - ) + "create_workflow_template" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_workflow_template, + default_retry=self._method_configs["CreateWorkflowTemplate"].retry, + default_timeout=self._method_configs["CreateWorkflowTemplate"].timeout, + client_info=self._client_info, + ) request = workflow_templates_pb2.CreateWorkflowTemplateRequest( - parent=parent, - template=template, + parent=parent, template=template + ) + return self._inner_api_calls["create_workflow_template"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['create_workflow_template']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_workflow_template(self, - name, - version=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def get_workflow_template( + self, + name, + version=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Retrieves the latest workflow template. @@ -315,33 +318,33 @@ def get_workflow_template(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'get_workflow_template' not in self._inner_api_calls: + if "get_workflow_template" not in self._inner_api_calls: self._inner_api_calls[ - 'get_workflow_template'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_workflow_template, - default_retry=self._method_configs['GetWorkflowTemplate']. - retry, - default_timeout=self. - _method_configs['GetWorkflowTemplate'].timeout, - client_info=self._client_info, - ) + "get_workflow_template" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_workflow_template, + default_retry=self._method_configs["GetWorkflowTemplate"].retry, + default_timeout=self._method_configs["GetWorkflowTemplate"].timeout, + client_info=self._client_info, + ) request = workflow_templates_pb2.GetWorkflowTemplateRequest( - name=name, - version=version, + name=name, version=version + ) + return self._inner_api_calls["get_workflow_template"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['get_workflow_template']( - request, retry=retry, timeout=timeout, metadata=metadata) def instantiate_workflow_template( - self, - name, - version=None, - request_id=None, - parameters=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + name, + version=None, + request_id=None, + parameters=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Instantiates a template and begins execution. @@ -416,25 +419,24 @@ def instantiate_workflow_template( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'instantiate_workflow_template' not in self._inner_api_calls: + if "instantiate_workflow_template" not in self._inner_api_calls: self._inner_api_calls[ - 'instantiate_workflow_template'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.instantiate_workflow_template, - default_retry=self. - _method_configs['InstantiateWorkflowTemplate'].retry, - default_timeout=self. - _method_configs['InstantiateWorkflowTemplate'].timeout, - client_info=self._client_info, - ) + "instantiate_workflow_template" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.instantiate_workflow_template, + default_retry=self._method_configs["InstantiateWorkflowTemplate"].retry, + default_timeout=self._method_configs[ + "InstantiateWorkflowTemplate" + ].timeout, + client_info=self._client_info, + ) request = workflow_templates_pb2.InstantiateWorkflowTemplateRequest( - name=name, - version=version, - request_id=request_id, - parameters=parameters, + name=name, version=version, request_id=request_id, parameters=parameters + ) + operation = self._inner_api_calls["instantiate_workflow_template"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - operation = self._inner_api_calls['instantiate_workflow_template']( - request, retry=retry, timeout=timeout, metadata=metadata) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -443,13 +445,14 @@ def instantiate_workflow_template( ) def instantiate_inline_workflow_template( - self, - parent, - template, - request_id=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + parent, + template, + request_id=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Instantiates a template and begins execution. @@ -527,25 +530,26 @@ def instantiate_inline_workflow_template( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'instantiate_inline_workflow_template' not in self._inner_api_calls: + if "instantiate_inline_workflow_template" not in self._inner_api_calls: self._inner_api_calls[ - 'instantiate_inline_workflow_template'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.instantiate_inline_workflow_template, - default_retry=self. - _method_configs['InstantiateInlineWorkflowTemplate'].retry, - default_timeout=self._method_configs[ - 'InstantiateInlineWorkflowTemplate'].timeout, - client_info=self._client_info, - ) + "instantiate_inline_workflow_template" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.instantiate_inline_workflow_template, + default_retry=self._method_configs[ + "InstantiateInlineWorkflowTemplate" + ].retry, + default_timeout=self._method_configs[ + "InstantiateInlineWorkflowTemplate" + ].timeout, + client_info=self._client_info, + ) request = workflow_templates_pb2.InstantiateInlineWorkflowTemplateRequest( - parent=parent, - template=template, - request_id=request_id, + parent=parent, template=template, request_id=request_id + ) + operation = self._inner_api_calls["instantiate_inline_workflow_template"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - operation = self._inner_api_calls[ - 'instantiate_inline_workflow_template']( - request, retry=retry, timeout=timeout, metadata=metadata) return google.api_core.operation.from_gapic( operation, self.transport._operations_client, @@ -554,11 +558,12 @@ def instantiate_inline_workflow_template( ) def update_workflow_template( - self, - template, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + template, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Updates (replaces) workflow template. The updated template must contain version that matches the current server version. @@ -600,29 +605,31 @@ def update_workflow_template( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'update_workflow_template' not in self._inner_api_calls: + if "update_workflow_template" not in self._inner_api_calls: self._inner_api_calls[ - 'update_workflow_template'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_workflow_template, - default_retry=self. - _method_configs['UpdateWorkflowTemplate'].retry, - default_timeout=self. - _method_configs['UpdateWorkflowTemplate'].timeout, - client_info=self._client_info, - ) + "update_workflow_template" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_workflow_template, + default_retry=self._method_configs["UpdateWorkflowTemplate"].retry, + default_timeout=self._method_configs["UpdateWorkflowTemplate"].timeout, + client_info=self._client_info, + ) request = workflow_templates_pb2.UpdateWorkflowTemplateRequest( - template=template, ) - return self._inner_api_calls['update_workflow_template']( - request, retry=retry, timeout=timeout, metadata=metadata) + template=template + ) + return self._inner_api_calls["update_workflow_template"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) def list_workflow_templates( - self, - parent, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + parent, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Lists workflows that match the specified filter in the request. @@ -679,42 +686,42 @@ def list_workflow_templates( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'list_workflow_templates' not in self._inner_api_calls: + if "list_workflow_templates" not in self._inner_api_calls: self._inner_api_calls[ - 'list_workflow_templates'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_workflow_templates, - default_retry=self. - _method_configs['ListWorkflowTemplates'].retry, - default_timeout=self. - _method_configs['ListWorkflowTemplates'].timeout, - client_info=self._client_info, - ) + "list_workflow_templates" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_workflow_templates, + default_retry=self._method_configs["ListWorkflowTemplates"].retry, + default_timeout=self._method_configs["ListWorkflowTemplates"].timeout, + client_info=self._client_info, + ) request = workflow_templates_pb2.ListWorkflowTemplatesRequest( - parent=parent, - page_size=page_size, + parent=parent, page_size=page_size ) iterator = google.api_core.page_iterator.GRPCIterator( client=None, method=functools.partial( - self._inner_api_calls['list_workflow_templates'], + self._inner_api_calls["list_workflow_templates"], retry=retry, timeout=timeout, - metadata=metadata), + metadata=metadata, + ), request=request, - items_field='templates', - request_token_field='page_token', - response_token_field='next_page_token', + items_field="templates", + request_token_field="page_token", + response_token_field="next_page_token", ) return iterator def delete_workflow_template( - self, - name, - version=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + self, + name, + version=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Deletes a workflow template. It does not cancel in-progress workflows. @@ -751,20 +758,19 @@ def delete_workflow_template( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'delete_workflow_template' not in self._inner_api_calls: + if "delete_workflow_template" not in self._inner_api_calls: self._inner_api_calls[ - 'delete_workflow_template'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_workflow_template, - default_retry=self. - _method_configs['DeleteWorkflowTemplate'].retry, - default_timeout=self. - _method_configs['DeleteWorkflowTemplate'].timeout, - client_info=self._client_info, - ) + "delete_workflow_template" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_workflow_template, + default_retry=self._method_configs["DeleteWorkflowTemplate"].retry, + default_timeout=self._method_configs["DeleteWorkflowTemplate"].timeout, + client_info=self._client_info, + ) request = workflow_templates_pb2.DeleteWorkflowTemplateRequest( - name=name, - version=version, + name=name, version=version + ) + self._inner_api_calls["delete_workflow_template"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - self._inner_api_calls['delete_workflow_template']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client_config.py b/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client_config.py index 92ab51c80e833..65b6260b5801c 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client_config.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client_config.py @@ -3,7 +3,7 @@ "google.cloud.dataproc.v1.WorkflowTemplateService": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "INTERNAL", "UNAVAILABLE"], - "non_idempotent": ["UNAVAILABLE"] + "non_idempotent": ["UNAVAILABLE"], }, "retry_params": { "default": { @@ -13,46 +13,46 @@ "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 + "total_timeout_millis": 600000, } }, "methods": { "CreateWorkflowTemplate": { "timeout_millis": 30000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "GetWorkflowTemplate": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "InstantiateWorkflowTemplate": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "InstantiateInlineWorkflowTemplate": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "UpdateWorkflowTemplate": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ListWorkflowTemplates": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "DeleteWorkflowTemplate": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2.py b/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2.py index 9088d53331a2c..ac64b2bd6c0a5 100644 --- a/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2.py +++ b/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2.py @@ -2,1394 +2,2335 @@ # source: google/cloud/dataproc_v1/proto/clusters.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1/proto/clusters.proto', - package='google.cloud.dataproc.v1', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/dataproc_v1/proto/clusters.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa5\x03\n\x07\x43luster\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x37\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterConfig\x12=\n\x06labels\x18\x08 \x03(\x0b\x32-.google.cloud.dataproc.v1.Cluster.LabelsEntry\x12\x37\n\x06status\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatus\x12?\n\x0estatus_history\x18\x07 \x03(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatus\x12\x14\n\x0c\x63luster_uuid\x18\x06 \x01(\t\x12\x39\n\x07metrics\x18\t \x01(\x0b\x32(.google.cloud.dataproc.v1.ClusterMetrics\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa8\x04\n\rClusterConfig\x12\x15\n\rconfig_bucket\x18\x01 \x01(\t\x12\x46\n\x12gce_cluster_config\x18\x08 \x01(\x0b\x32*.google.cloud.dataproc.v1.GceClusterConfig\x12\x44\n\rmaster_config\x18\t \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfig\x12\x44\n\rworker_config\x18\n \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfig\x12N\n\x17secondary_worker_config\x18\x0c \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfig\x12\x41\n\x0fsoftware_config\x18\r \x01(\x0b\x32(.google.cloud.dataproc.v1.SoftwareConfig\x12R\n\x16initialization_actions\x18\x0b \x03(\x0b\x32\x32.google.cloud.dataproc.v1.NodeInitializationAction\x12\x45\n\x11\x65ncryption_config\x18\x0f \x01(\x0b\x32*.google.cloud.dataproc.v1.EncryptionConfig\"/\n\x10\x45ncryptionConfig\x12\x1b\n\x13gce_pd_kms_key_name\x18\x01 \x01(\t\"\xaf\x02\n\x10GceClusterConfig\x12\x10\n\x08zone_uri\x18\x01 \x01(\t\x12\x13\n\x0bnetwork_uri\x18\x02 \x01(\t\x12\x16\n\x0esubnetwork_uri\x18\x06 \x01(\t\x12\x18\n\x10internal_ip_only\x18\x07 \x01(\x08\x12\x17\n\x0fservice_account\x18\x08 \x01(\t\x12\x1e\n\x16service_account_scopes\x18\x03 \x03(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd3\x02\n\x13InstanceGroupConfig\x12\x15\n\rnum_instances\x18\x01 \x01(\x05\x12\x16\n\x0einstance_names\x18\x02 \x03(\t\x12\x11\n\timage_uri\x18\x03 \x01(\t\x12\x18\n\x10machine_type_uri\x18\x04 \x01(\t\x12\x39\n\x0b\x64isk_config\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.DiskConfig\x12\x16\n\x0eis_preemptible\x18\x06 \x01(\x08\x12J\n\x14managed_group_config\x18\x07 \x01(\x0b\x32,.google.cloud.dataproc.v1.ManagedGroupConfig\x12\x41\n\x0c\x61\x63\x63\x65lerators\x18\x08 \x03(\x0b\x32+.google.cloud.dataproc.v1.AcceleratorConfig\"Y\n\x12ManagedGroupConfig\x12\x1e\n\x16instance_template_name\x18\x01 \x01(\t\x12#\n\x1binstance_group_manager_name\x18\x02 \x01(\t\"L\n\x11\x41\x63\x63\x65leratorConfig\x12\x1c\n\x14\x61\x63\x63\x65lerator_type_uri\x18\x01 \x01(\t\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x02 \x01(\x05\"W\n\nDiskConfig\x12\x16\n\x0e\x62oot_disk_type\x18\x03 \x01(\t\x12\x19\n\x11\x62oot_disk_size_gb\x18\x01 \x01(\x05\x12\x16\n\x0enum_local_ssds\x18\x02 \x01(\x05\"i\n\x18NodeInitializationAction\x12\x17\n\x0f\x65xecutable_file\x18\x01 \x01(\t\x12\x34\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xed\x02\n\rClusterStatus\x12<\n\x05state\x18\x01 \x01(\x0e\x32-.google.cloud.dataproc.v1.ClusterStatus.State\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x08substate\x18\x04 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.ClusterStatus.Substate\"V\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\"<\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tUNHEALTHY\x10\x01\x12\x10\n\x0cSTALE_STATUS\x10\x02\"\xa8\x01\n\x0eSoftwareConfig\x12\x15\n\rimage_version\x18\x01 \x01(\t\x12L\n\nproperties\x18\x02 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9a\x02\n\x0e\x43lusterMetrics\x12O\n\x0chdfs_metrics\x18\x01 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\x12O\n\x0cyarn_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\x1a\x32\n\x10HdfsMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x32\n\x10YarnMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\x82\x01\n\x14\x43reateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x32\n\x07\x63luster\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.Cluster\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"\x8b\x02\n\x14UpdateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x32\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.cloud.dataproc.v1.Cluster\x12@\n\x1dgraceful_decommission_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\nrequest_id\x18\x07 \x01(\t\"z\n\x14\x44\x65leteClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\"M\n\x11GetClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\"p\n\x13ListClustersRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"d\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x16\x44iagnoseClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\",\n\x16\x44iagnoseClusterResults\x12\x12\n\noutput_uri\x18\x01 \x01(\t2\xb2\x08\n\x11\x43lusterController\x12\xa4\x01\n\rCreateCluster\x12..google.cloud.dataproc.v1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"D\x82\xd3\xe4\x93\x02>\"3/v1/projects/{project_id}/regions/{region}/clusters:\x07\x63luster\x12\xb3\x01\n\rUpdateCluster\x12..google.cloud.dataproc.v1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"S\x82\xd3\xe4\x93\x02M2B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\x07\x63luster\x12\xaa\x01\n\rDeleteCluster\x12..google.cloud.dataproc.v1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"J\x82\xd3\xe4\x93\x02\x44*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xa8\x01\n\nGetCluster\x12+.google.cloud.dataproc.v1.GetClusterRequest\x1a!.google.cloud.dataproc.v1.Cluster\"J\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xaa\x01\n\x0cListClusters\x12-.google.cloud.dataproc.v1.ListClustersRequest\x1a..google.cloud.dataproc.v1.ListClustersResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/projects/{project_id}/regions/{region}/clusters\x12\xba\x01\n\x0f\x44iagnoseCluster\x12\x30.google.cloud.dataproc.v1.DiagnoseClusterRequest\x1a\x1d.google.longrunning.Operation\"V\x82\xd3\xe4\x93\x02P\"K/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\x01*Bq\n\x1c\x63om.google.cloud.dataproc.v1B\rClustersProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1/proto/clusters.proto", + package="google.cloud.dataproc.v1", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/dataproc_v1/proto/clusters.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa5\x03\n\x07\x43luster\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x37\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterConfig\x12=\n\x06labels\x18\x08 \x03(\x0b\x32-.google.cloud.dataproc.v1.Cluster.LabelsEntry\x12\x37\n\x06status\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatus\x12?\n\x0estatus_history\x18\x07 \x03(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatus\x12\x14\n\x0c\x63luster_uuid\x18\x06 \x01(\t\x12\x39\n\x07metrics\x18\t \x01(\x0b\x32(.google.cloud.dataproc.v1.ClusterMetrics\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xa8\x04\n\rClusterConfig\x12\x15\n\rconfig_bucket\x18\x01 \x01(\t\x12\x46\n\x12gce_cluster_config\x18\x08 \x01(\x0b\x32*.google.cloud.dataproc.v1.GceClusterConfig\x12\x44\n\rmaster_config\x18\t \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfig\x12\x44\n\rworker_config\x18\n \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfig\x12N\n\x17secondary_worker_config\x18\x0c \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfig\x12\x41\n\x0fsoftware_config\x18\r \x01(\x0b\x32(.google.cloud.dataproc.v1.SoftwareConfig\x12R\n\x16initialization_actions\x18\x0b \x03(\x0b\x32\x32.google.cloud.dataproc.v1.NodeInitializationAction\x12\x45\n\x11\x65ncryption_config\x18\x0f \x01(\x0b\x32*.google.cloud.dataproc.v1.EncryptionConfig"/\n\x10\x45ncryptionConfig\x12\x1b\n\x13gce_pd_kms_key_name\x18\x01 \x01(\t"\xaf\x02\n\x10GceClusterConfig\x12\x10\n\x08zone_uri\x18\x01 \x01(\t\x12\x13\n\x0bnetwork_uri\x18\x02 \x01(\t\x12\x16\n\x0esubnetwork_uri\x18\x06 \x01(\t\x12\x18\n\x10internal_ip_only\x18\x07 \x01(\x08\x12\x17\n\x0fservice_account\x18\x08 \x01(\t\x12\x1e\n\x16service_account_scopes\x18\x03 \x03(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xd3\x02\n\x13InstanceGroupConfig\x12\x15\n\rnum_instances\x18\x01 \x01(\x05\x12\x16\n\x0einstance_names\x18\x02 \x03(\t\x12\x11\n\timage_uri\x18\x03 \x01(\t\x12\x18\n\x10machine_type_uri\x18\x04 \x01(\t\x12\x39\n\x0b\x64isk_config\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.DiskConfig\x12\x16\n\x0eis_preemptible\x18\x06 \x01(\x08\x12J\n\x14managed_group_config\x18\x07 \x01(\x0b\x32,.google.cloud.dataproc.v1.ManagedGroupConfig\x12\x41\n\x0c\x61\x63\x63\x65lerators\x18\x08 \x03(\x0b\x32+.google.cloud.dataproc.v1.AcceleratorConfig"Y\n\x12ManagedGroupConfig\x12\x1e\n\x16instance_template_name\x18\x01 \x01(\t\x12#\n\x1binstance_group_manager_name\x18\x02 \x01(\t"L\n\x11\x41\x63\x63\x65leratorConfig\x12\x1c\n\x14\x61\x63\x63\x65lerator_type_uri\x18\x01 \x01(\t\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x02 \x01(\x05"W\n\nDiskConfig\x12\x16\n\x0e\x62oot_disk_type\x18\x03 \x01(\t\x12\x19\n\x11\x62oot_disk_size_gb\x18\x01 \x01(\x05\x12\x16\n\x0enum_local_ssds\x18\x02 \x01(\x05"i\n\x18NodeInitializationAction\x12\x17\n\x0f\x65xecutable_file\x18\x01 \x01(\t\x12\x34\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xed\x02\n\rClusterStatus\x12<\n\x05state\x18\x01 \x01(\x0e\x32-.google.cloud.dataproc.v1.ClusterStatus.State\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x08substate\x18\x04 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.ClusterStatus.Substate"V\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05"<\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tUNHEALTHY\x10\x01\x12\x10\n\x0cSTALE_STATUS\x10\x02"\xa8\x01\n\x0eSoftwareConfig\x12\x15\n\rimage_version\x18\x01 \x01(\t\x12L\n\nproperties\x18\x02 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x9a\x02\n\x0e\x43lusterMetrics\x12O\n\x0chdfs_metrics\x18\x01 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\x12O\n\x0cyarn_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\x1a\x32\n\x10HdfsMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x32\n\x10YarnMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01"\x82\x01\n\x14\x43reateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x32\n\x07\x63luster\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.Cluster\x12\x12\n\nrequest_id\x18\x04 \x01(\t"\x8b\x02\n\x14UpdateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x32\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.cloud.dataproc.v1.Cluster\x12@\n\x1dgraceful_decommission_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\nrequest_id\x18\x07 \x01(\t"z\n\x14\x44\x65leteClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"M\n\x11GetClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t"p\n\x13ListClustersRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"d\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"R\n\x16\x44iagnoseClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t",\n\x16\x44iagnoseClusterResults\x12\x12\n\noutput_uri\x18\x01 \x01(\t2\xb2\x08\n\x11\x43lusterController\x12\xa4\x01\n\rCreateCluster\x12..google.cloud.dataproc.v1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation"D\x82\xd3\xe4\x93\x02>"3/v1/projects/{project_id}/regions/{region}/clusters:\x07\x63luster\x12\xb3\x01\n\rUpdateCluster\x12..google.cloud.dataproc.v1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation"S\x82\xd3\xe4\x93\x02M2B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\x07\x63luster\x12\xaa\x01\n\rDeleteCluster\x12..google.cloud.dataproc.v1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation"J\x82\xd3\xe4\x93\x02\x44*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xa8\x01\n\nGetCluster\x12+.google.cloud.dataproc.v1.GetClusterRequest\x1a!.google.cloud.dataproc.v1.Cluster"J\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xaa\x01\n\x0cListClusters\x12-.google.cloud.dataproc.v1.ListClustersRequest\x1a..google.cloud.dataproc.v1.ListClustersResponse";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/projects/{project_id}/regions/{region}/clusters\x12\xba\x01\n\x0f\x44iagnoseCluster\x12\x30.google.cloud.dataproc.v1.DiagnoseClusterRequest\x1a\x1d.google.longrunning.Operation"V\x82\xd3\xe4\x93\x02P"K/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\x01*Bq\n\x1c\x63om.google.cloud.dataproc.v1B\rClustersProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataprocb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _CLUSTERSTATUS_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1.ClusterStatus.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETING', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPDATING', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2500, - serialized_end=2586, + name="State", + full_name="google.cloud.dataproc.v1.ClusterStatus.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETING", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPDATING", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2500, + serialized_end=2586, ) _sym_db.RegisterEnumDescriptor(_CLUSTERSTATUS_STATE) _CLUSTERSTATUS_SUBSTATE = _descriptor.EnumDescriptor( - name='Substate', - full_name='google.cloud.dataproc.v1.ClusterStatus.Substate', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNHEALTHY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STALE_STATUS', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2588, - serialized_end=2648, + name="Substate", + full_name="google.cloud.dataproc.v1.ClusterStatus.Substate", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNHEALTHY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STALE_STATUS", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2588, + serialized_end=2648, ) _sym_db.RegisterEnumDescriptor(_CLUSTERSTATUS_SUBSTATE) _CLUSTER_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1.Cluster.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.Cluster.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.Cluster.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=618, - serialized_end=663, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1.Cluster.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.Cluster.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.Cluster.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=618, + serialized_end=663, ) _CLUSTER = _descriptor.Descriptor( - name='Cluster', - full_name='google.cloud.dataproc.v1.Cluster', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.Cluster.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.Cluster.cluster_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='config', full_name='google.cloud.dataproc.v1.Cluster.config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1.Cluster.labels', index=3, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.dataproc.v1.Cluster.status', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_history', full_name='google.cloud.dataproc.v1.Cluster.status_history', index=5, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1.Cluster.cluster_uuid', index=6, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metrics', full_name='google.cloud.dataproc.v1.Cluster.metrics', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLUSTER_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=242, - serialized_end=663, + name="Cluster", + full_name="google.cloud.dataproc.v1.Cluster", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.Cluster.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.Cluster.cluster_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="config", + full_name="google.cloud.dataproc.v1.Cluster.config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1.Cluster.labels", + index=3, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.dataproc.v1.Cluster.status", + index=4, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_history", + full_name="google.cloud.dataproc.v1.Cluster.status_history", + index=5, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1.Cluster.cluster_uuid", + index=6, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metrics", + full_name="google.cloud.dataproc.v1.Cluster.metrics", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLUSTER_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=242, + serialized_end=663, ) _CLUSTERCONFIG = _descriptor.Descriptor( - name='ClusterConfig', - full_name='google.cloud.dataproc.v1.ClusterConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='config_bucket', full_name='google.cloud.dataproc.v1.ClusterConfig.config_bucket', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gce_cluster_config', full_name='google.cloud.dataproc.v1.ClusterConfig.gce_cluster_config', index=1, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='master_config', full_name='google.cloud.dataproc.v1.ClusterConfig.master_config', index=2, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='worker_config', full_name='google.cloud.dataproc.v1.ClusterConfig.worker_config', index=3, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='secondary_worker_config', full_name='google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config', index=4, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='software_config', full_name='google.cloud.dataproc.v1.ClusterConfig.software_config', index=5, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='initialization_actions', full_name='google.cloud.dataproc.v1.ClusterConfig.initialization_actions', index=6, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encryption_config', full_name='google.cloud.dataproc.v1.ClusterConfig.encryption_config', index=7, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=666, - serialized_end=1218, + name="ClusterConfig", + full_name="google.cloud.dataproc.v1.ClusterConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="config_bucket", + full_name="google.cloud.dataproc.v1.ClusterConfig.config_bucket", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gce_cluster_config", + full_name="google.cloud.dataproc.v1.ClusterConfig.gce_cluster_config", + index=1, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="master_config", + full_name="google.cloud.dataproc.v1.ClusterConfig.master_config", + index=2, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="worker_config", + full_name="google.cloud.dataproc.v1.ClusterConfig.worker_config", + index=3, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="secondary_worker_config", + full_name="google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config", + index=4, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="software_config", + full_name="google.cloud.dataproc.v1.ClusterConfig.software_config", + index=5, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="initialization_actions", + full_name="google.cloud.dataproc.v1.ClusterConfig.initialization_actions", + index=6, + number=11, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encryption_config", + full_name="google.cloud.dataproc.v1.ClusterConfig.encryption_config", + index=7, + number=15, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=666, + serialized_end=1218, ) _ENCRYPTIONCONFIG = _descriptor.Descriptor( - name='EncryptionConfig', - full_name='google.cloud.dataproc.v1.EncryptionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gce_pd_kms_key_name', full_name='google.cloud.dataproc.v1.EncryptionConfig.gce_pd_kms_key_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1220, - serialized_end=1267, + name="EncryptionConfig", + full_name="google.cloud.dataproc.v1.EncryptionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gce_pd_kms_key_name", + full_name="google.cloud.dataproc.v1.EncryptionConfig.gce_pd_kms_key_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1220, + serialized_end=1267, ) _GCECLUSTERCONFIG_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1526, - serialized_end=1573, + name="MetadataEntry", + full_name="google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1526, + serialized_end=1573, ) _GCECLUSTERCONFIG = _descriptor.Descriptor( - name='GceClusterConfig', - full_name='google.cloud.dataproc.v1.GceClusterConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='zone_uri', full_name='google.cloud.dataproc.v1.GceClusterConfig.zone_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='network_uri', full_name='google.cloud.dataproc.v1.GceClusterConfig.network_uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subnetwork_uri', full_name='google.cloud.dataproc.v1.GceClusterConfig.subnetwork_uri', index=2, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='internal_ip_only', full_name='google.cloud.dataproc.v1.GceClusterConfig.internal_ip_only', index=3, - number=7, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_account', full_name='google.cloud.dataproc.v1.GceClusterConfig.service_account', index=4, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_account_scopes', full_name='google.cloud.dataproc.v1.GceClusterConfig.service_account_scopes', index=5, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tags', full_name='google.cloud.dataproc.v1.GceClusterConfig.tags', index=6, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.dataproc.v1.GceClusterConfig.metadata', index=7, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_GCECLUSTERCONFIG_METADATAENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1270, - serialized_end=1573, + name="GceClusterConfig", + full_name="google.cloud.dataproc.v1.GceClusterConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="zone_uri", + full_name="google.cloud.dataproc.v1.GceClusterConfig.zone_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="network_uri", + full_name="google.cloud.dataproc.v1.GceClusterConfig.network_uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="subnetwork_uri", + full_name="google.cloud.dataproc.v1.GceClusterConfig.subnetwork_uri", + index=2, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="internal_ip_only", + full_name="google.cloud.dataproc.v1.GceClusterConfig.internal_ip_only", + index=3, + number=7, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_account", + full_name="google.cloud.dataproc.v1.GceClusterConfig.service_account", + index=4, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_account_scopes", + full_name="google.cloud.dataproc.v1.GceClusterConfig.service_account_scopes", + index=5, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tags", + full_name="google.cloud.dataproc.v1.GceClusterConfig.tags", + index=6, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.cloud.dataproc.v1.GceClusterConfig.metadata", + index=7, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_GCECLUSTERCONFIG_METADATAENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1270, + serialized_end=1573, ) _INSTANCEGROUPCONFIG = _descriptor.Descriptor( - name='InstanceGroupConfig', - full_name='google.cloud.dataproc.v1.InstanceGroupConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='num_instances', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.num_instances', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_names', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.instance_names', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_uri', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.image_uri', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='machine_type_uri', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.machine_type_uri', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='disk_config', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.disk_config', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_preemptible', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.is_preemptible', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='managed_group_config', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.managed_group_config', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='accelerators', full_name='google.cloud.dataproc.v1.InstanceGroupConfig.accelerators', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1576, - serialized_end=1915, + name="InstanceGroupConfig", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="num_instances", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.num_instances", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_names", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.instance_names", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_uri", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.image_uri", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="machine_type_uri", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.machine_type_uri", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="disk_config", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.disk_config", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_preemptible", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.is_preemptible", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="managed_group_config", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.managed_group_config", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="accelerators", + full_name="google.cloud.dataproc.v1.InstanceGroupConfig.accelerators", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1576, + serialized_end=1915, ) _MANAGEDGROUPCONFIG = _descriptor.Descriptor( - name='ManagedGroupConfig', - full_name='google.cloud.dataproc.v1.ManagedGroupConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance_template_name', full_name='google.cloud.dataproc.v1.ManagedGroupConfig.instance_template_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_group_manager_name', full_name='google.cloud.dataproc.v1.ManagedGroupConfig.instance_group_manager_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1917, - serialized_end=2006, + name="ManagedGroupConfig", + full_name="google.cloud.dataproc.v1.ManagedGroupConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instance_template_name", + full_name="google.cloud.dataproc.v1.ManagedGroupConfig.instance_template_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_group_manager_name", + full_name="google.cloud.dataproc.v1.ManagedGroupConfig.instance_group_manager_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1917, + serialized_end=2006, ) _ACCELERATORCONFIG = _descriptor.Descriptor( - name='AcceleratorConfig', - full_name='google.cloud.dataproc.v1.AcceleratorConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='accelerator_type_uri', full_name='google.cloud.dataproc.v1.AcceleratorConfig.accelerator_type_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='accelerator_count', full_name='google.cloud.dataproc.v1.AcceleratorConfig.accelerator_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2008, - serialized_end=2084, + name="AcceleratorConfig", + full_name="google.cloud.dataproc.v1.AcceleratorConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="accelerator_type_uri", + full_name="google.cloud.dataproc.v1.AcceleratorConfig.accelerator_type_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="accelerator_count", + full_name="google.cloud.dataproc.v1.AcceleratorConfig.accelerator_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2008, + serialized_end=2084, ) _DISKCONFIG = _descriptor.Descriptor( - name='DiskConfig', - full_name='google.cloud.dataproc.v1.DiskConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='boot_disk_type', full_name='google.cloud.dataproc.v1.DiskConfig.boot_disk_type', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='boot_disk_size_gb', full_name='google.cloud.dataproc.v1.DiskConfig.boot_disk_size_gb', index=1, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='num_local_ssds', full_name='google.cloud.dataproc.v1.DiskConfig.num_local_ssds', index=2, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2086, - serialized_end=2173, + name="DiskConfig", + full_name="google.cloud.dataproc.v1.DiskConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="boot_disk_type", + full_name="google.cloud.dataproc.v1.DiskConfig.boot_disk_type", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="boot_disk_size_gb", + full_name="google.cloud.dataproc.v1.DiskConfig.boot_disk_size_gb", + index=1, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="num_local_ssds", + full_name="google.cloud.dataproc.v1.DiskConfig.num_local_ssds", + index=2, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2086, + serialized_end=2173, ) _NODEINITIALIZATIONACTION = _descriptor.Descriptor( - name='NodeInitializationAction', - full_name='google.cloud.dataproc.v1.NodeInitializationAction', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='executable_file', full_name='google.cloud.dataproc.v1.NodeInitializationAction.executable_file', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='execution_timeout', full_name='google.cloud.dataproc.v1.NodeInitializationAction.execution_timeout', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2175, - serialized_end=2280, + name="NodeInitializationAction", + full_name="google.cloud.dataproc.v1.NodeInitializationAction", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="executable_file", + full_name="google.cloud.dataproc.v1.NodeInitializationAction.executable_file", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="execution_timeout", + full_name="google.cloud.dataproc.v1.NodeInitializationAction.execution_timeout", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2175, + serialized_end=2280, ) _CLUSTERSTATUS = _descriptor.Descriptor( - name='ClusterStatus', - full_name='google.cloud.dataproc.v1.ClusterStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1.ClusterStatus.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detail', full_name='google.cloud.dataproc.v1.ClusterStatus.detail', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state_start_time', full_name='google.cloud.dataproc.v1.ClusterStatus.state_start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='substate', full_name='google.cloud.dataproc.v1.ClusterStatus.substate', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CLUSTERSTATUS_STATE, - _CLUSTERSTATUS_SUBSTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2283, - serialized_end=2648, + name="ClusterStatus", + full_name="google.cloud.dataproc.v1.ClusterStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1.ClusterStatus.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detail", + full_name="google.cloud.dataproc.v1.ClusterStatus.detail", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state_start_time", + full_name="google.cloud.dataproc.v1.ClusterStatus.state_start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="substate", + full_name="google.cloud.dataproc.v1.ClusterStatus.substate", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_CLUSTERSTATUS_STATE, _CLUSTERSTATUS_SUBSTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2283, + serialized_end=2648, ) _SOFTWARECONFIG_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2770, - serialized_end=2819, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2770, + serialized_end=2819, ) _SOFTWARECONFIG = _descriptor.Descriptor( - name='SoftwareConfig', - full_name='google.cloud.dataproc.v1.SoftwareConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image_version', full_name='google.cloud.dataproc.v1.SoftwareConfig.image_version', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1.SoftwareConfig.properties', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SOFTWARECONFIG_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2651, - serialized_end=2819, + name="SoftwareConfig", + full_name="google.cloud.dataproc.v1.SoftwareConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image_version", + full_name="google.cloud.dataproc.v1.SoftwareConfig.image_version", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1.SoftwareConfig.properties", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SOFTWARECONFIG_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2651, + serialized_end=2819, ) _CLUSTERMETRICS_HDFSMETRICSENTRY = _descriptor.Descriptor( - name='HdfsMetricsEntry', - full_name='google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry.value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3002, - serialized_end=3052, + name="HdfsMetricsEntry", + full_name="google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry.value", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3002, + serialized_end=3052, ) _CLUSTERMETRICS_YARNMETRICSENTRY = _descriptor.Descriptor( - name='YarnMetricsEntry', - full_name='google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry.value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3054, - serialized_end=3104, + name="YarnMetricsEntry", + full_name="google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry.value", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3054, + serialized_end=3104, ) _CLUSTERMETRICS = _descriptor.Descriptor( - name='ClusterMetrics', - full_name='google.cloud.dataproc.v1.ClusterMetrics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hdfs_metrics', full_name='google.cloud.dataproc.v1.ClusterMetrics.hdfs_metrics', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='yarn_metrics', full_name='google.cloud.dataproc.v1.ClusterMetrics.yarn_metrics', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLUSTERMETRICS_HDFSMETRICSENTRY, _CLUSTERMETRICS_YARNMETRICSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2822, - serialized_end=3104, + name="ClusterMetrics", + full_name="google.cloud.dataproc.v1.ClusterMetrics", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="hdfs_metrics", + full_name="google.cloud.dataproc.v1.ClusterMetrics.hdfs_metrics", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="yarn_metrics", + full_name="google.cloud.dataproc.v1.ClusterMetrics.yarn_metrics", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLUSTERMETRICS_HDFSMETRICSENTRY, _CLUSTERMETRICS_YARNMETRICSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2822, + serialized_end=3104, ) _CREATECLUSTERREQUEST = _descriptor.Descriptor( - name='CreateClusterRequest', - full_name='google.cloud.dataproc.v1.CreateClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.CreateClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.CreateClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster', full_name='google.cloud.dataproc.v1.CreateClusterRequest.cluster', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1.CreateClusterRequest.request_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3107, - serialized_end=3237, + name="CreateClusterRequest", + full_name="google.cloud.dataproc.v1.CreateClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.CreateClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.CreateClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster", + full_name="google.cloud.dataproc.v1.CreateClusterRequest.cluster", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1.CreateClusterRequest.request_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3107, + serialized_end=3237, ) _UPDATECLUSTERREQUEST = _descriptor.Descriptor( - name='UpdateClusterRequest', - full_name='google.cloud.dataproc.v1.UpdateClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.UpdateClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.UpdateClusterRequest.region', index=1, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.UpdateClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster', full_name='google.cloud.dataproc.v1.UpdateClusterRequest.cluster', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='graceful_decommission_timeout', full_name='google.cloud.dataproc.v1.UpdateClusterRequest.graceful_decommission_timeout', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.dataproc.v1.UpdateClusterRequest.update_mask', index=5, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1.UpdateClusterRequest.request_id', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3240, - serialized_end=3507, + name="UpdateClusterRequest", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest.region", + index=1, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest.cluster", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="graceful_decommission_timeout", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest.graceful_decommission_timeout", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest.update_mask", + index=5, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1.UpdateClusterRequest.request_id", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3240, + serialized_end=3507, ) _DELETECLUSTERREQUEST = _descriptor.Descriptor( - name='DeleteClusterRequest', - full_name='google.cloud.dataproc.v1.DeleteClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.DeleteClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.DeleteClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.DeleteClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1.DeleteClusterRequest.cluster_uuid', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1.DeleteClusterRequest.request_id', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3509, - serialized_end=3631, + name="DeleteClusterRequest", + full_name="google.cloud.dataproc.v1.DeleteClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.DeleteClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.DeleteClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.DeleteClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1.DeleteClusterRequest.cluster_uuid", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1.DeleteClusterRequest.request_id", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3509, + serialized_end=3631, ) _GETCLUSTERREQUEST = _descriptor.Descriptor( - name='GetClusterRequest', - full_name='google.cloud.dataproc.v1.GetClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.GetClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.GetClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.GetClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3633, - serialized_end=3710, + name="GetClusterRequest", + full_name="google.cloud.dataproc.v1.GetClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.GetClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.GetClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.GetClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3633, + serialized_end=3710, ) _LISTCLUSTERSREQUEST = _descriptor.Descriptor( - name='ListClustersRequest', - full_name='google.cloud.dataproc.v1.ListClustersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.ListClustersRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.ListClustersRequest.region', index=1, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.dataproc.v1.ListClustersRequest.filter', index=2, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.dataproc.v1.ListClustersRequest.page_size', index=3, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.dataproc.v1.ListClustersRequest.page_token', index=4, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3712, - serialized_end=3824, + name="ListClustersRequest", + full_name="google.cloud.dataproc.v1.ListClustersRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.ListClustersRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.ListClustersRequest.region", + index=1, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.dataproc.v1.ListClustersRequest.filter", + index=2, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.dataproc.v1.ListClustersRequest.page_size", + index=3, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.dataproc.v1.ListClustersRequest.page_token", + index=4, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3712, + serialized_end=3824, ) _LISTCLUSTERSRESPONSE = _descriptor.Descriptor( - name='ListClustersResponse', - full_name='google.cloud.dataproc.v1.ListClustersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='clusters', full_name='google.cloud.dataproc.v1.ListClustersResponse.clusters', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.dataproc.v1.ListClustersResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3826, - serialized_end=3926, + name="ListClustersResponse", + full_name="google.cloud.dataproc.v1.ListClustersResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="clusters", + full_name="google.cloud.dataproc.v1.ListClustersResponse.clusters", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.dataproc.v1.ListClustersResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3826, + serialized_end=3926, ) _DIAGNOSECLUSTERREQUEST = _descriptor.Descriptor( - name='DiagnoseClusterRequest', - full_name='google.cloud.dataproc.v1.DiagnoseClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.DiagnoseClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.DiagnoseClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.DiagnoseClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3928, - serialized_end=4010, + name="DiagnoseClusterRequest", + full_name="google.cloud.dataproc.v1.DiagnoseClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.DiagnoseClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.DiagnoseClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.DiagnoseClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3928, + serialized_end=4010, ) _DIAGNOSECLUSTERRESULTS = _descriptor.Descriptor( - name='DiagnoseClusterResults', - full_name='google.cloud.dataproc.v1.DiagnoseClusterResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='output_uri', full_name='google.cloud.dataproc.v1.DiagnoseClusterResults.output_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4012, - serialized_end=4056, + name="DiagnoseClusterResults", + full_name="google.cloud.dataproc.v1.DiagnoseClusterResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="output_uri", + full_name="google.cloud.dataproc.v1.DiagnoseClusterResults.output_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4012, + serialized_end=4056, ) _CLUSTER_LABELSENTRY.containing_type = _CLUSTER -_CLUSTER.fields_by_name['config'].message_type = _CLUSTERCONFIG -_CLUSTER.fields_by_name['labels'].message_type = _CLUSTER_LABELSENTRY -_CLUSTER.fields_by_name['status'].message_type = _CLUSTERSTATUS -_CLUSTER.fields_by_name['status_history'].message_type = _CLUSTERSTATUS -_CLUSTER.fields_by_name['metrics'].message_type = _CLUSTERMETRICS -_CLUSTERCONFIG.fields_by_name['gce_cluster_config'].message_type = _GCECLUSTERCONFIG -_CLUSTERCONFIG.fields_by_name['master_config'].message_type = _INSTANCEGROUPCONFIG -_CLUSTERCONFIG.fields_by_name['worker_config'].message_type = _INSTANCEGROUPCONFIG -_CLUSTERCONFIG.fields_by_name['secondary_worker_config'].message_type = _INSTANCEGROUPCONFIG -_CLUSTERCONFIG.fields_by_name['software_config'].message_type = _SOFTWARECONFIG -_CLUSTERCONFIG.fields_by_name['initialization_actions'].message_type = _NODEINITIALIZATIONACTION -_CLUSTERCONFIG.fields_by_name['encryption_config'].message_type = _ENCRYPTIONCONFIG +_CLUSTER.fields_by_name["config"].message_type = _CLUSTERCONFIG +_CLUSTER.fields_by_name["labels"].message_type = _CLUSTER_LABELSENTRY +_CLUSTER.fields_by_name["status"].message_type = _CLUSTERSTATUS +_CLUSTER.fields_by_name["status_history"].message_type = _CLUSTERSTATUS +_CLUSTER.fields_by_name["metrics"].message_type = _CLUSTERMETRICS +_CLUSTERCONFIG.fields_by_name["gce_cluster_config"].message_type = _GCECLUSTERCONFIG +_CLUSTERCONFIG.fields_by_name["master_config"].message_type = _INSTANCEGROUPCONFIG +_CLUSTERCONFIG.fields_by_name["worker_config"].message_type = _INSTANCEGROUPCONFIG +_CLUSTERCONFIG.fields_by_name[ + "secondary_worker_config" +].message_type = _INSTANCEGROUPCONFIG +_CLUSTERCONFIG.fields_by_name["software_config"].message_type = _SOFTWARECONFIG +_CLUSTERCONFIG.fields_by_name[ + "initialization_actions" +].message_type = _NODEINITIALIZATIONACTION +_CLUSTERCONFIG.fields_by_name["encryption_config"].message_type = _ENCRYPTIONCONFIG _GCECLUSTERCONFIG_METADATAENTRY.containing_type = _GCECLUSTERCONFIG -_GCECLUSTERCONFIG.fields_by_name['metadata'].message_type = _GCECLUSTERCONFIG_METADATAENTRY -_INSTANCEGROUPCONFIG.fields_by_name['disk_config'].message_type = _DISKCONFIG -_INSTANCEGROUPCONFIG.fields_by_name['managed_group_config'].message_type = _MANAGEDGROUPCONFIG -_INSTANCEGROUPCONFIG.fields_by_name['accelerators'].message_type = _ACCELERATORCONFIG -_NODEINITIALIZATIONACTION.fields_by_name['execution_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_CLUSTERSTATUS.fields_by_name['state'].enum_type = _CLUSTERSTATUS_STATE -_CLUSTERSTATUS.fields_by_name['state_start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CLUSTERSTATUS.fields_by_name['substate'].enum_type = _CLUSTERSTATUS_SUBSTATE +_GCECLUSTERCONFIG.fields_by_name[ + "metadata" +].message_type = _GCECLUSTERCONFIG_METADATAENTRY +_INSTANCEGROUPCONFIG.fields_by_name["disk_config"].message_type = _DISKCONFIG +_INSTANCEGROUPCONFIG.fields_by_name[ + "managed_group_config" +].message_type = _MANAGEDGROUPCONFIG +_INSTANCEGROUPCONFIG.fields_by_name["accelerators"].message_type = _ACCELERATORCONFIG +_NODEINITIALIZATIONACTION.fields_by_name[ + "execution_timeout" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_CLUSTERSTATUS.fields_by_name["state"].enum_type = _CLUSTERSTATUS_STATE +_CLUSTERSTATUS.fields_by_name[ + "state_start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CLUSTERSTATUS.fields_by_name["substate"].enum_type = _CLUSTERSTATUS_SUBSTATE _CLUSTERSTATUS_STATE.containing_type = _CLUSTERSTATUS _CLUSTERSTATUS_SUBSTATE.containing_type = _CLUSTERSTATUS _SOFTWARECONFIG_PROPERTIESENTRY.containing_type = _SOFTWARECONFIG -_SOFTWARECONFIG.fields_by_name['properties'].message_type = _SOFTWARECONFIG_PROPERTIESENTRY +_SOFTWARECONFIG.fields_by_name[ + "properties" +].message_type = _SOFTWARECONFIG_PROPERTIESENTRY _CLUSTERMETRICS_HDFSMETRICSENTRY.containing_type = _CLUSTERMETRICS _CLUSTERMETRICS_YARNMETRICSENTRY.containing_type = _CLUSTERMETRICS -_CLUSTERMETRICS.fields_by_name['hdfs_metrics'].message_type = _CLUSTERMETRICS_HDFSMETRICSENTRY -_CLUSTERMETRICS.fields_by_name['yarn_metrics'].message_type = _CLUSTERMETRICS_YARNMETRICSENTRY -_CREATECLUSTERREQUEST.fields_by_name['cluster'].message_type = _CLUSTER -_UPDATECLUSTERREQUEST.fields_by_name['cluster'].message_type = _CLUSTER -_UPDATECLUSTERREQUEST.fields_by_name['graceful_decommission_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_UPDATECLUSTERREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTCLUSTERSRESPONSE.fields_by_name['clusters'].message_type = _CLUSTER -DESCRIPTOR.message_types_by_name['Cluster'] = _CLUSTER -DESCRIPTOR.message_types_by_name['ClusterConfig'] = _CLUSTERCONFIG -DESCRIPTOR.message_types_by_name['EncryptionConfig'] = _ENCRYPTIONCONFIG -DESCRIPTOR.message_types_by_name['GceClusterConfig'] = _GCECLUSTERCONFIG -DESCRIPTOR.message_types_by_name['InstanceGroupConfig'] = _INSTANCEGROUPCONFIG -DESCRIPTOR.message_types_by_name['ManagedGroupConfig'] = _MANAGEDGROUPCONFIG -DESCRIPTOR.message_types_by_name['AcceleratorConfig'] = _ACCELERATORCONFIG -DESCRIPTOR.message_types_by_name['DiskConfig'] = _DISKCONFIG -DESCRIPTOR.message_types_by_name['NodeInitializationAction'] = _NODEINITIALIZATIONACTION -DESCRIPTOR.message_types_by_name['ClusterStatus'] = _CLUSTERSTATUS -DESCRIPTOR.message_types_by_name['SoftwareConfig'] = _SOFTWARECONFIG -DESCRIPTOR.message_types_by_name['ClusterMetrics'] = _CLUSTERMETRICS -DESCRIPTOR.message_types_by_name['CreateClusterRequest'] = _CREATECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['UpdateClusterRequest'] = _UPDATECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['DeleteClusterRequest'] = _DELETECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['GetClusterRequest'] = _GETCLUSTERREQUEST -DESCRIPTOR.message_types_by_name['ListClustersRequest'] = _LISTCLUSTERSREQUEST -DESCRIPTOR.message_types_by_name['ListClustersResponse'] = _LISTCLUSTERSRESPONSE -DESCRIPTOR.message_types_by_name['DiagnoseClusterRequest'] = _DIAGNOSECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['DiagnoseClusterResults'] = _DIAGNOSECLUSTERRESULTS +_CLUSTERMETRICS.fields_by_name[ + "hdfs_metrics" +].message_type = _CLUSTERMETRICS_HDFSMETRICSENTRY +_CLUSTERMETRICS.fields_by_name[ + "yarn_metrics" +].message_type = _CLUSTERMETRICS_YARNMETRICSENTRY +_CREATECLUSTERREQUEST.fields_by_name["cluster"].message_type = _CLUSTER +_UPDATECLUSTERREQUEST.fields_by_name["cluster"].message_type = _CLUSTER +_UPDATECLUSTERREQUEST.fields_by_name[ + "graceful_decommission_timeout" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_UPDATECLUSTERREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTCLUSTERSRESPONSE.fields_by_name["clusters"].message_type = _CLUSTER +DESCRIPTOR.message_types_by_name["Cluster"] = _CLUSTER +DESCRIPTOR.message_types_by_name["ClusterConfig"] = _CLUSTERCONFIG +DESCRIPTOR.message_types_by_name["EncryptionConfig"] = _ENCRYPTIONCONFIG +DESCRIPTOR.message_types_by_name["GceClusterConfig"] = _GCECLUSTERCONFIG +DESCRIPTOR.message_types_by_name["InstanceGroupConfig"] = _INSTANCEGROUPCONFIG +DESCRIPTOR.message_types_by_name["ManagedGroupConfig"] = _MANAGEDGROUPCONFIG +DESCRIPTOR.message_types_by_name["AcceleratorConfig"] = _ACCELERATORCONFIG +DESCRIPTOR.message_types_by_name["DiskConfig"] = _DISKCONFIG +DESCRIPTOR.message_types_by_name["NodeInitializationAction"] = _NODEINITIALIZATIONACTION +DESCRIPTOR.message_types_by_name["ClusterStatus"] = _CLUSTERSTATUS +DESCRIPTOR.message_types_by_name["SoftwareConfig"] = _SOFTWARECONFIG +DESCRIPTOR.message_types_by_name["ClusterMetrics"] = _CLUSTERMETRICS +DESCRIPTOR.message_types_by_name["CreateClusterRequest"] = _CREATECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["UpdateClusterRequest"] = _UPDATECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["DeleteClusterRequest"] = _DELETECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["GetClusterRequest"] = _GETCLUSTERREQUEST +DESCRIPTOR.message_types_by_name["ListClustersRequest"] = _LISTCLUSTERSREQUEST +DESCRIPTOR.message_types_by_name["ListClustersResponse"] = _LISTCLUSTERSRESPONSE +DESCRIPTOR.message_types_by_name["DiagnoseClusterRequest"] = _DIAGNOSECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["DiagnoseClusterResults"] = _DIAGNOSECLUSTERRESULTS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Cluster = _reflection.GeneratedProtocolMessageType('Cluster', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTER_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Cluster.LabelsEntry) - )) - , - DESCRIPTOR = _CLUSTER, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Describes the identifying information, config, and status of a cluster +Cluster = _reflection.GeneratedProtocolMessageType( + "Cluster", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTER_LABELSENTRY, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Cluster.LabelsEntry) + ), + ), + DESCRIPTOR=_CLUSTER, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Describes the identifying information, config, and status of a cluster of Compute Engine instances. @@ -1425,16 +2366,19 @@ **Beta Feature**: This report is available for testing purposes only. It may be changed before final release. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Cluster) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Cluster) + ), +) _sym_db.RegisterMessage(Cluster) _sym_db.RegisterMessage(Cluster.LabelsEntry) -ClusterConfig = _reflection.GeneratedProtocolMessageType('ClusterConfig', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """The cluster config. +ClusterConfig = _reflection.GeneratedProtocolMessageType( + "ClusterConfig", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERCONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""The cluster config. Attributes: @@ -1473,15 +2417,18 @@ encryption_config: Optional. Encryption settings for the cluster. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterConfig) + ), +) _sym_db.RegisterMessage(ClusterConfig) -EncryptionConfig = _reflection.GeneratedProtocolMessageType('EncryptionConfig', (_message.Message,), dict( - DESCRIPTOR = _ENCRYPTIONCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Encryption settings for the cluster. +EncryptionConfig = _reflection.GeneratedProtocolMessageType( + "EncryptionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_ENCRYPTIONCONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Encryption settings for the cluster. Attributes: @@ -1489,22 +2436,27 @@ Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EncryptionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EncryptionConfig) + ), +) _sym_db.RegisterMessage(EncryptionConfig) -GceClusterConfig = _reflection.GeneratedProtocolMessageType('GceClusterConfig', (_message.Message,), dict( - - MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( - DESCRIPTOR = _GCECLUSTERCONFIG_METADATAENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry) - )) - , - DESCRIPTOR = _GCECLUSTERCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Common config settings for resources of Compute Engine cluster +GceClusterConfig = _reflection.GeneratedProtocolMessageType( + "GceClusterConfig", + (_message.Message,), + dict( + MetadataEntry=_reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + dict( + DESCRIPTOR=_GCECLUSTERCONFIG_METADATAENTRY, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry) + ), + ), + DESCRIPTOR=_GCECLUSTERCONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. @@ -1576,16 +2528,19 @@ `__). """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GceClusterConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GceClusterConfig) + ), +) _sym_db.RegisterMessage(GceClusterConfig) _sym_db.RegisterMessage(GceClusterConfig.MetadataEntry) -InstanceGroupConfig = _reflection.GeneratedProtocolMessageType('InstanceGroupConfig', (_message.Message,), dict( - DESCRIPTOR = _INSTANCEGROUPCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Optional. The config settings for Compute Engine resources in an +InstanceGroupConfig = _reflection.GeneratedProtocolMessageType( + "InstanceGroupConfig", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCEGROUPCONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Optional. The config settings for Compute Engine resources in an instance group, such as a master or worker group. @@ -1627,15 +2582,18 @@ these instances. **Beta Feature**: This feature is still under development. It may be changed before final release. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupConfig) + ), +) _sym_db.RegisterMessage(InstanceGroupConfig) -ManagedGroupConfig = _reflection.GeneratedProtocolMessageType('ManagedGroupConfig', (_message.Message,), dict( - DESCRIPTOR = _MANAGEDGROUPCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Specifies the resources used to actively manage an instance group. +ManagedGroupConfig = _reflection.GeneratedProtocolMessageType( + "ManagedGroupConfig", + (_message.Message,), + dict( + DESCRIPTOR=_MANAGEDGROUPCONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Specifies the resources used to actively manage an instance group. Attributes: @@ -1646,15 +2604,18 @@ Output only. The name of the Instance Group Manager for this group. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedGroupConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedGroupConfig) + ), +) _sym_db.RegisterMessage(ManagedGroupConfig) -AcceleratorConfig = _reflection.GeneratedProtocolMessageType('AcceleratorConfig', (_message.Message,), dict( - DESCRIPTOR = _ACCELERATORCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Specifies the type and number of accelerator cards attached to the +AcceleratorConfig = _reflection.GeneratedProtocolMessageType( + "AcceleratorConfig", + (_message.Message,), + dict( + DESCRIPTOR=_ACCELERATORCONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Specifies the type and number of accelerator cards attached to the instances of an instance. See `GPUs on Compute Engine `__. @@ -1679,15 +2640,18 @@ The number of the accelerator cards of this type exposed to this instance. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AcceleratorConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AcceleratorConfig) + ), +) _sym_db.RegisterMessage(AcceleratorConfig) -DiskConfig = _reflection.GeneratedProtocolMessageType('DiskConfig', (_message.Message,), dict( - DESCRIPTOR = _DISKCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Specifies the config of disk options for a group of VM instances. +DiskConfig = _reflection.GeneratedProtocolMessageType( + "DiskConfig", + (_message.Message,), + dict( + DESCRIPTOR=_DISKCONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Specifies the config of disk options for a group of VM instances. Attributes: @@ -1706,15 +2670,18 @@ the boot disk contains only basic config and installed binaries. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiskConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiskConfig) + ), +) _sym_db.RegisterMessage(DiskConfig) -NodeInitializationAction = _reflection.GeneratedProtocolMessageType('NodeInitializationAction', (_message.Message,), dict( - DESCRIPTOR = _NODEINITIALIZATIONACTION, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Specifies an executable to run on a fully configured node and a timeout +NodeInitializationAction = _reflection.GeneratedProtocolMessageType( + "NodeInitializationAction", + (_message.Message,), + dict( + DESCRIPTOR=_NODEINITIALIZATIONACTION, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Specifies an executable to run on a fully configured node and a timeout period for executable completion. @@ -1728,15 +2695,18 @@ error and the exceeded timeout period) if the executable is not completed at end of the timeout period. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeInitializationAction) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeInitializationAction) + ), +) _sym_db.RegisterMessage(NodeInitializationAction) -ClusterStatus = _reflection.GeneratedProtocolMessageType('ClusterStatus', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERSTATUS, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """The status of a cluster and its instances. +ClusterStatus = _reflection.GeneratedProtocolMessageType( + "ClusterStatus", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERSTATUS, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""The status of a cluster and its instances. Attributes: @@ -1750,22 +2720,27 @@ Output only. Additional state information that includes status reported by the agent. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterStatus) + ), +) _sym_db.RegisterMessage(ClusterStatus) -SoftwareConfig = _reflection.GeneratedProtocolMessageType('SoftwareConfig', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _SOFTWARECONFIG_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry) - )) - , - DESCRIPTOR = _SOFTWARECONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Specifies the selection and config of software inside the cluster. +SoftwareConfig = _reflection.GeneratedProtocolMessageType( + "SoftwareConfig", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SOFTWARECONFIG_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry) + ), + ), + DESCRIPTOR=_SOFTWARECONFIG, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Specifies the selection and config of software inside the cluster. Attributes: @@ -1791,30 +2766,37 @@ ``yarn-site.xml`` For more information, see `Cluster properties `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SoftwareConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SoftwareConfig) + ), +) _sym_db.RegisterMessage(SoftwareConfig) _sym_db.RegisterMessage(SoftwareConfig.PropertiesEntry) -ClusterMetrics = _reflection.GeneratedProtocolMessageType('ClusterMetrics', (_message.Message,), dict( - - HdfsMetricsEntry = _reflection.GeneratedProtocolMessageType('HdfsMetricsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERMETRICS_HDFSMETRICSENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry) - )) - , - - YarnMetricsEntry = _reflection.GeneratedProtocolMessageType('YarnMetricsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERMETRICS_YARNMETRICSENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry) - )) - , - DESCRIPTOR = _CLUSTERMETRICS, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Contains cluster daemon metrics, such as HDFS and YARN stats. +ClusterMetrics = _reflection.GeneratedProtocolMessageType( + "ClusterMetrics", + (_message.Message,), + dict( + HdfsMetricsEntry=_reflection.GeneratedProtocolMessageType( + "HdfsMetricsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERMETRICS_HDFSMETRICSENTRY, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry) + ), + ), + YarnMetricsEntry=_reflection.GeneratedProtocolMessageType( + "YarnMetricsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERMETRICS_YARNMETRICSENTRY, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry) + ), + ), + DESCRIPTOR=_CLUSTERMETRICS, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Contains cluster daemon metrics, such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release. @@ -1826,17 +2808,20 @@ yarn_metrics: The YARN metrics. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics) + ), +) _sym_db.RegisterMessage(ClusterMetrics) _sym_db.RegisterMessage(ClusterMetrics.HdfsMetricsEntry) _sym_db.RegisterMessage(ClusterMetrics.YarnMetricsEntry) -CreateClusterRequest = _reflection.GeneratedProtocolMessageType('CreateClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """A request to create a cluster. +CreateClusterRequest = _reflection.GeneratedProtocolMessageType( + "CreateClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""A request to create a cluster. Attributes: @@ -1861,15 +2846,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateClusterRequest) + ), +) _sym_db.RegisterMessage(CreateClusterRequest) -UpdateClusterRequest = _reflection.GeneratedProtocolMessageType('UpdateClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """A request to update a cluster. +UpdateClusterRequest = _reflection.GeneratedProtocolMessageType( + "UpdateClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""A request to update a cluster. Attributes: @@ -1935,15 +2923,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateClusterRequest) + ), +) _sym_db.RegisterMessage(UpdateClusterRequest) -DeleteClusterRequest = _reflection.GeneratedProtocolMessageType('DeleteClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """A request to delete a cluster. +DeleteClusterRequest = _reflection.GeneratedProtocolMessageType( + "DeleteClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""A request to delete a cluster. Attributes: @@ -1972,15 +2963,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteClusterRequest) + ), +) _sym_db.RegisterMessage(DeleteClusterRequest) -GetClusterRequest = _reflection.GeneratedProtocolMessageType('GetClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """Request to get the resource representation for a cluster in a project. +GetClusterRequest = _reflection.GeneratedProtocolMessageType( + "GetClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETCLUSTERREQUEST, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""Request to get the resource representation for a cluster in a project. Attributes: @@ -1993,15 +2987,18 @@ cluster_name: Required. The cluster name. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetClusterRequest) + ), +) _sym_db.RegisterMessage(GetClusterRequest) -ListClustersRequest = _reflection.GeneratedProtocolMessageType('ListClustersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """A request to list the clusters in a project. +ListClustersRequest = _reflection.GeneratedProtocolMessageType( + "ListClustersRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSREQUEST, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""A request to list the clusters in a project. Attributes: @@ -2033,15 +3030,18 @@ page_token: Optional. The standard List page token. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersRequest) + ), +) _sym_db.RegisterMessage(ListClustersRequest) -ListClustersResponse = _reflection.GeneratedProtocolMessageType('ListClustersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSRESPONSE, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """The list of all clusters in a project. +ListClustersResponse = _reflection.GeneratedProtocolMessageType( + "ListClustersResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSRESPONSE, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""The list of all clusters in a project. Attributes: @@ -2053,15 +3053,18 @@ provide this value as the ``page_token`` in a subsequent ``ListClustersRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersResponse) + ), +) _sym_db.RegisterMessage(ListClustersResponse) -DiagnoseClusterRequest = _reflection.GeneratedProtocolMessageType('DiagnoseClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _DIAGNOSECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """A request to collect cluster diagnostic information. +DiagnoseClusterRequest = _reflection.GeneratedProtocolMessageType( + "DiagnoseClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DIAGNOSECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""A request to collect cluster diagnostic information. Attributes: @@ -2074,15 +3077,18 @@ cluster_name: Required. The cluster name. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterRequest) + ), +) _sym_db.RegisterMessage(DiagnoseClusterRequest) -DiagnoseClusterResults = _reflection.GeneratedProtocolMessageType('DiagnoseClusterResults', (_message.Message,), dict( - DESCRIPTOR = _DIAGNOSECLUSTERRESULTS, - __module__ = 'google.cloud.dataproc_v1.proto.clusters_pb2' - , - __doc__ = """The location of diagnostic output. +DiagnoseClusterResults = _reflection.GeneratedProtocolMessageType( + "DiagnoseClusterResults", + (_message.Message,), + dict( + DESCRIPTOR=_DIAGNOSECLUSTERRESULTS, + __module__="google.cloud.dataproc_v1.proto.clusters_pb2", + __doc__="""The location of diagnostic output. Attributes: @@ -2091,90 +3097,137 @@ The output report is a plain text file with a summary of collected diagnostics. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterResults) + ), +) _sym_db.RegisterMessage(DiagnoseClusterResults) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.cloud.dataproc.v1B\rClustersProtoP\001Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.cloud.dataproc.v1B\rClustersProtoP\001Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc" + ), +) _CLUSTER_LABELSENTRY.has_options = True -_CLUSTER_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTER_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _GCECLUSTERCONFIG_METADATAENTRY.has_options = True -_GCECLUSTERCONFIG_METADATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_GCECLUSTERCONFIG_METADATAENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SOFTWARECONFIG_PROPERTIESENTRY.has_options = True -_SOFTWARECONFIG_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SOFTWARECONFIG_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLUSTERMETRICS_HDFSMETRICSENTRY.has_options = True -_CLUSTERMETRICS_HDFSMETRICSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTERMETRICS_HDFSMETRICSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLUSTERMETRICS_YARNMETRICSENTRY.has_options = True -_CLUSTERMETRICS_YARNMETRICSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTERMETRICS_YARNMETRICSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLUSTERCONTROLLER = _descriptor.ServiceDescriptor( - name='ClusterController', - full_name='google.cloud.dataproc.v1.ClusterController', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4059, - serialized_end=5133, - methods=[ - _descriptor.MethodDescriptor( - name='CreateCluster', - full_name='google.cloud.dataproc.v1.ClusterController.CreateCluster', + name="ClusterController", + full_name="google.cloud.dataproc.v1.ClusterController", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>\"3/v1/projects/{project_id}/regions/{region}/clusters:\007cluster')), - ), - _descriptor.MethodDescriptor( - name='UpdateCluster', - full_name='google.cloud.dataproc.v1.ClusterController.UpdateCluster', - index=1, - containing_service=None, - input_type=_UPDATECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002M2B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster')), - ), - _descriptor.MethodDescriptor( - name='DeleteCluster', - full_name='google.cloud.dataproc.v1.ClusterController.DeleteCluster', - index=2, - containing_service=None, - input_type=_DELETECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002D*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}')), - ), - _descriptor.MethodDescriptor( - name='GetCluster', - full_name='google.cloud.dataproc.v1.ClusterController.GetCluster', - index=3, - containing_service=None, - input_type=_GETCLUSTERREQUEST, - output_type=_CLUSTER, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}')), - ), - _descriptor.MethodDescriptor( - name='ListClusters', - full_name='google.cloud.dataproc.v1.ClusterController.ListClusters', - index=4, - containing_service=None, - input_type=_LISTCLUSTERSREQUEST, - output_type=_LISTCLUSTERSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025\0223/v1/projects/{project_id}/regions/{region}/clusters')), - ), - _descriptor.MethodDescriptor( - name='DiagnoseCluster', - full_name='google.cloud.dataproc.v1.ClusterController.DiagnoseCluster', - index=5, - containing_service=None, - input_type=_DIAGNOSECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002P\"K/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\001*')), - ), -]) + options=None, + serialized_start=4059, + serialized_end=5133, + methods=[ + _descriptor.MethodDescriptor( + name="CreateCluster", + full_name="google.cloud.dataproc.v1.ClusterController.CreateCluster", + index=0, + containing_service=None, + input_type=_CREATECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002>"3/v1/projects/{project_id}/regions/{region}/clusters:\007cluster' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateCluster", + full_name="google.cloud.dataproc.v1.ClusterController.UpdateCluster", + index=1, + containing_service=None, + input_type=_UPDATECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002M2B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteCluster", + full_name="google.cloud.dataproc.v1.ClusterController.DeleteCluster", + index=2, + containing_service=None, + input_type=_DELETECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002D*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetCluster", + full_name="google.cloud.dataproc.v1.ClusterController.GetCluster", + index=3, + containing_service=None, + input_type=_GETCLUSTERREQUEST, + output_type=_CLUSTER, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListClusters", + full_name="google.cloud.dataproc.v1.ClusterController.ListClusters", + index=4, + containing_service=None, + input_type=_LISTCLUSTERSREQUEST, + output_type=_LISTCLUSTERSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0025\0223/v1/projects/{project_id}/regions/{region}/clusters" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DiagnoseCluster", + full_name="google.cloud.dataproc.v1.ClusterController.DiagnoseCluster", + index=5, + containing_service=None, + input_type=_DIAGNOSECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002P"K/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLUSTERCONTROLLER) -DESCRIPTOR.services_by_name['ClusterController'] = _CLUSTERCONTROLLER +DESCRIPTOR.services_by_name["ClusterController"] = _CLUSTERCONTROLLER # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2_grpc.py index 4d19e5212e2fd..5d4b275b8ab07 100644 --- a/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1/proto/clusters_pb2_grpc.py @@ -1,136 +1,141 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.dataproc_v1.proto import clusters_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.dataproc_v1.proto import ( + clusters_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class ClusterControllerStub(object): - """The ClusterControllerService provides methods to manage clusters + """The ClusterControllerService provides methods to manage clusters of Compute Engine instances. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateCluster = channel.unary_unary( - '/google.cloud.dataproc.v1.ClusterController/CreateCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.CreateClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateCluster = channel.unary_unary( + "/google.cloud.dataproc.v1.ClusterController/CreateCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.CreateClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.UpdateCluster = channel.unary_unary( - '/google.cloud.dataproc.v1.ClusterController/UpdateCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.UpdateClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateCluster = channel.unary_unary( + "/google.cloud.dataproc.v1.ClusterController/UpdateCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.UpdateClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteCluster = channel.unary_unary( - '/google.cloud.dataproc.v1.ClusterController/DeleteCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DeleteClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.DeleteCluster = channel.unary_unary( + "/google.cloud.dataproc.v1.ClusterController/DeleteCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DeleteClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.GetCluster = channel.unary_unary( - '/google.cloud.dataproc.v1.ClusterController/GetCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.GetClusterRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.Cluster.FromString, + self.GetCluster = channel.unary_unary( + "/google.cloud.dataproc.v1.ClusterController/GetCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.GetClusterRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.Cluster.FromString, ) - self.ListClusters = channel.unary_unary( - '/google.cloud.dataproc.v1.ClusterController/ListClusters', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersResponse.FromString, + self.ListClusters = channel.unary_unary( + "/google.cloud.dataproc.v1.ClusterController/ListClusters", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersResponse.FromString, ) - self.DiagnoseCluster = channel.unary_unary( - '/google.cloud.dataproc.v1.ClusterController/DiagnoseCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.DiagnoseCluster = channel.unary_unary( + "/google.cloud.dataproc.v1.ClusterController/DiagnoseCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class ClusterControllerServicer(object): - """The ClusterControllerService provides methods to manage clusters + """The ClusterControllerService provides methods to manage clusters of Compute Engine instances. """ - def CreateCluster(self, request, context): - """Creates a cluster in a project. + def CreateCluster(self, request, context): + """Creates a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateCluster(self, request, context): - """Updates a cluster in a project. + def UpdateCluster(self, request, context): + """Updates a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteCluster(self, request, context): - """Deletes a cluster in a project. + def DeleteCluster(self, request, context): + """Deletes a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetCluster(self, request, context): - """Gets the resource representation for a cluster in a project. + def GetCluster(self, request, context): + """Gets the resource representation for a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListClusters(self, request, context): - """Lists all regions/{region}/clusters in a project. + def ListClusters(self, request, context): + """Lists all regions/{region}/clusters in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DiagnoseCluster(self, request, context): - """Gets cluster diagnostic information. + def DiagnoseCluster(self, request, context): + """Gets cluster diagnostic information. After the operation completes, the Operation.response field contains `DiagnoseClusterOutputLocation`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ClusterControllerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateCluster': grpc.unary_unary_rpc_method_handler( - servicer.CreateCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.CreateClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'UpdateCluster': grpc.unary_unary_rpc_method_handler( - servicer.UpdateCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.UpdateClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteCluster': grpc.unary_unary_rpc_method_handler( - servicer.DeleteCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DeleteClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'GetCluster': grpc.unary_unary_rpc_method_handler( - servicer.GetCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.GetClusterRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.Cluster.SerializeToString, - ), - 'ListClusters': grpc.unary_unary_rpc_method_handler( - servicer.ListClusters, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersResponse.SerializeToString, - ), - 'DiagnoseCluster': grpc.unary_unary_rpc_method_handler( - servicer.DiagnoseCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.dataproc.v1.ClusterController', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateCluster": grpc.unary_unary_rpc_method_handler( + servicer.CreateCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.CreateClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "UpdateCluster": grpc.unary_unary_rpc_method_handler( + servicer.UpdateCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.UpdateClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteCluster": grpc.unary_unary_rpc_method_handler( + servicer.DeleteCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DeleteClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "GetCluster": grpc.unary_unary_rpc_method_handler( + servicer.GetCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.GetClusterRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.Cluster.SerializeToString, + ), + "ListClusters": grpc.unary_unary_rpc_method_handler( + servicer.ListClusters, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.ListClustersResponse.SerializeToString, + ), + "DiagnoseCluster": grpc.unary_unary_rpc_method_handler( + servicer.DiagnoseCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.dataproc.v1.ClusterController", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2.py b/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2.py index a47d7113788f9..e427da826e3d1 100644 --- a/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2.py +++ b/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/dataproc_v1/proto/jobs.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,2006 +22,3293 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1/proto/jobs.proto', - package='google.cloud.dataproc.v1', - syntax='proto3', - serialized_pb=_b('\n)google/cloud/dataproc_v1/proto/jobs.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc1\x02\n\rLoggingConfig\x12W\n\x11\x64river_log_levels\x18\x02 \x03(\x0b\x32<.google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry\x1a\x65\n\x14\x44riverLogLevelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0e\x32-.google.cloud.dataproc.v1.LoggingConfig.Level:\x02\x38\x01\"p\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\t\n\x05TRACE\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x08\n\x04INFO\x10\x04\x12\x08\n\x04WARN\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\t\n\x05\x46\x41TAL\x10\x07\x12\x07\n\x03OFF\x10\x08\"\xd3\x02\n\tHadoopJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12G\n\nproperties\x18\x07 \x03(\x0b\x32\x33.google.cloud.dataproc.v1.HadoopJob.PropertiesEntry\x12?\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river\"\xd1\x02\n\x08SparkJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12\x46\n\nproperties\x18\x07 \x03(\x0b\x32\x32.google.cloud.dataproc.v1.SparkJob.PropertiesEntry\x12?\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river\"\xd0\x02\n\nPySparkJob\x12\x1c\n\x14main_python_file_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\x12\x18\n\x10python_file_uris\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12H\n\nproperties\x18\x07 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.PySparkJob.PropertiesEntry\x12?\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1c\n\tQueryList\x12\x0f\n\x07queries\x18\x01 \x03(\t\"\xa1\x03\n\x07HiveJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12P\n\x10script_variables\x18\x04 \x03(\x0b\x32\x36.google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry\x12\x45\n\nproperties\x18\x05 \x03(\x0b\x32\x31.google.cloud.dataproc.v1.HiveJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xd1\x03\n\x0bSparkSqlJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12T\n\x10script_variables\x18\x03 \x03(\x0b\x32:.google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry\x12I\n\nproperties\x18\x04 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x38 \x03(\t\x12?\n\x0elogging_config\x18\x06 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xdf\x03\n\x06PigJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12O\n\x10script_variables\x18\x04 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry\x12\x44\n\nproperties\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.PigJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x12?\n\x0elogging_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\":\n\x0cJobPlacement\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x02 \x01(\t\"\xc2\x03\n\tJobStatus\x12\x38\n\x05state\x18\x01 \x01(\x0e\x32).google.cloud.dataproc.v1.JobStatus.State\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x08substate\x18\x07 \x01(\x0e\x32,.google.cloud.dataproc.v1.JobStatus.Substate\"\xa9\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0e\n\nSETUP_DONE\x10\x08\x12\x0b\n\x07RUNNING\x10\x02\x12\x12\n\x0e\x43\x41NCEL_PENDING\x10\x03\x12\x12\n\x0e\x43\x41NCEL_STARTED\x10\x07\x12\r\n\tCANCELLED\x10\x04\x12\x08\n\x04\x44ONE\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\x13\n\x0f\x41TTEMPT_FAILURE\x10\t\"H\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tSUBMITTED\x10\x01\x12\n\n\x06QUEUED\x10\x02\x12\x10\n\x0cSTALE_STATUS\x10\x03\"2\n\x0cJobReference\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\"\x91\x02\n\x0fYarnApplication\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x05state\x18\x02 \x01(\x0e\x32/.google.cloud.dataproc.v1.YarnApplication.State\x12\x10\n\x08progress\x18\x03 \x01(\x02\x12\x14\n\x0ctracking_url\x18\x04 \x01(\t\"\x87\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x0e\n\nNEW_SAVING\x10\x02\x12\r\n\tSUBMITTED\x10\x03\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x04\x12\x0b\n\x07RUNNING\x10\x05\x12\x0c\n\x08\x46INISHED\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\n\n\x06KILLED\x10\x08\"\x9b\x07\n\x03Job\x12\x39\n\treference\x18\x01 \x01(\x0b\x32&.google.cloud.dataproc.v1.JobReference\x12\x39\n\tplacement\x18\x02 \x01(\x0b\x32&.google.cloud.dataproc.v1.JobPlacement\x12\x39\n\nhadoop_job\x18\x03 \x01(\x0b\x32#.google.cloud.dataproc.v1.HadoopJobH\x00\x12\x37\n\tspark_job\x18\x04 \x01(\x0b\x32\".google.cloud.dataproc.v1.SparkJobH\x00\x12;\n\x0bpyspark_job\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.PySparkJobH\x00\x12\x35\n\x08hive_job\x18\x06 \x01(\x0b\x32!.google.cloud.dataproc.v1.HiveJobH\x00\x12\x33\n\x07pig_job\x18\x07 \x01(\x0b\x32 .google.cloud.dataproc.v1.PigJobH\x00\x12>\n\rspark_sql_job\x18\x0c \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkSqlJobH\x00\x12\x33\n\x06status\x18\x08 \x01(\x0b\x32#.google.cloud.dataproc.v1.JobStatus\x12;\n\x0estatus_history\x18\r \x03(\x0b\x32#.google.cloud.dataproc.v1.JobStatus\x12\x44\n\x11yarn_applications\x18\t \x03(\x0b\x32).google.cloud.dataproc.v1.YarnApplication\x12\"\n\x1a\x64river_output_resource_uri\x18\x11 \x01(\t\x12 \n\x18\x64river_control_files_uri\x18\x0f \x01(\t\x12\x39\n\x06labels\x18\x12 \x03(\x0b\x32).google.cloud.dataproc.v1.Job.LabelsEntry\x12;\n\nscheduling\x18\x14 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JobScheduling\x12\x10\n\x08job_uuid\x18\x16 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08type_job\".\n\rJobScheduling\x12\x1d\n\x15max_failures_per_hour\x18\x01 \x01(\x05\"v\n\x10SubmitJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12*\n\x03job\x18\x02 \x01(\x0b\x32\x1d.google.cloud.dataproc.v1.Job\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"C\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\"\x90\x02\n\x0fListJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x04 \x01(\t\x12T\n\x11job_state_matcher\x18\x05 \x01(\x0e\x32\x39.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\"6\n\x0fJobStateMatcher\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nNON_ACTIVE\x10\x02\"\xa3\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12*\n\x03job\x18\x04 \x01(\x0b\x32\x1d.google.cloud.dataproc.v1.Job\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"X\n\x10ListJobsResponse\x12+\n\x04jobs\x18\x01 \x03(\x0b\x32\x1d.google.cloud.dataproc.v1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"F\n\x10\x43\x61ncelJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\"F\n\x10\x44\x65leteJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t2\xb6\x07\n\rJobController\x12\x99\x01\n\tSubmitJob\x12*.google.cloud.dataproc.v1.SubmitJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"A\x82\xd3\xe4\x93\x02;\"6/v1/projects/{project_id}/regions/{region}/jobs:submit:\x01*\x12\x92\x01\n\x06GetJob\x12\'.google.cloud.dataproc.v1.GetJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/projects/{project_id}/regions/{region}/jobs/{job_id}\x12\x9a\x01\n\x08ListJobs\x12).google.cloud.dataproc.v1.ListJobsRequest\x1a*.google.cloud.dataproc.v1.ListJobsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/projects/{project_id}/regions/{region}/jobs\x12\x9d\x01\n\tUpdateJob\x12*.google.cloud.dataproc.v1.UpdateJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"E\x82\xd3\xe4\x93\x02?28/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:\x03job\x12\xa2\x01\n\tCancelJob\x12*.google.cloud.dataproc.v1.CancelJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\x01*\x12\x91\x01\n\tDeleteJob\x12*.google.cloud.dataproc.v1.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"@\x82\xd3\xe4\x93\x02:*8/v1/projects/{project_id}/regions/{region}/jobs/{job_id}Bm\n\x1c\x63om.google.cloud.dataproc.v1B\tJobsProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1/proto/jobs.proto", + package="google.cloud.dataproc.v1", + syntax="proto3", + serialized_pb=_b( + '\n)google/cloud/dataproc_v1/proto/jobs.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc1\x02\n\rLoggingConfig\x12W\n\x11\x64river_log_levels\x18\x02 \x03(\x0b\x32<.google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry\x1a\x65\n\x14\x44riverLogLevelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0e\x32-.google.cloud.dataproc.v1.LoggingConfig.Level:\x02\x38\x01"p\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\t\n\x05TRACE\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x08\n\x04INFO\x10\x04\x12\x08\n\x04WARN\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\t\n\x05\x46\x41TAL\x10\x07\x12\x07\n\x03OFF\x10\x08"\xd3\x02\n\tHadoopJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12G\n\nproperties\x18\x07 \x03(\x0b\x32\x33.google.cloud.dataproc.v1.HadoopJob.PropertiesEntry\x12?\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river"\xd1\x02\n\x08SparkJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12\x46\n\nproperties\x18\x07 \x03(\x0b\x32\x32.google.cloud.dataproc.v1.SparkJob.PropertiesEntry\x12?\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river"\xd0\x02\n\nPySparkJob\x12\x1c\n\x14main_python_file_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\x12\x18\n\x10python_file_uris\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12H\n\nproperties\x18\x07 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.PySparkJob.PropertiesEntry\x12?\n\x0elogging_config\x18\x08 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1c\n\tQueryList\x12\x0f\n\x07queries\x18\x01 \x03(\t"\xa1\x03\n\x07HiveJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12P\n\x10script_variables\x18\x04 \x03(\x0b\x32\x36.google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry\x12\x45\n\nproperties\x18\x05 \x03(\x0b\x32\x31.google.cloud.dataproc.v1.HiveJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries"\xd1\x03\n\x0bSparkSqlJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12T\n\x10script_variables\x18\x03 \x03(\x0b\x32:.google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry\x12I\n\nproperties\x18\x04 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x38 \x03(\t\x12?\n\x0elogging_config\x18\x06 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries"\xdf\x03\n\x06PigJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12\x39\n\nquery_list\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12O\n\x10script_variables\x18\x04 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry\x12\x44\n\nproperties\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.PigJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x12?\n\x0elogging_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries":\n\x0cJobPlacement\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x02 \x01(\t"\xc2\x03\n\tJobStatus\x12\x38\n\x05state\x18\x01 \x01(\x0e\x32).google.cloud.dataproc.v1.JobStatus.State\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x08substate\x18\x07 \x01(\x0e\x32,.google.cloud.dataproc.v1.JobStatus.Substate"\xa9\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0e\n\nSETUP_DONE\x10\x08\x12\x0b\n\x07RUNNING\x10\x02\x12\x12\n\x0e\x43\x41NCEL_PENDING\x10\x03\x12\x12\n\x0e\x43\x41NCEL_STARTED\x10\x07\x12\r\n\tCANCELLED\x10\x04\x12\x08\n\x04\x44ONE\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\x13\n\x0f\x41TTEMPT_FAILURE\x10\t"H\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tSUBMITTED\x10\x01\x12\n\n\x06QUEUED\x10\x02\x12\x10\n\x0cSTALE_STATUS\x10\x03"2\n\x0cJobReference\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x91\x02\n\x0fYarnApplication\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x05state\x18\x02 \x01(\x0e\x32/.google.cloud.dataproc.v1.YarnApplication.State\x12\x10\n\x08progress\x18\x03 \x01(\x02\x12\x14\n\x0ctracking_url\x18\x04 \x01(\t"\x87\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x0e\n\nNEW_SAVING\x10\x02\x12\r\n\tSUBMITTED\x10\x03\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x04\x12\x0b\n\x07RUNNING\x10\x05\x12\x0c\n\x08\x46INISHED\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\n\n\x06KILLED\x10\x08"\x9b\x07\n\x03Job\x12\x39\n\treference\x18\x01 \x01(\x0b\x32&.google.cloud.dataproc.v1.JobReference\x12\x39\n\tplacement\x18\x02 \x01(\x0b\x32&.google.cloud.dataproc.v1.JobPlacement\x12\x39\n\nhadoop_job\x18\x03 \x01(\x0b\x32#.google.cloud.dataproc.v1.HadoopJobH\x00\x12\x37\n\tspark_job\x18\x04 \x01(\x0b\x32".google.cloud.dataproc.v1.SparkJobH\x00\x12;\n\x0bpyspark_job\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.PySparkJobH\x00\x12\x35\n\x08hive_job\x18\x06 \x01(\x0b\x32!.google.cloud.dataproc.v1.HiveJobH\x00\x12\x33\n\x07pig_job\x18\x07 \x01(\x0b\x32 .google.cloud.dataproc.v1.PigJobH\x00\x12>\n\rspark_sql_job\x18\x0c \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkSqlJobH\x00\x12\x33\n\x06status\x18\x08 \x01(\x0b\x32#.google.cloud.dataproc.v1.JobStatus\x12;\n\x0estatus_history\x18\r \x03(\x0b\x32#.google.cloud.dataproc.v1.JobStatus\x12\x44\n\x11yarn_applications\x18\t \x03(\x0b\x32).google.cloud.dataproc.v1.YarnApplication\x12"\n\x1a\x64river_output_resource_uri\x18\x11 \x01(\t\x12 \n\x18\x64river_control_files_uri\x18\x0f \x01(\t\x12\x39\n\x06labels\x18\x12 \x03(\x0b\x32).google.cloud.dataproc.v1.Job.LabelsEntry\x12;\n\nscheduling\x18\x14 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JobScheduling\x12\x10\n\x08job_uuid\x18\x16 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08type_job".\n\rJobScheduling\x12\x1d\n\x15max_failures_per_hour\x18\x01 \x01(\x05"v\n\x10SubmitJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12*\n\x03job\x18\x02 \x01(\x0b\x32\x1d.google.cloud.dataproc.v1.Job\x12\x12\n\nrequest_id\x18\x04 \x01(\t"C\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x90\x02\n\x0fListJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x04 \x01(\t\x12T\n\x11job_state_matcher\x18\x05 \x01(\x0e\x32\x39.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t"6\n\x0fJobStateMatcher\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nNON_ACTIVE\x10\x02"\xa3\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12*\n\x03job\x18\x04 \x01(\x0b\x32\x1d.google.cloud.dataproc.v1.Job\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"X\n\x10ListJobsResponse\x12+\n\x04jobs\x18\x01 \x03(\x0b\x32\x1d.google.cloud.dataproc.v1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"F\n\x10\x43\x61ncelJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"F\n\x10\x44\x65leteJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t2\xb6\x07\n\rJobController\x12\x99\x01\n\tSubmitJob\x12*.google.cloud.dataproc.v1.SubmitJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job"A\x82\xd3\xe4\x93\x02;"6/v1/projects/{project_id}/regions/{region}/jobs:submit:\x01*\x12\x92\x01\n\x06GetJob\x12\'.google.cloud.dataproc.v1.GetJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/projects/{project_id}/regions/{region}/jobs/{job_id}\x12\x9a\x01\n\x08ListJobs\x12).google.cloud.dataproc.v1.ListJobsRequest\x1a*.google.cloud.dataproc.v1.ListJobsResponse"7\x82\xd3\xe4\x93\x02\x31\x12//v1/projects/{project_id}/regions/{region}/jobs\x12\x9d\x01\n\tUpdateJob\x12*.google.cloud.dataproc.v1.UpdateJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job"E\x82\xd3\xe4\x93\x02?28/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:\x03job\x12\xa2\x01\n\tCancelJob\x12*.google.cloud.dataproc.v1.CancelJobRequest\x1a\x1d.google.cloud.dataproc.v1.Job"J\x82\xd3\xe4\x93\x02\x44"?/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\x01*\x12\x91\x01\n\tDeleteJob\x12*.google.cloud.dataproc.v1.DeleteJobRequest\x1a\x16.google.protobuf.Empty"@\x82\xd3\xe4\x93\x02:*8/v1/projects/{project_id}/regions/{region}/jobs/{job_id}Bm\n\x1c\x63om.google.cloud.dataproc.v1B\tJobsProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataprocb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _LOGGINGCONFIG_LEVEL = _descriptor.EnumDescriptor( - name='Level', - full_name='google.cloud.dataproc.v1.LoggingConfig.Level', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LEVEL_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TRACE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEBUG', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INFO', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WARN', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FATAL', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OFF', index=8, number=8, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=407, - serialized_end=519, + name="Level", + full_name="google.cloud.dataproc.v1.LoggingConfig.Level", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LEVEL_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TRACE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DEBUG", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INFO", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WARN", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FATAL", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OFF", index=8, number=8, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=407, + serialized_end=519, ) _sym_db.RegisterEnumDescriptor(_LOGGINGCONFIG_LEVEL) _JOBSTATUS_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1.JobStatus.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SETUP_DONE', index=2, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=3, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCEL_PENDING', index=4, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCEL_STARTED', index=5, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELLED', index=6, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=7, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=8, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ATTEMPT_FAILURE', index=9, number=9, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3210, - serialized_end=3379, + name="State", + full_name="google.cloud.dataproc.v1.JobStatus.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SETUP_DONE", index=2, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=3, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCEL_PENDING", index=4, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCEL_STARTED", index=5, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", index=6, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=7, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=8, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ATTEMPT_FAILURE", index=9, number=9, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3210, + serialized_end=3379, ) _sym_db.RegisterEnumDescriptor(_JOBSTATUS_STATE) _JOBSTATUS_SUBSTATE = _descriptor.EnumDescriptor( - name='Substate', - full_name='google.cloud.dataproc.v1.JobStatus.Substate', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUBMITTED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='QUEUED', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STALE_STATUS', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3381, - serialized_end=3453, + name="Substate", + full_name="google.cloud.dataproc.v1.JobStatus.Substate", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUBMITTED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="QUEUED", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STALE_STATUS", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3381, + serialized_end=3453, ) _sym_db.RegisterEnumDescriptor(_JOBSTATUS_SUBSTATE) _YARNAPPLICATION_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1.YarnApplication.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEW', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEW_SAVING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUBMITTED', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCEPTED', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FINISHED', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FAILED', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KILLED', index=8, number=8, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3646, - serialized_end=3781, + name="State", + full_name="google.cloud.dataproc.v1.YarnApplication.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEW", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEW_SAVING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUBMITTED", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACCEPTED", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FINISHED", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FAILED", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="KILLED", index=8, number=8, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3646, + serialized_end=3781, ) _sym_db.RegisterEnumDescriptor(_YARNAPPLICATION_STATE) _LISTJOBSREQUEST_JOBSTATEMATCHER = _descriptor.EnumDescriptor( - name='JobStateMatcher', - full_name='google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ALL', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACTIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NON_ACTIVE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=5165, - serialized_end=5219, + name="JobStateMatcher", + full_name="google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ALL", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACTIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NON_ACTIVE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=5165, + serialized_end=5219, ) _sym_db.RegisterEnumDescriptor(_LISTJOBSREQUEST_JOBSTATEMATCHER) _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY = _descriptor.Descriptor( - name='DriverLogLevelsEntry', - full_name='google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry.value', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=304, - serialized_end=405, + name="DriverLogLevelsEntry", + full_name="google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry.value", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=304, + serialized_end=405, ) _LOGGINGCONFIG = _descriptor.Descriptor( - name='LoggingConfig', - full_name='google.cloud.dataproc.v1.LoggingConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='driver_log_levels', full_name='google.cloud.dataproc.v1.LoggingConfig.driver_log_levels', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY, ], - enum_types=[ - _LOGGINGCONFIG_LEVEL, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=198, - serialized_end=519, + name="LoggingConfig", + full_name="google.cloud.dataproc.v1.LoggingConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="driver_log_levels", + full_name="google.cloud.dataproc.v1.LoggingConfig.driver_log_levels", + index=0, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY], + enum_types=[_LOGGINGCONFIG_LEVEL], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=198, + serialized_end=519, ) _HADOOPJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1.HadoopJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.HadoopJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.HadoopJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=851, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1.HadoopJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.HadoopJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.HadoopJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=851, ) _HADOOPJOB = _descriptor.Descriptor( - name='HadoopJob', - full_name='google.cloud.dataproc.v1.HadoopJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='main_jar_file_uri', full_name='google.cloud.dataproc.v1.HadoopJob.main_jar_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='main_class', full_name='google.cloud.dataproc.v1.HadoopJob.main_class', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='args', full_name='google.cloud.dataproc.v1.HadoopJob.args', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1.HadoopJob.jar_file_uris', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_uris', full_name='google.cloud.dataproc.v1.HadoopJob.file_uris', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='archive_uris', full_name='google.cloud.dataproc.v1.HadoopJob.archive_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1.HadoopJob.properties', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1.HadoopJob.logging_config', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_HADOOPJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='driver', full_name='google.cloud.dataproc.v1.HadoopJob.driver', - index=0, containing_type=None, fields=[]), - ], - serialized_start=522, - serialized_end=861, + name="HadoopJob", + full_name="google.cloud.dataproc.v1.HadoopJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="main_jar_file_uri", + full_name="google.cloud.dataproc.v1.HadoopJob.main_jar_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="main_class", + full_name="google.cloud.dataproc.v1.HadoopJob.main_class", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="args", + full_name="google.cloud.dataproc.v1.HadoopJob.args", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1.HadoopJob.jar_file_uris", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_uris", + full_name="google.cloud.dataproc.v1.HadoopJob.file_uris", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="archive_uris", + full_name="google.cloud.dataproc.v1.HadoopJob.archive_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1.HadoopJob.properties", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1.HadoopJob.logging_config", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_HADOOPJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="driver", + full_name="google.cloud.dataproc.v1.HadoopJob.driver", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=522, + serialized_end=861, ) _SPARKJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1.SparkJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.SparkJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.SparkJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=851, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1.SparkJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.SparkJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.SparkJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=851, ) _SPARKJOB = _descriptor.Descriptor( - name='SparkJob', - full_name='google.cloud.dataproc.v1.SparkJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='main_jar_file_uri', full_name='google.cloud.dataproc.v1.SparkJob.main_jar_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='main_class', full_name='google.cloud.dataproc.v1.SparkJob.main_class', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='args', full_name='google.cloud.dataproc.v1.SparkJob.args', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1.SparkJob.jar_file_uris', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_uris', full_name='google.cloud.dataproc.v1.SparkJob.file_uris', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='archive_uris', full_name='google.cloud.dataproc.v1.SparkJob.archive_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1.SparkJob.properties', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1.SparkJob.logging_config', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPARKJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='driver', full_name='google.cloud.dataproc.v1.SparkJob.driver', - index=0, containing_type=None, fields=[]), - ], - serialized_start=864, - serialized_end=1201, + name="SparkJob", + full_name="google.cloud.dataproc.v1.SparkJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="main_jar_file_uri", + full_name="google.cloud.dataproc.v1.SparkJob.main_jar_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="main_class", + full_name="google.cloud.dataproc.v1.SparkJob.main_class", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="args", + full_name="google.cloud.dataproc.v1.SparkJob.args", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1.SparkJob.jar_file_uris", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_uris", + full_name="google.cloud.dataproc.v1.SparkJob.file_uris", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="archive_uris", + full_name="google.cloud.dataproc.v1.SparkJob.archive_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1.SparkJob.properties", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1.SparkJob.logging_config", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPARKJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="driver", + full_name="google.cloud.dataproc.v1.SparkJob.driver", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=864, + serialized_end=1201, ) _PYSPARKJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1.PySparkJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.PySparkJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.PySparkJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=851, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1.PySparkJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.PySparkJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.PySparkJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=851, ) _PYSPARKJOB = _descriptor.Descriptor( - name='PySparkJob', - full_name='google.cloud.dataproc.v1.PySparkJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='main_python_file_uri', full_name='google.cloud.dataproc.v1.PySparkJob.main_python_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='args', full_name='google.cloud.dataproc.v1.PySparkJob.args', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='python_file_uris', full_name='google.cloud.dataproc.v1.PySparkJob.python_file_uris', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1.PySparkJob.jar_file_uris', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_uris', full_name='google.cloud.dataproc.v1.PySparkJob.file_uris', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='archive_uris', full_name='google.cloud.dataproc.v1.PySparkJob.archive_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1.PySparkJob.properties', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1.PySparkJob.logging_config', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PYSPARKJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1204, - serialized_end=1540, + name="PySparkJob", + full_name="google.cloud.dataproc.v1.PySparkJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="main_python_file_uri", + full_name="google.cloud.dataproc.v1.PySparkJob.main_python_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="args", + full_name="google.cloud.dataproc.v1.PySparkJob.args", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="python_file_uris", + full_name="google.cloud.dataproc.v1.PySparkJob.python_file_uris", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1.PySparkJob.jar_file_uris", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_uris", + full_name="google.cloud.dataproc.v1.PySparkJob.file_uris", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="archive_uris", + full_name="google.cloud.dataproc.v1.PySparkJob.archive_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1.PySparkJob.properties", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1.PySparkJob.logging_config", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PYSPARKJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1204, + serialized_end=1540, ) _QUERYLIST = _descriptor.Descriptor( - name='QueryList', - full_name='google.cloud.dataproc.v1.QueryList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='queries', full_name='google.cloud.dataproc.v1.QueryList.queries', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1542, - serialized_end=1570, + name="QueryList", + full_name="google.cloud.dataproc.v1.QueryList", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1.QueryList.queries", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1542, + serialized_end=1570, ) _HIVEJOB_SCRIPTVARIABLESENTRY = _descriptor.Descriptor( - name='ScriptVariablesEntry', - full_name='google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1874, - serialized_end=1928, + name="ScriptVariablesEntry", + full_name="google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1874, + serialized_end=1928, ) _HIVEJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1.HiveJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.HiveJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.HiveJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=851, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1.HiveJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.HiveJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.HiveJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=851, ) _HIVEJOB = _descriptor.Descriptor( - name='HiveJob', - full_name='google.cloud.dataproc.v1.HiveJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query_file_uri', full_name='google.cloud.dataproc.v1.HiveJob.query_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_list', full_name='google.cloud.dataproc.v1.HiveJob.query_list', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='continue_on_failure', full_name='google.cloud.dataproc.v1.HiveJob.continue_on_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='script_variables', full_name='google.cloud.dataproc.v1.HiveJob.script_variables', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1.HiveJob.properties', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1.HiveJob.jar_file_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_HIVEJOB_SCRIPTVARIABLESENTRY, _HIVEJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='queries', full_name='google.cloud.dataproc.v1.HiveJob.queries', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1573, - serialized_end=1990, + name="HiveJob", + full_name="google.cloud.dataproc.v1.HiveJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="query_file_uri", + full_name="google.cloud.dataproc.v1.HiveJob.query_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_list", + full_name="google.cloud.dataproc.v1.HiveJob.query_list", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="continue_on_failure", + full_name="google.cloud.dataproc.v1.HiveJob.continue_on_failure", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="script_variables", + full_name="google.cloud.dataproc.v1.HiveJob.script_variables", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1.HiveJob.properties", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1.HiveJob.jar_file_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_HIVEJOB_SCRIPTVARIABLESENTRY, _HIVEJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1.HiveJob.queries", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1573, + serialized_end=1990, ) _SPARKSQLJOB_SCRIPTVARIABLESENTRY = _descriptor.Descriptor( - name='ScriptVariablesEntry', - full_name='google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1874, - serialized_end=1928, + name="ScriptVariablesEntry", + full_name="google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1874, + serialized_end=1928, ) _SPARKSQLJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=851, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=851, ) _SPARKSQLJOB = _descriptor.Descriptor( - name='SparkSqlJob', - full_name='google.cloud.dataproc.v1.SparkSqlJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query_file_uri', full_name='google.cloud.dataproc.v1.SparkSqlJob.query_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_list', full_name='google.cloud.dataproc.v1.SparkSqlJob.query_list', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='script_variables', full_name='google.cloud.dataproc.v1.SparkSqlJob.script_variables', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1.SparkSqlJob.properties', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1.SparkSqlJob.jar_file_uris', index=4, - number=56, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1.SparkSqlJob.logging_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPARKSQLJOB_SCRIPTVARIABLESENTRY, _SPARKSQLJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='queries', full_name='google.cloud.dataproc.v1.SparkSqlJob.queries', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1993, - serialized_end=2458, + name="SparkSqlJob", + full_name="google.cloud.dataproc.v1.SparkSqlJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="query_file_uri", + full_name="google.cloud.dataproc.v1.SparkSqlJob.query_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_list", + full_name="google.cloud.dataproc.v1.SparkSqlJob.query_list", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="script_variables", + full_name="google.cloud.dataproc.v1.SparkSqlJob.script_variables", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1.SparkSqlJob.properties", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1.SparkSqlJob.jar_file_uris", + index=4, + number=56, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1.SparkSqlJob.logging_config", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPARKSQLJOB_SCRIPTVARIABLESENTRY, _SPARKSQLJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1.SparkSqlJob.queries", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1993, + serialized_end=2458, ) _PIGJOB_SCRIPTVARIABLESENTRY = _descriptor.Descriptor( - name='ScriptVariablesEntry', - full_name='google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1874, - serialized_end=1928, + name="ScriptVariablesEntry", + full_name="google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1874, + serialized_end=1928, ) _PIGJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1.PigJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.PigJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.PigJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=851, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1.PigJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.PigJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.PigJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=851, ) _PIGJOB = _descriptor.Descriptor( - name='PigJob', - full_name='google.cloud.dataproc.v1.PigJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query_file_uri', full_name='google.cloud.dataproc.v1.PigJob.query_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_list', full_name='google.cloud.dataproc.v1.PigJob.query_list', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='continue_on_failure', full_name='google.cloud.dataproc.v1.PigJob.continue_on_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='script_variables', full_name='google.cloud.dataproc.v1.PigJob.script_variables', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1.PigJob.properties', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1.PigJob.jar_file_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1.PigJob.logging_config', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PIGJOB_SCRIPTVARIABLESENTRY, _PIGJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='queries', full_name='google.cloud.dataproc.v1.PigJob.queries', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2461, - serialized_end=2940, + name="PigJob", + full_name="google.cloud.dataproc.v1.PigJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="query_file_uri", + full_name="google.cloud.dataproc.v1.PigJob.query_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_list", + full_name="google.cloud.dataproc.v1.PigJob.query_list", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="continue_on_failure", + full_name="google.cloud.dataproc.v1.PigJob.continue_on_failure", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="script_variables", + full_name="google.cloud.dataproc.v1.PigJob.script_variables", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1.PigJob.properties", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1.PigJob.jar_file_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1.PigJob.logging_config", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PIGJOB_SCRIPTVARIABLESENTRY, _PIGJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1.PigJob.queries", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2461, + serialized_end=2940, ) _JOBPLACEMENT = _descriptor.Descriptor( - name='JobPlacement', - full_name='google.cloud.dataproc.v1.JobPlacement', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.JobPlacement.cluster_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1.JobPlacement.cluster_uuid', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2942, - serialized_end=3000, + name="JobPlacement", + full_name="google.cloud.dataproc.v1.JobPlacement", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.JobPlacement.cluster_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1.JobPlacement.cluster_uuid", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2942, + serialized_end=3000, ) _JOBSTATUS = _descriptor.Descriptor( - name='JobStatus', - full_name='google.cloud.dataproc.v1.JobStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1.JobStatus.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='details', full_name='google.cloud.dataproc.v1.JobStatus.details', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state_start_time', full_name='google.cloud.dataproc.v1.JobStatus.state_start_time', index=2, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='substate', full_name='google.cloud.dataproc.v1.JobStatus.substate', index=3, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _JOBSTATUS_STATE, - _JOBSTATUS_SUBSTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3003, - serialized_end=3453, + name="JobStatus", + full_name="google.cloud.dataproc.v1.JobStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1.JobStatus.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="details", + full_name="google.cloud.dataproc.v1.JobStatus.details", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state_start_time", + full_name="google.cloud.dataproc.v1.JobStatus.state_start_time", + index=2, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="substate", + full_name="google.cloud.dataproc.v1.JobStatus.substate", + index=3, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_JOBSTATUS_STATE, _JOBSTATUS_SUBSTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3003, + serialized_end=3453, ) _JOBREFERENCE = _descriptor.Descriptor( - name='JobReference', - full_name='google.cloud.dataproc.v1.JobReference', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.JobReference.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1.JobReference.job_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3455, - serialized_end=3505, + name="JobReference", + full_name="google.cloud.dataproc.v1.JobReference", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.JobReference.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1.JobReference.job_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3455, + serialized_end=3505, ) _YARNAPPLICATION = _descriptor.Descriptor( - name='YarnApplication', - full_name='google.cloud.dataproc.v1.YarnApplication', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.dataproc.v1.YarnApplication.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1.YarnApplication.state', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress', full_name='google.cloud.dataproc.v1.YarnApplication.progress', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_url', full_name='google.cloud.dataproc.v1.YarnApplication.tracking_url', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _YARNAPPLICATION_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3508, - serialized_end=3781, + name="YarnApplication", + full_name="google.cloud.dataproc.v1.YarnApplication", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.dataproc.v1.YarnApplication.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1.YarnApplication.state", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress", + full_name="google.cloud.dataproc.v1.YarnApplication.progress", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tracking_url", + full_name="google.cloud.dataproc.v1.YarnApplication.tracking_url", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_YARNAPPLICATION_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3508, + serialized_end=3781, ) _JOB_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1.Job.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.Job.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.Job.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4650, - serialized_end=4695, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1.Job.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.Job.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.Job.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4650, + serialized_end=4695, ) _JOB = _descriptor.Descriptor( - name='Job', - full_name='google.cloud.dataproc.v1.Job', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='reference', full_name='google.cloud.dataproc.v1.Job.reference', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.cloud.dataproc.v1.Job.placement', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hadoop_job', full_name='google.cloud.dataproc.v1.Job.hadoop_job', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spark_job', full_name='google.cloud.dataproc.v1.Job.spark_job', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pyspark_job', full_name='google.cloud.dataproc.v1.Job.pyspark_job', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hive_job', full_name='google.cloud.dataproc.v1.Job.hive_job', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pig_job', full_name='google.cloud.dataproc.v1.Job.pig_job', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spark_sql_job', full_name='google.cloud.dataproc.v1.Job.spark_sql_job', index=7, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.dataproc.v1.Job.status', index=8, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_history', full_name='google.cloud.dataproc.v1.Job.status_history', index=9, - number=13, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='yarn_applications', full_name='google.cloud.dataproc.v1.Job.yarn_applications', index=10, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='driver_output_resource_uri', full_name='google.cloud.dataproc.v1.Job.driver_output_resource_uri', index=11, - number=17, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='driver_control_files_uri', full_name='google.cloud.dataproc.v1.Job.driver_control_files_uri', index=12, - number=15, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1.Job.labels', index=13, - number=18, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='scheduling', full_name='google.cloud.dataproc.v1.Job.scheduling', index=14, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_uuid', full_name='google.cloud.dataproc.v1.Job.job_uuid', index=15, - number=22, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_JOB_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type_job', full_name='google.cloud.dataproc.v1.Job.type_job', - index=0, containing_type=None, fields=[]), - ], - serialized_start=3784, - serialized_end=4707, + name="Job", + full_name="google.cloud.dataproc.v1.Job", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="reference", + full_name="google.cloud.dataproc.v1.Job.reference", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="placement", + full_name="google.cloud.dataproc.v1.Job.placement", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="hadoop_job", + full_name="google.cloud.dataproc.v1.Job.hadoop_job", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spark_job", + full_name="google.cloud.dataproc.v1.Job.spark_job", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pyspark_job", + full_name="google.cloud.dataproc.v1.Job.pyspark_job", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="hive_job", + full_name="google.cloud.dataproc.v1.Job.hive_job", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pig_job", + full_name="google.cloud.dataproc.v1.Job.pig_job", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spark_sql_job", + full_name="google.cloud.dataproc.v1.Job.spark_sql_job", + index=7, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.dataproc.v1.Job.status", + index=8, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_history", + full_name="google.cloud.dataproc.v1.Job.status_history", + index=9, + number=13, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="yarn_applications", + full_name="google.cloud.dataproc.v1.Job.yarn_applications", + index=10, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="driver_output_resource_uri", + full_name="google.cloud.dataproc.v1.Job.driver_output_resource_uri", + index=11, + number=17, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="driver_control_files_uri", + full_name="google.cloud.dataproc.v1.Job.driver_control_files_uri", + index=12, + number=15, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1.Job.labels", + index=13, + number=18, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="scheduling", + full_name="google.cloud.dataproc.v1.Job.scheduling", + index=14, + number=20, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_uuid", + full_name="google.cloud.dataproc.v1.Job.job_uuid", + index=15, + number=22, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_JOB_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type_job", + full_name="google.cloud.dataproc.v1.Job.type_job", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=3784, + serialized_end=4707, ) _JOBSCHEDULING = _descriptor.Descriptor( - name='JobScheduling', - full_name='google.cloud.dataproc.v1.JobScheduling', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_failures_per_hour', full_name='google.cloud.dataproc.v1.JobScheduling.max_failures_per_hour', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4709, - serialized_end=4755, + name="JobScheduling", + full_name="google.cloud.dataproc.v1.JobScheduling", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_failures_per_hour", + full_name="google.cloud.dataproc.v1.JobScheduling.max_failures_per_hour", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4709, + serialized_end=4755, ) _SUBMITJOBREQUEST = _descriptor.Descriptor( - name='SubmitJobRequest', - full_name='google.cloud.dataproc.v1.SubmitJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.SubmitJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.SubmitJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.dataproc.v1.SubmitJobRequest.job', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1.SubmitJobRequest.request_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4757, - serialized_end=4875, + name="SubmitJobRequest", + full_name="google.cloud.dataproc.v1.SubmitJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.SubmitJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.SubmitJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.dataproc.v1.SubmitJobRequest.job", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1.SubmitJobRequest.request_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4757, + serialized_end=4875, ) _GETJOBREQUEST = _descriptor.Descriptor( - name='GetJobRequest', - full_name='google.cloud.dataproc.v1.GetJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.GetJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.GetJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1.GetJobRequest.job_id', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4877, - serialized_end=4944, + name="GetJobRequest", + full_name="google.cloud.dataproc.v1.GetJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.GetJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.GetJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1.GetJobRequest.job_id", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4877, + serialized_end=4944, ) _LISTJOBSREQUEST = _descriptor.Descriptor( - name='ListJobsRequest', - full_name='google.cloud.dataproc.v1.ListJobsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.ListJobsRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.ListJobsRequest.region', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.dataproc.v1.ListJobsRequest.page_size', index=2, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.dataproc.v1.ListJobsRequest.page_token', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.ListJobsRequest.cluster_name', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_state_matcher', full_name='google.cloud.dataproc.v1.ListJobsRequest.job_state_matcher', index=5, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.dataproc.v1.ListJobsRequest.filter', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTJOBSREQUEST_JOBSTATEMATCHER, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4947, - serialized_end=5219, + name="ListJobsRequest", + full_name="google.cloud.dataproc.v1.ListJobsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.ListJobsRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.ListJobsRequest.region", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.dataproc.v1.ListJobsRequest.page_size", + index=2, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.dataproc.v1.ListJobsRequest.page_token", + index=3, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.ListJobsRequest.cluster_name", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_state_matcher", + full_name="google.cloud.dataproc.v1.ListJobsRequest.job_state_matcher", + index=5, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.dataproc.v1.ListJobsRequest.filter", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_LISTJOBSREQUEST_JOBSTATEMATCHER], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4947, + serialized_end=5219, ) _UPDATEJOBREQUEST = _descriptor.Descriptor( - name='UpdateJobRequest', - full_name='google.cloud.dataproc.v1.UpdateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.UpdateJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.UpdateJobRequest.region', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1.UpdateJobRequest.job_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.dataproc.v1.UpdateJobRequest.job', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.dataproc.v1.UpdateJobRequest.update_mask', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5222, - serialized_end=5385, + name="UpdateJobRequest", + full_name="google.cloud.dataproc.v1.UpdateJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.UpdateJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.UpdateJobRequest.region", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1.UpdateJobRequest.job_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.dataproc.v1.UpdateJobRequest.job", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.dataproc.v1.UpdateJobRequest.update_mask", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5222, + serialized_end=5385, ) _LISTJOBSRESPONSE = _descriptor.Descriptor( - name='ListJobsResponse', - full_name='google.cloud.dataproc.v1.ListJobsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='jobs', full_name='google.cloud.dataproc.v1.ListJobsResponse.jobs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.dataproc.v1.ListJobsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5387, - serialized_end=5475, + name="ListJobsResponse", + full_name="google.cloud.dataproc.v1.ListJobsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="jobs", + full_name="google.cloud.dataproc.v1.ListJobsResponse.jobs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.dataproc.v1.ListJobsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5387, + serialized_end=5475, ) _CANCELJOBREQUEST = _descriptor.Descriptor( - name='CancelJobRequest', - full_name='google.cloud.dataproc.v1.CancelJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.CancelJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.CancelJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1.CancelJobRequest.job_id', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5477, - serialized_end=5547, + name="CancelJobRequest", + full_name="google.cloud.dataproc.v1.CancelJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.CancelJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.CancelJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1.CancelJobRequest.job_id", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5477, + serialized_end=5547, ) _DELETEJOBREQUEST = _descriptor.Descriptor( - name='DeleteJobRequest', - full_name='google.cloud.dataproc.v1.DeleteJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1.DeleteJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1.DeleteJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1.DeleteJobRequest.job_id', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5549, - serialized_end=5619, -) - -_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.fields_by_name['value'].enum_type = _LOGGINGCONFIG_LEVEL + name="DeleteJobRequest", + full_name="google.cloud.dataproc.v1.DeleteJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1.DeleteJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1.DeleteJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1.DeleteJobRequest.job_id", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5549, + serialized_end=5619, +) + +_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.fields_by_name[ + "value" +].enum_type = _LOGGINGCONFIG_LEVEL _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.containing_type = _LOGGINGCONFIG -_LOGGINGCONFIG.fields_by_name['driver_log_levels'].message_type = _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY +_LOGGINGCONFIG.fields_by_name[ + "driver_log_levels" +].message_type = _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY _LOGGINGCONFIG_LEVEL.containing_type = _LOGGINGCONFIG _HADOOPJOB_PROPERTIESENTRY.containing_type = _HADOOPJOB -_HADOOPJOB.fields_by_name['properties'].message_type = _HADOOPJOB_PROPERTIESENTRY -_HADOOPJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_HADOOPJOB.oneofs_by_name['driver'].fields.append( - _HADOOPJOB.fields_by_name['main_jar_file_uri']) -_HADOOPJOB.fields_by_name['main_jar_file_uri'].containing_oneof = _HADOOPJOB.oneofs_by_name['driver'] -_HADOOPJOB.oneofs_by_name['driver'].fields.append( - _HADOOPJOB.fields_by_name['main_class']) -_HADOOPJOB.fields_by_name['main_class'].containing_oneof = _HADOOPJOB.oneofs_by_name['driver'] +_HADOOPJOB.fields_by_name["properties"].message_type = _HADOOPJOB_PROPERTIESENTRY +_HADOOPJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_HADOOPJOB.oneofs_by_name["driver"].fields.append( + _HADOOPJOB.fields_by_name["main_jar_file_uri"] +) +_HADOOPJOB.fields_by_name[ + "main_jar_file_uri" +].containing_oneof = _HADOOPJOB.oneofs_by_name["driver"] +_HADOOPJOB.oneofs_by_name["driver"].fields.append( + _HADOOPJOB.fields_by_name["main_class"] +) +_HADOOPJOB.fields_by_name["main_class"].containing_oneof = _HADOOPJOB.oneofs_by_name[ + "driver" +] _SPARKJOB_PROPERTIESENTRY.containing_type = _SPARKJOB -_SPARKJOB.fields_by_name['properties'].message_type = _SPARKJOB_PROPERTIESENTRY -_SPARKJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_SPARKJOB.oneofs_by_name['driver'].fields.append( - _SPARKJOB.fields_by_name['main_jar_file_uri']) -_SPARKJOB.fields_by_name['main_jar_file_uri'].containing_oneof = _SPARKJOB.oneofs_by_name['driver'] -_SPARKJOB.oneofs_by_name['driver'].fields.append( - _SPARKJOB.fields_by_name['main_class']) -_SPARKJOB.fields_by_name['main_class'].containing_oneof = _SPARKJOB.oneofs_by_name['driver'] +_SPARKJOB.fields_by_name["properties"].message_type = _SPARKJOB_PROPERTIESENTRY +_SPARKJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_SPARKJOB.oneofs_by_name["driver"].fields.append( + _SPARKJOB.fields_by_name["main_jar_file_uri"] +) +_SPARKJOB.fields_by_name[ + "main_jar_file_uri" +].containing_oneof = _SPARKJOB.oneofs_by_name["driver"] +_SPARKJOB.oneofs_by_name["driver"].fields.append(_SPARKJOB.fields_by_name["main_class"]) +_SPARKJOB.fields_by_name["main_class"].containing_oneof = _SPARKJOB.oneofs_by_name[ + "driver" +] _PYSPARKJOB_PROPERTIESENTRY.containing_type = _PYSPARKJOB -_PYSPARKJOB.fields_by_name['properties'].message_type = _PYSPARKJOB_PROPERTIESENTRY -_PYSPARKJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG +_PYSPARKJOB.fields_by_name["properties"].message_type = _PYSPARKJOB_PROPERTIESENTRY +_PYSPARKJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG _HIVEJOB_SCRIPTVARIABLESENTRY.containing_type = _HIVEJOB _HIVEJOB_PROPERTIESENTRY.containing_type = _HIVEJOB -_HIVEJOB.fields_by_name['query_list'].message_type = _QUERYLIST -_HIVEJOB.fields_by_name['script_variables'].message_type = _HIVEJOB_SCRIPTVARIABLESENTRY -_HIVEJOB.fields_by_name['properties'].message_type = _HIVEJOB_PROPERTIESENTRY -_HIVEJOB.oneofs_by_name['queries'].fields.append( - _HIVEJOB.fields_by_name['query_file_uri']) -_HIVEJOB.fields_by_name['query_file_uri'].containing_oneof = _HIVEJOB.oneofs_by_name['queries'] -_HIVEJOB.oneofs_by_name['queries'].fields.append( - _HIVEJOB.fields_by_name['query_list']) -_HIVEJOB.fields_by_name['query_list'].containing_oneof = _HIVEJOB.oneofs_by_name['queries'] +_HIVEJOB.fields_by_name["query_list"].message_type = _QUERYLIST +_HIVEJOB.fields_by_name["script_variables"].message_type = _HIVEJOB_SCRIPTVARIABLESENTRY +_HIVEJOB.fields_by_name["properties"].message_type = _HIVEJOB_PROPERTIESENTRY +_HIVEJOB.oneofs_by_name["queries"].fields.append( + _HIVEJOB.fields_by_name["query_file_uri"] +) +_HIVEJOB.fields_by_name["query_file_uri"].containing_oneof = _HIVEJOB.oneofs_by_name[ + "queries" +] +_HIVEJOB.oneofs_by_name["queries"].fields.append(_HIVEJOB.fields_by_name["query_list"]) +_HIVEJOB.fields_by_name["query_list"].containing_oneof = _HIVEJOB.oneofs_by_name[ + "queries" +] _SPARKSQLJOB_SCRIPTVARIABLESENTRY.containing_type = _SPARKSQLJOB _SPARKSQLJOB_PROPERTIESENTRY.containing_type = _SPARKSQLJOB -_SPARKSQLJOB.fields_by_name['query_list'].message_type = _QUERYLIST -_SPARKSQLJOB.fields_by_name['script_variables'].message_type = _SPARKSQLJOB_SCRIPTVARIABLESENTRY -_SPARKSQLJOB.fields_by_name['properties'].message_type = _SPARKSQLJOB_PROPERTIESENTRY -_SPARKSQLJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_SPARKSQLJOB.oneofs_by_name['queries'].fields.append( - _SPARKSQLJOB.fields_by_name['query_file_uri']) -_SPARKSQLJOB.fields_by_name['query_file_uri'].containing_oneof = _SPARKSQLJOB.oneofs_by_name['queries'] -_SPARKSQLJOB.oneofs_by_name['queries'].fields.append( - _SPARKSQLJOB.fields_by_name['query_list']) -_SPARKSQLJOB.fields_by_name['query_list'].containing_oneof = _SPARKSQLJOB.oneofs_by_name['queries'] +_SPARKSQLJOB.fields_by_name["query_list"].message_type = _QUERYLIST +_SPARKSQLJOB.fields_by_name[ + "script_variables" +].message_type = _SPARKSQLJOB_SCRIPTVARIABLESENTRY +_SPARKSQLJOB.fields_by_name["properties"].message_type = _SPARKSQLJOB_PROPERTIESENTRY +_SPARKSQLJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_SPARKSQLJOB.oneofs_by_name["queries"].fields.append( + _SPARKSQLJOB.fields_by_name["query_file_uri"] +) +_SPARKSQLJOB.fields_by_name[ + "query_file_uri" +].containing_oneof = _SPARKSQLJOB.oneofs_by_name["queries"] +_SPARKSQLJOB.oneofs_by_name["queries"].fields.append( + _SPARKSQLJOB.fields_by_name["query_list"] +) +_SPARKSQLJOB.fields_by_name[ + "query_list" +].containing_oneof = _SPARKSQLJOB.oneofs_by_name["queries"] _PIGJOB_SCRIPTVARIABLESENTRY.containing_type = _PIGJOB _PIGJOB_PROPERTIESENTRY.containing_type = _PIGJOB -_PIGJOB.fields_by_name['query_list'].message_type = _QUERYLIST -_PIGJOB.fields_by_name['script_variables'].message_type = _PIGJOB_SCRIPTVARIABLESENTRY -_PIGJOB.fields_by_name['properties'].message_type = _PIGJOB_PROPERTIESENTRY -_PIGJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_PIGJOB.oneofs_by_name['queries'].fields.append( - _PIGJOB.fields_by_name['query_file_uri']) -_PIGJOB.fields_by_name['query_file_uri'].containing_oneof = _PIGJOB.oneofs_by_name['queries'] -_PIGJOB.oneofs_by_name['queries'].fields.append( - _PIGJOB.fields_by_name['query_list']) -_PIGJOB.fields_by_name['query_list'].containing_oneof = _PIGJOB.oneofs_by_name['queries'] -_JOBSTATUS.fields_by_name['state'].enum_type = _JOBSTATUS_STATE -_JOBSTATUS.fields_by_name['state_start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOBSTATUS.fields_by_name['substate'].enum_type = _JOBSTATUS_SUBSTATE +_PIGJOB.fields_by_name["query_list"].message_type = _QUERYLIST +_PIGJOB.fields_by_name["script_variables"].message_type = _PIGJOB_SCRIPTVARIABLESENTRY +_PIGJOB.fields_by_name["properties"].message_type = _PIGJOB_PROPERTIESENTRY +_PIGJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_PIGJOB.oneofs_by_name["queries"].fields.append( + _PIGJOB.fields_by_name["query_file_uri"] +) +_PIGJOB.fields_by_name["query_file_uri"].containing_oneof = _PIGJOB.oneofs_by_name[ + "queries" +] +_PIGJOB.oneofs_by_name["queries"].fields.append(_PIGJOB.fields_by_name["query_list"]) +_PIGJOB.fields_by_name["query_list"].containing_oneof = _PIGJOB.oneofs_by_name[ + "queries" +] +_JOBSTATUS.fields_by_name["state"].enum_type = _JOBSTATUS_STATE +_JOBSTATUS.fields_by_name[ + "state_start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOBSTATUS.fields_by_name["substate"].enum_type = _JOBSTATUS_SUBSTATE _JOBSTATUS_STATE.containing_type = _JOBSTATUS _JOBSTATUS_SUBSTATE.containing_type = _JOBSTATUS -_YARNAPPLICATION.fields_by_name['state'].enum_type = _YARNAPPLICATION_STATE +_YARNAPPLICATION.fields_by_name["state"].enum_type = _YARNAPPLICATION_STATE _YARNAPPLICATION_STATE.containing_type = _YARNAPPLICATION _JOB_LABELSENTRY.containing_type = _JOB -_JOB.fields_by_name['reference'].message_type = _JOBREFERENCE -_JOB.fields_by_name['placement'].message_type = _JOBPLACEMENT -_JOB.fields_by_name['hadoop_job'].message_type = _HADOOPJOB -_JOB.fields_by_name['spark_job'].message_type = _SPARKJOB -_JOB.fields_by_name['pyspark_job'].message_type = _PYSPARKJOB -_JOB.fields_by_name['hive_job'].message_type = _HIVEJOB -_JOB.fields_by_name['pig_job'].message_type = _PIGJOB -_JOB.fields_by_name['spark_sql_job'].message_type = _SPARKSQLJOB -_JOB.fields_by_name['status'].message_type = _JOBSTATUS -_JOB.fields_by_name['status_history'].message_type = _JOBSTATUS -_JOB.fields_by_name['yarn_applications'].message_type = _YARNAPPLICATION -_JOB.fields_by_name['labels'].message_type = _JOB_LABELSENTRY -_JOB.fields_by_name['scheduling'].message_type = _JOBSCHEDULING -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['hadoop_job']) -_JOB.fields_by_name['hadoop_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['spark_job']) -_JOB.fields_by_name['spark_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['pyspark_job']) -_JOB.fields_by_name['pyspark_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['hive_job']) -_JOB.fields_by_name['hive_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['pig_job']) -_JOB.fields_by_name['pig_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['spark_sql_job']) -_JOB.fields_by_name['spark_sql_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_SUBMITJOBREQUEST.fields_by_name['job'].message_type = _JOB -_LISTJOBSREQUEST.fields_by_name['job_state_matcher'].enum_type = _LISTJOBSREQUEST_JOBSTATEMATCHER +_JOB.fields_by_name["reference"].message_type = _JOBREFERENCE +_JOB.fields_by_name["placement"].message_type = _JOBPLACEMENT +_JOB.fields_by_name["hadoop_job"].message_type = _HADOOPJOB +_JOB.fields_by_name["spark_job"].message_type = _SPARKJOB +_JOB.fields_by_name["pyspark_job"].message_type = _PYSPARKJOB +_JOB.fields_by_name["hive_job"].message_type = _HIVEJOB +_JOB.fields_by_name["pig_job"].message_type = _PIGJOB +_JOB.fields_by_name["spark_sql_job"].message_type = _SPARKSQLJOB +_JOB.fields_by_name["status"].message_type = _JOBSTATUS +_JOB.fields_by_name["status_history"].message_type = _JOBSTATUS +_JOB.fields_by_name["yarn_applications"].message_type = _YARNAPPLICATION +_JOB.fields_by_name["labels"].message_type = _JOB_LABELSENTRY +_JOB.fields_by_name["scheduling"].message_type = _JOBSCHEDULING +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["hadoop_job"]) +_JOB.fields_by_name["hadoop_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["spark_job"]) +_JOB.fields_by_name["spark_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["pyspark_job"]) +_JOB.fields_by_name["pyspark_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["hive_job"]) +_JOB.fields_by_name["hive_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["pig_job"]) +_JOB.fields_by_name["pig_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["spark_sql_job"]) +_JOB.fields_by_name["spark_sql_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_SUBMITJOBREQUEST.fields_by_name["job"].message_type = _JOB +_LISTJOBSREQUEST.fields_by_name[ + "job_state_matcher" +].enum_type = _LISTJOBSREQUEST_JOBSTATEMATCHER _LISTJOBSREQUEST_JOBSTATEMATCHER.containing_type = _LISTJOBSREQUEST -_UPDATEJOBREQUEST.fields_by_name['job'].message_type = _JOB -_UPDATEJOBREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTJOBSRESPONSE.fields_by_name['jobs'].message_type = _JOB -DESCRIPTOR.message_types_by_name['LoggingConfig'] = _LOGGINGCONFIG -DESCRIPTOR.message_types_by_name['HadoopJob'] = _HADOOPJOB -DESCRIPTOR.message_types_by_name['SparkJob'] = _SPARKJOB -DESCRIPTOR.message_types_by_name['PySparkJob'] = _PYSPARKJOB -DESCRIPTOR.message_types_by_name['QueryList'] = _QUERYLIST -DESCRIPTOR.message_types_by_name['HiveJob'] = _HIVEJOB -DESCRIPTOR.message_types_by_name['SparkSqlJob'] = _SPARKSQLJOB -DESCRIPTOR.message_types_by_name['PigJob'] = _PIGJOB -DESCRIPTOR.message_types_by_name['JobPlacement'] = _JOBPLACEMENT -DESCRIPTOR.message_types_by_name['JobStatus'] = _JOBSTATUS -DESCRIPTOR.message_types_by_name['JobReference'] = _JOBREFERENCE -DESCRIPTOR.message_types_by_name['YarnApplication'] = _YARNAPPLICATION -DESCRIPTOR.message_types_by_name['Job'] = _JOB -DESCRIPTOR.message_types_by_name['JobScheduling'] = _JOBSCHEDULING -DESCRIPTOR.message_types_by_name['SubmitJobRequest'] = _SUBMITJOBREQUEST -DESCRIPTOR.message_types_by_name['GetJobRequest'] = _GETJOBREQUEST -DESCRIPTOR.message_types_by_name['ListJobsRequest'] = _LISTJOBSREQUEST -DESCRIPTOR.message_types_by_name['UpdateJobRequest'] = _UPDATEJOBREQUEST -DESCRIPTOR.message_types_by_name['ListJobsResponse'] = _LISTJOBSRESPONSE -DESCRIPTOR.message_types_by_name['CancelJobRequest'] = _CANCELJOBREQUEST -DESCRIPTOR.message_types_by_name['DeleteJobRequest'] = _DELETEJOBREQUEST +_UPDATEJOBREQUEST.fields_by_name["job"].message_type = _JOB +_UPDATEJOBREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTJOBSRESPONSE.fields_by_name["jobs"].message_type = _JOB +DESCRIPTOR.message_types_by_name["LoggingConfig"] = _LOGGINGCONFIG +DESCRIPTOR.message_types_by_name["HadoopJob"] = _HADOOPJOB +DESCRIPTOR.message_types_by_name["SparkJob"] = _SPARKJOB +DESCRIPTOR.message_types_by_name["PySparkJob"] = _PYSPARKJOB +DESCRIPTOR.message_types_by_name["QueryList"] = _QUERYLIST +DESCRIPTOR.message_types_by_name["HiveJob"] = _HIVEJOB +DESCRIPTOR.message_types_by_name["SparkSqlJob"] = _SPARKSQLJOB +DESCRIPTOR.message_types_by_name["PigJob"] = _PIGJOB +DESCRIPTOR.message_types_by_name["JobPlacement"] = _JOBPLACEMENT +DESCRIPTOR.message_types_by_name["JobStatus"] = _JOBSTATUS +DESCRIPTOR.message_types_by_name["JobReference"] = _JOBREFERENCE +DESCRIPTOR.message_types_by_name["YarnApplication"] = _YARNAPPLICATION +DESCRIPTOR.message_types_by_name["Job"] = _JOB +DESCRIPTOR.message_types_by_name["JobScheduling"] = _JOBSCHEDULING +DESCRIPTOR.message_types_by_name["SubmitJobRequest"] = _SUBMITJOBREQUEST +DESCRIPTOR.message_types_by_name["GetJobRequest"] = _GETJOBREQUEST +DESCRIPTOR.message_types_by_name["ListJobsRequest"] = _LISTJOBSREQUEST +DESCRIPTOR.message_types_by_name["UpdateJobRequest"] = _UPDATEJOBREQUEST +DESCRIPTOR.message_types_by_name["ListJobsResponse"] = _LISTJOBSRESPONSE +DESCRIPTOR.message_types_by_name["CancelJobRequest"] = _CANCELJOBREQUEST +DESCRIPTOR.message_types_by_name["DeleteJobRequest"] = _DELETEJOBREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -LoggingConfig = _reflection.GeneratedProtocolMessageType('LoggingConfig', (_message.Message,), dict( - - DriverLogLevelsEntry = _reflection.GeneratedProtocolMessageType('DriverLogLevelsEntry', (_message.Message,), dict( - DESCRIPTOR = _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry) - )) - , - DESCRIPTOR = _LOGGINGCONFIG, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """The runtime logging config of the job. +LoggingConfig = _reflection.GeneratedProtocolMessageType( + "LoggingConfig", + (_message.Message,), + dict( + DriverLogLevelsEntry=_reflection.GeneratedProtocolMessageType( + "DriverLogLevelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry) + ), + ), + DESCRIPTOR=_LOGGINGCONFIG, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""The runtime logging config of the job. Attributes: @@ -2028,23 +3317,28 @@ "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LoggingConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LoggingConfig) + ), +) _sym_db.RegisterMessage(LoggingConfig) _sym_db.RegisterMessage(LoggingConfig.DriverLogLevelsEntry) -HadoopJob = _reflection.GeneratedProtocolMessageType('HadoopJob', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _HADOOPJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HadoopJob.PropertiesEntry) - )) - , - DESCRIPTOR = _HADOOPJOB, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache Hadoop +HadoopJob = _reflection.GeneratedProtocolMessageType( + "HadoopJob", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HADOOPJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HadoopJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_HADOOPJOB, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Hadoop MapReduce `__ jobs on `Apache Hadoop YARN `__. @@ -2092,23 +3386,28 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HadoopJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HadoopJob) + ), +) _sym_db.RegisterMessage(HadoopJob) _sym_db.RegisterMessage(HadoopJob.PropertiesEntry) -SparkJob = _reflection.GeneratedProtocolMessageType('SparkJob', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _SPARKJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkJob.PropertiesEntry) - )) - , - DESCRIPTOR = _SPARKJOB, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +SparkJob = _reflection.GeneratedProtocolMessageType( + "SparkJob", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPARKJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_SPARKJOB, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Spark `__ applications on YARN. @@ -2151,23 +3450,28 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkJob) + ), +) _sym_db.RegisterMessage(SparkJob) _sym_db.RegisterMessage(SparkJob.PropertiesEntry) -PySparkJob = _reflection.GeneratedProtocolMessageType('PySparkJob', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _PYSPARKJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob.PropertiesEntry) - )) - , - DESCRIPTOR = _PYSPARKJOB, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +PySparkJob = _reflection.GeneratedProtocolMessageType( + "PySparkJob", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PYSPARKJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_PYSPARKJOB, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache PySpark `__ applications on YARN. @@ -2203,16 +3507,19 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob) + ), +) _sym_db.RegisterMessage(PySparkJob) _sym_db.RegisterMessage(PySparkJob.PropertiesEntry) -QueryList = _reflection.GeneratedProtocolMessageType('QueryList', (_message.Message,), dict( - DESCRIPTOR = _QUERYLIST, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A list of queries to run on a cluster. +QueryList = _reflection.GeneratedProtocolMessageType( + "QueryList", + (_message.Message,), + dict( + DESCRIPTOR=_QUERYLIST, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A list of queries to run on a cluster. Attributes: @@ -2225,29 +3532,36 @@ { "queries": [ "query1", "query2", "query3;query4", ] } } """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.QueryList) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.QueryList) + ), +) _sym_db.RegisterMessage(QueryList) -HiveJob = _reflection.GeneratedProtocolMessageType('HiveJob', (_message.Message,), dict( - - ScriptVariablesEntry = _reflection.GeneratedProtocolMessageType('ScriptVariablesEntry', (_message.Message,), dict( - DESCRIPTOR = _HIVEJOB_SCRIPTVARIABLESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry) - )) - , - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _HIVEJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob.PropertiesEntry) - )) - , - DESCRIPTOR = _HIVEJOB, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +HiveJob = _reflection.GeneratedProtocolMessageType( + "HiveJob", + (_message.Message,), + dict( + ScriptVariablesEntry=_reflection.GeneratedProtocolMessageType( + "ScriptVariablesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HIVEJOB_SCRIPTVARIABLESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob.ScriptVariablesEntry) + ), + ), + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HIVEJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_HIVEJOB, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Hive `__ queries on YARN. @@ -2277,31 +3591,38 @@ the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob) + ), +) _sym_db.RegisterMessage(HiveJob) _sym_db.RegisterMessage(HiveJob.ScriptVariablesEntry) _sym_db.RegisterMessage(HiveJob.PropertiesEntry) -SparkSqlJob = _reflection.GeneratedProtocolMessageType('SparkSqlJob', (_message.Message,), dict( - - ScriptVariablesEntry = _reflection.GeneratedProtocolMessageType('ScriptVariablesEntry', (_message.Message,), dict( - DESCRIPTOR = _SPARKSQLJOB_SCRIPTVARIABLESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry) - )) - , - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _SPARKSQLJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry) - )) - , - DESCRIPTOR = _SPARKSQLJOB, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache Spark +SparkSqlJob = _reflection.GeneratedProtocolMessageType( + "SparkSqlJob", + (_message.Message,), + dict( + ScriptVariablesEntry=_reflection.GeneratedProtocolMessageType( + "ScriptVariablesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPARKSQLJOB_SCRIPTVARIABLESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob.ScriptVariablesEntry) + ), + ), + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPARKSQLJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_SPARKSQLJOB, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Spark SQL `__ queries. @@ -2326,31 +3647,38 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob) + ), +) _sym_db.RegisterMessage(SparkSqlJob) _sym_db.RegisterMessage(SparkSqlJob.ScriptVariablesEntry) _sym_db.RegisterMessage(SparkSqlJob.PropertiesEntry) -PigJob = _reflection.GeneratedProtocolMessageType('PigJob', (_message.Message,), dict( - - ScriptVariablesEntry = _reflection.GeneratedProtocolMessageType('ScriptVariablesEntry', (_message.Message,), dict( - DESCRIPTOR = _PIGJOB_SCRIPTVARIABLESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry) - )) - , - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _PIGJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob.PropertiesEntry) - )) - , - DESCRIPTOR = _PIGJOB, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +PigJob = _reflection.GeneratedProtocolMessageType( + "PigJob", + (_message.Message,), + dict( + ScriptVariablesEntry=_reflection.GeneratedProtocolMessageType( + "ScriptVariablesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PIGJOB_SCRIPTVARIABLESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob.ScriptVariablesEntry) + ), + ), + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PIGJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_PIGJOB, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Pig `__ queries on YARN. @@ -2382,17 +3710,20 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob) + ), +) _sym_db.RegisterMessage(PigJob) _sym_db.RegisterMessage(PigJob.ScriptVariablesEntry) _sym_db.RegisterMessage(PigJob.PropertiesEntry) -JobPlacement = _reflection.GeneratedProtocolMessageType('JobPlacement', (_message.Message,), dict( - DESCRIPTOR = _JOBPLACEMENT, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """Cloud Dataproc job config. +JobPlacement = _reflection.GeneratedProtocolMessageType( + "JobPlacement", + (_message.Message,), + dict( + DESCRIPTOR=_JOBPLACEMENT, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""Cloud Dataproc job config. Attributes: @@ -2403,15 +3734,18 @@ Output only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobPlacement) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobPlacement) + ), +) _sym_db.RegisterMessage(JobPlacement) -JobStatus = _reflection.GeneratedProtocolMessageType('JobStatus', (_message.Message,), dict( - DESCRIPTOR = _JOBSTATUS, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """Cloud Dataproc job status. +JobStatus = _reflection.GeneratedProtocolMessageType( + "JobStatus", + (_message.Message,), + dict( + DESCRIPTOR=_JOBSTATUS, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""Cloud Dataproc job status. Attributes: @@ -2426,15 +3760,18 @@ Output only. Additional state information, which includes status reported by the agent. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobStatus) + ), +) _sym_db.RegisterMessage(JobStatus) -JobReference = _reflection.GeneratedProtocolMessageType('JobReference', (_message.Message,), dict( - DESCRIPTOR = _JOBREFERENCE, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """Encapsulates the full scoping used to reference a job. +JobReference = _reflection.GeneratedProtocolMessageType( + "JobReference", + (_message.Message,), + dict( + DESCRIPTOR=_JOBREFERENCE, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""Encapsulates the full scoping used to reference a job. Attributes: @@ -2449,15 +3786,18 @@ (a-z, A-Z), numbers (0-9), underscores (\_), or hyphens (-). The maximum length is 100 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobReference) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobReference) + ), +) _sym_db.RegisterMessage(JobReference) -YarnApplication = _reflection.GeneratedProtocolMessageType('YarnApplication', (_message.Message,), dict( - DESCRIPTOR = _YARNAPPLICATION, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A YARN application created by a job. Application information is a subset +YarnApplication = _reflection.GeneratedProtocolMessageType( + "YarnApplication", + (_message.Message,), + dict( + DESCRIPTOR=_YARNAPPLICATION, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. **Beta Feature**: This report is available for testing purposes only. It @@ -2478,22 +3818,27 @@ specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.YarnApplication) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.YarnApplication) + ), +) _sym_db.RegisterMessage(YarnApplication) -Job = _reflection.GeneratedProtocolMessageType('Job', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _JOB_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Job.LabelsEntry) - )) - , - DESCRIPTOR = _JOB, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job resource. +Job = _reflection.GeneratedProtocolMessageType( + "Job", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_JOB_LABELSENTRY, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Job.LabelsEntry) + ), + ), + DESCRIPTOR=_JOB, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job resource. Attributes: @@ -2553,16 +3898,19 @@ project over time. This is in contrast to a user-settable reference.job\_id that may be reused over time. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Job) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Job) + ), +) _sym_db.RegisterMessage(Job) _sym_db.RegisterMessage(Job.LabelsEntry) -JobScheduling = _reflection.GeneratedProtocolMessageType('JobScheduling', (_message.Message,), dict( - DESCRIPTOR = _JOBSCHEDULING, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """Job scheduling options. +JobScheduling = _reflection.GeneratedProtocolMessageType( + "JobScheduling", + (_message.Message,), + dict( + DESCRIPTOR=_JOBSCHEDULING, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""Job scheduling options. Attributes: @@ -2573,15 +3921,18 @@ thrashing if driver exits with non-zero code 4 times within 10 minute window. Maximum value is 10. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobScheduling) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobScheduling) + ), +) _sym_db.RegisterMessage(JobScheduling) -SubmitJobRequest = _reflection.GeneratedProtocolMessageType('SubmitJobRequest', (_message.Message,), dict( - DESCRIPTOR = _SUBMITJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A request to submit a job. +SubmitJobRequest = _reflection.GeneratedProtocolMessageType( + "SubmitJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SUBMITJOBREQUEST, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A request to submit a job. Attributes: @@ -2606,15 +3957,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SubmitJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SubmitJobRequest) + ), +) _sym_db.RegisterMessage(SubmitJobRequest) -GetJobRequest = _reflection.GeneratedProtocolMessageType('GetJobRequest', (_message.Message,), dict( - DESCRIPTOR = _GETJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A request to get the resource representation for a job in a project. +GetJobRequest = _reflection.GeneratedProtocolMessageType( + "GetJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETJOBREQUEST, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A request to get the resource representation for a job in a project. Attributes: @@ -2627,15 +3981,18 @@ job_id: Required. The job ID. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetJobRequest) + ), +) _sym_db.RegisterMessage(GetJobRequest) -ListJobsRequest = _reflection.GeneratedProtocolMessageType('ListJobsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A request to list jobs in a project. +ListJobsRequest = _reflection.GeneratedProtocolMessageType( + "ListJobsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSREQUEST, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A request to list jobs in a project. Attributes: @@ -2669,15 +4026,18 @@ status.state = ACTIVE AND labels.env = staging AND labels.starred = \* """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsRequest) + ), +) _sym_db.RegisterMessage(ListJobsRequest) -UpdateJobRequest = _reflection.GeneratedProtocolMessageType('UpdateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A request to update a job. +UpdateJobRequest = _reflection.GeneratedProtocolMessageType( + "UpdateJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEJOBREQUEST, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A request to update a job. Attributes: @@ -2698,15 +4058,18 @@ ``PATCH`` request body would specify the new value. Note: Currently, labels is the only field that can be updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateJobRequest) + ), +) _sym_db.RegisterMessage(UpdateJobRequest) -ListJobsResponse = _reflection.GeneratedProtocolMessageType('ListJobsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSRESPONSE, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A list of jobs in a project. +ListJobsResponse = _reflection.GeneratedProtocolMessageType( + "ListJobsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSRESPONSE, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A list of jobs in a project. Attributes: @@ -2718,15 +4081,18 @@ this value as the ``page_token`` in a subsequent ListJobsRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsResponse) + ), +) _sym_db.RegisterMessage(ListJobsResponse) -CancelJobRequest = _reflection.GeneratedProtocolMessageType('CancelJobRequest', (_message.Message,), dict( - DESCRIPTOR = _CANCELJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A request to cancel a job. +CancelJobRequest = _reflection.GeneratedProtocolMessageType( + "CancelJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CANCELJOBREQUEST, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A request to cancel a job. Attributes: @@ -2739,15 +4105,18 @@ job_id: Required. The job ID. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CancelJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CancelJobRequest) + ), +) _sym_db.RegisterMessage(CancelJobRequest) -DeleteJobRequest = _reflection.GeneratedProtocolMessageType('DeleteJobRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1.proto.jobs_pb2' - , - __doc__ = """A request to delete a job. +DeleteJobRequest = _reflection.GeneratedProtocolMessageType( + "DeleteJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEJOBREQUEST, + __module__="google.cloud.dataproc_v1.proto.jobs_pb2", + __doc__="""A request to delete a job. Attributes: @@ -2760,102 +4129,161 @@ job_id: Required. The job ID. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteJobRequest) + ), +) _sym_db.RegisterMessage(DeleteJobRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.cloud.dataproc.v1B\tJobsProtoP\001Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.cloud.dataproc.v1B\tJobsProtoP\001Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc" + ), +) _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.has_options = True -_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _HADOOPJOB_PROPERTIESENTRY.has_options = True -_HADOOPJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HADOOPJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SPARKJOB_PROPERTIESENTRY.has_options = True -_SPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PYSPARKJOB_PROPERTIESENTRY.has_options = True -_PYSPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PYSPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _HIVEJOB_SCRIPTVARIABLESENTRY.has_options = True -_HIVEJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HIVEJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _HIVEJOB_PROPERTIESENTRY.has_options = True -_HIVEJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HIVEJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SPARKSQLJOB_SCRIPTVARIABLESENTRY.has_options = True -_SPARKSQLJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPARKSQLJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SPARKSQLJOB_PROPERTIESENTRY.has_options = True -_SPARKSQLJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPARKSQLJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PIGJOB_SCRIPTVARIABLESENTRY.has_options = True -_PIGJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PIGJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PIGJOB_PROPERTIESENTRY.has_options = True -_PIGJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PIGJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _JOB_LABELSENTRY.has_options = True -_JOB_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_JOB_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _JOBCONTROLLER = _descriptor.ServiceDescriptor( - name='JobController', - full_name='google.cloud.dataproc.v1.JobController', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=5622, - serialized_end=6572, - methods=[ - _descriptor.MethodDescriptor( - name='SubmitJob', - full_name='google.cloud.dataproc.v1.JobController.SubmitJob', + name="JobController", + full_name="google.cloud.dataproc.v1.JobController", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_SUBMITJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\"6/v1/projects/{project_id}/regions/{region}/jobs:submit:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetJob', - full_name='google.cloud.dataproc.v1.JobController.GetJob', - index=1, - containing_service=None, - input_type=_GETJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\0228/v1/projects/{project_id}/regions/{region}/jobs/{job_id}')), - ), - _descriptor.MethodDescriptor( - name='ListJobs', - full_name='google.cloud.dataproc.v1.JobController.ListJobs', - index=2, - containing_service=None, - input_type=_LISTJOBSREQUEST, - output_type=_LISTJOBSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v1/projects/{project_id}/regions/{region}/jobs')), - ), - _descriptor.MethodDescriptor( - name='UpdateJob', - full_name='google.cloud.dataproc.v1.JobController.UpdateJob', - index=3, - containing_service=None, - input_type=_UPDATEJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?28/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:\003job')), - ), - _descriptor.MethodDescriptor( - name='CancelJob', - full_name='google.cloud.dataproc.v1.JobController.CancelJob', - index=4, - containing_service=None, - input_type=_CANCELJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002D\"?/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeleteJob', - full_name='google.cloud.dataproc.v1.JobController.DeleteJob', - index=5, - containing_service=None, - input_type=_DELETEJOBREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:*8/v1/projects/{project_id}/regions/{region}/jobs/{job_id}')), - ), -]) + options=None, + serialized_start=5622, + serialized_end=6572, + methods=[ + _descriptor.MethodDescriptor( + name="SubmitJob", + full_name="google.cloud.dataproc.v1.JobController.SubmitJob", + index=0, + containing_service=None, + input_type=_SUBMITJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002;"6/v1/projects/{project_id}/regions/{region}/jobs:submit:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetJob", + full_name="google.cloud.dataproc.v1.JobController.GetJob", + index=1, + containing_service=None, + input_type=_GETJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:\0228/v1/projects/{project_id}/regions/{region}/jobs/{job_id}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListJobs", + full_name="google.cloud.dataproc.v1.JobController.ListJobs", + index=2, + containing_service=None, + input_type=_LISTJOBSREQUEST, + output_type=_LISTJOBSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v1/projects/{project_id}/regions/{region}/jobs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateJob", + full_name="google.cloud.dataproc.v1.JobController.UpdateJob", + index=3, + containing_service=None, + input_type=_UPDATEJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002?28/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:\003job" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CancelJob", + full_name="google.cloud.dataproc.v1.JobController.CancelJob", + index=4, + containing_service=None, + input_type=_CANCELJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002D"?/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteJob", + full_name="google.cloud.dataproc.v1.JobController.DeleteJob", + index=5, + containing_service=None, + input_type=_DELETEJOBREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:*8/v1/projects/{project_id}/regions/{region}/jobs/{job_id}" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_JOBCONTROLLER) -DESCRIPTOR.services_by_name['JobController'] = _JOBCONTROLLER +DESCRIPTOR.services_by_name["JobController"] = _JOBCONTROLLER # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2_grpc.py index 63a7fb6eccf01..671520e9ff8a0 100644 --- a/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1/proto/jobs_pb2_grpc.py @@ -1,136 +1,139 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.dataproc_v1.proto import jobs_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2 +from google.cloud.dataproc_v1.proto import ( + jobs_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class JobControllerStub(object): - """The JobController provides methods to manage jobs. + """The JobController provides methods to manage jobs. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.SubmitJob = channel.unary_unary( - '/google.cloud.dataproc.v1.JobController/SubmitJob', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.SubmitJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, + self.SubmitJob = channel.unary_unary( + "/google.cloud.dataproc.v1.JobController/SubmitJob", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.SubmitJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.GetJob = channel.unary_unary( - '/google.cloud.dataproc.v1.JobController/GetJob', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.GetJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, + self.GetJob = channel.unary_unary( + "/google.cloud.dataproc.v1.JobController/GetJob", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.GetJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.ListJobs = channel.unary_unary( - '/google.cloud.dataproc.v1.JobController/ListJobs', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsResponse.FromString, + self.ListJobs = channel.unary_unary( + "/google.cloud.dataproc.v1.JobController/ListJobs", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsResponse.FromString, ) - self.UpdateJob = channel.unary_unary( - '/google.cloud.dataproc.v1.JobController/UpdateJob', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.UpdateJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, + self.UpdateJob = channel.unary_unary( + "/google.cloud.dataproc.v1.JobController/UpdateJob", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.UpdateJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.CancelJob = channel.unary_unary( - '/google.cloud.dataproc.v1.JobController/CancelJob', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.CancelJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, + self.CancelJob = channel.unary_unary( + "/google.cloud.dataproc.v1.JobController/CancelJob", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.CancelJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.DeleteJob = channel.unary_unary( - '/google.cloud.dataproc.v1.JobController/DeleteJob', - request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.DeleteJobRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteJob = channel.unary_unary( + "/google.cloud.dataproc.v1.JobController/DeleteJob", + request_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.DeleteJobRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class JobControllerServicer(object): - """The JobController provides methods to manage jobs. + """The JobController provides methods to manage jobs. """ - def SubmitJob(self, request, context): - """Submits a job to a cluster. + def SubmitJob(self, request, context): + """Submits a job to a cluster. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetJob(self, request, context): - """Gets the resource representation for a job in a project. + def GetJob(self, request, context): + """Gets the resource representation for a job in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListJobs(self, request, context): - """Lists regions/{region}/jobs in a project. + def ListJobs(self, request, context): + """Lists regions/{region}/jobs in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateJob(self, request, context): - """Updates a job in a project. + def UpdateJob(self, request, context): + """Updates a job in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CancelJob(self, request, context): - """Starts a job cancellation request. To access the job resource + def CancelJob(self, request, context): + """Starts a job cancellation request. To access the job resource after cancellation, call [regions/{region}/jobs.list](/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or [regions/{region}/jobs.get](/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteJob(self, request, context): - """Deletes the job from the project. If the job is active, the delete fails, + def DeleteJob(self, request, context): + """Deletes the job from the project. If the job is active, the delete fails, and the response returns `FAILED_PRECONDITION`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_JobControllerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'SubmitJob': grpc.unary_unary_rpc_method_handler( - servicer.SubmitJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.SubmitJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'GetJob': grpc.unary_unary_rpc_method_handler( - servicer.GetJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.GetJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'ListJobs': grpc.unary_unary_rpc_method_handler( - servicer.ListJobs, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsResponse.SerializeToString, - ), - 'UpdateJob': grpc.unary_unary_rpc_method_handler( - servicer.UpdateJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.UpdateJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'CancelJob': grpc.unary_unary_rpc_method_handler( - servicer.CancelJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.CancelJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'DeleteJob': grpc.unary_unary_rpc_method_handler( - servicer.DeleteJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.DeleteJobRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.dataproc.v1.JobController', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "SubmitJob": grpc.unary_unary_rpc_method_handler( + servicer.SubmitJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.SubmitJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "GetJob": grpc.unary_unary_rpc_method_handler( + servicer.GetJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.GetJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "ListJobs": grpc.unary_unary_rpc_method_handler( + servicer.ListJobs, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.ListJobsResponse.SerializeToString, + ), + "UpdateJob": grpc.unary_unary_rpc_method_handler( + servicer.UpdateJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.UpdateJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "CancelJob": grpc.unary_unary_rpc_method_handler( + servicer.CancelJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.CancelJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "DeleteJob": grpc.unary_unary_rpc_method_handler( + servicer.DeleteJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2.DeleteJobRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.dataproc.v1.JobController", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/dataproc/google/cloud/dataproc_v1/proto/operations_pb2.py b/dataproc/google/cloud/dataproc_v1/proto/operations_pb2.py index cbc4ac2b7ebd3..f0b9677e844ab 100644 --- a/dataproc/google/cloud/dataproc_v1/proto/operations_pb2.py +++ b/dataproc/google/cloud/dataproc_v1/proto/operations_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/dataproc_v1/proto/operations.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,231 +20,387 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1/proto/operations.proto', - package='google.cloud.dataproc.v1', - syntax='proto3', - serialized_pb=_b('\n/google/cloud/dataproc_v1/proto/operations.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x01\n\x16\x43lusterOperationStatus\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.dataproc.v1.ClusterOperationStatus.State\x12\x13\n\x0binner_state\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t\x12\x34\n\x10state_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\"\x90\x03\n\x18\x43lusterOperationMetadata\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x08 \x01(\t\x12@\n\x06status\x18\t \x01(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatus\x12H\n\x0estatus_history\x18\n \x03(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatus\x12\x16\n\x0eoperation_type\x18\x0b \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0c \x01(\t\x12N\n\x06labels\x18\r \x03(\x0b\x32>.google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry\x12\x10\n\x08warnings\x18\x0e \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42s\n\x1c\x63om.google.cloud.dataproc.v1B\x0fOperationsProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1/proto/operations.proto", + package="google.cloud.dataproc.v1", + syntax="proto3", + serialized_pb=_b( + '\n/google/cloud/dataproc_v1/proto/operations.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xf5\x01\n\x16\x43lusterOperationStatus\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.dataproc.v1.ClusterOperationStatus.State\x12\x13\n\x0binner_state\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t\x12\x34\n\x10state_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03"\x90\x03\n\x18\x43lusterOperationMetadata\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x08 \x01(\t\x12@\n\x06status\x18\t \x01(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatus\x12H\n\x0estatus_history\x18\n \x03(\x0b\x32\x30.google.cloud.dataproc.v1.ClusterOperationStatus\x12\x16\n\x0eoperation_type\x18\x0b \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0c \x01(\t\x12N\n\x06labels\x18\r \x03(\x0b\x32>.google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry\x12\x10\n\x08warnings\x18\x0e \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42s\n\x1c\x63om.google.cloud.dataproc.v1B\x0fOperationsProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataprocb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _CLUSTEROPERATIONSTATUS_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1.ClusterOperationStatus.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=330, - serialized_end=386, + name="State", + full_name="google.cloud.dataproc.v1.ClusterOperationStatus.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=330, + serialized_end=386, ) _sym_db.RegisterEnumDescriptor(_CLUSTEROPERATIONSTATUS_STATE) _CLUSTEROPERATIONSTATUS = _descriptor.Descriptor( - name='ClusterOperationStatus', - full_name='google.cloud.dataproc.v1.ClusterOperationStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1.ClusterOperationStatus.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inner_state', full_name='google.cloud.dataproc.v1.ClusterOperationStatus.inner_state', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='details', full_name='google.cloud.dataproc.v1.ClusterOperationStatus.details', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state_start_time', full_name='google.cloud.dataproc.v1.ClusterOperationStatus.state_start_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CLUSTEROPERATIONSTATUS_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=141, - serialized_end=386, + name="ClusterOperationStatus", + full_name="google.cloud.dataproc.v1.ClusterOperationStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1.ClusterOperationStatus.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inner_state", + full_name="google.cloud.dataproc.v1.ClusterOperationStatus.inner_state", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="details", + full_name="google.cloud.dataproc.v1.ClusterOperationStatus.details", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state_start_time", + full_name="google.cloud.dataproc.v1.ClusterOperationStatus.state_start_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_CLUSTEROPERATIONSTATUS_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=141, + serialized_end=386, ) _CLUSTEROPERATIONMETADATA_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=744, - serialized_end=789, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=744, + serialized_end=789, ) _CLUSTEROPERATIONMETADATA = _descriptor.Descriptor( - name='ClusterOperationMetadata', - full_name='google.cloud.dataproc.v1.ClusterOperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.cluster_name', index=0, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.cluster_uuid', index=1, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.status', index=2, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_history', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.status_history', index=3, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation_type', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.operation_type', index=4, - number=11, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.description', index=5, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.labels', index=6, - number=13, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='warnings', full_name='google.cloud.dataproc.v1.ClusterOperationMetadata.warnings', index=7, - number=14, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLUSTEROPERATIONMETADATA_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=389, - serialized_end=789, + name="ClusterOperationMetadata", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.cluster_name", + index=0, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.cluster_uuid", + index=1, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.status", + index=2, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_history", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.status_history", + index=3, + number=10, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="operation_type", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.operation_type", + index=4, + number=11, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.description", + index=5, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.labels", + index=6, + number=13, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="warnings", + full_name="google.cloud.dataproc.v1.ClusterOperationMetadata.warnings", + index=7, + number=14, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLUSTEROPERATIONMETADATA_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=389, + serialized_end=789, ) -_CLUSTEROPERATIONSTATUS.fields_by_name['state'].enum_type = _CLUSTEROPERATIONSTATUS_STATE -_CLUSTEROPERATIONSTATUS.fields_by_name['state_start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CLUSTEROPERATIONSTATUS.fields_by_name[ + "state" +].enum_type = _CLUSTEROPERATIONSTATUS_STATE +_CLUSTEROPERATIONSTATUS.fields_by_name[ + "state_start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _CLUSTEROPERATIONSTATUS_STATE.containing_type = _CLUSTEROPERATIONSTATUS _CLUSTEROPERATIONMETADATA_LABELSENTRY.containing_type = _CLUSTEROPERATIONMETADATA -_CLUSTEROPERATIONMETADATA.fields_by_name['status'].message_type = _CLUSTEROPERATIONSTATUS -_CLUSTEROPERATIONMETADATA.fields_by_name['status_history'].message_type = _CLUSTEROPERATIONSTATUS -_CLUSTEROPERATIONMETADATA.fields_by_name['labels'].message_type = _CLUSTEROPERATIONMETADATA_LABELSENTRY -DESCRIPTOR.message_types_by_name['ClusterOperationStatus'] = _CLUSTEROPERATIONSTATUS -DESCRIPTOR.message_types_by_name['ClusterOperationMetadata'] = _CLUSTEROPERATIONMETADATA +_CLUSTEROPERATIONMETADATA.fields_by_name[ + "status" +].message_type = _CLUSTEROPERATIONSTATUS +_CLUSTEROPERATIONMETADATA.fields_by_name[ + "status_history" +].message_type = _CLUSTEROPERATIONSTATUS +_CLUSTEROPERATIONMETADATA.fields_by_name[ + "labels" +].message_type = _CLUSTEROPERATIONMETADATA_LABELSENTRY +DESCRIPTOR.message_types_by_name["ClusterOperationStatus"] = _CLUSTEROPERATIONSTATUS +DESCRIPTOR.message_types_by_name["ClusterOperationMetadata"] = _CLUSTEROPERATIONMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ClusterOperationStatus = _reflection.GeneratedProtocolMessageType('ClusterOperationStatus', (_message.Message,), dict( - DESCRIPTOR = _CLUSTEROPERATIONSTATUS, - __module__ = 'google.cloud.dataproc_v1.proto.operations_pb2' - , - __doc__ = """The status of the operation. +ClusterOperationStatus = _reflection.GeneratedProtocolMessageType( + "ClusterOperationStatus", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTEROPERATIONSTATUS, + __module__="google.cloud.dataproc_v1.proto.operations_pb2", + __doc__="""The status of the operation. Attributes: @@ -257,22 +415,27 @@ state_start_time: Output only. The time this state was entered. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationStatus) + ), +) _sym_db.RegisterMessage(ClusterOperationStatus) -ClusterOperationMetadata = _reflection.GeneratedProtocolMessageType('ClusterOperationMetadata', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTEROPERATIONMETADATA_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1.proto.operations_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry) - )) - , - DESCRIPTOR = _CLUSTEROPERATIONMETADATA, - __module__ = 'google.cloud.dataproc_v1.proto.operations_pb2' - , - __doc__ = """Metadata describing the operation. +ClusterOperationMetadata = _reflection.GeneratedProtocolMessageType( + "ClusterOperationMetadata", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTEROPERATIONMETADATA_LABELSENTRY, + __module__="google.cloud.dataproc_v1.proto.operations_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry) + ), + ), + DESCRIPTOR=_CLUSTEROPERATIONMETADATA, + __module__="google.cloud.dataproc_v1.proto.operations_pb2", + __doc__="""Metadata describing the operation. Attributes: @@ -293,14 +456,22 @@ warnings: Output only. Errors encountered during operation execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationMetadata) + ), +) _sym_db.RegisterMessage(ClusterOperationMetadata) _sym_db.RegisterMessage(ClusterOperationMetadata.LabelsEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.cloud.dataproc.v1B\017OperationsProtoP\001Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.cloud.dataproc.v1B\017OperationsProtoP\001Z@google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc" + ), +) _CLUSTEROPERATIONMETADATA_LABELSENTRY.has_options = True -_CLUSTEROPERATIONMETADATA_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTEROPERATIONMETADATA_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1/proto/operations_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1/proto/operations_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/dataproc/google/cloud/dataproc_v1/proto/operations_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1/proto/operations_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/dataproc/google/cloud/dataproc_v1/proto/workflow_templates_pb2.py b/dataproc/google/cloud/dataproc_v1/proto/workflow_templates_pb2.py index 7cd8a8b3602a5..e38502ec01a36 100644 --- a/dataproc/google/cloud/dataproc_v1/proto/workflow_templates_pb2.py +++ b/dataproc/google/cloud/dataproc_v1/proto/workflow_templates_pb2.py @@ -2,1460 +2,2433 @@ # source: google/cloud/dataproc_v1/proto/workflow_templates.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.dataproc_v1.proto import clusters_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2 -from google.cloud.dataproc_v1.proto import jobs_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.dataproc_v1.proto import ( + clusters_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_clusters__pb2, +) +from google.cloud.dataproc_v1.proto import ( + jobs_pb2 as google_dot_cloud_dot_dataproc__v1_dot_proto_dot_jobs__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1/proto/workflow_templates.proto', - package='google.cloud.dataproc.v1', - syntax='proto3', - serialized_pb=_b('\n7google/cloud/dataproc_v1/proto/workflow_templates.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/dataproc_v1/proto/clusters.proto\x1a)google/cloud/dataproc_v1/proto/jobs.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd3\x03\n\x10WorkflowTemplate\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x06labels\x18\x06 \x03(\x0b\x32\x36.google.cloud.dataproc.v1.WorkflowTemplate.LabelsEntry\x12\x46\n\tplacement\x18\x07 \x01(\x0b\x32\x33.google.cloud.dataproc.v1.WorkflowTemplatePlacement\x12\x32\n\x04jobs\x18\x08 \x03(\x0b\x32$.google.cloud.dataproc.v1.OrderedJob\x12?\n\nparameters\x18\t \x03(\x0b\x32+.google.cloud.dataproc.v1.TemplateParameter\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb4\x01\n\x19WorkflowTemplatePlacement\x12\x43\n\x0fmanaged_cluster\x18\x01 \x01(\x0b\x32(.google.cloud.dataproc.v1.ManagedClusterH\x00\x12\x45\n\x10\x63luster_selector\x18\x02 \x01(\x0b\x32).google.cloud.dataproc.v1.ClusterSelectorH\x00\x42\x0b\n\tplacement\"\xd4\x01\n\x0eManagedCluster\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x37\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterConfig\x12\x44\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.ManagedCluster.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x0f\x43lusterSelector\x12\x0c\n\x04zone\x18\x01 \x01(\t\x12T\n\x0e\x63luster_labels\x18\x02 \x03(\x0b\x32<.google.cloud.dataproc.v1.ClusterSelector.ClusterLabelsEntry\x1a\x34\n\x12\x43lusterLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd3\x04\n\nOrderedJob\x12\x0f\n\x07step_id\x18\x01 \x01(\t\x12\x39\n\nhadoop_job\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.HadoopJobH\x00\x12\x37\n\tspark_job\x18\x03 \x01(\x0b\x32\".google.cloud.dataproc.v1.SparkJobH\x00\x12;\n\x0bpyspark_job\x18\x04 \x01(\x0b\x32$.google.cloud.dataproc.v1.PySparkJobH\x00\x12\x35\n\x08hive_job\x18\x05 \x01(\x0b\x32!.google.cloud.dataproc.v1.HiveJobH\x00\x12\x33\n\x07pig_job\x18\x06 \x01(\x0b\x32 .google.cloud.dataproc.v1.PigJobH\x00\x12>\n\rspark_sql_job\x18\x07 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkSqlJobH\x00\x12@\n\x06labels\x18\x08 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.OrderedJob.LabelsEntry\x12;\n\nscheduling\x18\t \x01(\x0b\x32\'.google.cloud.dataproc.v1.JobScheduling\x12\x1d\n\x15prerequisite_step_ids\x18\n \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08job_type\"\x89\x01\n\x11TemplateParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x41\n\nvalidation\x18\x04 \x01(\x0b\x32-.google.cloud.dataproc.v1.ParameterValidation\"\xa1\x01\n\x13ParameterValidation\x12:\n\x05regex\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.RegexValidationH\x00\x12;\n\x06values\x18\x02 \x01(\x0b\x32).google.cloud.dataproc.v1.ValueValidationH\x00\x42\x11\n\x0fvalidation_type\"\"\n\x0fRegexValidation\x12\x0f\n\x07regexes\x18\x01 \x03(\t\"!\n\x0fValueValidation\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xfd\x04\n\x10WorkflowMetadata\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x42\n\x0e\x63reate_cluster\x18\x03 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperation\x12\x36\n\x05graph\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.WorkflowGraph\x12\x42\n\x0e\x64\x65lete_cluster\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperation\x12?\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowMetadata.State\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12N\n\nparameters\x18\x08 \x03(\x0b\x32:.google.cloud.dataproc.v1.WorkflowMetadata.ParametersEntry\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x63luster_uuid\x18\x0b \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\"E\n\x10\x43lusterOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x0c\n\x04\x64one\x18\x03 \x01(\x08\"F\n\rWorkflowGraph\x12\x35\n\x05nodes\x18\x01 \x03(\x0b\x32&.google.cloud.dataproc.v1.WorkflowNode\"\x8a\x02\n\x0cWorkflowNode\x12\x0f\n\x07step_id\x18\x01 \x01(\t\x12\x1d\n\x15prerequisite_step_ids\x18\x02 \x03(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12?\n\x05state\x18\x05 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowNode.NodeState\x12\r\n\x05\x65rror\x18\x06 \x01(\t\"j\n\tNodeState\x12\x1a\n\x16NODE_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LOCKED\x10\x01\x12\x0c\n\x08RUNNABLE\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"m\n\x1d\x43reateWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate\";\n\x1aGetWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"\xec\x01\n\"InstantiateWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12`\n\nparameters\x18\x06 \x03(\x0b\x32L.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.ParametersEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8c\x01\n(InstantiateInlineWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate\x12\x12\n\nrequest_id\x18\x03 \x01(\t\"]\n\x1dUpdateWorkflowTemplateRequest\x12<\n\x08template\x18\x01 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate\"U\n\x1cListWorkflowTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"w\n\x1dListWorkflowTemplatesResponse\x12=\n\ttemplates\x18\x01 \x03(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\">\n\x1d\x44\x65leteWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x32\xe2\x0e\n\x17WorkflowTemplateService\x12\x89\x02\n\x16\x43reateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"\x89\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v1/{parent=projects/*/locations/*}/workflowTemplates:\x08templateZ?\"3/v1/{parent=projects/*/regions/*}/workflowTemplates:\x08template\x12\xed\x01\n\x13GetWorkflowTemplate\x12\x34.google.cloud.dataproc.v1.GetWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"t\x82\xd3\xe4\x93\x02n\x12\x35/v1/{name=projects/*/locations/*/workflowTemplates/*}Z5\x12\x33/v1/{name=projects/*/regions/*/workflowTemplates/*}\x12\x90\x02\n\x1bInstantiateWorkflowTemplate\x12<.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01\"A/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\x01*ZD\"?/v1/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\x01*\x12\xb6\x02\n!InstantiateInlineWorkflowTemplate\x12\x42.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xad\x01\x82\xd3\xe4\x93\x02\xa6\x01\"G/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\x08templateZQ\"E/v1/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\x08template\x12\x9b\x02\n\x16UpdateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"\x9b\x01\x82\xd3\xe4\x93\x02\x94\x01\x1a>/v1/{template.name=projects/*/locations/*/workflowTemplates/*}:\x08templateZH\x1a\n\rspark_sql_job\x18\x07 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkSqlJobH\x00\x12@\n\x06labels\x18\x08 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.OrderedJob.LabelsEntry\x12;\n\nscheduling\x18\t \x01(\x0b\x32\'.google.cloud.dataproc.v1.JobScheduling\x12\x1d\n\x15prerequisite_step_ids\x18\n \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08job_type"\x89\x01\n\x11TemplateParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x41\n\nvalidation\x18\x04 \x01(\x0b\x32-.google.cloud.dataproc.v1.ParameterValidation"\xa1\x01\n\x13ParameterValidation\x12:\n\x05regex\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.RegexValidationH\x00\x12;\n\x06values\x18\x02 \x01(\x0b\x32).google.cloud.dataproc.v1.ValueValidationH\x00\x42\x11\n\x0fvalidation_type""\n\x0fRegexValidation\x12\x0f\n\x07regexes\x18\x01 \x03(\t"!\n\x0fValueValidation\x12\x0e\n\x06values\x18\x01 \x03(\t"\xfd\x04\n\x10WorkflowMetadata\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x42\n\x0e\x63reate_cluster\x18\x03 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperation\x12\x36\n\x05graph\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.WorkflowGraph\x12\x42\n\x0e\x64\x65lete_cluster\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperation\x12?\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowMetadata.State\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12N\n\nparameters\x18\x08 \x03(\x0b\x32:.google.cloud.dataproc.v1.WorkflowMetadata.ParametersEntry\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x63luster_uuid\x18\x0b \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03"E\n\x10\x43lusterOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x0c\n\x04\x64one\x18\x03 \x01(\x08"F\n\rWorkflowGraph\x12\x35\n\x05nodes\x18\x01 \x03(\x0b\x32&.google.cloud.dataproc.v1.WorkflowNode"\x8a\x02\n\x0cWorkflowNode\x12\x0f\n\x07step_id\x18\x01 \x01(\t\x12\x1d\n\x15prerequisite_step_ids\x18\x02 \x03(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12?\n\x05state\x18\x05 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowNode.NodeState\x12\r\n\x05\x65rror\x18\x06 \x01(\t"j\n\tNodeState\x12\x1a\n\x16NODE_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LOCKED\x10\x01\x12\x0c\n\x08RUNNABLE\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05"m\n\x1d\x43reateWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate";\n\x1aGetWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05"\xec\x01\n"InstantiateWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12`\n\nparameters\x18\x06 \x03(\x0b\x32L.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.ParametersEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x8c\x01\n(InstantiateInlineWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate\x12\x12\n\nrequest_id\x18\x03 \x01(\t"]\n\x1dUpdateWorkflowTemplateRequest\x12<\n\x08template\x18\x01 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate"U\n\x1cListWorkflowTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"w\n\x1dListWorkflowTemplatesResponse\x12=\n\ttemplates\x18\x01 \x03(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t">\n\x1d\x44\x65leteWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x32\xe2\x0e\n\x17WorkflowTemplateService\x12\x89\x02\n\x16\x43reateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate"\x89\x01\x82\xd3\xe4\x93\x02\x82\x01"5/v1/{parent=projects/*/locations/*}/workflowTemplates:\x08templateZ?"3/v1/{parent=projects/*/regions/*}/workflowTemplates:\x08template\x12\xed\x01\n\x13GetWorkflowTemplate\x12\x34.google.cloud.dataproc.v1.GetWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate"t\x82\xd3\xe4\x93\x02n\x12\x35/v1/{name=projects/*/locations/*/workflowTemplates/*}Z5\x12\x33/v1/{name=projects/*/regions/*/workflowTemplates/*}\x12\x90\x02\n\x1bInstantiateWorkflowTemplate\x12<.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01"A/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\x01*ZD"?/v1/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\x01*\x12\xb6\x02\n!InstantiateInlineWorkflowTemplate\x12\x42.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation"\xad\x01\x82\xd3\xe4\x93\x02\xa6\x01"G/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\x08templateZQ"E/v1/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\x08template\x12\x9b\x02\n\x16UpdateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate"\x9b\x01\x82\xd3\xe4\x93\x02\x94\x01\x1a>/v1/{template.name=projects/*/locations/*/workflowTemplates/*}:\x08templateZH\x1a/v1/{template.name=projects/*/locations/*/workflowTemplates/*}:\010templateZH\032/v1/{template.name=projects/*/locations/*/workflowTemplates/*}:\010templateZH\032\n\x07metrics\x18\t \x01(\x0b\x32-.google.cloud.dataproc.v1beta2.ClusterMetrics\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x95\x05\n\rClusterConfig\x12\x15\n\rconfig_bucket\x18\x01 \x01(\t\x12K\n\x12gce_cluster_config\x18\x08 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.GceClusterConfig\x12I\n\rmaster_config\x18\t \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.InstanceGroupConfig\x12I\n\rworker_config\x18\n \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.InstanceGroupConfig\x12S\n\x17secondary_worker_config\x18\x0c \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.InstanceGroupConfig\x12\x46\n\x0fsoftware_config\x18\r \x01(\x0b\x32-.google.cloud.dataproc.v1beta2.SoftwareConfig\x12H\n\x10lifecycle_config\x18\x0e \x01(\x0b\x32..google.cloud.dataproc.v1beta2.LifecycleConfig\x12W\n\x16initialization_actions\x18\x0b \x03(\x0b\x32\x37.google.cloud.dataproc.v1beta2.NodeInitializationAction\x12J\n\x11\x65ncryption_config\x18\x0f \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.EncryptionConfig\"/\n\x10\x45ncryptionConfig\x12\x1b\n\x13gce_pd_kms_key_name\x18\x01 \x01(\t\"\xb4\x02\n\x10GceClusterConfig\x12\x10\n\x08zone_uri\x18\x01 \x01(\t\x12\x13\n\x0bnetwork_uri\x18\x02 \x01(\t\x12\x16\n\x0esubnetwork_uri\x18\x06 \x01(\t\x12\x18\n\x10internal_ip_only\x18\x07 \x01(\x08\x12\x17\n\x0fservice_account\x18\x08 \x01(\t\x12\x1e\n\x16service_account_scopes\x18\x03 \x03(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12O\n\x08metadata\x18\x05 \x03(\x0b\x32=.google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xfc\x02\n\x13InstanceGroupConfig\x12\x15\n\rnum_instances\x18\x01 \x01(\x05\x12\x16\n\x0einstance_names\x18\x02 \x03(\t\x12\x11\n\timage_uri\x18\x03 \x01(\t\x12\x18\n\x10machine_type_uri\x18\x04 \x01(\t\x12>\n\x0b\x64isk_config\x18\x05 \x01(\x0b\x32).google.cloud.dataproc.v1beta2.DiskConfig\x12\x16\n\x0eis_preemptible\x18\x06 \x01(\x08\x12O\n\x14managed_group_config\x18\x07 \x01(\x0b\x32\x31.google.cloud.dataproc.v1beta2.ManagedGroupConfig\x12\x46\n\x0c\x61\x63\x63\x65lerators\x18\x08 \x03(\x0b\x32\x30.google.cloud.dataproc.v1beta2.AcceleratorConfig\x12\x18\n\x10min_cpu_platform\x18\t \x01(\t\"Y\n\x12ManagedGroupConfig\x12\x1e\n\x16instance_template_name\x18\x01 \x01(\t\x12#\n\x1binstance_group_manager_name\x18\x02 \x01(\t\"L\n\x11\x41\x63\x63\x65leratorConfig\x12\x1c\n\x14\x61\x63\x63\x65lerator_type_uri\x18\x01 \x01(\t\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x02 \x01(\x05\"W\n\nDiskConfig\x12\x16\n\x0e\x62oot_disk_type\x18\x03 \x01(\t\x12\x19\n\x11\x62oot_disk_size_gb\x18\x01 \x01(\x05\x12\x16\n\x0enum_local_ssds\x18\x02 \x01(\x05\"\xba\x01\n\x0fLifecycleConfig\x12\x32\n\x0fidle_delete_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x10\x61uto_delete_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x34\n\x0f\x61uto_delete_ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x05\n\x03ttl\"i\n\x18NodeInitializationAction\x12\x17\n\x0f\x65xecutable_file\x18\x01 \x01(\t\x12\x34\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xf7\x02\n\rClusterStatus\x12\x41\n\x05state\x18\x01 \x01(\x0e\x32\x32.google.cloud.dataproc.v1beta2.ClusterStatus.State\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12G\n\x08substate\x18\x04 \x01(\x0e\x32\x35.google.cloud.dataproc.v1beta2.ClusterStatus.Substate\"V\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\"<\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tUNHEALTHY\x10\x01\x12\x10\n\x0cSTALE_STATUS\x10\x02\"\xad\x01\n\x0eSoftwareConfig\x12\x15\n\rimage_version\x18\x01 \x01(\t\x12Q\n\nproperties\x18\x02 \x03(\x0b\x32=.google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x02\n\x0e\x43lusterMetrics\x12T\n\x0chdfs_metrics\x18\x01 \x03(\x0b\x32>.google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry\x12T\n\x0cyarn_metrics\x18\x02 \x03(\x0b\x32>.google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry\x1a\x32\n\x10HdfsMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x32\n\x10YarnMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\x87\x01\n\x14\x43reateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x37\n\x07\x63luster\x18\x02 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.Cluster\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"\x90\x02\n\x14UpdateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.Cluster\x12@\n\x1dgraceful_decommission_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\nrequest_id\x18\x07 \x01(\t\"z\n\x14\x44\x65leteClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\"M\n\x11GetClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\"p\n\x13ListClustersRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x14ListClustersResponse\x12\x38\n\x08\x63lusters\x18\x01 \x03(\x0b\x32&.google.cloud.dataproc.v1beta2.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x16\x44iagnoseClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\",\n\x16\x44iagnoseClusterResults\x12\x12\n\noutput_uri\x18\x01 \x01(\t2\xf8\x08\n\x11\x43lusterController\x12\xae\x01\n\rCreateCluster\x12\x33.google.cloud.dataproc.v1beta2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"I\x82\xd3\xe4\x93\x02\x43\"8/v1beta2/projects/{project_id}/regions/{region}/clusters:\x07\x63luster\x12\xbd\x01\n\rUpdateCluster\x12\x33.google.cloud.dataproc.v1beta2.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"X\x82\xd3\xe4\x93\x02R2G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\x07\x63luster\x12\xb4\x01\n\rDeleteCluster\x12\x33.google.cloud.dataproc.v1beta2.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"O\x82\xd3\xe4\x93\x02I*G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xb7\x01\n\nGetCluster\x12\x30.google.cloud.dataproc.v1beta2.GetClusterRequest\x1a&.google.cloud.dataproc.v1beta2.Cluster\"O\x82\xd3\xe4\x93\x02I\x12G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xb9\x01\n\x0cListClusters\x12\x32.google.cloud.dataproc.v1beta2.ListClustersRequest\x1a\x33.google.cloud.dataproc.v1beta2.ListClustersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1beta2/projects/{project_id}/regions/{region}/clusters\x12\xc4\x01\n\x0f\x44iagnoseCluster\x12\x35.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest\x1a\x1d.google.longrunning.Operation\"[\x82\xd3\xe4\x93\x02U\"P/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\x01*B{\n!com.google.cloud.dataproc.v1beta2B\rClustersProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_shared__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1beta2/proto/clusters.proto", + package="google.cloud.dataproc.v1beta2", + syntax="proto3", + serialized_pb=_b( + '\n2google/cloud/dataproc_v1beta2/proto/clusters.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x30google/cloud/dataproc_v1beta2/proto/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xbe\x03\n\x07\x43luster\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12<\n\x06\x63onfig\x18\x03 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.ClusterConfig\x12\x42\n\x06labels\x18\x08 \x03(\x0b\x32\x32.google.cloud.dataproc.v1beta2.Cluster.LabelsEntry\x12<\n\x06status\x18\x04 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.ClusterStatus\x12\x44\n\x0estatus_history\x18\x07 \x03(\x0b\x32,.google.cloud.dataproc.v1beta2.ClusterStatus\x12\x14\n\x0c\x63luster_uuid\x18\x06 \x01(\t\x12>\n\x07metrics\x18\t \x01(\x0b\x32-.google.cloud.dataproc.v1beta2.ClusterMetrics\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x95\x05\n\rClusterConfig\x12\x15\n\rconfig_bucket\x18\x01 \x01(\t\x12K\n\x12gce_cluster_config\x18\x08 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.GceClusterConfig\x12I\n\rmaster_config\x18\t \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.InstanceGroupConfig\x12I\n\rworker_config\x18\n \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.InstanceGroupConfig\x12S\n\x17secondary_worker_config\x18\x0c \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.InstanceGroupConfig\x12\x46\n\x0fsoftware_config\x18\r \x01(\x0b\x32-.google.cloud.dataproc.v1beta2.SoftwareConfig\x12H\n\x10lifecycle_config\x18\x0e \x01(\x0b\x32..google.cloud.dataproc.v1beta2.LifecycleConfig\x12W\n\x16initialization_actions\x18\x0b \x03(\x0b\x32\x37.google.cloud.dataproc.v1beta2.NodeInitializationAction\x12J\n\x11\x65ncryption_config\x18\x0f \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.EncryptionConfig"/\n\x10\x45ncryptionConfig\x12\x1b\n\x13gce_pd_kms_key_name\x18\x01 \x01(\t"\xb4\x02\n\x10GceClusterConfig\x12\x10\n\x08zone_uri\x18\x01 \x01(\t\x12\x13\n\x0bnetwork_uri\x18\x02 \x01(\t\x12\x16\n\x0esubnetwork_uri\x18\x06 \x01(\t\x12\x18\n\x10internal_ip_only\x18\x07 \x01(\x08\x12\x17\n\x0fservice_account\x18\x08 \x01(\t\x12\x1e\n\x16service_account_scopes\x18\x03 \x03(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12O\n\x08metadata\x18\x05 \x03(\x0b\x32=.google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xfc\x02\n\x13InstanceGroupConfig\x12\x15\n\rnum_instances\x18\x01 \x01(\x05\x12\x16\n\x0einstance_names\x18\x02 \x03(\t\x12\x11\n\timage_uri\x18\x03 \x01(\t\x12\x18\n\x10machine_type_uri\x18\x04 \x01(\t\x12>\n\x0b\x64isk_config\x18\x05 \x01(\x0b\x32).google.cloud.dataproc.v1beta2.DiskConfig\x12\x16\n\x0eis_preemptible\x18\x06 \x01(\x08\x12O\n\x14managed_group_config\x18\x07 \x01(\x0b\x32\x31.google.cloud.dataproc.v1beta2.ManagedGroupConfig\x12\x46\n\x0c\x61\x63\x63\x65lerators\x18\x08 \x03(\x0b\x32\x30.google.cloud.dataproc.v1beta2.AcceleratorConfig\x12\x18\n\x10min_cpu_platform\x18\t \x01(\t"Y\n\x12ManagedGroupConfig\x12\x1e\n\x16instance_template_name\x18\x01 \x01(\t\x12#\n\x1binstance_group_manager_name\x18\x02 \x01(\t"L\n\x11\x41\x63\x63\x65leratorConfig\x12\x1c\n\x14\x61\x63\x63\x65lerator_type_uri\x18\x01 \x01(\t\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x02 \x01(\x05"W\n\nDiskConfig\x12\x16\n\x0e\x62oot_disk_type\x18\x03 \x01(\t\x12\x19\n\x11\x62oot_disk_size_gb\x18\x01 \x01(\x05\x12\x16\n\x0enum_local_ssds\x18\x02 \x01(\x05"\xba\x01\n\x0fLifecycleConfig\x12\x32\n\x0fidle_delete_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x10\x61uto_delete_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x34\n\x0f\x61uto_delete_ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x05\n\x03ttl"i\n\x18NodeInitializationAction\x12\x17\n\x0f\x65xecutable_file\x18\x01 \x01(\t\x12\x34\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xf7\x02\n\rClusterStatus\x12\x41\n\x05state\x18\x01 \x01(\x0e\x32\x32.google.cloud.dataproc.v1beta2.ClusterStatus.State\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12G\n\x08substate\x18\x04 \x01(\x0e\x32\x35.google.cloud.dataproc.v1beta2.ClusterStatus.Substate"V\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05"<\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tUNHEALTHY\x10\x01\x12\x10\n\x0cSTALE_STATUS\x10\x02"\xad\x01\n\x0eSoftwareConfig\x12\x15\n\rimage_version\x18\x01 \x01(\t\x12Q\n\nproperties\x18\x02 \x03(\x0b\x32=.google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xa4\x02\n\x0e\x43lusterMetrics\x12T\n\x0chdfs_metrics\x18\x01 \x03(\x0b\x32>.google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry\x12T\n\x0cyarn_metrics\x18\x02 \x03(\x0b\x32>.google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry\x1a\x32\n\x10HdfsMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x32\n\x10YarnMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01"\x87\x01\n\x14\x43reateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x37\n\x07\x63luster\x18\x02 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.Cluster\x12\x12\n\nrequest_id\x18\x04 \x01(\t"\x90\x02\n\x14UpdateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.Cluster\x12@\n\x1dgraceful_decommission_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\nrequest_id\x18\x07 \x01(\t"z\n\x14\x44\x65leteClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"M\n\x11GetClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t"p\n\x13ListClustersRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListClustersResponse\x12\x38\n\x08\x63lusters\x18\x01 \x03(\x0b\x32&.google.cloud.dataproc.v1beta2.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"R\n\x16\x44iagnoseClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t",\n\x16\x44iagnoseClusterResults\x12\x12\n\noutput_uri\x18\x01 \x01(\t2\xf8\x08\n\x11\x43lusterController\x12\xae\x01\n\rCreateCluster\x12\x33.google.cloud.dataproc.v1beta2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation"I\x82\xd3\xe4\x93\x02\x43"8/v1beta2/projects/{project_id}/regions/{region}/clusters:\x07\x63luster\x12\xbd\x01\n\rUpdateCluster\x12\x33.google.cloud.dataproc.v1beta2.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation"X\x82\xd3\xe4\x93\x02R2G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\x07\x63luster\x12\xb4\x01\n\rDeleteCluster\x12\x33.google.cloud.dataproc.v1beta2.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation"O\x82\xd3\xe4\x93\x02I*G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xb7\x01\n\nGetCluster\x12\x30.google.cloud.dataproc.v1beta2.GetClusterRequest\x1a&.google.cloud.dataproc.v1beta2.Cluster"O\x82\xd3\xe4\x93\x02I\x12G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}\x12\xb9\x01\n\x0cListClusters\x12\x32.google.cloud.dataproc.v1beta2.ListClustersRequest\x1a\x33.google.cloud.dataproc.v1beta2.ListClustersResponse"@\x82\xd3\xe4\x93\x02:\x12\x38/v1beta2/projects/{project_id}/regions/{region}/clusters\x12\xc4\x01\n\x0f\x44iagnoseCluster\x12\x35.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest\x1a\x1d.google.longrunning.Operation"[\x82\xd3\xe4\x93\x02U"P/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\x01*B{\n!com.google.cloud.dataproc.v1beta2B\rClustersProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_shared__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _CLUSTERSTATUS_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1beta2.ClusterStatus.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETING', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPDATING', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2939, - serialized_end=3025, + name="State", + full_name="google.cloud.dataproc.v1beta2.ClusterStatus.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETING", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPDATING", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2939, + serialized_end=3025, ) _sym_db.RegisterEnumDescriptor(_CLUSTERSTATUS_STATE) _CLUSTERSTATUS_SUBSTATE = _descriptor.EnumDescriptor( - name='Substate', - full_name='google.cloud.dataproc.v1beta2.ClusterStatus.Substate', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNHEALTHY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STALE_STATUS', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3027, - serialized_end=3087, + name="Substate", + full_name="google.cloud.dataproc.v1beta2.ClusterStatus.Substate", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNHEALTHY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STALE_STATUS", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3027, + serialized_end=3087, ) _sym_db.RegisterEnumDescriptor(_CLUSTERSTATUS_SUBSTATE) _CLUSTER_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1beta2.Cluster.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.Cluster.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.Cluster.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=703, - serialized_end=748, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1beta2.Cluster.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.Cluster.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.Cluster.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=703, + serialized_end=748, ) _CLUSTER = _descriptor.Descriptor( - name='Cluster', - full_name='google.cloud.dataproc.v1beta2.Cluster', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.Cluster.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.Cluster.cluster_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='config', full_name='google.cloud.dataproc.v1beta2.Cluster.config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1beta2.Cluster.labels', index=3, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.dataproc.v1beta2.Cluster.status', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_history', full_name='google.cloud.dataproc.v1beta2.Cluster.status_history', index=5, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1beta2.Cluster.cluster_uuid', index=6, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metrics', full_name='google.cloud.dataproc.v1beta2.Cluster.metrics', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLUSTER_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=302, - serialized_end=748, + name="Cluster", + full_name="google.cloud.dataproc.v1beta2.Cluster", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.Cluster.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.Cluster.cluster_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="config", + full_name="google.cloud.dataproc.v1beta2.Cluster.config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1beta2.Cluster.labels", + index=3, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.dataproc.v1beta2.Cluster.status", + index=4, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_history", + full_name="google.cloud.dataproc.v1beta2.Cluster.status_history", + index=5, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1beta2.Cluster.cluster_uuid", + index=6, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metrics", + full_name="google.cloud.dataproc.v1beta2.Cluster.metrics", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLUSTER_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=302, + serialized_end=748, ) _CLUSTERCONFIG = _descriptor.Descriptor( - name='ClusterConfig', - full_name='google.cloud.dataproc.v1beta2.ClusterConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='config_bucket', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.config_bucket', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gce_cluster_config', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.gce_cluster_config', index=1, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='master_config', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.master_config', index=2, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='worker_config', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.worker_config', index=3, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='secondary_worker_config', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.secondary_worker_config', index=4, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='software_config', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.software_config', index=5, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='lifecycle_config', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.lifecycle_config', index=6, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='initialization_actions', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.initialization_actions', index=7, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encryption_config', full_name='google.cloud.dataproc.v1beta2.ClusterConfig.encryption_config', index=8, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=751, - serialized_end=1412, + name="ClusterConfig", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="config_bucket", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.config_bucket", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gce_cluster_config", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.gce_cluster_config", + index=1, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="master_config", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.master_config", + index=2, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="worker_config", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.worker_config", + index=3, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="secondary_worker_config", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.secondary_worker_config", + index=4, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="software_config", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.software_config", + index=5, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="lifecycle_config", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.lifecycle_config", + index=6, + number=14, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="initialization_actions", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.initialization_actions", + index=7, + number=11, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encryption_config", + full_name="google.cloud.dataproc.v1beta2.ClusterConfig.encryption_config", + index=8, + number=15, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=751, + serialized_end=1412, ) _ENCRYPTIONCONFIG = _descriptor.Descriptor( - name='EncryptionConfig', - full_name='google.cloud.dataproc.v1beta2.EncryptionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gce_pd_kms_key_name', full_name='google.cloud.dataproc.v1beta2.EncryptionConfig.gce_pd_kms_key_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1414, - serialized_end=1461, + name="EncryptionConfig", + full_name="google.cloud.dataproc.v1beta2.EncryptionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gce_pd_kms_key_name", + full_name="google.cloud.dataproc.v1beta2.EncryptionConfig.gce_pd_kms_key_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1414, + serialized_end=1461, ) _GCECLUSTERCONFIG_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1725, - serialized_end=1772, + name="MetadataEntry", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1725, + serialized_end=1772, ) _GCECLUSTERCONFIG = _descriptor.Descriptor( - name='GceClusterConfig', - full_name='google.cloud.dataproc.v1beta2.GceClusterConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='zone_uri', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.zone_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='network_uri', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.network_uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subnetwork_uri', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.subnetwork_uri', index=2, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='internal_ip_only', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.internal_ip_only', index=3, - number=7, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_account', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.service_account', index=4, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_account_scopes', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.service_account_scopes', index=5, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tags', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.tags', index=6, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.dataproc.v1beta2.GceClusterConfig.metadata', index=7, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_GCECLUSTERCONFIG_METADATAENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1464, - serialized_end=1772, + name="GceClusterConfig", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="zone_uri", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.zone_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="network_uri", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.network_uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="subnetwork_uri", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.subnetwork_uri", + index=2, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="internal_ip_only", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.internal_ip_only", + index=3, + number=7, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_account", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.service_account", + index=4, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_account_scopes", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.service_account_scopes", + index=5, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tags", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.tags", + index=6, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.cloud.dataproc.v1beta2.GceClusterConfig.metadata", + index=7, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_GCECLUSTERCONFIG_METADATAENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1464, + serialized_end=1772, ) _INSTANCEGROUPCONFIG = _descriptor.Descriptor( - name='InstanceGroupConfig', - full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='num_instances', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.num_instances', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_names', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.instance_names', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_uri', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.image_uri', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='machine_type_uri', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.machine_type_uri', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='disk_config', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.disk_config', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_preemptible', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.is_preemptible', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='managed_group_config', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.managed_group_config', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='accelerators', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.accelerators', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_cpu_platform', full_name='google.cloud.dataproc.v1beta2.InstanceGroupConfig.min_cpu_platform', index=8, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1775, - serialized_end=2155, + name="InstanceGroupConfig", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="num_instances", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.num_instances", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_names", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.instance_names", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_uri", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.image_uri", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="machine_type_uri", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.machine_type_uri", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="disk_config", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.disk_config", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_preemptible", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.is_preemptible", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="managed_group_config", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.managed_group_config", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="accelerators", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.accelerators", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="min_cpu_platform", + full_name="google.cloud.dataproc.v1beta2.InstanceGroupConfig.min_cpu_platform", + index=8, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1775, + serialized_end=2155, ) _MANAGEDGROUPCONFIG = _descriptor.Descriptor( - name='ManagedGroupConfig', - full_name='google.cloud.dataproc.v1beta2.ManagedGroupConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance_template_name', full_name='google.cloud.dataproc.v1beta2.ManagedGroupConfig.instance_template_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_group_manager_name', full_name='google.cloud.dataproc.v1beta2.ManagedGroupConfig.instance_group_manager_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2157, - serialized_end=2246, + name="ManagedGroupConfig", + full_name="google.cloud.dataproc.v1beta2.ManagedGroupConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instance_template_name", + full_name="google.cloud.dataproc.v1beta2.ManagedGroupConfig.instance_template_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_group_manager_name", + full_name="google.cloud.dataproc.v1beta2.ManagedGroupConfig.instance_group_manager_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2157, + serialized_end=2246, ) _ACCELERATORCONFIG = _descriptor.Descriptor( - name='AcceleratorConfig', - full_name='google.cloud.dataproc.v1beta2.AcceleratorConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='accelerator_type_uri', full_name='google.cloud.dataproc.v1beta2.AcceleratorConfig.accelerator_type_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='accelerator_count', full_name='google.cloud.dataproc.v1beta2.AcceleratorConfig.accelerator_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2248, - serialized_end=2324, + name="AcceleratorConfig", + full_name="google.cloud.dataproc.v1beta2.AcceleratorConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="accelerator_type_uri", + full_name="google.cloud.dataproc.v1beta2.AcceleratorConfig.accelerator_type_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="accelerator_count", + full_name="google.cloud.dataproc.v1beta2.AcceleratorConfig.accelerator_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2248, + serialized_end=2324, ) _DISKCONFIG = _descriptor.Descriptor( - name='DiskConfig', - full_name='google.cloud.dataproc.v1beta2.DiskConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='boot_disk_type', full_name='google.cloud.dataproc.v1beta2.DiskConfig.boot_disk_type', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='boot_disk_size_gb', full_name='google.cloud.dataproc.v1beta2.DiskConfig.boot_disk_size_gb', index=1, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='num_local_ssds', full_name='google.cloud.dataproc.v1beta2.DiskConfig.num_local_ssds', index=2, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2326, - serialized_end=2413, + name="DiskConfig", + full_name="google.cloud.dataproc.v1beta2.DiskConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="boot_disk_type", + full_name="google.cloud.dataproc.v1beta2.DiskConfig.boot_disk_type", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="boot_disk_size_gb", + full_name="google.cloud.dataproc.v1beta2.DiskConfig.boot_disk_size_gb", + index=1, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="num_local_ssds", + full_name="google.cloud.dataproc.v1beta2.DiskConfig.num_local_ssds", + index=2, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2326, + serialized_end=2413, ) _LIFECYCLECONFIG = _descriptor.Descriptor( - name='LifecycleConfig', - full_name='google.cloud.dataproc.v1beta2.LifecycleConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='idle_delete_ttl', full_name='google.cloud.dataproc.v1beta2.LifecycleConfig.idle_delete_ttl', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='auto_delete_time', full_name='google.cloud.dataproc.v1beta2.LifecycleConfig.auto_delete_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='auto_delete_ttl', full_name='google.cloud.dataproc.v1beta2.LifecycleConfig.auto_delete_ttl', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='ttl', full_name='google.cloud.dataproc.v1beta2.LifecycleConfig.ttl', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2416, - serialized_end=2602, + name="LifecycleConfig", + full_name="google.cloud.dataproc.v1beta2.LifecycleConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="idle_delete_ttl", + full_name="google.cloud.dataproc.v1beta2.LifecycleConfig.idle_delete_ttl", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="auto_delete_time", + full_name="google.cloud.dataproc.v1beta2.LifecycleConfig.auto_delete_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="auto_delete_ttl", + full_name="google.cloud.dataproc.v1beta2.LifecycleConfig.auto_delete_ttl", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="ttl", + full_name="google.cloud.dataproc.v1beta2.LifecycleConfig.ttl", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2416, + serialized_end=2602, ) _NODEINITIALIZATIONACTION = _descriptor.Descriptor( - name='NodeInitializationAction', - full_name='google.cloud.dataproc.v1beta2.NodeInitializationAction', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='executable_file', full_name='google.cloud.dataproc.v1beta2.NodeInitializationAction.executable_file', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='execution_timeout', full_name='google.cloud.dataproc.v1beta2.NodeInitializationAction.execution_timeout', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2604, - serialized_end=2709, + name="NodeInitializationAction", + full_name="google.cloud.dataproc.v1beta2.NodeInitializationAction", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="executable_file", + full_name="google.cloud.dataproc.v1beta2.NodeInitializationAction.executable_file", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="execution_timeout", + full_name="google.cloud.dataproc.v1beta2.NodeInitializationAction.execution_timeout", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2604, + serialized_end=2709, ) _CLUSTERSTATUS = _descriptor.Descriptor( - name='ClusterStatus', - full_name='google.cloud.dataproc.v1beta2.ClusterStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1beta2.ClusterStatus.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detail', full_name='google.cloud.dataproc.v1beta2.ClusterStatus.detail', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state_start_time', full_name='google.cloud.dataproc.v1beta2.ClusterStatus.state_start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='substate', full_name='google.cloud.dataproc.v1beta2.ClusterStatus.substate', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CLUSTERSTATUS_STATE, - _CLUSTERSTATUS_SUBSTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2712, - serialized_end=3087, + name="ClusterStatus", + full_name="google.cloud.dataproc.v1beta2.ClusterStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1beta2.ClusterStatus.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detail", + full_name="google.cloud.dataproc.v1beta2.ClusterStatus.detail", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state_start_time", + full_name="google.cloud.dataproc.v1beta2.ClusterStatus.state_start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="substate", + full_name="google.cloud.dataproc.v1beta2.ClusterStatus.substate", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_CLUSTERSTATUS_STATE, _CLUSTERSTATUS_SUBSTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2712, + serialized_end=3087, ) _SOFTWARECONFIG_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3214, - serialized_end=3263, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3214, + serialized_end=3263, ) _SOFTWARECONFIG = _descriptor.Descriptor( - name='SoftwareConfig', - full_name='google.cloud.dataproc.v1beta2.SoftwareConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image_version', full_name='google.cloud.dataproc.v1beta2.SoftwareConfig.image_version', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1beta2.SoftwareConfig.properties', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SOFTWARECONFIG_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3090, - serialized_end=3263, + name="SoftwareConfig", + full_name="google.cloud.dataproc.v1beta2.SoftwareConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image_version", + full_name="google.cloud.dataproc.v1beta2.SoftwareConfig.image_version", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1beta2.SoftwareConfig.properties", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SOFTWARECONFIG_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3090, + serialized_end=3263, ) _CLUSTERMETRICS_HDFSMETRICSENTRY = _descriptor.Descriptor( - name='HdfsMetricsEntry', - full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry.value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3456, - serialized_end=3506, + name="HdfsMetricsEntry", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry.value", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3456, + serialized_end=3506, ) _CLUSTERMETRICS_YARNMETRICSENTRY = _descriptor.Descriptor( - name='YarnMetricsEntry', - full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry.value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3508, - serialized_end=3558, + name="YarnMetricsEntry", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry.value", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3508, + serialized_end=3558, ) _CLUSTERMETRICS = _descriptor.Descriptor( - name='ClusterMetrics', - full_name='google.cloud.dataproc.v1beta2.ClusterMetrics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hdfs_metrics', full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.hdfs_metrics', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='yarn_metrics', full_name='google.cloud.dataproc.v1beta2.ClusterMetrics.yarn_metrics', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLUSTERMETRICS_HDFSMETRICSENTRY, _CLUSTERMETRICS_YARNMETRICSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3266, - serialized_end=3558, + name="ClusterMetrics", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="hdfs_metrics", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.hdfs_metrics", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="yarn_metrics", + full_name="google.cloud.dataproc.v1beta2.ClusterMetrics.yarn_metrics", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLUSTERMETRICS_HDFSMETRICSENTRY, _CLUSTERMETRICS_YARNMETRICSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3266, + serialized_end=3558, ) _CREATECLUSTERREQUEST = _descriptor.Descriptor( - name='CreateClusterRequest', - full_name='google.cloud.dataproc.v1beta2.CreateClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.CreateClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.CreateClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster', full_name='google.cloud.dataproc.v1beta2.CreateClusterRequest.cluster', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1beta2.CreateClusterRequest.request_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3561, - serialized_end=3696, + name="CreateClusterRequest", + full_name="google.cloud.dataproc.v1beta2.CreateClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.CreateClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.CreateClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster", + full_name="google.cloud.dataproc.v1beta2.CreateClusterRequest.cluster", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1beta2.CreateClusterRequest.request_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3561, + serialized_end=3696, ) _UPDATECLUSTERREQUEST = _descriptor.Descriptor( - name='UpdateClusterRequest', - full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest.region', index=1, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster', full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest.cluster', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='graceful_decommission_timeout', full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest.graceful_decommission_timeout', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest.update_mask', index=5, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1beta2.UpdateClusterRequest.request_id', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3699, - serialized_end=3971, + name="UpdateClusterRequest", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest.region", + index=1, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest.cluster", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="graceful_decommission_timeout", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest.graceful_decommission_timeout", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest.update_mask", + index=5, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1beta2.UpdateClusterRequest.request_id", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3699, + serialized_end=3971, ) _DELETECLUSTERREQUEST = _descriptor.Descriptor( - name='DeleteClusterRequest', - full_name='google.cloud.dataproc.v1beta2.DeleteClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.DeleteClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.DeleteClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.DeleteClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1beta2.DeleteClusterRequest.cluster_uuid', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1beta2.DeleteClusterRequest.request_id', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3973, - serialized_end=4095, + name="DeleteClusterRequest", + full_name="google.cloud.dataproc.v1beta2.DeleteClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.DeleteClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.DeleteClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.DeleteClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1beta2.DeleteClusterRequest.cluster_uuid", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1beta2.DeleteClusterRequest.request_id", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3973, + serialized_end=4095, ) _GETCLUSTERREQUEST = _descriptor.Descriptor( - name='GetClusterRequest', - full_name='google.cloud.dataproc.v1beta2.GetClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.GetClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.GetClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.GetClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4097, - serialized_end=4174, + name="GetClusterRequest", + full_name="google.cloud.dataproc.v1beta2.GetClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.GetClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.GetClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.GetClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4097, + serialized_end=4174, ) _LISTCLUSTERSREQUEST = _descriptor.Descriptor( - name='ListClustersRequest', - full_name='google.cloud.dataproc.v1beta2.ListClustersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.ListClustersRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.ListClustersRequest.region', index=1, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.dataproc.v1beta2.ListClustersRequest.filter', index=2, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.dataproc.v1beta2.ListClustersRequest.page_size', index=3, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.dataproc.v1beta2.ListClustersRequest.page_token', index=4, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4176, - serialized_end=4288, + name="ListClustersRequest", + full_name="google.cloud.dataproc.v1beta2.ListClustersRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.ListClustersRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.ListClustersRequest.region", + index=1, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.dataproc.v1beta2.ListClustersRequest.filter", + index=2, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.dataproc.v1beta2.ListClustersRequest.page_size", + index=3, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.dataproc.v1beta2.ListClustersRequest.page_token", + index=4, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4176, + serialized_end=4288, ) _LISTCLUSTERSRESPONSE = _descriptor.Descriptor( - name='ListClustersResponse', - full_name='google.cloud.dataproc.v1beta2.ListClustersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='clusters', full_name='google.cloud.dataproc.v1beta2.ListClustersResponse.clusters', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.dataproc.v1beta2.ListClustersResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4290, - serialized_end=4395, + name="ListClustersResponse", + full_name="google.cloud.dataproc.v1beta2.ListClustersResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="clusters", + full_name="google.cloud.dataproc.v1beta2.ListClustersResponse.clusters", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.dataproc.v1beta2.ListClustersResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4290, + serialized_end=4395, ) _DIAGNOSECLUSTERREQUEST = _descriptor.Descriptor( - name='DiagnoseClusterRequest', - full_name='google.cloud.dataproc.v1beta2.DiagnoseClusterRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.cluster_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4397, - serialized_end=4479, + name="DiagnoseClusterRequest", + full_name="google.cloud.dataproc.v1beta2.DiagnoseClusterRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.cluster_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4397, + serialized_end=4479, ) _DIAGNOSECLUSTERRESULTS = _descriptor.Descriptor( - name='DiagnoseClusterResults', - full_name='google.cloud.dataproc.v1beta2.DiagnoseClusterResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='output_uri', full_name='google.cloud.dataproc.v1beta2.DiagnoseClusterResults.output_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4481, - serialized_end=4525, + name="DiagnoseClusterResults", + full_name="google.cloud.dataproc.v1beta2.DiagnoseClusterResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="output_uri", + full_name="google.cloud.dataproc.v1beta2.DiagnoseClusterResults.output_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4481, + serialized_end=4525, ) _CLUSTER_LABELSENTRY.containing_type = _CLUSTER -_CLUSTER.fields_by_name['config'].message_type = _CLUSTERCONFIG -_CLUSTER.fields_by_name['labels'].message_type = _CLUSTER_LABELSENTRY -_CLUSTER.fields_by_name['status'].message_type = _CLUSTERSTATUS -_CLUSTER.fields_by_name['status_history'].message_type = _CLUSTERSTATUS -_CLUSTER.fields_by_name['metrics'].message_type = _CLUSTERMETRICS -_CLUSTERCONFIG.fields_by_name['gce_cluster_config'].message_type = _GCECLUSTERCONFIG -_CLUSTERCONFIG.fields_by_name['master_config'].message_type = _INSTANCEGROUPCONFIG -_CLUSTERCONFIG.fields_by_name['worker_config'].message_type = _INSTANCEGROUPCONFIG -_CLUSTERCONFIG.fields_by_name['secondary_worker_config'].message_type = _INSTANCEGROUPCONFIG -_CLUSTERCONFIG.fields_by_name['software_config'].message_type = _SOFTWARECONFIG -_CLUSTERCONFIG.fields_by_name['lifecycle_config'].message_type = _LIFECYCLECONFIG -_CLUSTERCONFIG.fields_by_name['initialization_actions'].message_type = _NODEINITIALIZATIONACTION -_CLUSTERCONFIG.fields_by_name['encryption_config'].message_type = _ENCRYPTIONCONFIG +_CLUSTER.fields_by_name["config"].message_type = _CLUSTERCONFIG +_CLUSTER.fields_by_name["labels"].message_type = _CLUSTER_LABELSENTRY +_CLUSTER.fields_by_name["status"].message_type = _CLUSTERSTATUS +_CLUSTER.fields_by_name["status_history"].message_type = _CLUSTERSTATUS +_CLUSTER.fields_by_name["metrics"].message_type = _CLUSTERMETRICS +_CLUSTERCONFIG.fields_by_name["gce_cluster_config"].message_type = _GCECLUSTERCONFIG +_CLUSTERCONFIG.fields_by_name["master_config"].message_type = _INSTANCEGROUPCONFIG +_CLUSTERCONFIG.fields_by_name["worker_config"].message_type = _INSTANCEGROUPCONFIG +_CLUSTERCONFIG.fields_by_name[ + "secondary_worker_config" +].message_type = _INSTANCEGROUPCONFIG +_CLUSTERCONFIG.fields_by_name["software_config"].message_type = _SOFTWARECONFIG +_CLUSTERCONFIG.fields_by_name["lifecycle_config"].message_type = _LIFECYCLECONFIG +_CLUSTERCONFIG.fields_by_name[ + "initialization_actions" +].message_type = _NODEINITIALIZATIONACTION +_CLUSTERCONFIG.fields_by_name["encryption_config"].message_type = _ENCRYPTIONCONFIG _GCECLUSTERCONFIG_METADATAENTRY.containing_type = _GCECLUSTERCONFIG -_GCECLUSTERCONFIG.fields_by_name['metadata'].message_type = _GCECLUSTERCONFIG_METADATAENTRY -_INSTANCEGROUPCONFIG.fields_by_name['disk_config'].message_type = _DISKCONFIG -_INSTANCEGROUPCONFIG.fields_by_name['managed_group_config'].message_type = _MANAGEDGROUPCONFIG -_INSTANCEGROUPCONFIG.fields_by_name['accelerators'].message_type = _ACCELERATORCONFIG -_LIFECYCLECONFIG.fields_by_name['idle_delete_ttl'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LIFECYCLECONFIG.fields_by_name['auto_delete_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LIFECYCLECONFIG.fields_by_name['auto_delete_ttl'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LIFECYCLECONFIG.oneofs_by_name['ttl'].fields.append( - _LIFECYCLECONFIG.fields_by_name['auto_delete_time']) -_LIFECYCLECONFIG.fields_by_name['auto_delete_time'].containing_oneof = _LIFECYCLECONFIG.oneofs_by_name['ttl'] -_LIFECYCLECONFIG.oneofs_by_name['ttl'].fields.append( - _LIFECYCLECONFIG.fields_by_name['auto_delete_ttl']) -_LIFECYCLECONFIG.fields_by_name['auto_delete_ttl'].containing_oneof = _LIFECYCLECONFIG.oneofs_by_name['ttl'] -_NODEINITIALIZATIONACTION.fields_by_name['execution_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_CLUSTERSTATUS.fields_by_name['state'].enum_type = _CLUSTERSTATUS_STATE -_CLUSTERSTATUS.fields_by_name['state_start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CLUSTERSTATUS.fields_by_name['substate'].enum_type = _CLUSTERSTATUS_SUBSTATE +_GCECLUSTERCONFIG.fields_by_name[ + "metadata" +].message_type = _GCECLUSTERCONFIG_METADATAENTRY +_INSTANCEGROUPCONFIG.fields_by_name["disk_config"].message_type = _DISKCONFIG +_INSTANCEGROUPCONFIG.fields_by_name[ + "managed_group_config" +].message_type = _MANAGEDGROUPCONFIG +_INSTANCEGROUPCONFIG.fields_by_name["accelerators"].message_type = _ACCELERATORCONFIG +_LIFECYCLECONFIG.fields_by_name[ + "idle_delete_ttl" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LIFECYCLECONFIG.fields_by_name[ + "auto_delete_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LIFECYCLECONFIG.fields_by_name[ + "auto_delete_ttl" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LIFECYCLECONFIG.oneofs_by_name["ttl"].fields.append( + _LIFECYCLECONFIG.fields_by_name["auto_delete_time"] +) +_LIFECYCLECONFIG.fields_by_name[ + "auto_delete_time" +].containing_oneof = _LIFECYCLECONFIG.oneofs_by_name["ttl"] +_LIFECYCLECONFIG.oneofs_by_name["ttl"].fields.append( + _LIFECYCLECONFIG.fields_by_name["auto_delete_ttl"] +) +_LIFECYCLECONFIG.fields_by_name[ + "auto_delete_ttl" +].containing_oneof = _LIFECYCLECONFIG.oneofs_by_name["ttl"] +_NODEINITIALIZATIONACTION.fields_by_name[ + "execution_timeout" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_CLUSTERSTATUS.fields_by_name["state"].enum_type = _CLUSTERSTATUS_STATE +_CLUSTERSTATUS.fields_by_name[ + "state_start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CLUSTERSTATUS.fields_by_name["substate"].enum_type = _CLUSTERSTATUS_SUBSTATE _CLUSTERSTATUS_STATE.containing_type = _CLUSTERSTATUS _CLUSTERSTATUS_SUBSTATE.containing_type = _CLUSTERSTATUS _SOFTWARECONFIG_PROPERTIESENTRY.containing_type = _SOFTWARECONFIG -_SOFTWARECONFIG.fields_by_name['properties'].message_type = _SOFTWARECONFIG_PROPERTIESENTRY +_SOFTWARECONFIG.fields_by_name[ + "properties" +].message_type = _SOFTWARECONFIG_PROPERTIESENTRY _CLUSTERMETRICS_HDFSMETRICSENTRY.containing_type = _CLUSTERMETRICS _CLUSTERMETRICS_YARNMETRICSENTRY.containing_type = _CLUSTERMETRICS -_CLUSTERMETRICS.fields_by_name['hdfs_metrics'].message_type = _CLUSTERMETRICS_HDFSMETRICSENTRY -_CLUSTERMETRICS.fields_by_name['yarn_metrics'].message_type = _CLUSTERMETRICS_YARNMETRICSENTRY -_CREATECLUSTERREQUEST.fields_by_name['cluster'].message_type = _CLUSTER -_UPDATECLUSTERREQUEST.fields_by_name['cluster'].message_type = _CLUSTER -_UPDATECLUSTERREQUEST.fields_by_name['graceful_decommission_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_UPDATECLUSTERREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTCLUSTERSRESPONSE.fields_by_name['clusters'].message_type = _CLUSTER -DESCRIPTOR.message_types_by_name['Cluster'] = _CLUSTER -DESCRIPTOR.message_types_by_name['ClusterConfig'] = _CLUSTERCONFIG -DESCRIPTOR.message_types_by_name['EncryptionConfig'] = _ENCRYPTIONCONFIG -DESCRIPTOR.message_types_by_name['GceClusterConfig'] = _GCECLUSTERCONFIG -DESCRIPTOR.message_types_by_name['InstanceGroupConfig'] = _INSTANCEGROUPCONFIG -DESCRIPTOR.message_types_by_name['ManagedGroupConfig'] = _MANAGEDGROUPCONFIG -DESCRIPTOR.message_types_by_name['AcceleratorConfig'] = _ACCELERATORCONFIG -DESCRIPTOR.message_types_by_name['DiskConfig'] = _DISKCONFIG -DESCRIPTOR.message_types_by_name['LifecycleConfig'] = _LIFECYCLECONFIG -DESCRIPTOR.message_types_by_name['NodeInitializationAction'] = _NODEINITIALIZATIONACTION -DESCRIPTOR.message_types_by_name['ClusterStatus'] = _CLUSTERSTATUS -DESCRIPTOR.message_types_by_name['SoftwareConfig'] = _SOFTWARECONFIG -DESCRIPTOR.message_types_by_name['ClusterMetrics'] = _CLUSTERMETRICS -DESCRIPTOR.message_types_by_name['CreateClusterRequest'] = _CREATECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['UpdateClusterRequest'] = _UPDATECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['DeleteClusterRequest'] = _DELETECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['GetClusterRequest'] = _GETCLUSTERREQUEST -DESCRIPTOR.message_types_by_name['ListClustersRequest'] = _LISTCLUSTERSREQUEST -DESCRIPTOR.message_types_by_name['ListClustersResponse'] = _LISTCLUSTERSRESPONSE -DESCRIPTOR.message_types_by_name['DiagnoseClusterRequest'] = _DIAGNOSECLUSTERREQUEST -DESCRIPTOR.message_types_by_name['DiagnoseClusterResults'] = _DIAGNOSECLUSTERRESULTS +_CLUSTERMETRICS.fields_by_name[ + "hdfs_metrics" +].message_type = _CLUSTERMETRICS_HDFSMETRICSENTRY +_CLUSTERMETRICS.fields_by_name[ + "yarn_metrics" +].message_type = _CLUSTERMETRICS_YARNMETRICSENTRY +_CREATECLUSTERREQUEST.fields_by_name["cluster"].message_type = _CLUSTER +_UPDATECLUSTERREQUEST.fields_by_name["cluster"].message_type = _CLUSTER +_UPDATECLUSTERREQUEST.fields_by_name[ + "graceful_decommission_timeout" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_UPDATECLUSTERREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTCLUSTERSRESPONSE.fields_by_name["clusters"].message_type = _CLUSTER +DESCRIPTOR.message_types_by_name["Cluster"] = _CLUSTER +DESCRIPTOR.message_types_by_name["ClusterConfig"] = _CLUSTERCONFIG +DESCRIPTOR.message_types_by_name["EncryptionConfig"] = _ENCRYPTIONCONFIG +DESCRIPTOR.message_types_by_name["GceClusterConfig"] = _GCECLUSTERCONFIG +DESCRIPTOR.message_types_by_name["InstanceGroupConfig"] = _INSTANCEGROUPCONFIG +DESCRIPTOR.message_types_by_name["ManagedGroupConfig"] = _MANAGEDGROUPCONFIG +DESCRIPTOR.message_types_by_name["AcceleratorConfig"] = _ACCELERATORCONFIG +DESCRIPTOR.message_types_by_name["DiskConfig"] = _DISKCONFIG +DESCRIPTOR.message_types_by_name["LifecycleConfig"] = _LIFECYCLECONFIG +DESCRIPTOR.message_types_by_name["NodeInitializationAction"] = _NODEINITIALIZATIONACTION +DESCRIPTOR.message_types_by_name["ClusterStatus"] = _CLUSTERSTATUS +DESCRIPTOR.message_types_by_name["SoftwareConfig"] = _SOFTWARECONFIG +DESCRIPTOR.message_types_by_name["ClusterMetrics"] = _CLUSTERMETRICS +DESCRIPTOR.message_types_by_name["CreateClusterRequest"] = _CREATECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["UpdateClusterRequest"] = _UPDATECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["DeleteClusterRequest"] = _DELETECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["GetClusterRequest"] = _GETCLUSTERREQUEST +DESCRIPTOR.message_types_by_name["ListClustersRequest"] = _LISTCLUSTERSREQUEST +DESCRIPTOR.message_types_by_name["ListClustersResponse"] = _LISTCLUSTERSRESPONSE +DESCRIPTOR.message_types_by_name["DiagnoseClusterRequest"] = _DIAGNOSECLUSTERREQUEST +DESCRIPTOR.message_types_by_name["DiagnoseClusterResults"] = _DIAGNOSECLUSTERRESULTS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Cluster = _reflection.GeneratedProtocolMessageType('Cluster', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTER_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Cluster.LabelsEntry) - )) - , - DESCRIPTOR = _CLUSTER, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Describes the identifying information, config, and status of a cluster +Cluster = _reflection.GeneratedProtocolMessageType( + "Cluster", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTER_LABELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Cluster.LabelsEntry) + ), + ), + DESCRIPTOR=_CLUSTER, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Describes the identifying information, config, and status of a cluster of Compute Engine instances. @@ -1500,16 +2513,19 @@ YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Cluster) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Cluster) + ), +) _sym_db.RegisterMessage(Cluster) _sym_db.RegisterMessage(Cluster.LabelsEntry) -ClusterConfig = _reflection.GeneratedProtocolMessageType('ClusterConfig', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """The cluster config. +ClusterConfig = _reflection.GeneratedProtocolMessageType( + "ClusterConfig", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""The cluster config. Attributes: @@ -1550,15 +2566,18 @@ encryption_config: Optional. Encryption settings for the cluster. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterConfig) + ), +) _sym_db.RegisterMessage(ClusterConfig) -EncryptionConfig = _reflection.GeneratedProtocolMessageType('EncryptionConfig', (_message.Message,), dict( - DESCRIPTOR = _ENCRYPTIONCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Encryption settings for the cluster. +EncryptionConfig = _reflection.GeneratedProtocolMessageType( + "EncryptionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_ENCRYPTIONCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Encryption settings for the cluster. Attributes: @@ -1566,22 +2585,27 @@ Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.EncryptionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.EncryptionConfig) + ), +) _sym_db.RegisterMessage(EncryptionConfig) -GceClusterConfig = _reflection.GeneratedProtocolMessageType('GceClusterConfig', (_message.Message,), dict( - - MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( - DESCRIPTOR = _GCECLUSTERCONFIG_METADATAENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry) - )) - , - DESCRIPTOR = _GCECLUSTERCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Common config settings for resources of Compute Engine cluster +GceClusterConfig = _reflection.GeneratedProtocolMessageType( + "GceClusterConfig", + (_message.Message,), + dict( + MetadataEntry=_reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + dict( + DESCRIPTOR=_GCECLUSTERCONFIG_METADATAENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GceClusterConfig.MetadataEntry) + ), + ), + DESCRIPTOR=_GCECLUSTERCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. @@ -1653,16 +2677,19 @@ `__). """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GceClusterConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GceClusterConfig) + ), +) _sym_db.RegisterMessage(GceClusterConfig) _sym_db.RegisterMessage(GceClusterConfig.MetadataEntry) -InstanceGroupConfig = _reflection.GeneratedProtocolMessageType('InstanceGroupConfig', (_message.Message,), dict( - DESCRIPTOR = _INSTANCEGROUPCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Optional. The config settings for Compute Engine resources in an +InstanceGroupConfig = _reflection.GeneratedProtocolMessageType( + "InstanceGroupConfig", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCEGROUPCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Optional. The config settings for Compute Engine resources in an instance group, such as a master or worker group. @@ -1708,15 +2735,18 @@ Group. See [Cloud Dataproc→Minimum CPU Platform] (/dataproc/docs/concepts/compute/dataproc-min-cpu). """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstanceGroupConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstanceGroupConfig) + ), +) _sym_db.RegisterMessage(InstanceGroupConfig) -ManagedGroupConfig = _reflection.GeneratedProtocolMessageType('ManagedGroupConfig', (_message.Message,), dict( - DESCRIPTOR = _MANAGEDGROUPCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Specifies the resources used to actively manage an instance group. +ManagedGroupConfig = _reflection.GeneratedProtocolMessageType( + "ManagedGroupConfig", + (_message.Message,), + dict( + DESCRIPTOR=_MANAGEDGROUPCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Specifies the resources used to actively manage an instance group. Attributes: @@ -1727,15 +2757,18 @@ Output only. The name of the Instance Group Manager for this group. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedGroupConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedGroupConfig) + ), +) _sym_db.RegisterMessage(ManagedGroupConfig) -AcceleratorConfig = _reflection.GeneratedProtocolMessageType('AcceleratorConfig', (_message.Message,), dict( - DESCRIPTOR = _ACCELERATORCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Specifies the type and number of accelerator cards attached to the +AcceleratorConfig = _reflection.GeneratedProtocolMessageType( + "AcceleratorConfig", + (_message.Message,), + dict( + DESCRIPTOR=_ACCELERATORCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Specifies the type and number of accelerator cards attached to the instances of an instance group (see `GPUs on Compute Engine `__). @@ -1760,15 +2793,18 @@ The number of the accelerator cards of this type exposed to this instance. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AcceleratorConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AcceleratorConfig) + ), +) _sym_db.RegisterMessage(AcceleratorConfig) -DiskConfig = _reflection.GeneratedProtocolMessageType('DiskConfig', (_message.Message,), dict( - DESCRIPTOR = _DISKCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Specifies the config of disk options for a group of VM instances. +DiskConfig = _reflection.GeneratedProtocolMessageType( + "DiskConfig", + (_message.Message,), + dict( + DESCRIPTOR=_DISKCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Specifies the config of disk options for a group of VM instances. Attributes: @@ -1787,15 +2823,18 @@ the boot disk contains only basic config and installed binaries. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiskConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiskConfig) + ), +) _sym_db.RegisterMessage(DiskConfig) -LifecycleConfig = _reflection.GeneratedProtocolMessageType('LifecycleConfig', (_message.Message,), dict( - DESCRIPTOR = _LIFECYCLECONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Specifies the cluster auto-delete schedule configuration. +LifecycleConfig = _reflection.GeneratedProtocolMessageType( + "LifecycleConfig", + (_message.Message,), + dict( + DESCRIPTOR=_LIFECYCLECONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Specifies the cluster auto-delete schedule configuration. Attributes: @@ -1816,15 +2855,18 @@ **[10m, 14d]**. Example: **"1d"**, to delete the cluster 1 day after its creation.. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LifecycleConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LifecycleConfig) + ), +) _sym_db.RegisterMessage(LifecycleConfig) -NodeInitializationAction = _reflection.GeneratedProtocolMessageType('NodeInitializationAction', (_message.Message,), dict( - DESCRIPTOR = _NODEINITIALIZATIONACTION, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Specifies an executable to run on a fully configured node and a timeout +NodeInitializationAction = _reflection.GeneratedProtocolMessageType( + "NodeInitializationAction", + (_message.Message,), + dict( + DESCRIPTOR=_NODEINITIALIZATIONACTION, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Specifies an executable to run on a fully configured node and a timeout period for executable completion. @@ -1838,15 +2880,18 @@ error and the exceeded timeout period) if the executable is not completed at end of the timeout period. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.NodeInitializationAction) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.NodeInitializationAction) + ), +) _sym_db.RegisterMessage(NodeInitializationAction) -ClusterStatus = _reflection.GeneratedProtocolMessageType('ClusterStatus', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERSTATUS, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """The status of a cluster and its instances. +ClusterStatus = _reflection.GeneratedProtocolMessageType( + "ClusterStatus", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERSTATUS, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""The status of a cluster and its instances. Attributes: @@ -1860,22 +2905,27 @@ Output only. Additional state information that includes status reported by the agent. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterStatus) + ), +) _sym_db.RegisterMessage(ClusterStatus) -SoftwareConfig = _reflection.GeneratedProtocolMessageType('SoftwareConfig', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _SOFTWARECONFIG_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry) - )) - , - DESCRIPTOR = _SOFTWARECONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Specifies the selection and config of software inside the cluster. +SoftwareConfig = _reflection.GeneratedProtocolMessageType( + "SoftwareConfig", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SOFTWARECONFIG_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SoftwareConfig.PropertiesEntry) + ), + ), + DESCRIPTOR=_SOFTWARECONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Specifies the selection and config of software inside the cluster. Attributes: @@ -1901,30 +2951,37 @@ ``yarn-site.xml`` For more information, see `Cluster properties `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SoftwareConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SoftwareConfig) + ), +) _sym_db.RegisterMessage(SoftwareConfig) _sym_db.RegisterMessage(SoftwareConfig.PropertiesEntry) -ClusterMetrics = _reflection.GeneratedProtocolMessageType('ClusterMetrics', (_message.Message,), dict( - - HdfsMetricsEntry = _reflection.GeneratedProtocolMessageType('HdfsMetricsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERMETRICS_HDFSMETRICSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry) - )) - , - - YarnMetricsEntry = _reflection.GeneratedProtocolMessageType('YarnMetricsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERMETRICS_YARNMETRICSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry) - )) - , - DESCRIPTOR = _CLUSTERMETRICS, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Contains cluster daemon metrics, such as HDFS and YARN stats. +ClusterMetrics = _reflection.GeneratedProtocolMessageType( + "ClusterMetrics", + (_message.Message,), + dict( + HdfsMetricsEntry=_reflection.GeneratedProtocolMessageType( + "HdfsMetricsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERMETRICS_HDFSMETRICSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterMetrics.HdfsMetricsEntry) + ), + ), + YarnMetricsEntry=_reflection.GeneratedProtocolMessageType( + "YarnMetricsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERMETRICS_YARNMETRICSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterMetrics.YarnMetricsEntry) + ), + ), + DESCRIPTOR=_CLUSTERMETRICS, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Contains cluster daemon metrics, such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release. @@ -1936,17 +2993,20 @@ yarn_metrics: The YARN metrics. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterMetrics) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterMetrics) + ), +) _sym_db.RegisterMessage(ClusterMetrics) _sym_db.RegisterMessage(ClusterMetrics.HdfsMetricsEntry) _sym_db.RegisterMessage(ClusterMetrics.YarnMetricsEntry) -CreateClusterRequest = _reflection.GeneratedProtocolMessageType('CreateClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """A request to create a cluster. +CreateClusterRequest = _reflection.GeneratedProtocolMessageType( + "CreateClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""A request to create a cluster. Attributes: @@ -1971,15 +3031,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateClusterRequest) + ), +) _sym_db.RegisterMessage(CreateClusterRequest) -UpdateClusterRequest = _reflection.GeneratedProtocolMessageType('UpdateClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """A request to update a cluster. +UpdateClusterRequest = _reflection.GeneratedProtocolMessageType( + "UpdateClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""A request to update a cluster. Attributes: @@ -2056,15 +3119,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateClusterRequest) + ), +) _sym_db.RegisterMessage(UpdateClusterRequest) -DeleteClusterRequest = _reflection.GeneratedProtocolMessageType('DeleteClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """A request to delete a cluster. +DeleteClusterRequest = _reflection.GeneratedProtocolMessageType( + "DeleteClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""A request to delete a cluster. Attributes: @@ -2093,15 +3159,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteClusterRequest) + ), +) _sym_db.RegisterMessage(DeleteClusterRequest) -GetClusterRequest = _reflection.GeneratedProtocolMessageType('GetClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """Request to get the resource representation for a cluster in a project. +GetClusterRequest = _reflection.GeneratedProtocolMessageType( + "GetClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETCLUSTERREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""Request to get the resource representation for a cluster in a project. Attributes: @@ -2114,15 +3183,18 @@ cluster_name: Required. The cluster name. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetClusterRequest) + ), +) _sym_db.RegisterMessage(GetClusterRequest) -ListClustersRequest = _reflection.GeneratedProtocolMessageType('ListClustersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """A request to list the clusters in a project. +ListClustersRequest = _reflection.GeneratedProtocolMessageType( + "ListClustersRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""A request to list the clusters in a project. Attributes: @@ -2154,15 +3226,18 @@ page_token: Optional. The standard List page token. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListClustersRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListClustersRequest) + ), +) _sym_db.RegisterMessage(ListClustersRequest) -ListClustersResponse = _reflection.GeneratedProtocolMessageType('ListClustersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCLUSTERSRESPONSE, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """The list of all clusters in a project. +ListClustersResponse = _reflection.GeneratedProtocolMessageType( + "ListClustersResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCLUSTERSRESPONSE, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""The list of all clusters in a project. Attributes: @@ -2174,15 +3249,18 @@ provide this value as the ``page_token`` in a subsequent ListClustersRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListClustersResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListClustersResponse) + ), +) _sym_db.RegisterMessage(ListClustersResponse) -DiagnoseClusterRequest = _reflection.GeneratedProtocolMessageType('DiagnoseClusterRequest', (_message.Message,), dict( - DESCRIPTOR = _DIAGNOSECLUSTERREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """A request to collect cluster diagnostic information. +DiagnoseClusterRequest = _reflection.GeneratedProtocolMessageType( + "DiagnoseClusterRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DIAGNOSECLUSTERREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""A request to collect cluster diagnostic information. Attributes: @@ -2195,15 +3273,18 @@ cluster_name: Required. The cluster name. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) + ), +) _sym_db.RegisterMessage(DiagnoseClusterRequest) -DiagnoseClusterResults = _reflection.GeneratedProtocolMessageType('DiagnoseClusterResults', (_message.Message,), dict( - DESCRIPTOR = _DIAGNOSECLUSTERRESULTS, - __module__ = 'google.cloud.dataproc_v1beta2.proto.clusters_pb2' - , - __doc__ = """The location of diagnostic output. +DiagnoseClusterResults = _reflection.GeneratedProtocolMessageType( + "DiagnoseClusterResults", + (_message.Message,), + dict( + DESCRIPTOR=_DIAGNOSECLUSTERRESULTS, + __module__="google.cloud.dataproc_v1beta2.proto.clusters_pb2", + __doc__="""The location of diagnostic output. Attributes: @@ -2212,90 +3293,137 @@ The output report is a plain text file with a summary of collected diagnostics. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiagnoseClusterResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiagnoseClusterResults) + ), +) _sym_db.RegisterMessage(DiagnoseClusterResults) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.dataproc.v1beta2B\rClustersProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.dataproc.v1beta2B\rClustersProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc" + ), +) _CLUSTER_LABELSENTRY.has_options = True -_CLUSTER_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTER_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _GCECLUSTERCONFIG_METADATAENTRY.has_options = True -_GCECLUSTERCONFIG_METADATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_GCECLUSTERCONFIG_METADATAENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SOFTWARECONFIG_PROPERTIESENTRY.has_options = True -_SOFTWARECONFIG_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SOFTWARECONFIG_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLUSTERMETRICS_HDFSMETRICSENTRY.has_options = True -_CLUSTERMETRICS_HDFSMETRICSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTERMETRICS_HDFSMETRICSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLUSTERMETRICS_YARNMETRICSENTRY.has_options = True -_CLUSTERMETRICS_YARNMETRICSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTERMETRICS_YARNMETRICSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLUSTERCONTROLLER = _descriptor.ServiceDescriptor( - name='ClusterController', - full_name='google.cloud.dataproc.v1beta2.ClusterController', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4528, - serialized_end=5672, - methods=[ - _descriptor.MethodDescriptor( - name='CreateCluster', - full_name='google.cloud.dataproc.v1beta2.ClusterController.CreateCluster', + name="ClusterController", + full_name="google.cloud.dataproc.v1beta2.ClusterController", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002C\"8/v1beta2/projects/{project_id}/regions/{region}/clusters:\007cluster')), - ), - _descriptor.MethodDescriptor( - name='UpdateCluster', - full_name='google.cloud.dataproc.v1beta2.ClusterController.UpdateCluster', - index=1, - containing_service=None, - input_type=_UPDATECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002R2G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster')), - ), - _descriptor.MethodDescriptor( - name='DeleteCluster', - full_name='google.cloud.dataproc.v1beta2.ClusterController.DeleteCluster', - index=2, - containing_service=None, - input_type=_DELETECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002I*G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}')), - ), - _descriptor.MethodDescriptor( - name='GetCluster', - full_name='google.cloud.dataproc.v1beta2.ClusterController.GetCluster', - index=3, - containing_service=None, - input_type=_GETCLUSTERREQUEST, - output_type=_CLUSTER, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002I\022G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}')), - ), - _descriptor.MethodDescriptor( - name='ListClusters', - full_name='google.cloud.dataproc.v1beta2.ClusterController.ListClusters', - index=4, - containing_service=None, - input_type=_LISTCLUSTERSREQUEST, - output_type=_LISTCLUSTERSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\0228/v1beta2/projects/{project_id}/regions/{region}/clusters')), - ), - _descriptor.MethodDescriptor( - name='DiagnoseCluster', - full_name='google.cloud.dataproc.v1beta2.ClusterController.DiagnoseCluster', - index=5, - containing_service=None, - input_type=_DIAGNOSECLUSTERREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002U\"P/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\001*')), - ), -]) + options=None, + serialized_start=4528, + serialized_end=5672, + methods=[ + _descriptor.MethodDescriptor( + name="CreateCluster", + full_name="google.cloud.dataproc.v1beta2.ClusterController.CreateCluster", + index=0, + containing_service=None, + input_type=_CREATECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002C"8/v1beta2/projects/{project_id}/regions/{region}/clusters:\007cluster' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateCluster", + full_name="google.cloud.dataproc.v1beta2.ClusterController.UpdateCluster", + index=1, + containing_service=None, + input_type=_UPDATECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002R2G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteCluster", + full_name="google.cloud.dataproc.v1beta2.ClusterController.DeleteCluster", + index=2, + containing_service=None, + input_type=_DELETECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002I*G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetCluster", + full_name="google.cloud.dataproc.v1beta2.ClusterController.GetCluster", + index=3, + containing_service=None, + input_type=_GETCLUSTERREQUEST, + output_type=_CLUSTER, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002I\022G/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListClusters", + full_name="google.cloud.dataproc.v1beta2.ClusterController.ListClusters", + index=4, + containing_service=None, + input_type=_LISTCLUSTERSREQUEST, + output_type=_LISTCLUSTERSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:\0228/v1beta2/projects/{project_id}/regions/{region}/clusters" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DiagnoseCluster", + full_name="google.cloud.dataproc.v1beta2.ClusterController.DiagnoseCluster", + index=5, + containing_service=None, + input_type=_DIAGNOSECLUSTERREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002U"P/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLUSTERCONTROLLER) -DESCRIPTOR.services_by_name['ClusterController'] = _CLUSTERCONTROLLER +DESCRIPTOR.services_by_name["ClusterController"] = _CLUSTERCONTROLLER # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/clusters_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1beta2/proto/clusters_pb2_grpc.py index 9cc6b809bee72..aa8da2e866521 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/clusters_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/clusters_pb2_grpc.py @@ -1,136 +1,141 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.dataproc_v1beta2.proto import clusters_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.dataproc_v1beta2.proto import ( + clusters_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class ClusterControllerStub(object): - """The ClusterControllerService provides methods to manage clusters + """The ClusterControllerService provides methods to manage clusters of Compute Engine instances. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateCluster = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.ClusterController/CreateCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.CreateClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateCluster = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.ClusterController/CreateCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.CreateClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.UpdateCluster = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.ClusterController/UpdateCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.UpdateClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateCluster = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.ClusterController/UpdateCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.UpdateClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteCluster = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.ClusterController/DeleteCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DeleteClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.DeleteCluster = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.ClusterController/DeleteCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DeleteClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.GetCluster = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.ClusterController/GetCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.GetClusterRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.Cluster.FromString, + self.GetCluster = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.ClusterController/GetCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.GetClusterRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.Cluster.FromString, ) - self.ListClusters = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.ClusterController/ListClusters', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersResponse.FromString, + self.ListClusters = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.ClusterController/ListClusters", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersResponse.FromString, ) - self.DiagnoseCluster = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.ClusterController/DiagnoseCluster', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.DiagnoseCluster = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.ClusterController/DiagnoseCluster", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class ClusterControllerServicer(object): - """The ClusterControllerService provides methods to manage clusters + """The ClusterControllerService provides methods to manage clusters of Compute Engine instances. """ - def CreateCluster(self, request, context): - """Creates a cluster in a project. + def CreateCluster(self, request, context): + """Creates a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateCluster(self, request, context): - """Updates a cluster in a project. + def UpdateCluster(self, request, context): + """Updates a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteCluster(self, request, context): - """Deletes a cluster in a project. + def DeleteCluster(self, request, context): + """Deletes a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetCluster(self, request, context): - """Gets the resource representation for a cluster in a project. + def GetCluster(self, request, context): + """Gets the resource representation for a cluster in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListClusters(self, request, context): - """Lists all regions/{region}/clusters in a project. + def ListClusters(self, request, context): + """Lists all regions/{region}/clusters in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DiagnoseCluster(self, request, context): - """Gets cluster diagnostic information. + def DiagnoseCluster(self, request, context): + """Gets cluster diagnostic information. After the operation completes, the Operation.response field contains `DiagnoseClusterOutputLocation`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ClusterControllerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateCluster': grpc.unary_unary_rpc_method_handler( - servicer.CreateCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.CreateClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'UpdateCluster': grpc.unary_unary_rpc_method_handler( - servicer.UpdateCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.UpdateClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteCluster': grpc.unary_unary_rpc_method_handler( - servicer.DeleteCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DeleteClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'GetCluster': grpc.unary_unary_rpc_method_handler( - servicer.GetCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.GetClusterRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.Cluster.SerializeToString, - ), - 'ListClusters': grpc.unary_unary_rpc_method_handler( - servicer.ListClusters, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersResponse.SerializeToString, - ), - 'DiagnoseCluster': grpc.unary_unary_rpc_method_handler( - servicer.DiagnoseCluster, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.dataproc.v1beta2.ClusterController', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateCluster": grpc.unary_unary_rpc_method_handler( + servicer.CreateCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.CreateClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "UpdateCluster": grpc.unary_unary_rpc_method_handler( + servicer.UpdateCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.UpdateClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteCluster": grpc.unary_unary_rpc_method_handler( + servicer.DeleteCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DeleteClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "GetCluster": grpc.unary_unary_rpc_method_handler( + servicer.GetCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.GetClusterRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.Cluster.SerializeToString, + ), + "ListClusters": grpc.unary_unary_rpc_method_handler( + servicer.ListClusters, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.ListClustersResponse.SerializeToString, + ), + "DiagnoseCluster": grpc.unary_unary_rpc_method_handler( + servicer.DiagnoseCluster, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DiagnoseClusterRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.dataproc.v1beta2.ClusterController", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2.py b/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2.py index a5c86d0c0aea1..d4814232a1b4c 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/dataproc_v1beta2/proto/jobs.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,2013 +22,3311 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1beta2/proto/jobs.proto', - package='google.cloud.dataproc.v1beta2', - syntax='proto3', - serialized_pb=_b('\n.google/cloud/dataproc_v1beta2/proto/jobs.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x02\n\rLoggingConfig\x12\\\n\x11\x64river_log_levels\x18\x02 \x03(\x0b\x32\x41.google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry\x1aj\n\x14\x44riverLogLevelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0e\x32\x32.google.cloud.dataproc.v1beta2.LoggingConfig.Level:\x02\x38\x01\"p\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\t\n\x05TRACE\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x08\n\x04INFO\x10\x04\x12\x08\n\x04WARN\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\t\n\x05\x46\x41TAL\x10\x07\x12\x07\n\x03OFF\x10\x08\"\xdd\x02\n\tHadoopJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12L\n\nproperties\x18\x07 \x03(\x0b\x32\x38.google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river\"\xdb\x02\n\x08SparkJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12K\n\nproperties\x18\x07 \x03(\x0b\x32\x37.google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river\"\xda\x02\n\nPySparkJob\x12\x1c\n\x14main_python_file_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\x12\x18\n\x10python_file_uris\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12M\n\nproperties\x18\x07 \x03(\x0b\x32\x39.google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1c\n\tQueryList\x12\x0f\n\x07queries\x18\x01 \x03(\t\"\xb0\x03\n\x07HiveJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12>\n\nquery_list\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12U\n\x10script_variables\x18\x04 \x03(\x0b\x32;.google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry\x12J\n\nproperties\x18\x05 \x03(\x0b\x32\x36.google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xe5\x03\n\x0bSparkSqlJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12>\n\nquery_list\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.QueryListH\x00\x12Y\n\x10script_variables\x18\x03 \x03(\x0b\x32?.google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry\x12N\n\nproperties\x18\x04 \x03(\x0b\x32:.google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x38 \x03(\t\x12\x44\n\x0elogging_config\x18\x06 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\"\xf3\x03\n\x06PigJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12>\n\nquery_list\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12T\n\x10script_variables\x18\x04 \x03(\x0b\x32:.google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry\x12I\n\nproperties\x18\x05 \x03(\x0b\x32\x35.google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x12\x44\n\x0elogging_config\x18\x07 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries\":\n\x0cJobPlacement\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x02 \x01(\t\"\xcc\x03\n\tJobStatus\x12=\n\x05state\x18\x01 \x01(\x0e\x32..google.cloud.dataproc.v1beta2.JobStatus.State\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x08substate\x18\x07 \x01(\x0e\x32\x31.google.cloud.dataproc.v1beta2.JobStatus.Substate\"\xa9\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0e\n\nSETUP_DONE\x10\x08\x12\x0b\n\x07RUNNING\x10\x02\x12\x12\n\x0e\x43\x41NCEL_PENDING\x10\x03\x12\x12\n\x0e\x43\x41NCEL_STARTED\x10\x07\x12\r\n\tCANCELLED\x10\x04\x12\x08\n\x04\x44ONE\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\x13\n\x0f\x41TTEMPT_FAILURE\x10\t\"H\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tSUBMITTED\x10\x01\x12\n\n\x06QUEUED\x10\x02\x12\x10\n\x0cSTALE_STATUS\x10\x03\"2\n\x0cJobReference\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\"\x96\x02\n\x0fYarnApplication\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x05state\x18\x02 \x01(\x0e\x32\x34.google.cloud.dataproc.v1beta2.YarnApplication.State\x12\x10\n\x08progress\x18\x03 \x01(\x02\x12\x14\n\x0ctracking_url\x18\x04 \x01(\t\"\x87\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x0e\n\nNEW_SAVING\x10\x02\x12\r\n\tSUBMITTED\x10\x03\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x04\x12\x0b\n\x07RUNNING\x10\x05\x12\x0c\n\x08\x46INISHED\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\n\n\x06KILLED\x10\x08\"\xf2\x07\n\x03Job\x12>\n\treference\x18\x01 \x01(\x0b\x32+.google.cloud.dataproc.v1beta2.JobReference\x12>\n\tplacement\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1beta2.JobPlacement\x12>\n\nhadoop_job\x18\x03 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.HadoopJobH\x00\x12<\n\tspark_job\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1beta2.SparkJobH\x00\x12@\n\x0bpyspark_job\x18\x05 \x01(\x0b\x32).google.cloud.dataproc.v1beta2.PySparkJobH\x00\x12:\n\x08hive_job\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.HiveJobH\x00\x12\x38\n\x07pig_job\x18\x07 \x01(\x0b\x32%.google.cloud.dataproc.v1beta2.PigJobH\x00\x12\x43\n\rspark_sql_job\x18\x0c \x01(\x0b\x32*.google.cloud.dataproc.v1beta2.SparkSqlJobH\x00\x12\x38\n\x06status\x18\x08 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.JobStatus\x12@\n\x0estatus_history\x18\r \x03(\x0b\x32(.google.cloud.dataproc.v1beta2.JobStatus\x12I\n\x11yarn_applications\x18\t \x03(\x0b\x32..google.cloud.dataproc.v1beta2.YarnApplication\x12\x14\n\x0csubmitted_by\x18\n \x01(\t\x12\"\n\x1a\x64river_output_resource_uri\x18\x11 \x01(\t\x12 \n\x18\x64river_control_files_uri\x18\x0f \x01(\t\x12>\n\x06labels\x18\x12 \x03(\x0b\x32..google.cloud.dataproc.v1beta2.Job.LabelsEntry\x12@\n\nscheduling\x18\x14 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.JobScheduling\x12\x10\n\x08job_uuid\x18\x16 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08type_job\".\n\rJobScheduling\x12\x1d\n\x15max_failures_per_hour\x18\x01 \x01(\x05\"{\n\x10SubmitJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12/\n\x03job\x18\x02 \x01(\x0b\x32\".google.cloud.dataproc.v1beta2.Job\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"C\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\"\x95\x02\n\x0fListJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x04 \x01(\t\x12Y\n\x11job_state_matcher\x18\x05 \x01(\x0e\x32>.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\"6\n\x0fJobStateMatcher\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nNON_ACTIVE\x10\x02\"\xa8\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12/\n\x03job\x18\x04 \x01(\x0b\x32\".google.cloud.dataproc.v1beta2.Job\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"]\n\x10ListJobsResponse\x12\x30\n\x04jobs\x18\x01 \x03(\x0b\x32\".google.cloud.dataproc.v1beta2.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"F\n\x10\x43\x61ncelJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\"F\n\x10\x44\x65leteJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t2\x8b\x08\n\rJobController\x12\xa8\x01\n\tSubmitJob\x12/.google.cloud.dataproc.v1beta2.SubmitJobRequest\x1a\".google.cloud.dataproc.v1beta2.Job\"F\x82\xd3\xe4\x93\x02@\";/v1beta2/projects/{project_id}/regions/{region}/jobs:submit:\x01*\x12\xa1\x01\n\x06GetJob\x12,.google.cloud.dataproc.v1beta2.GetJobRequest\x1a\".google.cloud.dataproc.v1beta2.Job\"E\x82\xd3\xe4\x93\x02?\x12=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}\x12\xa9\x01\n\x08ListJobs\x12..google.cloud.dataproc.v1beta2.ListJobsRequest\x1a/.google.cloud.dataproc.v1beta2.ListJobsResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta2/projects/{project_id}/regions/{region}/jobs\x12\xac\x01\n\tUpdateJob\x12/.google.cloud.dataproc.v1beta2.UpdateJobRequest\x1a\".google.cloud.dataproc.v1beta2.Job\"J\x82\xd3\xe4\x93\x02\x44\x32=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:\x03job\x12\xb1\x01\n\tCancelJob\x12/.google.cloud.dataproc.v1beta2.CancelJobRequest\x1a\".google.cloud.dataproc.v1beta2.Job\"O\x82\xd3\xe4\x93\x02I\"D/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\x01*\x12\x9b\x01\n\tDeleteJob\x12/.google.cloud.dataproc.v1beta2.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"E\x82\xd3\xe4\x93\x02?*=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}Bw\n!com.google.cloud.dataproc.v1beta2B\tJobsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1beta2/proto/jobs.proto", + package="google.cloud.dataproc.v1beta2", + syntax="proto3", + serialized_pb=_b( + '\n.google/cloud/dataproc_v1beta2/proto/jobs.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xcb\x02\n\rLoggingConfig\x12\\\n\x11\x64river_log_levels\x18\x02 \x03(\x0b\x32\x41.google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry\x1aj\n\x14\x44riverLogLevelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0e\x32\x32.google.cloud.dataproc.v1beta2.LoggingConfig.Level:\x02\x38\x01"p\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\t\n\x05TRACE\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x08\n\x04INFO\x10\x04\x12\x08\n\x04WARN\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\t\n\x05\x46\x41TAL\x10\x07\x12\x07\n\x03OFF\x10\x08"\xdd\x02\n\tHadoopJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12L\n\nproperties\x18\x07 \x03(\x0b\x32\x38.google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river"\xdb\x02\n\x08SparkJob\x12\x1b\n\x11main_jar_file_uri\x18\x01 \x01(\tH\x00\x12\x14\n\nmain_class\x18\x02 \x01(\tH\x00\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12K\n\nproperties\x18\x07 \x03(\x0b\x32\x37.google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x64river"\xda\x02\n\nPySparkJob\x12\x1c\n\x14main_python_file_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\x12\x18\n\x10python_file_uris\x18\x03 \x03(\t\x12\x15\n\rjar_file_uris\x18\x04 \x03(\t\x12\x11\n\tfile_uris\x18\x05 \x03(\t\x12\x14\n\x0c\x61rchive_uris\x18\x06 \x03(\t\x12M\n\nproperties\x18\x07 \x03(\x0b\x32\x39.google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry\x12\x44\n\x0elogging_config\x18\x08 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1c\n\tQueryList\x12\x0f\n\x07queries\x18\x01 \x03(\t"\xb0\x03\n\x07HiveJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12>\n\nquery_list\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12U\n\x10script_variables\x18\x04 \x03(\x0b\x32;.google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry\x12J\n\nproperties\x18\x05 \x03(\x0b\x32\x36.google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries"\xe5\x03\n\x0bSparkSqlJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12>\n\nquery_list\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.QueryListH\x00\x12Y\n\x10script_variables\x18\x03 \x03(\x0b\x32?.google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry\x12N\n\nproperties\x18\x04 \x03(\x0b\x32:.google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x38 \x03(\t\x12\x44\n\x0elogging_config\x18\x06 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries"\xf3\x03\n\x06PigJob\x12\x18\n\x0equery_file_uri\x18\x01 \x01(\tH\x00\x12>\n\nquery_list\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.QueryListH\x00\x12\x1b\n\x13\x63ontinue_on_failure\x18\x03 \x01(\x08\x12T\n\x10script_variables\x18\x04 \x03(\x0b\x32:.google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry\x12I\n\nproperties\x18\x05 \x03(\x0b\x32\x35.google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry\x12\x15\n\rjar_file_uris\x18\x06 \x03(\t\x12\x44\n\x0elogging_config\x18\x07 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.LoggingConfig\x1a\x36\n\x14ScriptVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07queries":\n\x0cJobPlacement\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x02 \x01(\t"\xcc\x03\n\tJobStatus\x12=\n\x05state\x18\x01 \x01(\x0e\x32..google.cloud.dataproc.v1beta2.JobStatus.State\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\x12\x34\n\x10state_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x08substate\x18\x07 \x01(\x0e\x32\x31.google.cloud.dataproc.v1beta2.JobStatus.Substate"\xa9\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0e\n\nSETUP_DONE\x10\x08\x12\x0b\n\x07RUNNING\x10\x02\x12\x12\n\x0e\x43\x41NCEL_PENDING\x10\x03\x12\x12\n\x0e\x43\x41NCEL_STARTED\x10\x07\x12\r\n\tCANCELLED\x10\x04\x12\x08\n\x04\x44ONE\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\x13\n\x0f\x41TTEMPT_FAILURE\x10\t"H\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tSUBMITTED\x10\x01\x12\n\n\x06QUEUED\x10\x02\x12\x10\n\x0cSTALE_STATUS\x10\x03"2\n\x0cJobReference\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x96\x02\n\x0fYarnApplication\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x05state\x18\x02 \x01(\x0e\x32\x34.google.cloud.dataproc.v1beta2.YarnApplication.State\x12\x10\n\x08progress\x18\x03 \x01(\x02\x12\x14\n\x0ctracking_url\x18\x04 \x01(\t"\x87\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x0e\n\nNEW_SAVING\x10\x02\x12\r\n\tSUBMITTED\x10\x03\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x04\x12\x0b\n\x07RUNNING\x10\x05\x12\x0c\n\x08\x46INISHED\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\n\n\x06KILLED\x10\x08"\xf2\x07\n\x03Job\x12>\n\treference\x18\x01 \x01(\x0b\x32+.google.cloud.dataproc.v1beta2.JobReference\x12>\n\tplacement\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1beta2.JobPlacement\x12>\n\nhadoop_job\x18\x03 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.HadoopJobH\x00\x12<\n\tspark_job\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1beta2.SparkJobH\x00\x12@\n\x0bpyspark_job\x18\x05 \x01(\x0b\x32).google.cloud.dataproc.v1beta2.PySparkJobH\x00\x12:\n\x08hive_job\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.HiveJobH\x00\x12\x38\n\x07pig_job\x18\x07 \x01(\x0b\x32%.google.cloud.dataproc.v1beta2.PigJobH\x00\x12\x43\n\rspark_sql_job\x18\x0c \x01(\x0b\x32*.google.cloud.dataproc.v1beta2.SparkSqlJobH\x00\x12\x38\n\x06status\x18\x08 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.JobStatus\x12@\n\x0estatus_history\x18\r \x03(\x0b\x32(.google.cloud.dataproc.v1beta2.JobStatus\x12I\n\x11yarn_applications\x18\t \x03(\x0b\x32..google.cloud.dataproc.v1beta2.YarnApplication\x12\x14\n\x0csubmitted_by\x18\n \x01(\t\x12"\n\x1a\x64river_output_resource_uri\x18\x11 \x01(\t\x12 \n\x18\x64river_control_files_uri\x18\x0f \x01(\t\x12>\n\x06labels\x18\x12 \x03(\x0b\x32..google.cloud.dataproc.v1beta2.Job.LabelsEntry\x12@\n\nscheduling\x18\x14 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.JobScheduling\x12\x10\n\x08job_uuid\x18\x16 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08type_job".\n\rJobScheduling\x12\x1d\n\x15max_failures_per_hour\x18\x01 \x01(\x05"{\n\x10SubmitJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12/\n\x03job\x18\x02 \x01(\x0b\x32".google.cloud.dataproc.v1beta2.Job\x12\x12\n\nrequest_id\x18\x04 \x01(\t"C\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x95\x02\n\x0fListJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x04 \x01(\t\x12Y\n\x11job_state_matcher\x18\x05 \x01(\x0e\x32>.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t"6\n\x0fJobStateMatcher\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nNON_ACTIVE\x10\x02"\xa8\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12/\n\x03job\x18\x04 \x01(\x0b\x32".google.cloud.dataproc.v1beta2.Job\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"]\n\x10ListJobsResponse\x12\x30\n\x04jobs\x18\x01 \x03(\x0b\x32".google.cloud.dataproc.v1beta2.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"F\n\x10\x43\x61ncelJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"F\n\x10\x44\x65leteJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t2\x8b\x08\n\rJobController\x12\xa8\x01\n\tSubmitJob\x12/.google.cloud.dataproc.v1beta2.SubmitJobRequest\x1a".google.cloud.dataproc.v1beta2.Job"F\x82\xd3\xe4\x93\x02@";/v1beta2/projects/{project_id}/regions/{region}/jobs:submit:\x01*\x12\xa1\x01\n\x06GetJob\x12,.google.cloud.dataproc.v1beta2.GetJobRequest\x1a".google.cloud.dataproc.v1beta2.Job"E\x82\xd3\xe4\x93\x02?\x12=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}\x12\xa9\x01\n\x08ListJobs\x12..google.cloud.dataproc.v1beta2.ListJobsRequest\x1a/.google.cloud.dataproc.v1beta2.ListJobsResponse"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta2/projects/{project_id}/regions/{region}/jobs\x12\xac\x01\n\tUpdateJob\x12/.google.cloud.dataproc.v1beta2.UpdateJobRequest\x1a".google.cloud.dataproc.v1beta2.Job"J\x82\xd3\xe4\x93\x02\x44\x32=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:\x03job\x12\xb1\x01\n\tCancelJob\x12/.google.cloud.dataproc.v1beta2.CancelJobRequest\x1a".google.cloud.dataproc.v1beta2.Job"O\x82\xd3\xe4\x93\x02I"D/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\x01*\x12\x9b\x01\n\tDeleteJob\x12/.google.cloud.dataproc.v1beta2.DeleteJobRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02?*=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}Bw\n!com.google.cloud.dataproc.v1beta2B\tJobsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _LOGGINGCONFIG_LEVEL = _descriptor.EnumDescriptor( - name='Level', - full_name='google.cloud.dataproc.v1beta2.LoggingConfig.Level', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LEVEL_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TRACE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEBUG', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INFO', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WARN', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FATAL', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OFF', index=8, number=8, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=427, - serialized_end=539, + name="Level", + full_name="google.cloud.dataproc.v1beta2.LoggingConfig.Level", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LEVEL_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TRACE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DEBUG", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INFO", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WARN", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FATAL", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OFF", index=8, number=8, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=427, + serialized_end=539, ) _sym_db.RegisterEnumDescriptor(_LOGGINGCONFIG_LEVEL) _JOBSTATUS_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1beta2.JobStatus.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SETUP_DONE', index=2, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=3, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCEL_PENDING', index=4, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCEL_STARTED', index=5, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELLED', index=6, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=7, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=8, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ATTEMPT_FAILURE', index=9, number=9, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3325, - serialized_end=3494, + name="State", + full_name="google.cloud.dataproc.v1beta2.JobStatus.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SETUP_DONE", index=2, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=3, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCEL_PENDING", index=4, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCEL_STARTED", index=5, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", index=6, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=7, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=8, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ATTEMPT_FAILURE", index=9, number=9, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3325, + serialized_end=3494, ) _sym_db.RegisterEnumDescriptor(_JOBSTATUS_STATE) _JOBSTATUS_SUBSTATE = _descriptor.EnumDescriptor( - name='Substate', - full_name='google.cloud.dataproc.v1beta2.JobStatus.Substate', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUBMITTED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='QUEUED', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STALE_STATUS', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3496, - serialized_end=3568, + name="Substate", + full_name="google.cloud.dataproc.v1beta2.JobStatus.Substate", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUBMITTED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="QUEUED", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STALE_STATUS", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3496, + serialized_end=3568, ) _sym_db.RegisterEnumDescriptor(_JOBSTATUS_SUBSTATE) _YARNAPPLICATION_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1beta2.YarnApplication.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEW', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEW_SAVING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUBMITTED', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCEPTED', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FINISHED', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FAILED', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KILLED', index=8, number=8, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3766, - serialized_end=3901, + name="State", + full_name="google.cloud.dataproc.v1beta2.YarnApplication.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEW", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEW_SAVING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUBMITTED", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACCEPTED", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FINISHED", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FAILED", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="KILLED", index=8, number=8, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3766, + serialized_end=3901, ) _sym_db.RegisterEnumDescriptor(_YARNAPPLICATION_STATE) _LISTJOBSREQUEST_JOBSTATEMATCHER = _descriptor.EnumDescriptor( - name='JobStateMatcher', - full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ALL', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACTIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NON_ACTIVE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=5382, - serialized_end=5436, + name="JobStateMatcher", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ALL", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACTIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NON_ACTIVE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=5382, + serialized_end=5436, ) _sym_db.RegisterEnumDescriptor(_LISTJOBSREQUEST_JOBSTATEMATCHER) _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY = _descriptor.Descriptor( - name='DriverLogLevelsEntry', - full_name='google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry.value', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=319, - serialized_end=425, + name="DriverLogLevelsEntry", + full_name="google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry.value", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=319, + serialized_end=425, ) _LOGGINGCONFIG = _descriptor.Descriptor( - name='LoggingConfig', - full_name='google.cloud.dataproc.v1beta2.LoggingConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='driver_log_levels', full_name='google.cloud.dataproc.v1beta2.LoggingConfig.driver_log_levels', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY, ], - enum_types=[ - _LOGGINGCONFIG_LEVEL, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=208, - serialized_end=539, + name="LoggingConfig", + full_name="google.cloud.dataproc.v1beta2.LoggingConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="driver_log_levels", + full_name="google.cloud.dataproc.v1beta2.LoggingConfig.driver_log_levels", + index=0, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY], + enum_types=[_LOGGINGCONFIG_LEVEL], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=208, + serialized_end=539, ) _HADOOPJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=832, - serialized_end=881, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=832, + serialized_end=881, ) _HADOOPJOB = _descriptor.Descriptor( - name='HadoopJob', - full_name='google.cloud.dataproc.v1beta2.HadoopJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='main_jar_file_uri', full_name='google.cloud.dataproc.v1beta2.HadoopJob.main_jar_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='main_class', full_name='google.cloud.dataproc.v1beta2.HadoopJob.main_class', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='args', full_name='google.cloud.dataproc.v1beta2.HadoopJob.args', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1beta2.HadoopJob.jar_file_uris', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_uris', full_name='google.cloud.dataproc.v1beta2.HadoopJob.file_uris', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='archive_uris', full_name='google.cloud.dataproc.v1beta2.HadoopJob.archive_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1beta2.HadoopJob.properties', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1beta2.HadoopJob.logging_config', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_HADOOPJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='driver', full_name='google.cloud.dataproc.v1beta2.HadoopJob.driver', - index=0, containing_type=None, fields=[]), - ], - serialized_start=542, - serialized_end=891, + name="HadoopJob", + full_name="google.cloud.dataproc.v1beta2.HadoopJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="main_jar_file_uri", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.main_jar_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="main_class", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.main_class", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="args", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.args", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.jar_file_uris", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_uris", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.file_uris", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="archive_uris", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.archive_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.properties", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.logging_config", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_HADOOPJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="driver", + full_name="google.cloud.dataproc.v1beta2.HadoopJob.driver", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=542, + serialized_end=891, ) _SPARKJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=832, - serialized_end=881, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=832, + serialized_end=881, ) _SPARKJOB = _descriptor.Descriptor( - name='SparkJob', - full_name='google.cloud.dataproc.v1beta2.SparkJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='main_jar_file_uri', full_name='google.cloud.dataproc.v1beta2.SparkJob.main_jar_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='main_class', full_name='google.cloud.dataproc.v1beta2.SparkJob.main_class', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='args', full_name='google.cloud.dataproc.v1beta2.SparkJob.args', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1beta2.SparkJob.jar_file_uris', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_uris', full_name='google.cloud.dataproc.v1beta2.SparkJob.file_uris', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='archive_uris', full_name='google.cloud.dataproc.v1beta2.SparkJob.archive_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1beta2.SparkJob.properties', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1beta2.SparkJob.logging_config', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPARKJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='driver', full_name='google.cloud.dataproc.v1beta2.SparkJob.driver', - index=0, containing_type=None, fields=[]), - ], - serialized_start=894, - serialized_end=1241, + name="SparkJob", + full_name="google.cloud.dataproc.v1beta2.SparkJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="main_jar_file_uri", + full_name="google.cloud.dataproc.v1beta2.SparkJob.main_jar_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="main_class", + full_name="google.cloud.dataproc.v1beta2.SparkJob.main_class", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="args", + full_name="google.cloud.dataproc.v1beta2.SparkJob.args", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1beta2.SparkJob.jar_file_uris", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_uris", + full_name="google.cloud.dataproc.v1beta2.SparkJob.file_uris", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="archive_uris", + full_name="google.cloud.dataproc.v1beta2.SparkJob.archive_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1beta2.SparkJob.properties", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1beta2.SparkJob.logging_config", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPARKJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="driver", + full_name="google.cloud.dataproc.v1beta2.SparkJob.driver", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=894, + serialized_end=1241, ) _PYSPARKJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=832, - serialized_end=881, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=832, + serialized_end=881, ) _PYSPARKJOB = _descriptor.Descriptor( - name='PySparkJob', - full_name='google.cloud.dataproc.v1beta2.PySparkJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='main_python_file_uri', full_name='google.cloud.dataproc.v1beta2.PySparkJob.main_python_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='args', full_name='google.cloud.dataproc.v1beta2.PySparkJob.args', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='python_file_uris', full_name='google.cloud.dataproc.v1beta2.PySparkJob.python_file_uris', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1beta2.PySparkJob.jar_file_uris', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_uris', full_name='google.cloud.dataproc.v1beta2.PySparkJob.file_uris', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='archive_uris', full_name='google.cloud.dataproc.v1beta2.PySparkJob.archive_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1beta2.PySparkJob.properties', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1beta2.PySparkJob.logging_config', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PYSPARKJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1244, - serialized_end=1590, + name="PySparkJob", + full_name="google.cloud.dataproc.v1beta2.PySparkJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="main_python_file_uri", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.main_python_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="args", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.args", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="python_file_uris", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.python_file_uris", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.jar_file_uris", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_uris", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.file_uris", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="archive_uris", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.archive_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.properties", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1beta2.PySparkJob.logging_config", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PYSPARKJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1244, + serialized_end=1590, ) _QUERYLIST = _descriptor.Descriptor( - name='QueryList', - full_name='google.cloud.dataproc.v1beta2.QueryList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='queries', full_name='google.cloud.dataproc.v1beta2.QueryList.queries', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1592, - serialized_end=1620, + name="QueryList", + full_name="google.cloud.dataproc.v1beta2.QueryList", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1beta2.QueryList.queries", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1592, + serialized_end=1620, ) _HIVEJOB_SCRIPTVARIABLESENTRY = _descriptor.Descriptor( - name='ScriptVariablesEntry', - full_name='google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1939, - serialized_end=1993, + name="ScriptVariablesEntry", + full_name="google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1939, + serialized_end=1993, ) _HIVEJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=832, - serialized_end=881, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=832, + serialized_end=881, ) _HIVEJOB = _descriptor.Descriptor( - name='HiveJob', - full_name='google.cloud.dataproc.v1beta2.HiveJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query_file_uri', full_name='google.cloud.dataproc.v1beta2.HiveJob.query_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_list', full_name='google.cloud.dataproc.v1beta2.HiveJob.query_list', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='continue_on_failure', full_name='google.cloud.dataproc.v1beta2.HiveJob.continue_on_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='script_variables', full_name='google.cloud.dataproc.v1beta2.HiveJob.script_variables', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1beta2.HiveJob.properties', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1beta2.HiveJob.jar_file_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_HIVEJOB_SCRIPTVARIABLESENTRY, _HIVEJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='queries', full_name='google.cloud.dataproc.v1beta2.HiveJob.queries', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1623, - serialized_end=2055, + name="HiveJob", + full_name="google.cloud.dataproc.v1beta2.HiveJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="query_file_uri", + full_name="google.cloud.dataproc.v1beta2.HiveJob.query_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_list", + full_name="google.cloud.dataproc.v1beta2.HiveJob.query_list", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="continue_on_failure", + full_name="google.cloud.dataproc.v1beta2.HiveJob.continue_on_failure", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="script_variables", + full_name="google.cloud.dataproc.v1beta2.HiveJob.script_variables", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1beta2.HiveJob.properties", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1beta2.HiveJob.jar_file_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_HIVEJOB_SCRIPTVARIABLESENTRY, _HIVEJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1beta2.HiveJob.queries", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1623, + serialized_end=2055, ) _SPARKSQLJOB_SCRIPTVARIABLESENTRY = _descriptor.Descriptor( - name='ScriptVariablesEntry', - full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1939, - serialized_end=1993, + name="ScriptVariablesEntry", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1939, + serialized_end=1993, ) _SPARKSQLJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=832, - serialized_end=881, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=832, + serialized_end=881, ) _SPARKSQLJOB = _descriptor.Descriptor( - name='SparkSqlJob', - full_name='google.cloud.dataproc.v1beta2.SparkSqlJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query_file_uri', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.query_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_list', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.query_list', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='script_variables', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.script_variables', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.properties', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.jar_file_uris', index=4, - number=56, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.logging_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPARKSQLJOB_SCRIPTVARIABLESENTRY, _SPARKSQLJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='queries', full_name='google.cloud.dataproc.v1beta2.SparkSqlJob.queries', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2058, - serialized_end=2543, + name="SparkSqlJob", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="query_file_uri", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.query_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_list", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.query_list", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="script_variables", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.script_variables", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.properties", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.jar_file_uris", + index=4, + number=56, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.logging_config", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPARKSQLJOB_SCRIPTVARIABLESENTRY, _SPARKSQLJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1beta2.SparkSqlJob.queries", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2058, + serialized_end=2543, ) _PIGJOB_SCRIPTVARIABLESENTRY = _descriptor.Descriptor( - name='ScriptVariablesEntry', - full_name='google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1939, - serialized_end=1993, + name="ScriptVariablesEntry", + full_name="google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1939, + serialized_end=1993, ) _PIGJOB_PROPERTIESENTRY = _descriptor.Descriptor( - name='PropertiesEntry', - full_name='google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=832, - serialized_end=881, + name="PropertiesEntry", + full_name="google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=832, + serialized_end=881, ) _PIGJOB = _descriptor.Descriptor( - name='PigJob', - full_name='google.cloud.dataproc.v1beta2.PigJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query_file_uri', full_name='google.cloud.dataproc.v1beta2.PigJob.query_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_list', full_name='google.cloud.dataproc.v1beta2.PigJob.query_list', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='continue_on_failure', full_name='google.cloud.dataproc.v1beta2.PigJob.continue_on_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='script_variables', full_name='google.cloud.dataproc.v1beta2.PigJob.script_variables', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.dataproc.v1beta2.PigJob.properties', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jar_file_uris', full_name='google.cloud.dataproc.v1beta2.PigJob.jar_file_uris', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logging_config', full_name='google.cloud.dataproc.v1beta2.PigJob.logging_config', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PIGJOB_SCRIPTVARIABLESENTRY, _PIGJOB_PROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='queries', full_name='google.cloud.dataproc.v1beta2.PigJob.queries', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2546, - serialized_end=3045, + name="PigJob", + full_name="google.cloud.dataproc.v1beta2.PigJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="query_file_uri", + full_name="google.cloud.dataproc.v1beta2.PigJob.query_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_list", + full_name="google.cloud.dataproc.v1beta2.PigJob.query_list", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="continue_on_failure", + full_name="google.cloud.dataproc.v1beta2.PigJob.continue_on_failure", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="script_variables", + full_name="google.cloud.dataproc.v1beta2.PigJob.script_variables", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.dataproc.v1beta2.PigJob.properties", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jar_file_uris", + full_name="google.cloud.dataproc.v1beta2.PigJob.jar_file_uris", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logging_config", + full_name="google.cloud.dataproc.v1beta2.PigJob.logging_config", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PIGJOB_SCRIPTVARIABLESENTRY, _PIGJOB_PROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="queries", + full_name="google.cloud.dataproc.v1beta2.PigJob.queries", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2546, + serialized_end=3045, ) _JOBPLACEMENT = _descriptor.Descriptor( - name='JobPlacement', - full_name='google.cloud.dataproc.v1beta2.JobPlacement', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.JobPlacement.cluster_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1beta2.JobPlacement.cluster_uuid', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3047, - serialized_end=3105, + name="JobPlacement", + full_name="google.cloud.dataproc.v1beta2.JobPlacement", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.JobPlacement.cluster_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1beta2.JobPlacement.cluster_uuid", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3047, + serialized_end=3105, ) _JOBSTATUS = _descriptor.Descriptor( - name='JobStatus', - full_name='google.cloud.dataproc.v1beta2.JobStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1beta2.JobStatus.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='details', full_name='google.cloud.dataproc.v1beta2.JobStatus.details', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state_start_time', full_name='google.cloud.dataproc.v1beta2.JobStatus.state_start_time', index=2, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='substate', full_name='google.cloud.dataproc.v1beta2.JobStatus.substate', index=3, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _JOBSTATUS_STATE, - _JOBSTATUS_SUBSTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3108, - serialized_end=3568, + name="JobStatus", + full_name="google.cloud.dataproc.v1beta2.JobStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1beta2.JobStatus.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="details", + full_name="google.cloud.dataproc.v1beta2.JobStatus.details", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state_start_time", + full_name="google.cloud.dataproc.v1beta2.JobStatus.state_start_time", + index=2, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="substate", + full_name="google.cloud.dataproc.v1beta2.JobStatus.substate", + index=3, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_JOBSTATUS_STATE, _JOBSTATUS_SUBSTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3108, + serialized_end=3568, ) _JOBREFERENCE = _descriptor.Descriptor( - name='JobReference', - full_name='google.cloud.dataproc.v1beta2.JobReference', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.JobReference.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1beta2.JobReference.job_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3570, - serialized_end=3620, + name="JobReference", + full_name="google.cloud.dataproc.v1beta2.JobReference", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.JobReference.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1beta2.JobReference.job_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3570, + serialized_end=3620, ) _YARNAPPLICATION = _descriptor.Descriptor( - name='YarnApplication', - full_name='google.cloud.dataproc.v1beta2.YarnApplication', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.dataproc.v1beta2.YarnApplication.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1beta2.YarnApplication.state', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress', full_name='google.cloud.dataproc.v1beta2.YarnApplication.progress', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_url', full_name='google.cloud.dataproc.v1beta2.YarnApplication.tracking_url', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _YARNAPPLICATION_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3623, - serialized_end=3901, + name="YarnApplication", + full_name="google.cloud.dataproc.v1beta2.YarnApplication", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.dataproc.v1beta2.YarnApplication.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1beta2.YarnApplication.state", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress", + full_name="google.cloud.dataproc.v1beta2.YarnApplication.progress", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tracking_url", + full_name="google.cloud.dataproc.v1beta2.YarnApplication.tracking_url", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_YARNAPPLICATION_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3623, + serialized_end=3901, ) _JOB_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1beta2.Job.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.Job.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.Job.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4857, - serialized_end=4902, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1beta2.Job.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.Job.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.Job.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4857, + serialized_end=4902, ) _JOB = _descriptor.Descriptor( - name='Job', - full_name='google.cloud.dataproc.v1beta2.Job', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='reference', full_name='google.cloud.dataproc.v1beta2.Job.reference', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.cloud.dataproc.v1beta2.Job.placement', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hadoop_job', full_name='google.cloud.dataproc.v1beta2.Job.hadoop_job', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spark_job', full_name='google.cloud.dataproc.v1beta2.Job.spark_job', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pyspark_job', full_name='google.cloud.dataproc.v1beta2.Job.pyspark_job', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hive_job', full_name='google.cloud.dataproc.v1beta2.Job.hive_job', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pig_job', full_name='google.cloud.dataproc.v1beta2.Job.pig_job', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spark_sql_job', full_name='google.cloud.dataproc.v1beta2.Job.spark_sql_job', index=7, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.dataproc.v1beta2.Job.status', index=8, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_history', full_name='google.cloud.dataproc.v1beta2.Job.status_history', index=9, - number=13, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='yarn_applications', full_name='google.cloud.dataproc.v1beta2.Job.yarn_applications', index=10, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='submitted_by', full_name='google.cloud.dataproc.v1beta2.Job.submitted_by', index=11, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='driver_output_resource_uri', full_name='google.cloud.dataproc.v1beta2.Job.driver_output_resource_uri', index=12, - number=17, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='driver_control_files_uri', full_name='google.cloud.dataproc.v1beta2.Job.driver_control_files_uri', index=13, - number=15, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1beta2.Job.labels', index=14, - number=18, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='scheduling', full_name='google.cloud.dataproc.v1beta2.Job.scheduling', index=15, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_uuid', full_name='google.cloud.dataproc.v1beta2.Job.job_uuid', index=16, - number=22, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_JOB_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type_job', full_name='google.cloud.dataproc.v1beta2.Job.type_job', - index=0, containing_type=None, fields=[]), - ], - serialized_start=3904, - serialized_end=4914, + name="Job", + full_name="google.cloud.dataproc.v1beta2.Job", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="reference", + full_name="google.cloud.dataproc.v1beta2.Job.reference", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="placement", + full_name="google.cloud.dataproc.v1beta2.Job.placement", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="hadoop_job", + full_name="google.cloud.dataproc.v1beta2.Job.hadoop_job", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spark_job", + full_name="google.cloud.dataproc.v1beta2.Job.spark_job", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pyspark_job", + full_name="google.cloud.dataproc.v1beta2.Job.pyspark_job", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="hive_job", + full_name="google.cloud.dataproc.v1beta2.Job.hive_job", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pig_job", + full_name="google.cloud.dataproc.v1beta2.Job.pig_job", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spark_sql_job", + full_name="google.cloud.dataproc.v1beta2.Job.spark_sql_job", + index=7, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.dataproc.v1beta2.Job.status", + index=8, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_history", + full_name="google.cloud.dataproc.v1beta2.Job.status_history", + index=9, + number=13, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="yarn_applications", + full_name="google.cloud.dataproc.v1beta2.Job.yarn_applications", + index=10, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="submitted_by", + full_name="google.cloud.dataproc.v1beta2.Job.submitted_by", + index=11, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="driver_output_resource_uri", + full_name="google.cloud.dataproc.v1beta2.Job.driver_output_resource_uri", + index=12, + number=17, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="driver_control_files_uri", + full_name="google.cloud.dataproc.v1beta2.Job.driver_control_files_uri", + index=13, + number=15, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1beta2.Job.labels", + index=14, + number=18, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="scheduling", + full_name="google.cloud.dataproc.v1beta2.Job.scheduling", + index=15, + number=20, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_uuid", + full_name="google.cloud.dataproc.v1beta2.Job.job_uuid", + index=16, + number=22, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_JOB_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type_job", + full_name="google.cloud.dataproc.v1beta2.Job.type_job", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=3904, + serialized_end=4914, ) _JOBSCHEDULING = _descriptor.Descriptor( - name='JobScheduling', - full_name='google.cloud.dataproc.v1beta2.JobScheduling', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_failures_per_hour', full_name='google.cloud.dataproc.v1beta2.JobScheduling.max_failures_per_hour', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4916, - serialized_end=4962, + name="JobScheduling", + full_name="google.cloud.dataproc.v1beta2.JobScheduling", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_failures_per_hour", + full_name="google.cloud.dataproc.v1beta2.JobScheduling.max_failures_per_hour", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4916, + serialized_end=4962, ) _SUBMITJOBREQUEST = _descriptor.Descriptor( - name='SubmitJobRequest', - full_name='google.cloud.dataproc.v1beta2.SubmitJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.SubmitJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.SubmitJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.dataproc.v1beta2.SubmitJobRequest.job', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1beta2.SubmitJobRequest.request_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4964, - serialized_end=5087, + name="SubmitJobRequest", + full_name="google.cloud.dataproc.v1beta2.SubmitJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.SubmitJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.SubmitJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.dataproc.v1beta2.SubmitJobRequest.job", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1beta2.SubmitJobRequest.request_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4964, + serialized_end=5087, ) _GETJOBREQUEST = _descriptor.Descriptor( - name='GetJobRequest', - full_name='google.cloud.dataproc.v1beta2.GetJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.GetJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.GetJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1beta2.GetJobRequest.job_id', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5089, - serialized_end=5156, + name="GetJobRequest", + full_name="google.cloud.dataproc.v1beta2.GetJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.GetJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.GetJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1beta2.GetJobRequest.job_id", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5089, + serialized_end=5156, ) _LISTJOBSREQUEST = _descriptor.Descriptor( - name='ListJobsRequest', - full_name='google.cloud.dataproc.v1beta2.ListJobsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.region', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.page_size', index=2, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.page_token', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.cluster_name', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_state_matcher', full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.job_state_matcher', index=5, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.dataproc.v1beta2.ListJobsRequest.filter', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTJOBSREQUEST_JOBSTATEMATCHER, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5159, - serialized_end=5436, + name="ListJobsRequest", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.region", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.page_size", + index=2, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.page_token", + index=3, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.cluster_name", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_state_matcher", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.job_state_matcher", + index=5, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.dataproc.v1beta2.ListJobsRequest.filter", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_LISTJOBSREQUEST_JOBSTATEMATCHER], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5159, + serialized_end=5436, ) _UPDATEJOBREQUEST = _descriptor.Descriptor( - name='UpdateJobRequest', - full_name='google.cloud.dataproc.v1beta2.UpdateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.UpdateJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.UpdateJobRequest.region', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1beta2.UpdateJobRequest.job_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.dataproc.v1beta2.UpdateJobRequest.job', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.dataproc.v1beta2.UpdateJobRequest.update_mask', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5439, - serialized_end=5607, + name="UpdateJobRequest", + full_name="google.cloud.dataproc.v1beta2.UpdateJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.UpdateJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.UpdateJobRequest.region", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1beta2.UpdateJobRequest.job_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.dataproc.v1beta2.UpdateJobRequest.job", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.dataproc.v1beta2.UpdateJobRequest.update_mask", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5439, + serialized_end=5607, ) _LISTJOBSRESPONSE = _descriptor.Descriptor( - name='ListJobsResponse', - full_name='google.cloud.dataproc.v1beta2.ListJobsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='jobs', full_name='google.cloud.dataproc.v1beta2.ListJobsResponse.jobs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.dataproc.v1beta2.ListJobsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5609, - serialized_end=5702, + name="ListJobsResponse", + full_name="google.cloud.dataproc.v1beta2.ListJobsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="jobs", + full_name="google.cloud.dataproc.v1beta2.ListJobsResponse.jobs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.dataproc.v1beta2.ListJobsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5609, + serialized_end=5702, ) _CANCELJOBREQUEST = _descriptor.Descriptor( - name='CancelJobRequest', - full_name='google.cloud.dataproc.v1beta2.CancelJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.CancelJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.CancelJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1beta2.CancelJobRequest.job_id', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5704, - serialized_end=5774, + name="CancelJobRequest", + full_name="google.cloud.dataproc.v1beta2.CancelJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.CancelJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.CancelJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1beta2.CancelJobRequest.job_id", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5704, + serialized_end=5774, ) _DELETEJOBREQUEST = _descriptor.Descriptor( - name='DeleteJobRequest', - full_name='google.cloud.dataproc.v1beta2.DeleteJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.dataproc.v1beta2.DeleteJobRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region', full_name='google.cloud.dataproc.v1beta2.DeleteJobRequest.region', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1beta2.DeleteJobRequest.job_id', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5776, - serialized_end=5846, -) - -_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.fields_by_name['value'].enum_type = _LOGGINGCONFIG_LEVEL + name="DeleteJobRequest", + full_name="google.cloud.dataproc.v1beta2.DeleteJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.dataproc.v1beta2.DeleteJobRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region", + full_name="google.cloud.dataproc.v1beta2.DeleteJobRequest.region", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1beta2.DeleteJobRequest.job_id", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5776, + serialized_end=5846, +) + +_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.fields_by_name[ + "value" +].enum_type = _LOGGINGCONFIG_LEVEL _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.containing_type = _LOGGINGCONFIG -_LOGGINGCONFIG.fields_by_name['driver_log_levels'].message_type = _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY +_LOGGINGCONFIG.fields_by_name[ + "driver_log_levels" +].message_type = _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY _LOGGINGCONFIG_LEVEL.containing_type = _LOGGINGCONFIG _HADOOPJOB_PROPERTIESENTRY.containing_type = _HADOOPJOB -_HADOOPJOB.fields_by_name['properties'].message_type = _HADOOPJOB_PROPERTIESENTRY -_HADOOPJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_HADOOPJOB.oneofs_by_name['driver'].fields.append( - _HADOOPJOB.fields_by_name['main_jar_file_uri']) -_HADOOPJOB.fields_by_name['main_jar_file_uri'].containing_oneof = _HADOOPJOB.oneofs_by_name['driver'] -_HADOOPJOB.oneofs_by_name['driver'].fields.append( - _HADOOPJOB.fields_by_name['main_class']) -_HADOOPJOB.fields_by_name['main_class'].containing_oneof = _HADOOPJOB.oneofs_by_name['driver'] +_HADOOPJOB.fields_by_name["properties"].message_type = _HADOOPJOB_PROPERTIESENTRY +_HADOOPJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_HADOOPJOB.oneofs_by_name["driver"].fields.append( + _HADOOPJOB.fields_by_name["main_jar_file_uri"] +) +_HADOOPJOB.fields_by_name[ + "main_jar_file_uri" +].containing_oneof = _HADOOPJOB.oneofs_by_name["driver"] +_HADOOPJOB.oneofs_by_name["driver"].fields.append( + _HADOOPJOB.fields_by_name["main_class"] +) +_HADOOPJOB.fields_by_name["main_class"].containing_oneof = _HADOOPJOB.oneofs_by_name[ + "driver" +] _SPARKJOB_PROPERTIESENTRY.containing_type = _SPARKJOB -_SPARKJOB.fields_by_name['properties'].message_type = _SPARKJOB_PROPERTIESENTRY -_SPARKJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_SPARKJOB.oneofs_by_name['driver'].fields.append( - _SPARKJOB.fields_by_name['main_jar_file_uri']) -_SPARKJOB.fields_by_name['main_jar_file_uri'].containing_oneof = _SPARKJOB.oneofs_by_name['driver'] -_SPARKJOB.oneofs_by_name['driver'].fields.append( - _SPARKJOB.fields_by_name['main_class']) -_SPARKJOB.fields_by_name['main_class'].containing_oneof = _SPARKJOB.oneofs_by_name['driver'] +_SPARKJOB.fields_by_name["properties"].message_type = _SPARKJOB_PROPERTIESENTRY +_SPARKJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_SPARKJOB.oneofs_by_name["driver"].fields.append( + _SPARKJOB.fields_by_name["main_jar_file_uri"] +) +_SPARKJOB.fields_by_name[ + "main_jar_file_uri" +].containing_oneof = _SPARKJOB.oneofs_by_name["driver"] +_SPARKJOB.oneofs_by_name["driver"].fields.append(_SPARKJOB.fields_by_name["main_class"]) +_SPARKJOB.fields_by_name["main_class"].containing_oneof = _SPARKJOB.oneofs_by_name[ + "driver" +] _PYSPARKJOB_PROPERTIESENTRY.containing_type = _PYSPARKJOB -_PYSPARKJOB.fields_by_name['properties'].message_type = _PYSPARKJOB_PROPERTIESENTRY -_PYSPARKJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG +_PYSPARKJOB.fields_by_name["properties"].message_type = _PYSPARKJOB_PROPERTIESENTRY +_PYSPARKJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG _HIVEJOB_SCRIPTVARIABLESENTRY.containing_type = _HIVEJOB _HIVEJOB_PROPERTIESENTRY.containing_type = _HIVEJOB -_HIVEJOB.fields_by_name['query_list'].message_type = _QUERYLIST -_HIVEJOB.fields_by_name['script_variables'].message_type = _HIVEJOB_SCRIPTVARIABLESENTRY -_HIVEJOB.fields_by_name['properties'].message_type = _HIVEJOB_PROPERTIESENTRY -_HIVEJOB.oneofs_by_name['queries'].fields.append( - _HIVEJOB.fields_by_name['query_file_uri']) -_HIVEJOB.fields_by_name['query_file_uri'].containing_oneof = _HIVEJOB.oneofs_by_name['queries'] -_HIVEJOB.oneofs_by_name['queries'].fields.append( - _HIVEJOB.fields_by_name['query_list']) -_HIVEJOB.fields_by_name['query_list'].containing_oneof = _HIVEJOB.oneofs_by_name['queries'] +_HIVEJOB.fields_by_name["query_list"].message_type = _QUERYLIST +_HIVEJOB.fields_by_name["script_variables"].message_type = _HIVEJOB_SCRIPTVARIABLESENTRY +_HIVEJOB.fields_by_name["properties"].message_type = _HIVEJOB_PROPERTIESENTRY +_HIVEJOB.oneofs_by_name["queries"].fields.append( + _HIVEJOB.fields_by_name["query_file_uri"] +) +_HIVEJOB.fields_by_name["query_file_uri"].containing_oneof = _HIVEJOB.oneofs_by_name[ + "queries" +] +_HIVEJOB.oneofs_by_name["queries"].fields.append(_HIVEJOB.fields_by_name["query_list"]) +_HIVEJOB.fields_by_name["query_list"].containing_oneof = _HIVEJOB.oneofs_by_name[ + "queries" +] _SPARKSQLJOB_SCRIPTVARIABLESENTRY.containing_type = _SPARKSQLJOB _SPARKSQLJOB_PROPERTIESENTRY.containing_type = _SPARKSQLJOB -_SPARKSQLJOB.fields_by_name['query_list'].message_type = _QUERYLIST -_SPARKSQLJOB.fields_by_name['script_variables'].message_type = _SPARKSQLJOB_SCRIPTVARIABLESENTRY -_SPARKSQLJOB.fields_by_name['properties'].message_type = _SPARKSQLJOB_PROPERTIESENTRY -_SPARKSQLJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_SPARKSQLJOB.oneofs_by_name['queries'].fields.append( - _SPARKSQLJOB.fields_by_name['query_file_uri']) -_SPARKSQLJOB.fields_by_name['query_file_uri'].containing_oneof = _SPARKSQLJOB.oneofs_by_name['queries'] -_SPARKSQLJOB.oneofs_by_name['queries'].fields.append( - _SPARKSQLJOB.fields_by_name['query_list']) -_SPARKSQLJOB.fields_by_name['query_list'].containing_oneof = _SPARKSQLJOB.oneofs_by_name['queries'] +_SPARKSQLJOB.fields_by_name["query_list"].message_type = _QUERYLIST +_SPARKSQLJOB.fields_by_name[ + "script_variables" +].message_type = _SPARKSQLJOB_SCRIPTVARIABLESENTRY +_SPARKSQLJOB.fields_by_name["properties"].message_type = _SPARKSQLJOB_PROPERTIESENTRY +_SPARKSQLJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_SPARKSQLJOB.oneofs_by_name["queries"].fields.append( + _SPARKSQLJOB.fields_by_name["query_file_uri"] +) +_SPARKSQLJOB.fields_by_name[ + "query_file_uri" +].containing_oneof = _SPARKSQLJOB.oneofs_by_name["queries"] +_SPARKSQLJOB.oneofs_by_name["queries"].fields.append( + _SPARKSQLJOB.fields_by_name["query_list"] +) +_SPARKSQLJOB.fields_by_name[ + "query_list" +].containing_oneof = _SPARKSQLJOB.oneofs_by_name["queries"] _PIGJOB_SCRIPTVARIABLESENTRY.containing_type = _PIGJOB _PIGJOB_PROPERTIESENTRY.containing_type = _PIGJOB -_PIGJOB.fields_by_name['query_list'].message_type = _QUERYLIST -_PIGJOB.fields_by_name['script_variables'].message_type = _PIGJOB_SCRIPTVARIABLESENTRY -_PIGJOB.fields_by_name['properties'].message_type = _PIGJOB_PROPERTIESENTRY -_PIGJOB.fields_by_name['logging_config'].message_type = _LOGGINGCONFIG -_PIGJOB.oneofs_by_name['queries'].fields.append( - _PIGJOB.fields_by_name['query_file_uri']) -_PIGJOB.fields_by_name['query_file_uri'].containing_oneof = _PIGJOB.oneofs_by_name['queries'] -_PIGJOB.oneofs_by_name['queries'].fields.append( - _PIGJOB.fields_by_name['query_list']) -_PIGJOB.fields_by_name['query_list'].containing_oneof = _PIGJOB.oneofs_by_name['queries'] -_JOBSTATUS.fields_by_name['state'].enum_type = _JOBSTATUS_STATE -_JOBSTATUS.fields_by_name['state_start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOBSTATUS.fields_by_name['substate'].enum_type = _JOBSTATUS_SUBSTATE +_PIGJOB.fields_by_name["query_list"].message_type = _QUERYLIST +_PIGJOB.fields_by_name["script_variables"].message_type = _PIGJOB_SCRIPTVARIABLESENTRY +_PIGJOB.fields_by_name["properties"].message_type = _PIGJOB_PROPERTIESENTRY +_PIGJOB.fields_by_name["logging_config"].message_type = _LOGGINGCONFIG +_PIGJOB.oneofs_by_name["queries"].fields.append( + _PIGJOB.fields_by_name["query_file_uri"] +) +_PIGJOB.fields_by_name["query_file_uri"].containing_oneof = _PIGJOB.oneofs_by_name[ + "queries" +] +_PIGJOB.oneofs_by_name["queries"].fields.append(_PIGJOB.fields_by_name["query_list"]) +_PIGJOB.fields_by_name["query_list"].containing_oneof = _PIGJOB.oneofs_by_name[ + "queries" +] +_JOBSTATUS.fields_by_name["state"].enum_type = _JOBSTATUS_STATE +_JOBSTATUS.fields_by_name[ + "state_start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOBSTATUS.fields_by_name["substate"].enum_type = _JOBSTATUS_SUBSTATE _JOBSTATUS_STATE.containing_type = _JOBSTATUS _JOBSTATUS_SUBSTATE.containing_type = _JOBSTATUS -_YARNAPPLICATION.fields_by_name['state'].enum_type = _YARNAPPLICATION_STATE +_YARNAPPLICATION.fields_by_name["state"].enum_type = _YARNAPPLICATION_STATE _YARNAPPLICATION_STATE.containing_type = _YARNAPPLICATION _JOB_LABELSENTRY.containing_type = _JOB -_JOB.fields_by_name['reference'].message_type = _JOBREFERENCE -_JOB.fields_by_name['placement'].message_type = _JOBPLACEMENT -_JOB.fields_by_name['hadoop_job'].message_type = _HADOOPJOB -_JOB.fields_by_name['spark_job'].message_type = _SPARKJOB -_JOB.fields_by_name['pyspark_job'].message_type = _PYSPARKJOB -_JOB.fields_by_name['hive_job'].message_type = _HIVEJOB -_JOB.fields_by_name['pig_job'].message_type = _PIGJOB -_JOB.fields_by_name['spark_sql_job'].message_type = _SPARKSQLJOB -_JOB.fields_by_name['status'].message_type = _JOBSTATUS -_JOB.fields_by_name['status_history'].message_type = _JOBSTATUS -_JOB.fields_by_name['yarn_applications'].message_type = _YARNAPPLICATION -_JOB.fields_by_name['labels'].message_type = _JOB_LABELSENTRY -_JOB.fields_by_name['scheduling'].message_type = _JOBSCHEDULING -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['hadoop_job']) -_JOB.fields_by_name['hadoop_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['spark_job']) -_JOB.fields_by_name['spark_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['pyspark_job']) -_JOB.fields_by_name['pyspark_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['hive_job']) -_JOB.fields_by_name['hive_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['pig_job']) -_JOB.fields_by_name['pig_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_JOB.oneofs_by_name['type_job'].fields.append( - _JOB.fields_by_name['spark_sql_job']) -_JOB.fields_by_name['spark_sql_job'].containing_oneof = _JOB.oneofs_by_name['type_job'] -_SUBMITJOBREQUEST.fields_by_name['job'].message_type = _JOB -_LISTJOBSREQUEST.fields_by_name['job_state_matcher'].enum_type = _LISTJOBSREQUEST_JOBSTATEMATCHER +_JOB.fields_by_name["reference"].message_type = _JOBREFERENCE +_JOB.fields_by_name["placement"].message_type = _JOBPLACEMENT +_JOB.fields_by_name["hadoop_job"].message_type = _HADOOPJOB +_JOB.fields_by_name["spark_job"].message_type = _SPARKJOB +_JOB.fields_by_name["pyspark_job"].message_type = _PYSPARKJOB +_JOB.fields_by_name["hive_job"].message_type = _HIVEJOB +_JOB.fields_by_name["pig_job"].message_type = _PIGJOB +_JOB.fields_by_name["spark_sql_job"].message_type = _SPARKSQLJOB +_JOB.fields_by_name["status"].message_type = _JOBSTATUS +_JOB.fields_by_name["status_history"].message_type = _JOBSTATUS +_JOB.fields_by_name["yarn_applications"].message_type = _YARNAPPLICATION +_JOB.fields_by_name["labels"].message_type = _JOB_LABELSENTRY +_JOB.fields_by_name["scheduling"].message_type = _JOBSCHEDULING +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["hadoop_job"]) +_JOB.fields_by_name["hadoop_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["spark_job"]) +_JOB.fields_by_name["spark_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["pyspark_job"]) +_JOB.fields_by_name["pyspark_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["hive_job"]) +_JOB.fields_by_name["hive_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["pig_job"]) +_JOB.fields_by_name["pig_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_JOB.oneofs_by_name["type_job"].fields.append(_JOB.fields_by_name["spark_sql_job"]) +_JOB.fields_by_name["spark_sql_job"].containing_oneof = _JOB.oneofs_by_name["type_job"] +_SUBMITJOBREQUEST.fields_by_name["job"].message_type = _JOB +_LISTJOBSREQUEST.fields_by_name[ + "job_state_matcher" +].enum_type = _LISTJOBSREQUEST_JOBSTATEMATCHER _LISTJOBSREQUEST_JOBSTATEMATCHER.containing_type = _LISTJOBSREQUEST -_UPDATEJOBREQUEST.fields_by_name['job'].message_type = _JOB -_UPDATEJOBREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTJOBSRESPONSE.fields_by_name['jobs'].message_type = _JOB -DESCRIPTOR.message_types_by_name['LoggingConfig'] = _LOGGINGCONFIG -DESCRIPTOR.message_types_by_name['HadoopJob'] = _HADOOPJOB -DESCRIPTOR.message_types_by_name['SparkJob'] = _SPARKJOB -DESCRIPTOR.message_types_by_name['PySparkJob'] = _PYSPARKJOB -DESCRIPTOR.message_types_by_name['QueryList'] = _QUERYLIST -DESCRIPTOR.message_types_by_name['HiveJob'] = _HIVEJOB -DESCRIPTOR.message_types_by_name['SparkSqlJob'] = _SPARKSQLJOB -DESCRIPTOR.message_types_by_name['PigJob'] = _PIGJOB -DESCRIPTOR.message_types_by_name['JobPlacement'] = _JOBPLACEMENT -DESCRIPTOR.message_types_by_name['JobStatus'] = _JOBSTATUS -DESCRIPTOR.message_types_by_name['JobReference'] = _JOBREFERENCE -DESCRIPTOR.message_types_by_name['YarnApplication'] = _YARNAPPLICATION -DESCRIPTOR.message_types_by_name['Job'] = _JOB -DESCRIPTOR.message_types_by_name['JobScheduling'] = _JOBSCHEDULING -DESCRIPTOR.message_types_by_name['SubmitJobRequest'] = _SUBMITJOBREQUEST -DESCRIPTOR.message_types_by_name['GetJobRequest'] = _GETJOBREQUEST -DESCRIPTOR.message_types_by_name['ListJobsRequest'] = _LISTJOBSREQUEST -DESCRIPTOR.message_types_by_name['UpdateJobRequest'] = _UPDATEJOBREQUEST -DESCRIPTOR.message_types_by_name['ListJobsResponse'] = _LISTJOBSRESPONSE -DESCRIPTOR.message_types_by_name['CancelJobRequest'] = _CANCELJOBREQUEST -DESCRIPTOR.message_types_by_name['DeleteJobRequest'] = _DELETEJOBREQUEST +_UPDATEJOBREQUEST.fields_by_name["job"].message_type = _JOB +_UPDATEJOBREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTJOBSRESPONSE.fields_by_name["jobs"].message_type = _JOB +DESCRIPTOR.message_types_by_name["LoggingConfig"] = _LOGGINGCONFIG +DESCRIPTOR.message_types_by_name["HadoopJob"] = _HADOOPJOB +DESCRIPTOR.message_types_by_name["SparkJob"] = _SPARKJOB +DESCRIPTOR.message_types_by_name["PySparkJob"] = _PYSPARKJOB +DESCRIPTOR.message_types_by_name["QueryList"] = _QUERYLIST +DESCRIPTOR.message_types_by_name["HiveJob"] = _HIVEJOB +DESCRIPTOR.message_types_by_name["SparkSqlJob"] = _SPARKSQLJOB +DESCRIPTOR.message_types_by_name["PigJob"] = _PIGJOB +DESCRIPTOR.message_types_by_name["JobPlacement"] = _JOBPLACEMENT +DESCRIPTOR.message_types_by_name["JobStatus"] = _JOBSTATUS +DESCRIPTOR.message_types_by_name["JobReference"] = _JOBREFERENCE +DESCRIPTOR.message_types_by_name["YarnApplication"] = _YARNAPPLICATION +DESCRIPTOR.message_types_by_name["Job"] = _JOB +DESCRIPTOR.message_types_by_name["JobScheduling"] = _JOBSCHEDULING +DESCRIPTOR.message_types_by_name["SubmitJobRequest"] = _SUBMITJOBREQUEST +DESCRIPTOR.message_types_by_name["GetJobRequest"] = _GETJOBREQUEST +DESCRIPTOR.message_types_by_name["ListJobsRequest"] = _LISTJOBSREQUEST +DESCRIPTOR.message_types_by_name["UpdateJobRequest"] = _UPDATEJOBREQUEST +DESCRIPTOR.message_types_by_name["ListJobsResponse"] = _LISTJOBSRESPONSE +DESCRIPTOR.message_types_by_name["CancelJobRequest"] = _CANCELJOBREQUEST +DESCRIPTOR.message_types_by_name["DeleteJobRequest"] = _DELETEJOBREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -LoggingConfig = _reflection.GeneratedProtocolMessageType('LoggingConfig', (_message.Message,), dict( - - DriverLogLevelsEntry = _reflection.GeneratedProtocolMessageType('DriverLogLevelsEntry', (_message.Message,), dict( - DESCRIPTOR = _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry) - )) - , - DESCRIPTOR = _LOGGINGCONFIG, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """The runtime logging config of the job. +LoggingConfig = _reflection.GeneratedProtocolMessageType( + "LoggingConfig", + (_message.Message,), + dict( + DriverLogLevelsEntry=_reflection.GeneratedProtocolMessageType( + "DriverLogLevelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry) + ), + ), + DESCRIPTOR=_LOGGINGCONFIG, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""The runtime logging config of the job. Attributes: @@ -2035,23 +3335,28 @@ "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LoggingConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LoggingConfig) + ), +) _sym_db.RegisterMessage(LoggingConfig) _sym_db.RegisterMessage(LoggingConfig.DriverLogLevelsEntry) -HadoopJob = _reflection.GeneratedProtocolMessageType('HadoopJob', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _HADOOPJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry) - )) - , - DESCRIPTOR = _HADOOPJOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache Hadoop +HadoopJob = _reflection.GeneratedProtocolMessageType( + "HadoopJob", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HADOOPJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HadoopJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_HADOOPJOB, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Hadoop MapReduce `__ jobs on `Apache Hadoop YARN `__. @@ -2099,23 +3404,28 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HadoopJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HadoopJob) + ), +) _sym_db.RegisterMessage(HadoopJob) _sym_db.RegisterMessage(HadoopJob.PropertiesEntry) -SparkJob = _reflection.GeneratedProtocolMessageType('SparkJob', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _SPARKJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry) - )) - , - DESCRIPTOR = _SPARKJOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +SparkJob = _reflection.GeneratedProtocolMessageType( + "SparkJob", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPARKJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_SPARKJOB, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Spark `__ applications on YARN. @@ -2158,23 +3468,28 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkJob) + ), +) _sym_db.RegisterMessage(SparkJob) _sym_db.RegisterMessage(SparkJob.PropertiesEntry) -PySparkJob = _reflection.GeneratedProtocolMessageType('PySparkJob', (_message.Message,), dict( - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _PYSPARKJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry) - )) - , - DESCRIPTOR = _PYSPARKJOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +PySparkJob = _reflection.GeneratedProtocolMessageType( + "PySparkJob", + (_message.Message,), + dict( + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PYSPARKJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PySparkJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_PYSPARKJOB, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache PySpark `__ applications on YARN. @@ -2210,16 +3525,19 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PySparkJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PySparkJob) + ), +) _sym_db.RegisterMessage(PySparkJob) _sym_db.RegisterMessage(PySparkJob.PropertiesEntry) -QueryList = _reflection.GeneratedProtocolMessageType('QueryList', (_message.Message,), dict( - DESCRIPTOR = _QUERYLIST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A list of queries to run on a cluster. +QueryList = _reflection.GeneratedProtocolMessageType( + "QueryList", + (_message.Message,), + dict( + DESCRIPTOR=_QUERYLIST, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A list of queries to run on a cluster. Attributes: @@ -2232,29 +3550,36 @@ { "queries": [ "query1", "query2", "query3;query4", ] } } """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.QueryList) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.QueryList) + ), +) _sym_db.RegisterMessage(QueryList) -HiveJob = _reflection.GeneratedProtocolMessageType('HiveJob', (_message.Message,), dict( - - ScriptVariablesEntry = _reflection.GeneratedProtocolMessageType('ScriptVariablesEntry', (_message.Message,), dict( - DESCRIPTOR = _HIVEJOB_SCRIPTVARIABLESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry) - )) - , - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _HIVEJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry) - )) - , - DESCRIPTOR = _HIVEJOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +HiveJob = _reflection.GeneratedProtocolMessageType( + "HiveJob", + (_message.Message,), + dict( + ScriptVariablesEntry=_reflection.GeneratedProtocolMessageType( + "ScriptVariablesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HIVEJOB_SCRIPTVARIABLESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HiveJob.ScriptVariablesEntry) + ), + ), + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HIVEJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HiveJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_HIVEJOB, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Hive `__ queries on YARN. @@ -2284,31 +3609,38 @@ the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HiveJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HiveJob) + ), +) _sym_db.RegisterMessage(HiveJob) _sym_db.RegisterMessage(HiveJob.ScriptVariablesEntry) _sym_db.RegisterMessage(HiveJob.PropertiesEntry) -SparkSqlJob = _reflection.GeneratedProtocolMessageType('SparkSqlJob', (_message.Message,), dict( - - ScriptVariablesEntry = _reflection.GeneratedProtocolMessageType('ScriptVariablesEntry', (_message.Message,), dict( - DESCRIPTOR = _SPARKSQLJOB_SCRIPTVARIABLESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry) - )) - , - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _SPARKSQLJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry) - )) - , - DESCRIPTOR = _SPARKSQLJOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache Spark +SparkSqlJob = _reflection.GeneratedProtocolMessageType( + "SparkSqlJob", + (_message.Message,), + dict( + ScriptVariablesEntry=_reflection.GeneratedProtocolMessageType( + "ScriptVariablesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPARKSQLJOB_SCRIPTVARIABLESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkSqlJob.ScriptVariablesEntry) + ), + ), + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPARKSQLJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkSqlJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_SPARKSQLJOB, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Spark SQL `__ queries. @@ -2333,31 +3665,38 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkSqlJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkSqlJob) + ), +) _sym_db.RegisterMessage(SparkSqlJob) _sym_db.RegisterMessage(SparkSqlJob.ScriptVariablesEntry) _sym_db.RegisterMessage(SparkSqlJob.PropertiesEntry) -PigJob = _reflection.GeneratedProtocolMessageType('PigJob', (_message.Message,), dict( - - ScriptVariablesEntry = _reflection.GeneratedProtocolMessageType('ScriptVariablesEntry', (_message.Message,), dict( - DESCRIPTOR = _PIGJOB_SCRIPTVARIABLESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry) - )) - , - - PropertiesEntry = _reflection.GeneratedProtocolMessageType('PropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _PIGJOB_PROPERTIESENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry) - )) - , - DESCRIPTOR = _PIGJOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job for running `Apache +PigJob = _reflection.GeneratedProtocolMessageType( + "PigJob", + (_message.Message,), + dict( + ScriptVariablesEntry=_reflection.GeneratedProtocolMessageType( + "ScriptVariablesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PIGJOB_SCRIPTVARIABLESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PigJob.ScriptVariablesEntry) + ), + ), + PropertiesEntry=_reflection.GeneratedProtocolMessageType( + "PropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PIGJOB_PROPERTIESENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PigJob.PropertiesEntry) + ), + ), + DESCRIPTOR=_PIGJOB, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job for running `Apache Pig `__ queries on YARN. @@ -2389,17 +3728,20 @@ logging_config: Optional. The runtime log config for job execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PigJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PigJob) + ), +) _sym_db.RegisterMessage(PigJob) _sym_db.RegisterMessage(PigJob.ScriptVariablesEntry) _sym_db.RegisterMessage(PigJob.PropertiesEntry) -JobPlacement = _reflection.GeneratedProtocolMessageType('JobPlacement', (_message.Message,), dict( - DESCRIPTOR = _JOBPLACEMENT, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """Cloud Dataproc job config. +JobPlacement = _reflection.GeneratedProtocolMessageType( + "JobPlacement", + (_message.Message,), + dict( + DESCRIPTOR=_JOBPLACEMENT, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""Cloud Dataproc job config. Attributes: @@ -2410,15 +3752,18 @@ Output only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobPlacement) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobPlacement) + ), +) _sym_db.RegisterMessage(JobPlacement) -JobStatus = _reflection.GeneratedProtocolMessageType('JobStatus', (_message.Message,), dict( - DESCRIPTOR = _JOBSTATUS, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """Cloud Dataproc job status. +JobStatus = _reflection.GeneratedProtocolMessageType( + "JobStatus", + (_message.Message,), + dict( + DESCRIPTOR=_JOBSTATUS, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""Cloud Dataproc job status. Attributes: @@ -2433,15 +3778,18 @@ Output only. Additional state information, which includes status reported by the agent. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobStatus) + ), +) _sym_db.RegisterMessage(JobStatus) -JobReference = _reflection.GeneratedProtocolMessageType('JobReference', (_message.Message,), dict( - DESCRIPTOR = _JOBREFERENCE, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """Encapsulates the full scoping used to reference a job. +JobReference = _reflection.GeneratedProtocolMessageType( + "JobReference", + (_message.Message,), + dict( + DESCRIPTOR=_JOBREFERENCE, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""Encapsulates the full scoping used to reference a job. Attributes: @@ -2456,15 +3804,18 @@ (a-z, A-Z), numbers (0-9), underscores (\_), or hyphens (-). The maximum length is 100 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobReference) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobReference) + ), +) _sym_db.RegisterMessage(JobReference) -YarnApplication = _reflection.GeneratedProtocolMessageType('YarnApplication', (_message.Message,), dict( - DESCRIPTOR = _YARNAPPLICATION, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A YARN application created by a job. Application information is a subset +YarnApplication = _reflection.GeneratedProtocolMessageType( + "YarnApplication", + (_message.Message,), + dict( + DESCRIPTOR=_YARNAPPLICATION, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. **Beta Feature**: This report is available for testing purposes only. It @@ -2485,22 +3836,27 @@ specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.YarnApplication) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.YarnApplication) + ), +) _sym_db.RegisterMessage(YarnApplication) -Job = _reflection.GeneratedProtocolMessageType('Job', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _JOB_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Job.LabelsEntry) - )) - , - DESCRIPTOR = _JOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A Cloud Dataproc job resource. +Job = _reflection.GeneratedProtocolMessageType( + "Job", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_JOB_LABELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Job.LabelsEntry) + ), + ), + DESCRIPTOR=_JOB, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A Cloud Dataproc job resource. Attributes: @@ -2564,16 +3920,19 @@ project over time. This is in contrast to a user-settable reference.job\_id that may be reused over time. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Job) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Job) + ), +) _sym_db.RegisterMessage(Job) _sym_db.RegisterMessage(Job.LabelsEntry) -JobScheduling = _reflection.GeneratedProtocolMessageType('JobScheduling', (_message.Message,), dict( - DESCRIPTOR = _JOBSCHEDULING, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """Job scheduling options. +JobScheduling = _reflection.GeneratedProtocolMessageType( + "JobScheduling", + (_message.Message,), + dict( + DESCRIPTOR=_JOBSCHEDULING, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""Job scheduling options. Attributes: @@ -2584,15 +3943,18 @@ thrashing if driver exits with non-zero code 4 times within 10 minute window. Maximum value is 10. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobScheduling) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobScheduling) + ), +) _sym_db.RegisterMessage(JobScheduling) -SubmitJobRequest = _reflection.GeneratedProtocolMessageType('SubmitJobRequest', (_message.Message,), dict( - DESCRIPTOR = _SUBMITJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A request to submit a job. +SubmitJobRequest = _reflection.GeneratedProtocolMessageType( + "SubmitJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SUBMITJOBREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A request to submit a job. Attributes: @@ -2616,15 +3978,18 @@ A-Z), numbers (0-9), underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SubmitJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SubmitJobRequest) + ), +) _sym_db.RegisterMessage(SubmitJobRequest) -GetJobRequest = _reflection.GeneratedProtocolMessageType('GetJobRequest', (_message.Message,), dict( - DESCRIPTOR = _GETJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A request to get the resource representation for a job in a project. +GetJobRequest = _reflection.GeneratedProtocolMessageType( + "GetJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETJOBREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A request to get the resource representation for a job in a project. Attributes: @@ -2637,15 +4002,18 @@ job_id: Required. The job ID. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetJobRequest) + ), +) _sym_db.RegisterMessage(GetJobRequest) -ListJobsRequest = _reflection.GeneratedProtocolMessageType('ListJobsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A request to list jobs in a project. +ListJobsRequest = _reflection.GeneratedProtocolMessageType( + "ListJobsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A request to list jobs in a project. Attributes: @@ -2679,15 +4047,18 @@ status.state = ACTIVE AND labels.env = staging AND labels.starred = \* """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListJobsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListJobsRequest) + ), +) _sym_db.RegisterMessage(ListJobsRequest) -UpdateJobRequest = _reflection.GeneratedProtocolMessageType('UpdateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A request to update a job. +UpdateJobRequest = _reflection.GeneratedProtocolMessageType( + "UpdateJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEJOBREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A request to update a job. Attributes: @@ -2708,15 +4079,18 @@ ``PATCH`` request body would specify the new value. Note: Currently, labels is the only field that can be updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateJobRequest) + ), +) _sym_db.RegisterMessage(UpdateJobRequest) -ListJobsResponse = _reflection.GeneratedProtocolMessageType('ListJobsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSRESPONSE, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A list of jobs in a project. +ListJobsResponse = _reflection.GeneratedProtocolMessageType( + "ListJobsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSRESPONSE, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A list of jobs in a project. Attributes: @@ -2728,15 +4102,18 @@ this value as the ``page_token`` in a subsequent ListJobsRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListJobsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListJobsResponse) + ), +) _sym_db.RegisterMessage(ListJobsResponse) -CancelJobRequest = _reflection.GeneratedProtocolMessageType('CancelJobRequest', (_message.Message,), dict( - DESCRIPTOR = _CANCELJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A request to cancel a job. +CancelJobRequest = _reflection.GeneratedProtocolMessageType( + "CancelJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CANCELJOBREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A request to cancel a job. Attributes: @@ -2749,15 +4126,18 @@ job_id: Required. The job ID. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CancelJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CancelJobRequest) + ), +) _sym_db.RegisterMessage(CancelJobRequest) -DeleteJobRequest = _reflection.GeneratedProtocolMessageType('DeleteJobRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEJOBREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.jobs_pb2' - , - __doc__ = """A request to delete a job. +DeleteJobRequest = _reflection.GeneratedProtocolMessageType( + "DeleteJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEJOBREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.jobs_pb2", + __doc__="""A request to delete a job. Attributes: @@ -2770,102 +4150,161 @@ job_id: Required. The job ID. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteJobRequest) + ), +) _sym_db.RegisterMessage(DeleteJobRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.dataproc.v1beta2B\tJobsProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.dataproc.v1beta2B\tJobsProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc" + ), +) _LOGGINGCONFIG_DRIVERLOGLEVELSENTRY.has_options = True -_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_LOGGINGCONFIG_DRIVERLOGLEVELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _HADOOPJOB_PROPERTIESENTRY.has_options = True -_HADOOPJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HADOOPJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SPARKJOB_PROPERTIESENTRY.has_options = True -_SPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PYSPARKJOB_PROPERTIESENTRY.has_options = True -_PYSPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PYSPARKJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _HIVEJOB_SCRIPTVARIABLESENTRY.has_options = True -_HIVEJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HIVEJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _HIVEJOB_PROPERTIESENTRY.has_options = True -_HIVEJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HIVEJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SPARKSQLJOB_SCRIPTVARIABLESENTRY.has_options = True -_SPARKSQLJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPARKSQLJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SPARKSQLJOB_PROPERTIESENTRY.has_options = True -_SPARKSQLJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPARKSQLJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PIGJOB_SCRIPTVARIABLESENTRY.has_options = True -_PIGJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PIGJOB_SCRIPTVARIABLESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PIGJOB_PROPERTIESENTRY.has_options = True -_PIGJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PIGJOB_PROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _JOB_LABELSENTRY.has_options = True -_JOB_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_JOB_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _JOBCONTROLLER = _descriptor.ServiceDescriptor( - name='JobController', - full_name='google.cloud.dataproc.v1beta2.JobController', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=5849, - serialized_end=6884, - methods=[ - _descriptor.MethodDescriptor( - name='SubmitJob', - full_name='google.cloud.dataproc.v1beta2.JobController.SubmitJob', + name="JobController", + full_name="google.cloud.dataproc.v1beta2.JobController", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_SUBMITJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\";/v1beta2/projects/{project_id}/regions/{region}/jobs:submit:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetJob', - full_name='google.cloud.dataproc.v1beta2.JobController.GetJob', - index=1, - containing_service=None, - input_type=_GETJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?\022=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}')), - ), - _descriptor.MethodDescriptor( - name='ListJobs', - full_name='google.cloud.dataproc.v1beta2.JobController.ListJobs', - index=2, - containing_service=None, - input_type=_LISTJOBSREQUEST, - output_type=_LISTJOBSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\0224/v1beta2/projects/{project_id}/regions/{region}/jobs')), - ), - _descriptor.MethodDescriptor( - name='UpdateJob', - full_name='google.cloud.dataproc.v1beta2.JobController.UpdateJob', - index=3, - containing_service=None, - input_type=_UPDATEJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002D2=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:\003job')), - ), - _descriptor.MethodDescriptor( - name='CancelJob', - full_name='google.cloud.dataproc.v1beta2.JobController.CancelJob', - index=4, - containing_service=None, - input_type=_CANCELJOBREQUEST, - output_type=_JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002I\"D/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeleteJob', - full_name='google.cloud.dataproc.v1beta2.JobController.DeleteJob', - index=5, - containing_service=None, - input_type=_DELETEJOBREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?*=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}')), - ), -]) + options=None, + serialized_start=5849, + serialized_end=6884, + methods=[ + _descriptor.MethodDescriptor( + name="SubmitJob", + full_name="google.cloud.dataproc.v1beta2.JobController.SubmitJob", + index=0, + containing_service=None, + input_type=_SUBMITJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002@";/v1beta2/projects/{project_id}/regions/{region}/jobs:submit:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetJob", + full_name="google.cloud.dataproc.v1beta2.JobController.GetJob", + index=1, + containing_service=None, + input_type=_GETJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002?\022=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListJobs", + full_name="google.cloud.dataproc.v1beta2.JobController.ListJobs", + index=2, + containing_service=None, + input_type=_LISTJOBSREQUEST, + output_type=_LISTJOBSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0026\0224/v1beta2/projects/{project_id}/regions/{region}/jobs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateJob", + full_name="google.cloud.dataproc.v1beta2.JobController.UpdateJob", + index=3, + containing_service=None, + input_type=_UPDATEJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002D2=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:\003job" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CancelJob", + full_name="google.cloud.dataproc.v1beta2.JobController.CancelJob", + index=4, + containing_service=None, + input_type=_CANCELJOBREQUEST, + output_type=_JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002I"D/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteJob", + full_name="google.cloud.dataproc.v1beta2.JobController.DeleteJob", + index=5, + containing_service=None, + input_type=_DELETEJOBREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002?*=/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_JOBCONTROLLER) -DESCRIPTOR.services_by_name['JobController'] = _JOBCONTROLLER +DESCRIPTOR.services_by_name["JobController"] = _JOBCONTROLLER # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2_grpc.py index 63114fd03742f..4645938099012 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2_grpc.py @@ -1,136 +1,139 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.dataproc_v1beta2.proto import jobs_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2 +from google.cloud.dataproc_v1beta2.proto import ( + jobs_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class JobControllerStub(object): - """The JobController provides methods to manage jobs. + """The JobController provides methods to manage jobs. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.SubmitJob = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.JobController/SubmitJob', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.SubmitJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, + self.SubmitJob = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.JobController/SubmitJob", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.SubmitJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.GetJob = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.JobController/GetJob', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.GetJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, + self.GetJob = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.JobController/GetJob", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.GetJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.ListJobs = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.JobController/ListJobs', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsResponse.FromString, + self.ListJobs = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.JobController/ListJobs", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsResponse.FromString, ) - self.UpdateJob = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.JobController/UpdateJob', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.UpdateJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, + self.UpdateJob = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.JobController/UpdateJob", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.UpdateJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.CancelJob = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.JobController/CancelJob', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.CancelJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, + self.CancelJob = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.JobController/CancelJob", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.CancelJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.FromString, ) - self.DeleteJob = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.JobController/DeleteJob', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.DeleteJobRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteJob = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.JobController/DeleteJob", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.DeleteJobRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class JobControllerServicer(object): - """The JobController provides methods to manage jobs. + """The JobController provides methods to manage jobs. """ - def SubmitJob(self, request, context): - """Submits a job to a cluster. + def SubmitJob(self, request, context): + """Submits a job to a cluster. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetJob(self, request, context): - """Gets the resource representation for a job in a project. + def GetJob(self, request, context): + """Gets the resource representation for a job in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListJobs(self, request, context): - """Lists regions/{region}/jobs in a project. + def ListJobs(self, request, context): + """Lists regions/{region}/jobs in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateJob(self, request, context): - """Updates a job in a project. + def UpdateJob(self, request, context): + """Updates a job in a project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CancelJob(self, request, context): - """Starts a job cancellation request. To access the job resource + def CancelJob(self, request, context): + """Starts a job cancellation request. To access the job resource after cancellation, call [regions/{region}/jobs.list](/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) or [regions/{region}/jobs.get](/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteJob(self, request, context): - """Deletes the job from the project. If the job is active, the delete fails, + def DeleteJob(self, request, context): + """Deletes the job from the project. If the job is active, the delete fails, and the response returns `FAILED_PRECONDITION`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_JobControllerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'SubmitJob': grpc.unary_unary_rpc_method_handler( - servicer.SubmitJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.SubmitJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'GetJob': grpc.unary_unary_rpc_method_handler( - servicer.GetJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.GetJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'ListJobs': grpc.unary_unary_rpc_method_handler( - servicer.ListJobs, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsResponse.SerializeToString, - ), - 'UpdateJob': grpc.unary_unary_rpc_method_handler( - servicer.UpdateJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.UpdateJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'CancelJob': grpc.unary_unary_rpc_method_handler( - servicer.CancelJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.CancelJobRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, - ), - 'DeleteJob': grpc.unary_unary_rpc_method_handler( - servicer.DeleteJob, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.DeleteJobRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.dataproc.v1beta2.JobController', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "SubmitJob": grpc.unary_unary_rpc_method_handler( + servicer.SubmitJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.SubmitJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "GetJob": grpc.unary_unary_rpc_method_handler( + servicer.GetJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.GetJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "ListJobs": grpc.unary_unary_rpc_method_handler( + servicer.ListJobs, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.ListJobsResponse.SerializeToString, + ), + "UpdateJob": grpc.unary_unary_rpc_method_handler( + servicer.UpdateJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.UpdateJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "CancelJob": grpc.unary_unary_rpc_method_handler( + servicer.CancelJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.CancelJobRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.Job.SerializeToString, + ), + "DeleteJob": grpc.unary_unary_rpc_method_handler( + servicer.DeleteJob, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.DeleteJobRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.dataproc.v1beta2.JobController", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2.py b/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2.py index a9be81c331953..5890a6c0f6ddd 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/dataproc_v1beta2/proto/operations.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,231 +20,387 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1beta2/proto/operations.proto', - package='google.cloud.dataproc.v1beta2', - syntax='proto3', - serialized_pb=_b('\n4google/cloud/dataproc_v1beta2/proto/operations.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfa\x01\n\x16\x43lusterOperationStatus\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State\x12\x13\n\x0binner_state\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t\x12\x34\n\x10state_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\"\x9f\x03\n\x18\x43lusterOperationMetadata\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x08 \x01(\t\x12\x45\n\x06status\x18\t \x01(\x0b\x32\x35.google.cloud.dataproc.v1beta2.ClusterOperationStatus\x12M\n\x0estatus_history\x18\n \x03(\x0b\x32\x35.google.cloud.dataproc.v1beta2.ClusterOperationStatus\x12\x16\n\x0eoperation_type\x18\x0b \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0c \x01(\t\x12S\n\x06labels\x18\r \x03(\x0b\x32\x43.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry\x12\x10\n\x08warnings\x18\x0e \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42}\n!com.google.cloud.dataproc.v1beta2B\x0fOperationsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1beta2/proto/operations.proto", + package="google.cloud.dataproc.v1beta2", + syntax="proto3", + serialized_pb=_b( + '\n4google/cloud/dataproc_v1beta2/proto/operations.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xfa\x01\n\x16\x43lusterOperationStatus\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State\x12\x13\n\x0binner_state\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t\x12\x34\n\x10state_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03"\x9f\x03\n\x18\x43lusterOperationMetadata\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12\x14\n\x0c\x63luster_uuid\x18\x08 \x01(\t\x12\x45\n\x06status\x18\t \x01(\x0b\x32\x35.google.cloud.dataproc.v1beta2.ClusterOperationStatus\x12M\n\x0estatus_history\x18\n \x03(\x0b\x32\x35.google.cloud.dataproc.v1beta2.ClusterOperationStatus\x12\x16\n\x0eoperation_type\x18\x0b \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0c \x01(\t\x12S\n\x06labels\x18\r \x03(\x0b\x32\x43.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry\x12\x10\n\x08warnings\x18\x0e \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42}\n!com.google.cloud.dataproc.v1beta2B\x0fOperationsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _CLUSTEROPERATIONSTATUS_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1beta2.ClusterOperationStatus.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=345, - serialized_end=401, + name="State", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationStatus.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=345, + serialized_end=401, ) _sym_db.RegisterEnumDescriptor(_CLUSTEROPERATIONSTATUS_STATE) _CLUSTEROPERATIONSTATUS = _descriptor.Descriptor( - name='ClusterOperationStatus', - full_name='google.cloud.dataproc.v1beta2.ClusterOperationStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1beta2.ClusterOperationStatus.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inner_state', full_name='google.cloud.dataproc.v1beta2.ClusterOperationStatus.inner_state', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='details', full_name='google.cloud.dataproc.v1beta2.ClusterOperationStatus.details', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state_start_time', full_name='google.cloud.dataproc.v1beta2.ClusterOperationStatus.state_start_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CLUSTEROPERATIONSTATUS_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=151, - serialized_end=401, + name="ClusterOperationStatus", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationStatus.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inner_state", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationStatus.inner_state", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="details", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationStatus.details", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state_start_time", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationStatus.state_start_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_CLUSTEROPERATIONSTATUS_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=151, + serialized_end=401, ) _CLUSTEROPERATIONMETADATA_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=774, - serialized_end=819, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=774, + serialized_end=819, ) _CLUSTEROPERATIONMETADATA = _descriptor.Descriptor( - name='ClusterOperationMetadata', - full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.cluster_name', index=0, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.cluster_uuid', index=1, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.status', index=2, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_history', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.status_history', index=3, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation_type', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.operation_type', index=4, - number=11, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.description', index=5, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.labels', index=6, - number=13, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='warnings', full_name='google.cloud.dataproc.v1beta2.ClusterOperationMetadata.warnings', index=7, - number=14, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLUSTEROPERATIONMETADATA_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=404, - serialized_end=819, + name="ClusterOperationMetadata", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.cluster_name", + index=0, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.cluster_uuid", + index=1, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.status", + index=2, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_history", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.status_history", + index=3, + number=10, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="operation_type", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.operation_type", + index=4, + number=11, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.description", + index=5, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.labels", + index=6, + number=13, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="warnings", + full_name="google.cloud.dataproc.v1beta2.ClusterOperationMetadata.warnings", + index=7, + number=14, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLUSTEROPERATIONMETADATA_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=404, + serialized_end=819, ) -_CLUSTEROPERATIONSTATUS.fields_by_name['state'].enum_type = _CLUSTEROPERATIONSTATUS_STATE -_CLUSTEROPERATIONSTATUS.fields_by_name['state_start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CLUSTEROPERATIONSTATUS.fields_by_name[ + "state" +].enum_type = _CLUSTEROPERATIONSTATUS_STATE +_CLUSTEROPERATIONSTATUS.fields_by_name[ + "state_start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _CLUSTEROPERATIONSTATUS_STATE.containing_type = _CLUSTEROPERATIONSTATUS _CLUSTEROPERATIONMETADATA_LABELSENTRY.containing_type = _CLUSTEROPERATIONMETADATA -_CLUSTEROPERATIONMETADATA.fields_by_name['status'].message_type = _CLUSTEROPERATIONSTATUS -_CLUSTEROPERATIONMETADATA.fields_by_name['status_history'].message_type = _CLUSTEROPERATIONSTATUS -_CLUSTEROPERATIONMETADATA.fields_by_name['labels'].message_type = _CLUSTEROPERATIONMETADATA_LABELSENTRY -DESCRIPTOR.message_types_by_name['ClusterOperationStatus'] = _CLUSTEROPERATIONSTATUS -DESCRIPTOR.message_types_by_name['ClusterOperationMetadata'] = _CLUSTEROPERATIONMETADATA +_CLUSTEROPERATIONMETADATA.fields_by_name[ + "status" +].message_type = _CLUSTEROPERATIONSTATUS +_CLUSTEROPERATIONMETADATA.fields_by_name[ + "status_history" +].message_type = _CLUSTEROPERATIONSTATUS +_CLUSTEROPERATIONMETADATA.fields_by_name[ + "labels" +].message_type = _CLUSTEROPERATIONMETADATA_LABELSENTRY +DESCRIPTOR.message_types_by_name["ClusterOperationStatus"] = _CLUSTEROPERATIONSTATUS +DESCRIPTOR.message_types_by_name["ClusterOperationMetadata"] = _CLUSTEROPERATIONMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ClusterOperationStatus = _reflection.GeneratedProtocolMessageType('ClusterOperationStatus', (_message.Message,), dict( - DESCRIPTOR = _CLUSTEROPERATIONSTATUS, - __module__ = 'google.cloud.dataproc_v1beta2.proto.operations_pb2' - , - __doc__ = """The status of the operation. +ClusterOperationStatus = _reflection.GeneratedProtocolMessageType( + "ClusterOperationStatus", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTEROPERATIONSTATUS, + __module__="google.cloud.dataproc_v1beta2.proto.operations_pb2", + __doc__="""The status of the operation. Attributes: @@ -257,22 +415,27 @@ state_start_time: Output only. The time this state was entered. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationStatus) + ), +) _sym_db.RegisterMessage(ClusterOperationStatus) -ClusterOperationMetadata = _reflection.GeneratedProtocolMessageType('ClusterOperationMetadata', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTEROPERATIONMETADATA_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.operations_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry) - )) - , - DESCRIPTOR = _CLUSTEROPERATIONMETADATA, - __module__ = 'google.cloud.dataproc_v1beta2.proto.operations_pb2' - , - __doc__ = """Metadata describing the operation. +ClusterOperationMetadata = _reflection.GeneratedProtocolMessageType( + "ClusterOperationMetadata", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTEROPERATIONMETADATA_LABELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.operations_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry) + ), + ), + DESCRIPTOR=_CLUSTEROPERATIONMETADATA, + __module__="google.cloud.dataproc_v1beta2.proto.operations_pb2", + __doc__="""Metadata describing the operation. Attributes: @@ -293,14 +456,22 @@ warnings: Output only. Errors encountered during operation execution. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationMetadata) + ), +) _sym_db.RegisterMessage(ClusterOperationMetadata) _sym_db.RegisterMessage(ClusterOperationMetadata.LabelsEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.dataproc.v1beta2B\017OperationsProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.dataproc.v1beta2B\017OperationsProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc" + ), +) _CLUSTEROPERATIONMETADATA_LABELSENTRY.has_options = True -_CLUSTEROPERATIONMETADATA_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTEROPERATIONMETADATA_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/operations_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2.py b/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2.py index 6dad7986400f3..c98f5fe6f2b60 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/dataproc_v1beta2/proto/shared.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,18 +19,24 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1beta2/proto/shared.proto', - package='google.cloud.dataproc.v1beta2', - syntax='proto3', - serialized_pb=_b('\n0google/cloud/dataproc_v1beta2/proto/shared.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.protoBy\n!com.google.cloud.dataproc.v1beta2B\x0bSharedProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1beta2/proto/shared.proto", + package="google.cloud.dataproc.v1beta2", + syntax="proto3", + serialized_pb=_b( + "\n0google/cloud/dataproc_v1beta2/proto/shared.proto\x12\x1dgoogle.cloud.dataproc.v1beta2\x1a\x1cgoogle/api/annotations.protoBy\n!com.google.cloud.dataproc.v1beta2B\x0bSharedProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3" + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _sym_db.RegisterFileDescriptor(DESCRIPTOR) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.dataproc.v1beta2B\013SharedProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.dataproc.v1beta2B\013SharedProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/shared_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2.py b/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2.py index 87b79e0e0dd52..f0112bdc3823e 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2.py @@ -2,1474 +2,2479 @@ # source: google/cloud/dataproc_v1beta2/proto/workflow_templates.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.dataproc_v1beta2.proto import clusters_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2 -from google.cloud.dataproc_v1beta2.proto import jobs_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.dataproc_v1beta2.proto import ( + clusters_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2, +) +from google.cloud.dataproc_v1beta2.proto import ( + jobs_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/dataproc_v1beta2/proto/workflow_templates.proto', - package='google.cloud.dataproc.v1beta2', - syntax='proto3', - serialized_pb=_b('\n\n\nhadoop_job\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.HadoopJobH\x00\x12<\n\tspark_job\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1beta2.SparkJobH\x00\x12@\n\x0bpyspark_job\x18\x04 \x01(\x0b\x32).google.cloud.dataproc.v1beta2.PySparkJobH\x00\x12:\n\x08hive_job\x18\x05 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.HiveJobH\x00\x12\x38\n\x07pig_job\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1beta2.PigJobH\x00\x12\x43\n\rspark_sql_job\x18\x07 \x01(\x0b\x32*.google.cloud.dataproc.v1beta2.SparkSqlJobH\x00\x12\x45\n\x06labels\x18\x08 \x03(\x0b\x32\x35.google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry\x12@\n\nscheduling\x18\t \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.JobScheduling\x12\x1d\n\x15prerequisite_step_ids\x18\n \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08job_type\"\x8e\x01\n\x11TemplateParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x46\n\nvalidation\x18\x04 \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.ParameterValidation\"\xab\x01\n\x13ParameterValidation\x12?\n\x05regex\x18\x01 \x01(\x0b\x32..google.cloud.dataproc.v1beta2.RegexValidationH\x00\x12@\n\x06values\x18\x02 \x01(\x0b\x32..google.cloud.dataproc.v1beta2.ValueValidationH\x00\x42\x11\n\x0fvalidation_type\"\"\n\x0fRegexValidation\x12\x0f\n\x07regexes\x18\x01 \x03(\t\"!\n\x0fValueValidation\x12\x0e\n\x06values\x18\x01 \x03(\t\"\x96\x05\n\x10WorkflowMetadata\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12G\n\x0e\x63reate_cluster\x18\x03 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.ClusterOperation\x12;\n\x05graph\x18\x04 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.WorkflowGraph\x12G\n\x0e\x64\x65lete_cluster\x18\x05 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.ClusterOperation\x12\x44\n\x05state\x18\x06 \x01(\x0e\x32\x35.google.cloud.dataproc.v1beta2.WorkflowMetadata.State\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12S\n\nparameters\x18\x08 \x03(\x0b\x32?.google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x63luster_uuid\x18\x0b \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\"E\n\x10\x43lusterOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x0c\n\x04\x64one\x18\x03 \x01(\x08\"K\n\rWorkflowGraph\x12:\n\x05nodes\x18\x01 \x03(\x0b\x32+.google.cloud.dataproc.v1beta2.WorkflowNode\"\x90\x02\n\x0cWorkflowNode\x12\x0f\n\x07step_id\x18\x01 \x01(\t\x12\x1d\n\x15prerequisite_step_ids\x18\x02 \x03(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x44\n\x05state\x18\x05 \x01(\x0e\x32\x35.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState\x12\r\n\x05\x65rror\x18\x06 \x01(\t\"k\n\tNodeState\x12\x1b\n\x17NODE_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LOCKED\x10\x01\x12\x0c\n\x08RUNNABLE\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"r\n\x1d\x43reateWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate\";\n\x1aGetWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"\x8a\x02\n\"InstantiateWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x17\n\x0binstance_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x65\n\nparameters\x18\x04 \x03(\x0b\x32Q.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa6\x01\n(InstantiateInlineWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate\x12\x13\n\x0binstance_id\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"b\n\x1dUpdateWorkflowTemplateRequest\x12\x41\n\x08template\x18\x01 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate\"U\n\x1cListWorkflowTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"|\n\x1dListWorkflowTemplatesResponse\x12\x42\n\ttemplates\x18\x01 \x03(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\">\n\x1d\x44\x65leteWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x32\xdf\x0f\n\x17WorkflowTemplateService\x12\x9d\x02\n\x16\x43reateWorkflowTemplate\x12<.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest\x1a/.google.cloud.dataproc.v1beta2.WorkflowTemplate\"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01\"8/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:\x08templateZF\":/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:\x08template\x12\x81\x02\n\x13GetWorkflowTemplate\x12\x39.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest\x1a/.google.cloud.dataproc.v1beta2.WorkflowTemplate\"~\x82\xd3\xe4\x93\x02x\x12\x38/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<\x12:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}\x12\x9f\x02\n\x1bInstantiateWorkflowTemplate\x12\x41.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\x9d\x01\x82\xd3\xe4\x93\x02\x96\x01\"D/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\x01*ZK\"F/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\x01*\x12\xc5\x02\n!InstantiateInlineWorkflowTemplate\x12G.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\x82\xd3\xe4\x93\x02\xb0\x01\"L/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\x08templateZV\"J/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\x08template\x12\xaf\x02\n\x16UpdateWorkflowTemplate\x12<.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest\x1a/.google.cloud.dataproc.v1beta2.WorkflowTemplate\"\xa5\x01\x82\xd3\xe4\x93\x02\x9e\x01\x1a\x41/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}:\x08templateZO\x1a\x43/v1beta2/{template.name=projects/*/locations/*/workflowTemplates/*}:\x08template\x12\x92\x02\n\x15ListWorkflowTemplates\x12;.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest\x1a<.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse\"~\x82\xd3\xe4\x93\x02x\x12\x38/v1beta2/{parent=projects/*/regions/*}/workflowTemplatesZ<\x12:/v1beta2/{parent=projects/*/locations/*}/workflowTemplates\x12\xee\x01\n\x16\x44\x65leteWorkflowTemplate\x12<.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest\x1a\x16.google.protobuf.Empty\"~\x82\xd3\xe4\x93\x02x*8/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<*:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}B\x84\x01\n!com.google.cloud.dataproc.v1beta2B\x16WorkflowTemplatesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DESCRIPTOR,google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/dataproc_v1beta2/proto/workflow_templates.proto", + package="google.cloud.dataproc.v1beta2", + syntax="proto3", + serialized_pb=_b( + '\n\n\nhadoop_job\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1beta2.HadoopJobH\x00\x12<\n\tspark_job\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1beta2.SparkJobH\x00\x12@\n\x0bpyspark_job\x18\x04 \x01(\x0b\x32).google.cloud.dataproc.v1beta2.PySparkJobH\x00\x12:\n\x08hive_job\x18\x05 \x01(\x0b\x32&.google.cloud.dataproc.v1beta2.HiveJobH\x00\x12\x38\n\x07pig_job\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1beta2.PigJobH\x00\x12\x43\n\rspark_sql_job\x18\x07 \x01(\x0b\x32*.google.cloud.dataproc.v1beta2.SparkSqlJobH\x00\x12\x45\n\x06labels\x18\x08 \x03(\x0b\x32\x35.google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry\x12@\n\nscheduling\x18\t \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.JobScheduling\x12\x1d\n\x15prerequisite_step_ids\x18\n \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08job_type"\x8e\x01\n\x11TemplateParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x46\n\nvalidation\x18\x04 \x01(\x0b\x32\x32.google.cloud.dataproc.v1beta2.ParameterValidation"\xab\x01\n\x13ParameterValidation\x12?\n\x05regex\x18\x01 \x01(\x0b\x32..google.cloud.dataproc.v1beta2.RegexValidationH\x00\x12@\n\x06values\x18\x02 \x01(\x0b\x32..google.cloud.dataproc.v1beta2.ValueValidationH\x00\x42\x11\n\x0fvalidation_type""\n\x0fRegexValidation\x12\x0f\n\x07regexes\x18\x01 \x03(\t"!\n\x0fValueValidation\x12\x0e\n\x06values\x18\x01 \x03(\t"\x96\x05\n\x10WorkflowMetadata\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12G\n\x0e\x63reate_cluster\x18\x03 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.ClusterOperation\x12;\n\x05graph\x18\x04 \x01(\x0b\x32,.google.cloud.dataproc.v1beta2.WorkflowGraph\x12G\n\x0e\x64\x65lete_cluster\x18\x05 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.ClusterOperation\x12\x44\n\x05state\x18\x06 \x01(\x0e\x32\x35.google.cloud.dataproc.v1beta2.WorkflowMetadata.State\x12\x14\n\x0c\x63luster_name\x18\x07 \x01(\t\x12S\n\nparameters\x18\x08 \x03(\x0b\x32?.google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x63luster_uuid\x18\x0b \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03"E\n\x10\x43lusterOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x0c\n\x04\x64one\x18\x03 \x01(\x08"K\n\rWorkflowGraph\x12:\n\x05nodes\x18\x01 \x03(\x0b\x32+.google.cloud.dataproc.v1beta2.WorkflowNode"\x90\x02\n\x0cWorkflowNode\x12\x0f\n\x07step_id\x18\x01 \x01(\t\x12\x1d\n\x15prerequisite_step_ids\x18\x02 \x03(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x44\n\x05state\x18\x05 \x01(\x0e\x32\x35.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState\x12\r\n\x05\x65rror\x18\x06 \x01(\t"k\n\tNodeState\x12\x1b\n\x17NODE_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LOCKED\x10\x01\x12\x0c\n\x08RUNNABLE\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05"r\n\x1d\x43reateWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate";\n\x1aGetWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05"\x8a\x02\n"InstantiateWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x17\n\x0binstance_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x65\n\nparameters\x18\x04 \x03(\x0b\x32Q.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xa6\x01\n(InstantiateInlineWorkflowTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate\x12\x13\n\x0binstance_id\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t"b\n\x1dUpdateWorkflowTemplateRequest\x12\x41\n\x08template\x18\x01 \x01(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate"U\n\x1cListWorkflowTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"|\n\x1dListWorkflowTemplatesResponse\x12\x42\n\ttemplates\x18\x01 \x03(\x0b\x32/.google.cloud.dataproc.v1beta2.WorkflowTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t">\n\x1d\x44\x65leteWorkflowTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x32\xdf\x0f\n\x17WorkflowTemplateService\x12\x9d\x02\n\x16\x43reateWorkflowTemplate\x12<.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest\x1a/.google.cloud.dataproc.v1beta2.WorkflowTemplate"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01"8/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:\x08templateZF":/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:\x08template\x12\x81\x02\n\x13GetWorkflowTemplate\x12\x39.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest\x1a/.google.cloud.dataproc.v1beta2.WorkflowTemplate"~\x82\xd3\xe4\x93\x02x\x12\x38/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<\x12:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}\x12\x9f\x02\n\x1bInstantiateWorkflowTemplate\x12\x41.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation"\x9d\x01\x82\xd3\xe4\x93\x02\x96\x01"D/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\x01*ZK"F/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\x01*\x12\xc5\x02\n!InstantiateInlineWorkflowTemplate\x12G.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation"\xb7\x01\x82\xd3\xe4\x93\x02\xb0\x01"L/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\x08templateZV"J/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\x08template\x12\xaf\x02\n\x16UpdateWorkflowTemplate\x12<.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest\x1a/.google.cloud.dataproc.v1beta2.WorkflowTemplate"\xa5\x01\x82\xd3\xe4\x93\x02\x9e\x01\x1a\x41/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}:\x08templateZO\x1a\x43/v1beta2/{template.name=projects/*/locations/*/workflowTemplates/*}:\x08template\x12\x92\x02\n\x15ListWorkflowTemplates\x12;.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest\x1a<.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse"~\x82\xd3\xe4\x93\x02x\x12\x38/v1beta2/{parent=projects/*/regions/*}/workflowTemplatesZ<\x12:/v1beta2/{parent=projects/*/locations/*}/workflowTemplates\x12\xee\x01\n\x16\x44\x65leteWorkflowTemplate\x12<.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest\x1a\x16.google.protobuf.Empty"~\x82\xd3\xe4\x93\x02x*8/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<*:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}B\x84\x01\n!com.google.cloud.dataproc.v1beta2B\x16WorkflowTemplatesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataprocb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2.DESCRIPTOR, + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _WORKFLOWMETADATA_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3046, - serialized_end=3102, + name="State", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3046, + serialized_end=3102, ) _sym_db.RegisterEnumDescriptor(_WORKFLOWMETADATA_STATE) _WORKFLOWNODE_NODESTATE = _descriptor.EnumDescriptor( - name='NodeState', - full_name='google.cloud.dataproc.v1beta2.WorkflowNode.NodeState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='NODE_STATUS_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BLOCKED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNABLE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPLETED', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FAILED', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3418, - serialized_end=3525, + name="NodeState", + full_name="google.cloud.dataproc.v1beta2.WorkflowNode.NodeState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="NODE_STATUS_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BLOCKED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNABLE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPLETED", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FAILED", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3418, + serialized_end=3525, ) _sym_db.RegisterEnumDescriptor(_WORKFLOWNODE_NODESTATE) _WORKFLOWTEMPLATE_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=767, - serialized_end=812, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=767, + serialized_end=812, ) _WORKFLOWTEMPLATE = _descriptor.Descriptor( - name='WorkflowTemplate', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.id', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.name', index=1, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.version', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.create_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.update_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.labels', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.placement', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='jobs', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.jobs', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parameters', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplate.parameters', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_WORKFLOWTEMPLATE_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=325, - serialized_end=812, + name="WorkflowTemplate", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.id", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.name", + index=1, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.version", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.create_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.update_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.labels", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="placement", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.placement", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="jobs", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.jobs", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parameters", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplate.parameters", + index=8, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_WORKFLOWTEMPLATE_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=325, + serialized_end=812, ) _WORKFLOWTEMPLATEPLACEMENT = _descriptor.Descriptor( - name='WorkflowTemplatePlacement', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='managed_cluster', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.managed_cluster', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_selector', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.cluster_selector', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='placement', full_name='google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.placement', - index=0, containing_type=None, fields=[]), - ], - serialized_start=815, - serialized_end=1005, + name="WorkflowTemplatePlacement", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="managed_cluster", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.managed_cluster", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_selector", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.cluster_selector", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="placement", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.placement", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=815, + serialized_end=1005, ) _MANAGEDCLUSTER_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=767, - serialized_end=812, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=767, + serialized_end=812, ) _MANAGEDCLUSTER = _descriptor.Descriptor( - name='ManagedCluster', - full_name='google.cloud.dataproc.v1beta2.ManagedCluster', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.ManagedCluster.cluster_name', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='config', full_name='google.cloud.dataproc.v1beta2.ManagedCluster.config', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1beta2.ManagedCluster.labels', index=2, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_MANAGEDCLUSTER_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1008, - serialized_end=1230, + name="ManagedCluster", + full_name="google.cloud.dataproc.v1beta2.ManagedCluster", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.ManagedCluster.cluster_name", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="config", + full_name="google.cloud.dataproc.v1beta2.ManagedCluster.config", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1beta2.ManagedCluster.labels", + index=2, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_MANAGEDCLUSTER_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1008, + serialized_end=1230, ) _CLUSTERSELECTOR_CLUSTERLABELSENTRY = _descriptor.Descriptor( - name='ClusterLabelsEntry', - full_name='google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1357, - serialized_end=1409, + name="ClusterLabelsEntry", + full_name="google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1357, + serialized_end=1409, ) _CLUSTERSELECTOR = _descriptor.Descriptor( - name='ClusterSelector', - full_name='google.cloud.dataproc.v1beta2.ClusterSelector', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='zone', full_name='google.cloud.dataproc.v1beta2.ClusterSelector.zone', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_labels', full_name='google.cloud.dataproc.v1beta2.ClusterSelector.cluster_labels', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLUSTERSELECTOR_CLUSTERLABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1233, - serialized_end=1409, + name="ClusterSelector", + full_name="google.cloud.dataproc.v1beta2.ClusterSelector", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="zone", + full_name="google.cloud.dataproc.v1beta2.ClusterSelector.zone", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_labels", + full_name="google.cloud.dataproc.v1beta2.ClusterSelector.cluster_labels", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLUSTERSELECTOR_CLUSTERLABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1233, + serialized_end=1409, ) _ORDEREDJOB_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=767, - serialized_end=812, + name="LabelsEntry", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=767, + serialized_end=812, ) _ORDEREDJOB = _descriptor.Descriptor( - name='OrderedJob', - full_name='google.cloud.dataproc.v1beta2.OrderedJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='step_id', full_name='google.cloud.dataproc.v1beta2.OrderedJob.step_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hadoop_job', full_name='google.cloud.dataproc.v1beta2.OrderedJob.hadoop_job', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spark_job', full_name='google.cloud.dataproc.v1beta2.OrderedJob.spark_job', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pyspark_job', full_name='google.cloud.dataproc.v1beta2.OrderedJob.pyspark_job', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hive_job', full_name='google.cloud.dataproc.v1beta2.OrderedJob.hive_job', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pig_job', full_name='google.cloud.dataproc.v1beta2.OrderedJob.pig_job', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spark_sql_job', full_name='google.cloud.dataproc.v1beta2.OrderedJob.spark_sql_job', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.dataproc.v1beta2.OrderedJob.labels', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='scheduling', full_name='google.cloud.dataproc.v1beta2.OrderedJob.scheduling', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='prerequisite_step_ids', full_name='google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids', index=9, - number=10, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ORDEREDJOB_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='job_type', full_name='google.cloud.dataproc.v1beta2.OrderedJob.job_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1412, - serialized_end=2047, + name="OrderedJob", + full_name="google.cloud.dataproc.v1beta2.OrderedJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="step_id", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.step_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="hadoop_job", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.hadoop_job", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spark_job", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.spark_job", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pyspark_job", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.pyspark_job", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="hive_job", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.hive_job", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pig_job", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.pig_job", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spark_sql_job", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.spark_sql_job", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.labels", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="scheduling", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.scheduling", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="prerequisite_step_ids", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids", + index=9, + number=10, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ORDEREDJOB_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="job_type", + full_name="google.cloud.dataproc.v1beta2.OrderedJob.job_type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1412, + serialized_end=2047, ) _TEMPLATEPARAMETER = _descriptor.Descriptor( - name='TemplateParameter', - full_name='google.cloud.dataproc.v1beta2.TemplateParameter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.dataproc.v1beta2.TemplateParameter.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='fields', full_name='google.cloud.dataproc.v1beta2.TemplateParameter.fields', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.dataproc.v1beta2.TemplateParameter.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validation', full_name='google.cloud.dataproc.v1beta2.TemplateParameter.validation', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2050, - serialized_end=2192, + name="TemplateParameter", + full_name="google.cloud.dataproc.v1beta2.TemplateParameter", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.dataproc.v1beta2.TemplateParameter.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="fields", + full_name="google.cloud.dataproc.v1beta2.TemplateParameter.fields", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.dataproc.v1beta2.TemplateParameter.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validation", + full_name="google.cloud.dataproc.v1beta2.TemplateParameter.validation", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2050, + serialized_end=2192, ) _PARAMETERVALIDATION = _descriptor.Descriptor( - name='ParameterValidation', - full_name='google.cloud.dataproc.v1beta2.ParameterValidation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='regex', full_name='google.cloud.dataproc.v1beta2.ParameterValidation.regex', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='values', full_name='google.cloud.dataproc.v1beta2.ParameterValidation.values', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='validation_type', full_name='google.cloud.dataproc.v1beta2.ParameterValidation.validation_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2195, - serialized_end=2366, + name="ParameterValidation", + full_name="google.cloud.dataproc.v1beta2.ParameterValidation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="regex", + full_name="google.cloud.dataproc.v1beta2.ParameterValidation.regex", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="values", + full_name="google.cloud.dataproc.v1beta2.ParameterValidation.values", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="validation_type", + full_name="google.cloud.dataproc.v1beta2.ParameterValidation.validation_type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2195, + serialized_end=2366, ) _REGEXVALIDATION = _descriptor.Descriptor( - name='RegexValidation', - full_name='google.cloud.dataproc.v1beta2.RegexValidation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='regexes', full_name='google.cloud.dataproc.v1beta2.RegexValidation.regexes', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2368, - serialized_end=2402, + name="RegexValidation", + full_name="google.cloud.dataproc.v1beta2.RegexValidation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="regexes", + full_name="google.cloud.dataproc.v1beta2.RegexValidation.regexes", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2368, + serialized_end=2402, ) _VALUEVALIDATION = _descriptor.Descriptor( - name='ValueValidation', - full_name='google.cloud.dataproc.v1beta2.ValueValidation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='values', full_name='google.cloud.dataproc.v1beta2.ValueValidation.values', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2404, - serialized_end=2437, + name="ValueValidation", + full_name="google.cloud.dataproc.v1beta2.ValueValidation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="values", + full_name="google.cloud.dataproc.v1beta2.ValueValidation.values", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2404, + serialized_end=2437, ) _WORKFLOWMETADATA_PARAMETERSENTRY = _descriptor.Descriptor( - name='ParametersEntry', - full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2995, - serialized_end=3044, + name="ParametersEntry", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2995, + serialized_end=3044, ) _WORKFLOWMETADATA = _descriptor.Descriptor( - name='WorkflowMetadata', - full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='template', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.template', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.version', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_cluster', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.create_cluster', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='graph', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.graph', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete_cluster', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.delete_cluster', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.state', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_name', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.cluster_name', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parameters', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.parameters', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.start_time', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.end_time', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cluster_uuid', full_name='google.cloud.dataproc.v1beta2.WorkflowMetadata.cluster_uuid', index=10, - number=11, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_WORKFLOWMETADATA_PARAMETERSENTRY, ], - enum_types=[ - _WORKFLOWMETADATA_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2440, - serialized_end=3102, + name="WorkflowMetadata", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="template", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.template", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.version", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_cluster", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.create_cluster", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="graph", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.graph", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete_cluster", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.delete_cluster", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.state", + index=5, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_name", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.cluster_name", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parameters", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.parameters", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.start_time", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.end_time", + index=9, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cluster_uuid", + full_name="google.cloud.dataproc.v1beta2.WorkflowMetadata.cluster_uuid", + index=10, + number=11, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_WORKFLOWMETADATA_PARAMETERSENTRY], + enum_types=[_WORKFLOWMETADATA_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2440, + serialized_end=3102, ) _CLUSTEROPERATION = _descriptor.Descriptor( - name='ClusterOperation', - full_name='google.cloud.dataproc.v1beta2.ClusterOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='operation_id', full_name='google.cloud.dataproc.v1beta2.ClusterOperation.operation_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.dataproc.v1beta2.ClusterOperation.error', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='done', full_name='google.cloud.dataproc.v1beta2.ClusterOperation.done', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3104, - serialized_end=3173, + name="ClusterOperation", + full_name="google.cloud.dataproc.v1beta2.ClusterOperation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="operation_id", + full_name="google.cloud.dataproc.v1beta2.ClusterOperation.operation_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.dataproc.v1beta2.ClusterOperation.error", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="done", + full_name="google.cloud.dataproc.v1beta2.ClusterOperation.done", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3104, + serialized_end=3173, ) _WORKFLOWGRAPH = _descriptor.Descriptor( - name='WorkflowGraph', - full_name='google.cloud.dataproc.v1beta2.WorkflowGraph', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='nodes', full_name='google.cloud.dataproc.v1beta2.WorkflowGraph.nodes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3175, - serialized_end=3250, + name="WorkflowGraph", + full_name="google.cloud.dataproc.v1beta2.WorkflowGraph", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="nodes", + full_name="google.cloud.dataproc.v1beta2.WorkflowGraph.nodes", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3175, + serialized_end=3250, ) _WORKFLOWNODE = _descriptor.Descriptor( - name='WorkflowNode', - full_name='google.cloud.dataproc.v1beta2.WorkflowNode', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='step_id', full_name='google.cloud.dataproc.v1beta2.WorkflowNode.step_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='prerequisite_step_ids', full_name='google.cloud.dataproc.v1beta2.WorkflowNode.prerequisite_step_ids', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.cloud.dataproc.v1beta2.WorkflowNode.job_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.dataproc.v1beta2.WorkflowNode.state', index=3, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.dataproc.v1beta2.WorkflowNode.error', index=4, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _WORKFLOWNODE_NODESTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3253, - serialized_end=3525, + name="WorkflowNode", + full_name="google.cloud.dataproc.v1beta2.WorkflowNode", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="step_id", + full_name="google.cloud.dataproc.v1beta2.WorkflowNode.step_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="prerequisite_step_ids", + full_name="google.cloud.dataproc.v1beta2.WorkflowNode.prerequisite_step_ids", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.cloud.dataproc.v1beta2.WorkflowNode.job_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.dataproc.v1beta2.WorkflowNode.state", + index=3, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.dataproc.v1beta2.WorkflowNode.error", + index=4, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_WORKFLOWNODE_NODESTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3253, + serialized_end=3525, ) _CREATEWORKFLOWTEMPLATEREQUEST = _descriptor.Descriptor( - name='CreateWorkflowTemplateRequest', - full_name='google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='template', full_name='google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.template', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3527, - serialized_end=3641, + name="CreateWorkflowTemplateRequest", + full_name="google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="template", + full_name="google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.template", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3527, + serialized_end=3641, ) _GETWORKFLOWTEMPLATEREQUEST = _descriptor.Descriptor( - name='GetWorkflowTemplateRequest', - full_name='google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.version', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3643, - serialized_end=3702, + name="GetWorkflowTemplateRequest", + full_name="google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.version", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3643, + serialized_end=3702, ) _INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY = _descriptor.Descriptor( - name='ParametersEntry', - full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2995, - serialized_end=3044, + name="ParametersEntry", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2995, + serialized_end=3044, ) _INSTANTIATEWORKFLOWTEMPLATEREQUEST = _descriptor.Descriptor( - name='InstantiateWorkflowTemplateRequest', - full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.version', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_id', full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.instance_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.request_id', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parameters', full_name='google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.parameters', index=4, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3705, - serialized_end=3971, + name="InstantiateWorkflowTemplateRequest", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.version", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_id", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.instance_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=_descriptor._ParseOptions( + descriptor_pb2.FieldOptions(), _b("\030\001") + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.request_id", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parameters", + full_name="google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.parameters", + index=4, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3705, + serialized_end=3971, ) _INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST = _descriptor.Descriptor( - name='InstantiateInlineWorkflowTemplateRequest', - full_name='google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='template', full_name='google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.template', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_id', full_name='google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.instance_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request_id', full_name='google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.request_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3974, - serialized_end=4140, + name="InstantiateInlineWorkflowTemplateRequest", + full_name="google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="template", + full_name="google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.template", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_id", + full_name="google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.instance_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="request_id", + full_name="google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.request_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3974, + serialized_end=4140, ) _UPDATEWORKFLOWTEMPLATEREQUEST = _descriptor.Descriptor( - name='UpdateWorkflowTemplateRequest', - full_name='google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='template', full_name='google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.template', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4142, - serialized_end=4240, + name="UpdateWorkflowTemplateRequest", + full_name="google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="template", + full_name="google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.template", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4142, + serialized_end=4240, ) _LISTWORKFLOWTEMPLATESREQUEST = _descriptor.Descriptor( - name='ListWorkflowTemplatesRequest', - full_name='google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4242, - serialized_end=4327, + name="ListWorkflowTemplatesRequest", + full_name="google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4242, + serialized_end=4327, ) _LISTWORKFLOWTEMPLATESRESPONSE = _descriptor.Descriptor( - name='ListWorkflowTemplatesResponse', - full_name='google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='templates', full_name='google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.templates', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4329, - serialized_end=4453, + name="ListWorkflowTemplatesResponse", + full_name="google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="templates", + full_name="google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.templates", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4329, + serialized_end=4453, ) _DELETEWORKFLOWTEMPLATEREQUEST = _descriptor.Descriptor( - name='DeleteWorkflowTemplateRequest', - full_name='google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.version', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4455, - serialized_end=4517, + name="DeleteWorkflowTemplateRequest", + full_name="google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.version", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4455, + serialized_end=4517, ) _WORKFLOWTEMPLATE_LABELSENTRY.containing_type = _WORKFLOWTEMPLATE -_WORKFLOWTEMPLATE.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_WORKFLOWTEMPLATE.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_WORKFLOWTEMPLATE.fields_by_name['labels'].message_type = _WORKFLOWTEMPLATE_LABELSENTRY -_WORKFLOWTEMPLATE.fields_by_name['placement'].message_type = _WORKFLOWTEMPLATEPLACEMENT -_WORKFLOWTEMPLATE.fields_by_name['jobs'].message_type = _ORDEREDJOB -_WORKFLOWTEMPLATE.fields_by_name['parameters'].message_type = _TEMPLATEPARAMETER -_WORKFLOWTEMPLATEPLACEMENT.fields_by_name['managed_cluster'].message_type = _MANAGEDCLUSTER -_WORKFLOWTEMPLATEPLACEMENT.fields_by_name['cluster_selector'].message_type = _CLUSTERSELECTOR -_WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name['placement'].fields.append( - _WORKFLOWTEMPLATEPLACEMENT.fields_by_name['managed_cluster']) -_WORKFLOWTEMPLATEPLACEMENT.fields_by_name['managed_cluster'].containing_oneof = _WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name['placement'] -_WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name['placement'].fields.append( - _WORKFLOWTEMPLATEPLACEMENT.fields_by_name['cluster_selector']) -_WORKFLOWTEMPLATEPLACEMENT.fields_by_name['cluster_selector'].containing_oneof = _WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name['placement'] +_WORKFLOWTEMPLATE.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_WORKFLOWTEMPLATE.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_WORKFLOWTEMPLATE.fields_by_name["labels"].message_type = _WORKFLOWTEMPLATE_LABELSENTRY +_WORKFLOWTEMPLATE.fields_by_name["placement"].message_type = _WORKFLOWTEMPLATEPLACEMENT +_WORKFLOWTEMPLATE.fields_by_name["jobs"].message_type = _ORDEREDJOB +_WORKFLOWTEMPLATE.fields_by_name["parameters"].message_type = _TEMPLATEPARAMETER +_WORKFLOWTEMPLATEPLACEMENT.fields_by_name[ + "managed_cluster" +].message_type = _MANAGEDCLUSTER +_WORKFLOWTEMPLATEPLACEMENT.fields_by_name[ + "cluster_selector" +].message_type = _CLUSTERSELECTOR +_WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name["placement"].fields.append( + _WORKFLOWTEMPLATEPLACEMENT.fields_by_name["managed_cluster"] +) +_WORKFLOWTEMPLATEPLACEMENT.fields_by_name[ + "managed_cluster" +].containing_oneof = _WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name["placement"] +_WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name["placement"].fields.append( + _WORKFLOWTEMPLATEPLACEMENT.fields_by_name["cluster_selector"] +) +_WORKFLOWTEMPLATEPLACEMENT.fields_by_name[ + "cluster_selector" +].containing_oneof = _WORKFLOWTEMPLATEPLACEMENT.oneofs_by_name["placement"] _MANAGEDCLUSTER_LABELSENTRY.containing_type = _MANAGEDCLUSTER -_MANAGEDCLUSTER.fields_by_name['config'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2._CLUSTERCONFIG -_MANAGEDCLUSTER.fields_by_name['labels'].message_type = _MANAGEDCLUSTER_LABELSENTRY +_MANAGEDCLUSTER.fields_by_name[ + "config" +].message_type = ( + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_clusters__pb2._CLUSTERCONFIG +) +_MANAGEDCLUSTER.fields_by_name["labels"].message_type = _MANAGEDCLUSTER_LABELSENTRY _CLUSTERSELECTOR_CLUSTERLABELSENTRY.containing_type = _CLUSTERSELECTOR -_CLUSTERSELECTOR.fields_by_name['cluster_labels'].message_type = _CLUSTERSELECTOR_CLUSTERLABELSENTRY +_CLUSTERSELECTOR.fields_by_name[ + "cluster_labels" +].message_type = _CLUSTERSELECTOR_CLUSTERLABELSENTRY _ORDEREDJOB_LABELSENTRY.containing_type = _ORDEREDJOB -_ORDEREDJOB.fields_by_name['hadoop_job'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._HADOOPJOB -_ORDEREDJOB.fields_by_name['spark_job'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._SPARKJOB -_ORDEREDJOB.fields_by_name['pyspark_job'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._PYSPARKJOB -_ORDEREDJOB.fields_by_name['hive_job'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._HIVEJOB -_ORDEREDJOB.fields_by_name['pig_job'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._PIGJOB -_ORDEREDJOB.fields_by_name['spark_sql_job'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._SPARKSQLJOB -_ORDEREDJOB.fields_by_name['labels'].message_type = _ORDEREDJOB_LABELSENTRY -_ORDEREDJOB.fields_by_name['scheduling'].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._JOBSCHEDULING -_ORDEREDJOB.oneofs_by_name['job_type'].fields.append( - _ORDEREDJOB.fields_by_name['hadoop_job']) -_ORDEREDJOB.fields_by_name['hadoop_job'].containing_oneof = _ORDEREDJOB.oneofs_by_name['job_type'] -_ORDEREDJOB.oneofs_by_name['job_type'].fields.append( - _ORDEREDJOB.fields_by_name['spark_job']) -_ORDEREDJOB.fields_by_name['spark_job'].containing_oneof = _ORDEREDJOB.oneofs_by_name['job_type'] -_ORDEREDJOB.oneofs_by_name['job_type'].fields.append( - _ORDEREDJOB.fields_by_name['pyspark_job']) -_ORDEREDJOB.fields_by_name['pyspark_job'].containing_oneof = _ORDEREDJOB.oneofs_by_name['job_type'] -_ORDEREDJOB.oneofs_by_name['job_type'].fields.append( - _ORDEREDJOB.fields_by_name['hive_job']) -_ORDEREDJOB.fields_by_name['hive_job'].containing_oneof = _ORDEREDJOB.oneofs_by_name['job_type'] -_ORDEREDJOB.oneofs_by_name['job_type'].fields.append( - _ORDEREDJOB.fields_by_name['pig_job']) -_ORDEREDJOB.fields_by_name['pig_job'].containing_oneof = _ORDEREDJOB.oneofs_by_name['job_type'] -_ORDEREDJOB.oneofs_by_name['job_type'].fields.append( - _ORDEREDJOB.fields_by_name['spark_sql_job']) -_ORDEREDJOB.fields_by_name['spark_sql_job'].containing_oneof = _ORDEREDJOB.oneofs_by_name['job_type'] -_TEMPLATEPARAMETER.fields_by_name['validation'].message_type = _PARAMETERVALIDATION -_PARAMETERVALIDATION.fields_by_name['regex'].message_type = _REGEXVALIDATION -_PARAMETERVALIDATION.fields_by_name['values'].message_type = _VALUEVALIDATION -_PARAMETERVALIDATION.oneofs_by_name['validation_type'].fields.append( - _PARAMETERVALIDATION.fields_by_name['regex']) -_PARAMETERVALIDATION.fields_by_name['regex'].containing_oneof = _PARAMETERVALIDATION.oneofs_by_name['validation_type'] -_PARAMETERVALIDATION.oneofs_by_name['validation_type'].fields.append( - _PARAMETERVALIDATION.fields_by_name['values']) -_PARAMETERVALIDATION.fields_by_name['values'].containing_oneof = _PARAMETERVALIDATION.oneofs_by_name['validation_type'] +_ORDEREDJOB.fields_by_name[ + "hadoop_job" +].message_type = ( + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._HADOOPJOB +) +_ORDEREDJOB.fields_by_name[ + "spark_job" +].message_type = ( + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._SPARKJOB +) +_ORDEREDJOB.fields_by_name[ + "pyspark_job" +].message_type = ( + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._PYSPARKJOB +) +_ORDEREDJOB.fields_by_name[ + "hive_job" +].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._HIVEJOB +_ORDEREDJOB.fields_by_name[ + "pig_job" +].message_type = google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._PIGJOB +_ORDEREDJOB.fields_by_name[ + "spark_sql_job" +].message_type = ( + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._SPARKSQLJOB +) +_ORDEREDJOB.fields_by_name["labels"].message_type = _ORDEREDJOB_LABELSENTRY +_ORDEREDJOB.fields_by_name[ + "scheduling" +].message_type = ( + google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_jobs__pb2._JOBSCHEDULING +) +_ORDEREDJOB.oneofs_by_name["job_type"].fields.append( + _ORDEREDJOB.fields_by_name["hadoop_job"] +) +_ORDEREDJOB.fields_by_name["hadoop_job"].containing_oneof = _ORDEREDJOB.oneofs_by_name[ + "job_type" +] +_ORDEREDJOB.oneofs_by_name["job_type"].fields.append( + _ORDEREDJOB.fields_by_name["spark_job"] +) +_ORDEREDJOB.fields_by_name["spark_job"].containing_oneof = _ORDEREDJOB.oneofs_by_name[ + "job_type" +] +_ORDEREDJOB.oneofs_by_name["job_type"].fields.append( + _ORDEREDJOB.fields_by_name["pyspark_job"] +) +_ORDEREDJOB.fields_by_name["pyspark_job"].containing_oneof = _ORDEREDJOB.oneofs_by_name[ + "job_type" +] +_ORDEREDJOB.oneofs_by_name["job_type"].fields.append( + _ORDEREDJOB.fields_by_name["hive_job"] +) +_ORDEREDJOB.fields_by_name["hive_job"].containing_oneof = _ORDEREDJOB.oneofs_by_name[ + "job_type" +] +_ORDEREDJOB.oneofs_by_name["job_type"].fields.append( + _ORDEREDJOB.fields_by_name["pig_job"] +) +_ORDEREDJOB.fields_by_name["pig_job"].containing_oneof = _ORDEREDJOB.oneofs_by_name[ + "job_type" +] +_ORDEREDJOB.oneofs_by_name["job_type"].fields.append( + _ORDEREDJOB.fields_by_name["spark_sql_job"] +) +_ORDEREDJOB.fields_by_name[ + "spark_sql_job" +].containing_oneof = _ORDEREDJOB.oneofs_by_name["job_type"] +_TEMPLATEPARAMETER.fields_by_name["validation"].message_type = _PARAMETERVALIDATION +_PARAMETERVALIDATION.fields_by_name["regex"].message_type = _REGEXVALIDATION +_PARAMETERVALIDATION.fields_by_name["values"].message_type = _VALUEVALIDATION +_PARAMETERVALIDATION.oneofs_by_name["validation_type"].fields.append( + _PARAMETERVALIDATION.fields_by_name["regex"] +) +_PARAMETERVALIDATION.fields_by_name[ + "regex" +].containing_oneof = _PARAMETERVALIDATION.oneofs_by_name["validation_type"] +_PARAMETERVALIDATION.oneofs_by_name["validation_type"].fields.append( + _PARAMETERVALIDATION.fields_by_name["values"] +) +_PARAMETERVALIDATION.fields_by_name[ + "values" +].containing_oneof = _PARAMETERVALIDATION.oneofs_by_name["validation_type"] _WORKFLOWMETADATA_PARAMETERSENTRY.containing_type = _WORKFLOWMETADATA -_WORKFLOWMETADATA.fields_by_name['create_cluster'].message_type = _CLUSTEROPERATION -_WORKFLOWMETADATA.fields_by_name['graph'].message_type = _WORKFLOWGRAPH -_WORKFLOWMETADATA.fields_by_name['delete_cluster'].message_type = _CLUSTEROPERATION -_WORKFLOWMETADATA.fields_by_name['state'].enum_type = _WORKFLOWMETADATA_STATE -_WORKFLOWMETADATA.fields_by_name['parameters'].message_type = _WORKFLOWMETADATA_PARAMETERSENTRY -_WORKFLOWMETADATA.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_WORKFLOWMETADATA.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_WORKFLOWMETADATA.fields_by_name["create_cluster"].message_type = _CLUSTEROPERATION +_WORKFLOWMETADATA.fields_by_name["graph"].message_type = _WORKFLOWGRAPH +_WORKFLOWMETADATA.fields_by_name["delete_cluster"].message_type = _CLUSTEROPERATION +_WORKFLOWMETADATA.fields_by_name["state"].enum_type = _WORKFLOWMETADATA_STATE +_WORKFLOWMETADATA.fields_by_name[ + "parameters" +].message_type = _WORKFLOWMETADATA_PARAMETERSENTRY +_WORKFLOWMETADATA.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_WORKFLOWMETADATA.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _WORKFLOWMETADATA_STATE.containing_type = _WORKFLOWMETADATA -_WORKFLOWGRAPH.fields_by_name['nodes'].message_type = _WORKFLOWNODE -_WORKFLOWNODE.fields_by_name['state'].enum_type = _WORKFLOWNODE_NODESTATE +_WORKFLOWGRAPH.fields_by_name["nodes"].message_type = _WORKFLOWNODE +_WORKFLOWNODE.fields_by_name["state"].enum_type = _WORKFLOWNODE_NODESTATE _WORKFLOWNODE_NODESTATE.containing_type = _WORKFLOWNODE -_CREATEWORKFLOWTEMPLATEREQUEST.fields_by_name['template'].message_type = _WORKFLOWTEMPLATE -_INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY.containing_type = _INSTANTIATEWORKFLOWTEMPLATEREQUEST -_INSTANTIATEWORKFLOWTEMPLATEREQUEST.fields_by_name['parameters'].message_type = _INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY -_INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST.fields_by_name['template'].message_type = _WORKFLOWTEMPLATE -_UPDATEWORKFLOWTEMPLATEREQUEST.fields_by_name['template'].message_type = _WORKFLOWTEMPLATE -_LISTWORKFLOWTEMPLATESRESPONSE.fields_by_name['templates'].message_type = _WORKFLOWTEMPLATE -DESCRIPTOR.message_types_by_name['WorkflowTemplate'] = _WORKFLOWTEMPLATE -DESCRIPTOR.message_types_by_name['WorkflowTemplatePlacement'] = _WORKFLOWTEMPLATEPLACEMENT -DESCRIPTOR.message_types_by_name['ManagedCluster'] = _MANAGEDCLUSTER -DESCRIPTOR.message_types_by_name['ClusterSelector'] = _CLUSTERSELECTOR -DESCRIPTOR.message_types_by_name['OrderedJob'] = _ORDEREDJOB -DESCRIPTOR.message_types_by_name['TemplateParameter'] = _TEMPLATEPARAMETER -DESCRIPTOR.message_types_by_name['ParameterValidation'] = _PARAMETERVALIDATION -DESCRIPTOR.message_types_by_name['RegexValidation'] = _REGEXVALIDATION -DESCRIPTOR.message_types_by_name['ValueValidation'] = _VALUEVALIDATION -DESCRIPTOR.message_types_by_name['WorkflowMetadata'] = _WORKFLOWMETADATA -DESCRIPTOR.message_types_by_name['ClusterOperation'] = _CLUSTEROPERATION -DESCRIPTOR.message_types_by_name['WorkflowGraph'] = _WORKFLOWGRAPH -DESCRIPTOR.message_types_by_name['WorkflowNode'] = _WORKFLOWNODE -DESCRIPTOR.message_types_by_name['CreateWorkflowTemplateRequest'] = _CREATEWORKFLOWTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['GetWorkflowTemplateRequest'] = _GETWORKFLOWTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['InstantiateWorkflowTemplateRequest'] = _INSTANTIATEWORKFLOWTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['InstantiateInlineWorkflowTemplateRequest'] = _INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['UpdateWorkflowTemplateRequest'] = _UPDATEWORKFLOWTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['ListWorkflowTemplatesRequest'] = _LISTWORKFLOWTEMPLATESREQUEST -DESCRIPTOR.message_types_by_name['ListWorkflowTemplatesResponse'] = _LISTWORKFLOWTEMPLATESRESPONSE -DESCRIPTOR.message_types_by_name['DeleteWorkflowTemplateRequest'] = _DELETEWORKFLOWTEMPLATEREQUEST +_CREATEWORKFLOWTEMPLATEREQUEST.fields_by_name[ + "template" +].message_type = _WORKFLOWTEMPLATE +_INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY.containing_type = ( + _INSTANTIATEWORKFLOWTEMPLATEREQUEST +) +_INSTANTIATEWORKFLOWTEMPLATEREQUEST.fields_by_name[ + "parameters" +].message_type = _INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY +_INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST.fields_by_name[ + "template" +].message_type = _WORKFLOWTEMPLATE +_UPDATEWORKFLOWTEMPLATEREQUEST.fields_by_name[ + "template" +].message_type = _WORKFLOWTEMPLATE +_LISTWORKFLOWTEMPLATESRESPONSE.fields_by_name[ + "templates" +].message_type = _WORKFLOWTEMPLATE +DESCRIPTOR.message_types_by_name["WorkflowTemplate"] = _WORKFLOWTEMPLATE +DESCRIPTOR.message_types_by_name[ + "WorkflowTemplatePlacement" +] = _WORKFLOWTEMPLATEPLACEMENT +DESCRIPTOR.message_types_by_name["ManagedCluster"] = _MANAGEDCLUSTER +DESCRIPTOR.message_types_by_name["ClusterSelector"] = _CLUSTERSELECTOR +DESCRIPTOR.message_types_by_name["OrderedJob"] = _ORDEREDJOB +DESCRIPTOR.message_types_by_name["TemplateParameter"] = _TEMPLATEPARAMETER +DESCRIPTOR.message_types_by_name["ParameterValidation"] = _PARAMETERVALIDATION +DESCRIPTOR.message_types_by_name["RegexValidation"] = _REGEXVALIDATION +DESCRIPTOR.message_types_by_name["ValueValidation"] = _VALUEVALIDATION +DESCRIPTOR.message_types_by_name["WorkflowMetadata"] = _WORKFLOWMETADATA +DESCRIPTOR.message_types_by_name["ClusterOperation"] = _CLUSTEROPERATION +DESCRIPTOR.message_types_by_name["WorkflowGraph"] = _WORKFLOWGRAPH +DESCRIPTOR.message_types_by_name["WorkflowNode"] = _WORKFLOWNODE +DESCRIPTOR.message_types_by_name[ + "CreateWorkflowTemplateRequest" +] = _CREATEWORKFLOWTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "GetWorkflowTemplateRequest" +] = _GETWORKFLOWTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "InstantiateWorkflowTemplateRequest" +] = _INSTANTIATEWORKFLOWTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "InstantiateInlineWorkflowTemplateRequest" +] = _INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateWorkflowTemplateRequest" +] = _UPDATEWORKFLOWTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "ListWorkflowTemplatesRequest" +] = _LISTWORKFLOWTEMPLATESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListWorkflowTemplatesResponse" +] = _LISTWORKFLOWTEMPLATESRESPONSE +DESCRIPTOR.message_types_by_name[ + "DeleteWorkflowTemplateRequest" +] = _DELETEWORKFLOWTEMPLATEREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -WorkflowTemplate = _reflection.GeneratedProtocolMessageType('WorkflowTemplate', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _WORKFLOWTEMPLATE_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry) - )) - , - DESCRIPTOR = _WORKFLOWTEMPLATE, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A Cloud Dataproc workflow template resource. +WorkflowTemplate = _reflection.GeneratedProtocolMessageType( + "WorkflowTemplate", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_WORKFLOWTEMPLATE_LABELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry) + ), + ), + DESCRIPTOR=_WORKFLOWTEMPLATE, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A Cloud Dataproc workflow template resource. Attributes: @@ -1517,16 +2522,19 @@ into the template. Values for parameters must be provided when the template is instantiated. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplate) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplate) + ), +) _sym_db.RegisterMessage(WorkflowTemplate) _sym_db.RegisterMessage(WorkflowTemplate.LabelsEntry) -WorkflowTemplatePlacement = _reflection.GeneratedProtocolMessageType('WorkflowTemplatePlacement', (_message.Message,), dict( - DESCRIPTOR = _WORKFLOWTEMPLATEPLACEMENT, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """Specifies workflow execution target. +WorkflowTemplatePlacement = _reflection.GeneratedProtocolMessageType( + "WorkflowTemplatePlacement", + (_message.Message,), + dict( + DESCRIPTOR=_WORKFLOWTEMPLATEPLACEMENT, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""Specifies workflow execution target. Either ``managed_cluster`` or ``cluster_selector`` is required. @@ -1542,22 +2550,27 @@ based on metadata. The selector is evaluated at the time each job is submitted. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) + ), +) _sym_db.RegisterMessage(WorkflowTemplatePlacement) -ManagedCluster = _reflection.GeneratedProtocolMessageType('ManagedCluster', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _MANAGEDCLUSTER_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry) - )) - , - DESCRIPTOR = _MANAGEDCLUSTER, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """Cluster that is managed by the workflow. +ManagedCluster = _reflection.GeneratedProtocolMessageType( + "ManagedCluster", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_MANAGEDCLUSTER_LABELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedCluster.LabelsEntry) + ), + ), + DESCRIPTOR=_MANAGEDCLUSTER, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""Cluster that is managed by the workflow. Attributes: @@ -1575,23 +2588,28 @@ 1 and 63 characters long. No more than 32 labels can be associated with a given cluster. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedCluster) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedCluster) + ), +) _sym_db.RegisterMessage(ManagedCluster) _sym_db.RegisterMessage(ManagedCluster.LabelsEntry) -ClusterSelector = _reflection.GeneratedProtocolMessageType('ClusterSelector', (_message.Message,), dict( - - ClusterLabelsEntry = _reflection.GeneratedProtocolMessageType('ClusterLabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CLUSTERSELECTOR_CLUSTERLABELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry) - )) - , - DESCRIPTOR = _CLUSTERSELECTOR, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A selector that chooses target cluster for jobs based on metadata. +ClusterSelector = _reflection.GeneratedProtocolMessageType( + "ClusterSelector", + (_message.Message,), + dict( + ClusterLabelsEntry=_reflection.GeneratedProtocolMessageType( + "ClusterLabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTERSELECTOR_CLUSTERLABELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterSelector.ClusterLabelsEntry) + ), + ), + DESCRIPTOR=_CLUSTERSELECTOR, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A selector that chooses target cluster for jobs based on metadata. Attributes: @@ -1604,23 +2622,28 @@ Required. The cluster labels. Cluster must have all labels to match. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterSelector) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterSelector) + ), +) _sym_db.RegisterMessage(ClusterSelector) _sym_db.RegisterMessage(ClusterSelector.ClusterLabelsEntry) -OrderedJob = _reflection.GeneratedProtocolMessageType('OrderedJob', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _ORDEREDJOB_LABELSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry) - )) - , - DESCRIPTOR = _ORDEREDJOB, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A job executed by the workflow. +OrderedJob = _reflection.GeneratedProtocolMessageType( + "OrderedJob", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_ORDEREDJOB_LABELSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.OrderedJob.LabelsEntry) + ), + ), + DESCRIPTOR=_ORDEREDJOB, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A job executed by the workflow. Attributes: @@ -1659,16 +2682,19 @@ not specified, the job will start at the beginning of workflow. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.OrderedJob) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.OrderedJob) + ), +) _sym_db.RegisterMessage(OrderedJob) _sym_db.RegisterMessage(OrderedJob.LabelsEntry) -TemplateParameter = _reflection.GeneratedProtocolMessageType('TemplateParameter', (_message.Message,), dict( - DESCRIPTOR = _TEMPLATEPARAMETER, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A configurable parameter that replaces one or more fields in the +TemplateParameter = _reflection.GeneratedProtocolMessageType( + "TemplateParameter", + (_message.Message,), + dict( + DESCRIPTOR=_TEMPLATEPARAMETER, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) @@ -1723,15 +2749,18 @@ Optional. Validation rules to be applied to this parameter's value. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.TemplateParameter) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.TemplateParameter) + ), +) _sym_db.RegisterMessage(TemplateParameter) -ParameterValidation = _reflection.GeneratedProtocolMessageType('ParameterValidation', (_message.Message,), dict( - DESCRIPTOR = _PARAMETERVALIDATION, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """Configuration for parameter validation. +ParameterValidation = _reflection.GeneratedProtocolMessageType( + "ParameterValidation", + (_message.Message,), + dict( + DESCRIPTOR=_PARAMETERVALIDATION, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""Configuration for parameter validation. Attributes: @@ -1742,15 +2771,18 @@ values: Validation based on a list of allowed values. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ParameterValidation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ParameterValidation) + ), +) _sym_db.RegisterMessage(ParameterValidation) -RegexValidation = _reflection.GeneratedProtocolMessageType('RegexValidation', (_message.Message,), dict( - DESCRIPTOR = _REGEXVALIDATION, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """Validation based on regular expressions. +RegexValidation = _reflection.GeneratedProtocolMessageType( + "RegexValidation", + (_message.Message,), + dict( + DESCRIPTOR=_REGEXVALIDATION, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""Validation based on regular expressions. Attributes: @@ -1759,37 +2791,45 @@ parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.RegexValidation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.RegexValidation) + ), +) _sym_db.RegisterMessage(RegexValidation) -ValueValidation = _reflection.GeneratedProtocolMessageType('ValueValidation', (_message.Message,), dict( - DESCRIPTOR = _VALUEVALIDATION, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """Validation based on a list of allowed values. +ValueValidation = _reflection.GeneratedProtocolMessageType( + "ValueValidation", + (_message.Message,), + dict( + DESCRIPTOR=_VALUEVALIDATION, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""Validation based on a list of allowed values. Attributes: values: Required. List of allowed values for the parameter. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ValueValidation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ValueValidation) + ), +) _sym_db.RegisterMessage(ValueValidation) -WorkflowMetadata = _reflection.GeneratedProtocolMessageType('WorkflowMetadata', (_message.Message,), dict( - - ParametersEntry = _reflection.GeneratedProtocolMessageType('ParametersEntry', (_message.Message,), dict( - DESCRIPTOR = _WORKFLOWMETADATA_PARAMETERSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry) - )) - , - DESCRIPTOR = _WORKFLOWMETADATA, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A Cloud Dataproc workflow template resource. +WorkflowMetadata = _reflection.GeneratedProtocolMessageType( + "WorkflowMetadata", + (_message.Message,), + dict( + ParametersEntry=_reflection.GeneratedProtocolMessageType( + "ParametersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_WORKFLOWMETADATA_PARAMETERSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowMetadata.ParametersEntry) + ), + ), + DESCRIPTOR=_WORKFLOWMETADATA, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A Cloud Dataproc workflow template resource. Attributes: @@ -1818,16 +2858,19 @@ cluster_uuid: Output only. The UUID of target cluster. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowMetadata) + ), +) _sym_db.RegisterMessage(WorkflowMetadata) _sym_db.RegisterMessage(WorkflowMetadata.ParametersEntry) -ClusterOperation = _reflection.GeneratedProtocolMessageType('ClusterOperation', (_message.Message,), dict( - DESCRIPTOR = _CLUSTEROPERATION, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """The cluster operation triggered by a workflow. +ClusterOperation = _reflection.GeneratedProtocolMessageType( + "ClusterOperation", + (_message.Message,), + dict( + DESCRIPTOR=_CLUSTEROPERATION, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""The cluster operation triggered by a workflow. Attributes: @@ -1838,30 +2881,36 @@ done: Output only. Indicates the operation is done. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperation) + ), +) _sym_db.RegisterMessage(ClusterOperation) -WorkflowGraph = _reflection.GeneratedProtocolMessageType('WorkflowGraph', (_message.Message,), dict( - DESCRIPTOR = _WORKFLOWGRAPH, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """The workflow graph. +WorkflowGraph = _reflection.GeneratedProtocolMessageType( + "WorkflowGraph", + (_message.Message,), + dict( + DESCRIPTOR=_WORKFLOWGRAPH, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""The workflow graph. Attributes: nodes: Output only. The workflow nodes. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowGraph) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowGraph) + ), +) _sym_db.RegisterMessage(WorkflowGraph) -WorkflowNode = _reflection.GeneratedProtocolMessageType('WorkflowNode', (_message.Message,), dict( - DESCRIPTOR = _WORKFLOWNODE, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """The workflow node. +WorkflowNode = _reflection.GeneratedProtocolMessageType( + "WorkflowNode", + (_message.Message,), + dict( + DESCRIPTOR=_WORKFLOWNODE, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""The workflow node. Attributes: @@ -1877,15 +2926,18 @@ error: Output only. The error detail. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowNode) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowNode) + ), +) _sym_db.RegisterMessage(WorkflowNode) -CreateWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType('CreateWorkflowTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEWORKFLOWTEMPLATEREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A request to create a workflow template. +CreateWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType( + "CreateWorkflowTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEWORKFLOWTEMPLATEREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A request to create a workflow template. Attributes: @@ -1896,15 +2948,18 @@ template: Required. The Dataproc workflow template to create. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) + ), +) _sym_db.RegisterMessage(CreateWorkflowTemplateRequest) -GetWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType('GetWorkflowTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _GETWORKFLOWTEMPLATEREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A request to fetch a workflow template. +GetWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType( + "GetWorkflowTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETWORKFLOWTEMPLATEREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A request to fetch a workflow template. Attributes: @@ -1919,22 +2974,27 @@ previously instatiated versions can be retrieved. If unspecified, retrieves the current version. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) + ), +) _sym_db.RegisterMessage(GetWorkflowTemplateRequest) -InstantiateWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType('InstantiateWorkflowTemplateRequest', (_message.Message,), dict( - - ParametersEntry = _reflection.GeneratedProtocolMessageType('ParametersEntry', (_message.Message,), dict( - DESCRIPTOR = _INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry) - )) - , - DESCRIPTOR = _INSTANTIATEWORKFLOWTEMPLATEREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A request to instantiate a workflow template. +InstantiateWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType( + "InstantiateWorkflowTemplateRequest", + (_message.Message,), + dict( + ParametersEntry=_reflection.GeneratedProtocolMessageType( + "ParametersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.ParametersEntry) + ), + ), + DESCRIPTOR=_INSTANTIATEWORKFLOWTEMPLATEREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A request to instantiate a workflow template. Attributes: @@ -1966,16 +3026,19 @@ used for those parameters. Values may not exceed 100 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) + ), +) _sym_db.RegisterMessage(InstantiateWorkflowTemplateRequest) _sym_db.RegisterMessage(InstantiateWorkflowTemplateRequest.ParametersEntry) -InstantiateInlineWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType('InstantiateInlineWorkflowTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A request to instantiate an inline workflow template. +InstantiateInlineWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType( + "InstantiateInlineWorkflowTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A request to instantiate an inline workflow template. Attributes: @@ -1998,15 +3061,18 @@ underscores (\_), and hyphens (-). The maximum length is 40 characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) + ), +) _sym_db.RegisterMessage(InstantiateInlineWorkflowTemplateRequest) -UpdateWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType('UpdateWorkflowTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEWORKFLOWTEMPLATEREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A request to update a workflow template. +UpdateWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType( + "UpdateWorkflowTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEWORKFLOWTEMPLATEREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A request to update a workflow template. Attributes: @@ -2014,15 +3080,18 @@ Required. The updated workflow template. The ``template.version`` field must match the current version. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) + ), +) _sym_db.RegisterMessage(UpdateWorkflowTemplateRequest) -ListWorkflowTemplatesRequest = _reflection.GeneratedProtocolMessageType('ListWorkflowTemplatesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTWORKFLOWTEMPLATESREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A request to list workflow templates in a project. +ListWorkflowTemplatesRequest = _reflection.GeneratedProtocolMessageType( + "ListWorkflowTemplatesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTWORKFLOWTEMPLATESREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A request to list workflow templates in a project. Attributes: @@ -2037,15 +3106,18 @@ Optional. The page token, returned by a previous call, to request the next page of results. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) + ), +) _sym_db.RegisterMessage(ListWorkflowTemplatesRequest) -ListWorkflowTemplatesResponse = _reflection.GeneratedProtocolMessageType('ListWorkflowTemplatesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTWORKFLOWTEMPLATESRESPONSE, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A response to a request to list workflow templates in a project. +ListWorkflowTemplatesResponse = _reflection.GeneratedProtocolMessageType( + "ListWorkflowTemplatesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTWORKFLOWTEMPLATESRESPONSE, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A response to a request to list workflow templates in a project. Attributes: @@ -2057,15 +3129,18 @@ provide this value as the page\_token in a subsequent ListWorkflowTemplatesRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) + ), +) _sym_db.RegisterMessage(ListWorkflowTemplatesResponse) -DeleteWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType('DeleteWorkflowTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEWORKFLOWTEMPLATEREQUEST, - __module__ = 'google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2' - , - __doc__ = """A request to delete a workflow template. +DeleteWorkflowTemplateRequest = _reflection.GeneratedProtocolMessageType( + "DeleteWorkflowTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEWORKFLOWTEMPLATEREQUEST, + __module__="google.cloud.dataproc_v1beta2.proto.workflow_templates_pb2", + __doc__="""A request to delete a workflow template. Currently started workflows will remain running. @@ -2082,103 +3157,159 @@ specified, will only delete the template if the current server version matches specified version. """, - # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) + ), +) _sym_db.RegisterMessage(DeleteWorkflowTemplateRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.dataproc.v1beta2B\026WorkflowTemplatesProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.dataproc.v1beta2B\026WorkflowTemplatesProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc" + ), +) _WORKFLOWTEMPLATE_LABELSENTRY.has_options = True -_WORKFLOWTEMPLATE_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_WORKFLOWTEMPLATE_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _MANAGEDCLUSTER_LABELSENTRY.has_options = True -_MANAGEDCLUSTER_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_MANAGEDCLUSTER_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLUSTERSELECTOR_CLUSTERLABELSENTRY.has_options = True -_CLUSTERSELECTOR_CLUSTERLABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CLUSTERSELECTOR_CLUSTERLABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _ORDEREDJOB_LABELSENTRY.has_options = True -_ORDEREDJOB_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ORDEREDJOB_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _WORKFLOWMETADATA_PARAMETERSENTRY.has_options = True -_WORKFLOWMETADATA_PARAMETERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_WORKFLOWMETADATA_PARAMETERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY.has_options = True -_INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) -_INSTANTIATEWORKFLOWTEMPLATEREQUEST.fields_by_name['instance_id'].has_options = True -_INSTANTIATEWORKFLOWTEMPLATEREQUEST.fields_by_name['instance_id']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) +_INSTANTIATEWORKFLOWTEMPLATEREQUEST_PARAMETERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) +_INSTANTIATEWORKFLOWTEMPLATEREQUEST.fields_by_name["instance_id"].has_options = True +_INSTANTIATEWORKFLOWTEMPLATEREQUEST.fields_by_name[ + "instance_id" +]._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b("\030\001")) _WORKFLOWTEMPLATESERVICE = _descriptor.ServiceDescriptor( - name='WorkflowTemplateService', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4520, - serialized_end=6535, - methods=[ - _descriptor.MethodDescriptor( - name='CreateWorkflowTemplate', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate', + name="WorkflowTemplateService", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATEWORKFLOWTEMPLATEREQUEST, - output_type=_WORKFLOWTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\214\001\"8/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:\010templateZF\":/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:\010template')), - ), - _descriptor.MethodDescriptor( - name='GetWorkflowTemplate', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService.GetWorkflowTemplate', - index=1, - containing_service=None, - input_type=_GETWORKFLOWTEMPLATEREQUEST, - output_type=_WORKFLOWTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002x\0228/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<\022:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}')), - ), - _descriptor.MethodDescriptor( - name='InstantiateWorkflowTemplate', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate', - index=2, - containing_service=None, - input_type=_INSTANTIATEWORKFLOWTEMPLATEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\226\001\"D/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\001*ZK\"F/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\001*')), - ), - _descriptor.MethodDescriptor( - name='InstantiateInlineWorkflowTemplate', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateInlineWorkflowTemplate', - index=3, - containing_service=None, - input_type=_INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\260\001\"L/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\010templateZV\"J/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\010template')), - ), - _descriptor.MethodDescriptor( - name='UpdateWorkflowTemplate', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService.UpdateWorkflowTemplate', - index=4, - containing_service=None, - input_type=_UPDATEWORKFLOWTEMPLATEREQUEST, - output_type=_WORKFLOWTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\236\001\032A/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}:\010templateZO\032C/v1beta2/{template.name=projects/*/locations/*/workflowTemplates/*}:\010template')), - ), - _descriptor.MethodDescriptor( - name='ListWorkflowTemplates', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService.ListWorkflowTemplates', - index=5, - containing_service=None, - input_type=_LISTWORKFLOWTEMPLATESREQUEST, - output_type=_LISTWORKFLOWTEMPLATESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002x\0228/v1beta2/{parent=projects/*/regions/*}/workflowTemplatesZ<\022:/v1beta2/{parent=projects/*/locations/*}/workflowTemplates')), - ), - _descriptor.MethodDescriptor( - name='DeleteWorkflowTemplate', - full_name='google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate', - index=6, - containing_service=None, - input_type=_DELETEWORKFLOWTEMPLATEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002x*8/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<*:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}')), - ), -]) + options=None, + serialized_start=4520, + serialized_end=6535, + methods=[ + _descriptor.MethodDescriptor( + name="CreateWorkflowTemplate", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate", + index=0, + containing_service=None, + input_type=_CREATEWORKFLOWTEMPLATEREQUEST, + output_type=_WORKFLOWTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\214\001"8/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:\010templateZF":/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:\010template' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetWorkflowTemplate", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService.GetWorkflowTemplate", + index=1, + containing_service=None, + input_type=_GETWORKFLOWTEMPLATEREQUEST, + output_type=_WORKFLOWTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002x\0228/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<\022:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="InstantiateWorkflowTemplate", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate", + index=2, + containing_service=None, + input_type=_INSTANTIATEWORKFLOWTEMPLATEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\226\001"D/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\001*ZK"F/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="InstantiateInlineWorkflowTemplate", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateInlineWorkflowTemplate", + index=3, + containing_service=None, + input_type=_INSTANTIATEINLINEWORKFLOWTEMPLATEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\260\001"L/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\010templateZV"J/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\010template' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateWorkflowTemplate", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService.UpdateWorkflowTemplate", + index=4, + containing_service=None, + input_type=_UPDATEWORKFLOWTEMPLATEREQUEST, + output_type=_WORKFLOWTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\236\001\032A/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}:\010templateZO\032C/v1beta2/{template.name=projects/*/locations/*/workflowTemplates/*}:\010template" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListWorkflowTemplates", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService.ListWorkflowTemplates", + index=5, + containing_service=None, + input_type=_LISTWORKFLOWTEMPLATESREQUEST, + output_type=_LISTWORKFLOWTEMPLATESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002x\0228/v1beta2/{parent=projects/*/regions/*}/workflowTemplatesZ<\022:/v1beta2/{parent=projects/*/locations/*}/workflowTemplates" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteWorkflowTemplate", + full_name="google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate", + index=6, + containing_service=None, + input_type=_DELETEWORKFLOWTEMPLATEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002x*8/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}Z<*:/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_WORKFLOWTEMPLATESERVICE) -DESCRIPTOR.services_by_name['WorkflowTemplateService'] = _WORKFLOWTEMPLATESERVICE +DESCRIPTOR.services_by_name["WorkflowTemplateService"] = _WORKFLOWTEMPLATESERVICE # @@protoc_insertion_point(module_scope) diff --git a/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2_grpc.py b/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2_grpc.py index 2b316ff6b4aaf..012152a68d1a5 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2_grpc.py +++ b/dataproc/google/cloud/dataproc_v1beta2/proto/workflow_templates_pb2_grpc.py @@ -1,83 +1,87 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.dataproc_v1beta2.proto import workflow_templates_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.dataproc_v1beta2.proto import ( + workflow_templates_pb2 as google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class WorkflowTemplateServiceStub(object): - """The API interface for managing Workflow Templates in the + """The API interface for managing Workflow Templates in the Cloud Dataproc API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateWorkflowTemplate = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.WorkflowTemplateService/CreateWorkflowTemplate', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.CreateWorkflowTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.FromString, + self.CreateWorkflowTemplate = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.WorkflowTemplateService/CreateWorkflowTemplate", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.CreateWorkflowTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.FromString, ) - self.GetWorkflowTemplate = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.WorkflowTemplateService/GetWorkflowTemplate', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.GetWorkflowTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.FromString, + self.GetWorkflowTemplate = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.WorkflowTemplateService/GetWorkflowTemplate", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.GetWorkflowTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.FromString, ) - self.InstantiateWorkflowTemplate = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.WorkflowTemplateService/InstantiateWorkflowTemplate', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateWorkflowTemplateRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.InstantiateWorkflowTemplate = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.WorkflowTemplateService/InstantiateWorkflowTemplate", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateWorkflowTemplateRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.InstantiateInlineWorkflowTemplate = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.WorkflowTemplateService/InstantiateInlineWorkflowTemplate', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateInlineWorkflowTemplateRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.InstantiateInlineWorkflowTemplate = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.WorkflowTemplateService/InstantiateInlineWorkflowTemplate", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateInlineWorkflowTemplateRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.UpdateWorkflowTemplate = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.WorkflowTemplateService/UpdateWorkflowTemplate', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.UpdateWorkflowTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.FromString, + self.UpdateWorkflowTemplate = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.WorkflowTemplateService/UpdateWorkflowTemplate", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.UpdateWorkflowTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.FromString, ) - self.ListWorkflowTemplates = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.WorkflowTemplateService/ListWorkflowTemplates', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesResponse.FromString, + self.ListWorkflowTemplates = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.WorkflowTemplateService/ListWorkflowTemplates", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesResponse.FromString, ) - self.DeleteWorkflowTemplate = channel.unary_unary( - '/google.cloud.dataproc.v1beta2.WorkflowTemplateService/DeleteWorkflowTemplate', - request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.DeleteWorkflowTemplateRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteWorkflowTemplate = channel.unary_unary( + "/google.cloud.dataproc.v1beta2.WorkflowTemplateService/DeleteWorkflowTemplate", + request_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.DeleteWorkflowTemplateRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class WorkflowTemplateServiceServicer(object): - """The API interface for managing Workflow Templates in the + """The API interface for managing Workflow Templates in the Cloud Dataproc API. """ - def CreateWorkflowTemplate(self, request, context): - """Creates new workflow template. + def CreateWorkflowTemplate(self, request, context): + """Creates new workflow template. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetWorkflowTemplate(self, request, context): - """Retrieves the latest workflow template. + def GetWorkflowTemplate(self, request, context): + """Retrieves the latest workflow template. Can retrieve previously instantiated template by specifying optional version parameter. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def InstantiateWorkflowTemplate(self, request, context): - """Instantiates a template and begins execution. + def InstantiateWorkflowTemplate(self, request, context): + """Instantiates a template and begins execution. The returned Operation can be used to track execution of workflow by polling @@ -96,12 +100,12 @@ def InstantiateWorkflowTemplate(self, request, context): [Operation.response][google.longrunning.Operation.response] will be [Empty][google.protobuf.Empty]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def InstantiateInlineWorkflowTemplate(self, request, context): - """Instantiates a template and begins execution. + def InstantiateInlineWorkflowTemplate(self, request, context): + """Instantiates a template and begins execution. This method is equivalent to executing the sequence [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], @@ -124,71 +128,72 @@ def InstantiateInlineWorkflowTemplate(self, request, context): [Operation.response][google.longrunning.Operation.response] will be [Empty][google.protobuf.Empty]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateWorkflowTemplate(self, request, context): - """Updates (replaces) workflow template. The updated template + def UpdateWorkflowTemplate(self, request, context): + """Updates (replaces) workflow template. The updated template must contain version that matches the current server version. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListWorkflowTemplates(self, request, context): - """Lists workflows that match the specified filter in the request. + def ListWorkflowTemplates(self, request, context): + """Lists workflows that match the specified filter in the request. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteWorkflowTemplate(self, request, context): - """Deletes a workflow template. It does not cancel in-progress workflows. + def DeleteWorkflowTemplate(self, request, context): + """Deletes a workflow template. It does not cancel in-progress workflows. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_WorkflowTemplateServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateWorkflowTemplate': grpc.unary_unary_rpc_method_handler( - servicer.CreateWorkflowTemplate, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.CreateWorkflowTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.SerializeToString, - ), - 'GetWorkflowTemplate': grpc.unary_unary_rpc_method_handler( - servicer.GetWorkflowTemplate, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.GetWorkflowTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.SerializeToString, - ), - 'InstantiateWorkflowTemplate': grpc.unary_unary_rpc_method_handler( - servicer.InstantiateWorkflowTemplate, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateWorkflowTemplateRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'InstantiateInlineWorkflowTemplate': grpc.unary_unary_rpc_method_handler( - servicer.InstantiateInlineWorkflowTemplate, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateInlineWorkflowTemplateRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'UpdateWorkflowTemplate': grpc.unary_unary_rpc_method_handler( - servicer.UpdateWorkflowTemplate, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.UpdateWorkflowTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.SerializeToString, - ), - 'ListWorkflowTemplates': grpc.unary_unary_rpc_method_handler( - servicer.ListWorkflowTemplates, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesRequest.FromString, - response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesResponse.SerializeToString, - ), - 'DeleteWorkflowTemplate': grpc.unary_unary_rpc_method_handler( - servicer.DeleteWorkflowTemplate, - request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.DeleteWorkflowTemplateRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.dataproc.v1beta2.WorkflowTemplateService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateWorkflowTemplate": grpc.unary_unary_rpc_method_handler( + servicer.CreateWorkflowTemplate, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.CreateWorkflowTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.SerializeToString, + ), + "GetWorkflowTemplate": grpc.unary_unary_rpc_method_handler( + servicer.GetWorkflowTemplate, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.GetWorkflowTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.SerializeToString, + ), + "InstantiateWorkflowTemplate": grpc.unary_unary_rpc_method_handler( + servicer.InstantiateWorkflowTemplate, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateWorkflowTemplateRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "InstantiateInlineWorkflowTemplate": grpc.unary_unary_rpc_method_handler( + servicer.InstantiateInlineWorkflowTemplate, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.InstantiateInlineWorkflowTemplateRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "UpdateWorkflowTemplate": grpc.unary_unary_rpc_method_handler( + servicer.UpdateWorkflowTemplate, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.UpdateWorkflowTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.WorkflowTemplate.SerializeToString, + ), + "ListWorkflowTemplates": grpc.unary_unary_rpc_method_handler( + servicer.ListWorkflowTemplates, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesRequest.FromString, + response_serializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.ListWorkflowTemplatesResponse.SerializeToString, + ), + "DeleteWorkflowTemplate": grpc.unary_unary_rpc_method_handler( + servicer.DeleteWorkflowTemplate, + request_deserializer=google_dot_cloud_dot_dataproc__v1beta2_dot_proto_dot_workflow__templates__pb2.DeleteWorkflowTemplateRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.dataproc.v1beta2.WorkflowTemplateService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/dataproc/google/cloud/dataproc_v1beta2/types.py b/dataproc/google/cloud/dataproc_v1beta2/types.py index b079266300b81..43b6330dbc439 100644 --- a/dataproc/google/cloud/dataproc_v1beta2/types.py +++ b/dataproc/google/cloud/dataproc_v1beta2/types.py @@ -45,12 +45,7 @@ status_pb2, ] -_local_modules = [ - clusters_pb2, - jobs_pb2, - proto_operations_pb2, - workflow_templates_pb2, -] +_local_modules = [clusters_pb2, jobs_pb2, proto_operations_pb2, workflow_templates_pb2] names = [] @@ -60,7 +55,7 @@ names.append(name) for module in _local_modules: for name, message in get_messages(module).items(): - message.__module__ = 'google.cloud.dataproc_v1beta2.types' + message.__module__ = "google.cloud.dataproc_v1beta2.types" setattr(sys.modules[__name__], name, message) names.append(name) diff --git a/dataproc/tests/system/gapic/v1/test_system_cluster_controller_v1.py b/dataproc/tests/system/gapic/v1/test_system_cluster_controller_v1.py index 02f88ea33a4f6..815ac2377b374 100644 --- a/dataproc/tests/system/gapic/v1/test_system_cluster_controller_v1.py +++ b/dataproc/tests/system/gapic/v1/test_system_cluster_controller_v1.py @@ -23,9 +23,9 @@ class TestSystemClusterController(object): def test_list_clusters(self): - project_id = os.environ['PROJECT_ID'] + project_id = os.environ["PROJECT_ID"] client = dataproc_v1.ClusterControllerClient() project_id_2 = project_id - region = 'global' + region = "global" response = client.list_clusters(project_id_2, region) diff --git a/dataproc/tests/system/gapic/v1beta2/test_system_cluster_controller_v1beta2.py b/dataproc/tests/system/gapic/v1beta2/test_system_cluster_controller_v1beta2.py index 2975544d2bdaa..255e34157c29e 100644 --- a/dataproc/tests/system/gapic/v1beta2/test_system_cluster_controller_v1beta2.py +++ b/dataproc/tests/system/gapic/v1beta2/test_system_cluster_controller_v1beta2.py @@ -23,9 +23,9 @@ class TestSystemClusterController(object): def test_list_clusters(self): - project_id = os.environ['PROJECT_ID'] + project_id = os.environ["PROJECT_ID"] client = dataproc_v1beta2.ClusterControllerClient() project_id_2 = project_id - region = 'global' + region = "global" response = client.list_clusters(project_id_2, region) diff --git a/dataproc/tests/unit/gapic/v1/test_cluster_controller_client_v1.py b/dataproc/tests/unit/gapic/v1/test_cluster_controller_client_v1.py index 02e6b0bba2e50..4f856b00fe0ec 100644 --- a/dataproc/tests/unit/gapic/v1/test_cluster_controller_client_v1.py +++ b/dataproc/tests/unit/gapic/v1/test_cluster_controller_client_v1.py @@ -55,10 +55,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -69,29 +66,30 @@ class CustomException(Exception): class TestClusterControllerClient(object): def test_create_cluster(self): # Setup Expected Response - project_id_2 = 'projectId2939242356' - cluster_name = 'clusterName-1018081872' - cluster_uuid = 'clusterUuid-1017854240' + project_id_2 = "projectId2939242356" + cluster_name = "clusterName-1018081872" + cluster_uuid = "clusterUuid-1017854240" expected_response = { - 'project_id': project_id_2, - 'cluster_name': cluster_name, - 'cluster_uuid': cluster_uuid + "project_id": project_id_2, + "cluster_name": cluster_name, + "cluster_uuid": cluster_uuid, } expected_response = clusters_pb2.Cluster(**expected_response) operation = operations_pb2.Operation( - name='operations/test_create_cluster', done=True) + name="operations/test_create_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" cluster = {} response = client.create_cluster(project_id, region, cluster) @@ -100,7 +98,8 @@ def test_create_cluster(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.CreateClusterRequest( - project_id=project_id, region=region, cluster=cluster) + project_id=project_id, region=region, cluster=cluster + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -108,19 +107,20 @@ def test_create_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_create_cluster_exception', done=True) + name="operations/test_create_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" cluster = {} response = client.create_cluster(project_id, region, cluster) @@ -129,35 +129,37 @@ def test_create_cluster_exception(self): def test_update_cluster(self): # Setup Expected Response - project_id_2 = 'projectId2939242356' - cluster_name_2 = 'clusterName2875867491' - cluster_uuid = 'clusterUuid-1017854240' + project_id_2 = "projectId2939242356" + cluster_name_2 = "clusterName2875867491" + cluster_uuid = "clusterUuid-1017854240" expected_response = { - 'project_id': project_id_2, - 'cluster_name': cluster_name_2, - 'cluster_uuid': cluster_uuid + "project_id": project_id_2, + "cluster_name": cluster_name_2, + "cluster_uuid": cluster_uuid, } expected_response = clusters_pb2.Cluster(**expected_response) operation = operations_pb2.Operation( - name='operations/test_update_cluster', done=True) + name="operations/test_update_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" cluster = {} update_mask = {} - response = client.update_cluster(project_id, region, cluster_name, - cluster, update_mask) + response = client.update_cluster( + project_id, region, cluster_name, cluster, update_mask + ) result = response.result() assert expected_response == result @@ -167,7 +169,8 @@ def test_update_cluster(self): region=region, cluster_name=cluster_name, cluster=cluster, - update_mask=update_mask) + update_mask=update_mask, + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -175,25 +178,27 @@ def test_update_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_update_cluster_exception', done=True) + name="operations/test_update_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" cluster = {} update_mask = {} - response = client.update_cluster(project_id, region, cluster_name, - cluster, update_mask) + response = client.update_cluster( + project_id, region, cluster_name, cluster, update_mask + ) exception = response.exception() assert exception.errors[0] == error @@ -202,20 +207,21 @@ def test_delete_cluster(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_delete_cluster', done=True) + name="operations/test_delete_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.delete_cluster(project_id, region, cluster_name) result = response.result() @@ -223,7 +229,8 @@ def test_delete_cluster(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.DeleteClusterRequest( - project_id=project_id, region=region, cluster_name=cluster_name) + project_id=project_id, region=region, cluster_name=cluster_name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -231,20 +238,21 @@ def test_delete_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_delete_cluster_exception', done=True) + name="operations/test_delete_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.delete_cluster(project_id, region, cluster_name) exception = response.exception() @@ -252,75 +260,72 @@ def test_delete_cluster_exception(self): def test_get_cluster(self): # Setup Expected Response - project_id_2 = 'projectId2939242356' - cluster_name_2 = 'clusterName2875867491' - cluster_uuid = 'clusterUuid-1017854240' + project_id_2 = "projectId2939242356" + cluster_name_2 = "clusterName2875867491" + cluster_uuid = "clusterUuid-1017854240" expected_response = { - 'project_id': project_id_2, - 'cluster_name': cluster_name_2, - 'cluster_uuid': cluster_uuid + "project_id": project_id_2, + "cluster_name": cluster_name_2, + "cluster_uuid": cluster_uuid, } expected_response = clusters_pb2.Cluster(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.get_cluster(project_id, region, cluster_name) assert expected_response == response assert len(channel.requests) == 1 expected_request = clusters_pb2.GetClusterRequest( - project_id=project_id, region=region, cluster_name=cluster_name) + project_id=project_id, region=region, cluster_name=cluster_name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_get_cluster_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" with pytest.raises(CustomException): client.get_cluster(project_id, region, cluster_name) def test_list_clusters(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" clusters_element = {} clusters = [clusters_element] - expected_response = { - 'next_page_token': next_page_token, - 'clusters': clusters - } - expected_response = clusters_pb2.ListClustersResponse( - **expected_response) + expected_response = {"next_page_token": next_page_token, "clusters": clusters} + expected_response = clusters_pb2.ListClustersResponse(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_clusters(project_id, region) resources = list(paged_list_response) @@ -330,20 +335,21 @@ def test_list_clusters(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.ListClustersRequest( - project_id=project_id, region=region) + project_id=project_id, region=region + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_clusters_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_clusters(project_id, region) with pytest.raises(CustomException): @@ -354,20 +360,21 @@ def test_diagnose_cluster(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_diagnose_cluster', done=True) + name="operations/test_diagnose_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.diagnose_cluster(project_id, region, cluster_name) result = response.result() @@ -375,7 +382,8 @@ def test_diagnose_cluster(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.DiagnoseClusterRequest( - project_id=project_id, region=region, cluster_name=cluster_name) + project_id=project_id, region=region, cluster_name=cluster_name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -383,20 +391,21 @@ def test_diagnose_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_diagnose_cluster_exception', done=True) + name="operations/test_diagnose_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.diagnose_cluster(project_id, region, cluster_name) exception = response.exception() diff --git a/dataproc/tests/unit/gapic/v1/test_job_controller_client_v1.py b/dataproc/tests/unit/gapic/v1/test_job_controller_client_v1.py index 060b95f0a523c..c0a6bae2e776b 100644 --- a/dataproc/tests/unit/gapic/v1/test_job_controller_client_v1.py +++ b/dataproc/tests/unit/gapic/v1/test_job_controller_client_v1.py @@ -52,10 +52,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -66,26 +63,26 @@ class CustomException(Exception): class TestJobControllerClient(object): def test_submit_job(self): # Setup Expected Response - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" job = {} response = client.submit_job(project_id, region, job) @@ -93,21 +90,22 @@ def test_submit_job(self): assert len(channel.requests) == 1 expected_request = jobs_pb2.SubmitJobRequest( - project_id=project_id, region=region, job=job) + project_id=project_id, region=region, job=job + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_submit_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" job = {} with pytest.raises(CustomException): @@ -115,71 +113,72 @@ def test_submit_job_exception(self): def test_get_job(self): # Setup Expected Response - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" response = client.get_job(project_id, region, job_id) assert expected_response == response assert len(channel.requests) == 1 expected_request = jobs_pb2.GetJobRequest( - project_id=project_id, region=region, job_id=job_id) + project_id=project_id, region=region, job_id=job_id + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_get_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" with pytest.raises(CustomException): client.get_job(project_id, region, job_id) def test_list_jobs(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" jobs_element = {} jobs = [jobs_element] - expected_response = {'next_page_token': next_page_token, 'jobs': jobs} + expected_response = {"next_page_token": next_page_token, "jobs": jobs} expected_response = jobs_pb2.ListJobsResponse(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_jobs(project_id, region) resources = list(paged_list_response) @@ -189,20 +188,21 @@ def test_list_jobs(self): assert len(channel.requests) == 1 expected_request = jobs_pb2.ListJobsRequest( - project_id=project_id, region=region) + project_id=project_id, region=region + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_jobs_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_jobs(project_id, region) with pytest.raises(CustomException): @@ -210,32 +210,31 @@ def test_list_jobs_exception(self): def test_update_job(self): # Setup Expected Response - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" job = {} update_mask = {} - response = client.update_job(project_id, region, job_id, job, - update_mask) + response = client.update_job(project_id, region, job_id, job, update_mask) assert expected_response == response assert len(channel.requests) == 1 @@ -244,22 +243,23 @@ def test_update_job(self): region=region, job_id=job_id, job=job, - update_mask=update_mask) + update_mask=update_mask, + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_update_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" job = {} update_mask = {} @@ -268,85 +268,87 @@ def test_update_job_exception(self): def test_cancel_job(self): # Setup Expected Response - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" response = client.cancel_job(project_id, region, job_id) assert expected_response == response assert len(channel.requests) == 1 expected_request = jobs_pb2.CancelJobRequest( - project_id=project_id, region=region, job_id=job_id) + project_id=project_id, region=region, job_id=job_id + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_cancel_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" with pytest.raises(CustomException): client.cancel_job(project_id, region, job_id) def test_delete_job(self): channel = ChannelStub() - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" client.delete_job(project_id, region, job_id) assert len(channel.requests) == 1 expected_request = jobs_pb2.DeleteJobRequest( - project_id=project_id, region=region, job_id=job_id) + project_id=project_id, region=region, job_id=job_id + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_delete_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" with pytest.raises(CustomException): client.delete_job(project_id, region, job_id) diff --git a/dataproc/tests/unit/gapic/v1/test_workflow_template_service_client_v1.py b/dataproc/tests/unit/gapic/v1/test_workflow_template_service_client_v1.py index c81c93e96cc93..e438a07d91b90 100644 --- a/dataproc/tests/unit/gapic/v1/test_workflow_template_service_client_v1.py +++ b/dataproc/tests/unit/gapic/v1/test_workflow_template_service_client_v1.py @@ -54,10 +54,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -68,22 +65,21 @@ class CustomException(Exception): class TestWorkflowTemplateServiceClient(object): def test_create_workflow_template(self): # Setup Expected Response - id_ = 'id3355' - name = 'name3373707' + id_ = "id3355" + name = "name3373707" version = 351608024 - expected_response = {'id': id_, 'name': name, 'version': version} - expected_response = workflow_templates_pb2.WorkflowTemplate( - **expected_response) + expected_response = {"id": id_, "name": name, "version": version} + expected_response = workflow_templates_pb2.WorkflowTemplate(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} response = client.create_workflow_template(parent, template) @@ -91,20 +87,21 @@ def test_create_workflow_template(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.CreateWorkflowTemplateRequest( - parent=parent, template=template) + parent=parent, template=template + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_create_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} with pytest.raises(CustomException): @@ -112,44 +109,44 @@ def test_create_workflow_template_exception(self): def test_get_workflow_template(self): # Setup Expected Response - id_ = 'id3355' - name_2 = 'name2-1052831874' + id_ = "id3355" + name_2 = "name2-1052831874" version = 351608024 - expected_response = {'id': id_, 'name': name_2, 'version': version} - expected_response = workflow_templates_pb2.WorkflowTemplate( - **expected_response) + expected_response = {"id": id_, "name": name_2, "version": version} + expected_response = workflow_templates_pb2.WorkflowTemplate(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) response = client.get_workflow_template(name) assert expected_response == response assert len(channel.requests) == 1 - expected_request = workflow_templates_pb2.GetWorkflowTemplateRequest( - name=name) + expected_request = workflow_templates_pb2.GetWorkflowTemplateRequest(name=name) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_get_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) with pytest.raises(CustomException): client.get_workflow_template(name) @@ -159,19 +156,21 @@ def test_instantiate_workflow_template(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_instantiate_workflow_template', done=True) + name="operations/test_instantiate_workflow_template", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) response = client.instantiate_workflow_template(name) result = response.result() @@ -179,7 +178,8 @@ def test_instantiate_workflow_template(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.InstantiateWorkflowTemplateRequest( - name=name) + name=name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -187,20 +187,21 @@ def test_instantiate_workflow_template_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_instantiate_workflow_template_exception', - done=True) + name="operations/test_instantiate_workflow_template_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) response = client.instantiate_workflow_template(name) exception = response.exception() @@ -211,29 +212,29 @@ def test_instantiate_inline_workflow_template(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_instantiate_inline_workflow_template', - done=True) + name="operations/test_instantiate_inline_workflow_template", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} - response = client.instantiate_inline_workflow_template( - parent, template) + response = client.instantiate_inline_workflow_template(parent, template) result = response.result() assert expected_response == result assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.InstantiateInlineWorkflowTemplateRequest( - parent=parent, template=template) + parent=parent, template=template + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -241,39 +242,37 @@ def test_instantiate_inline_workflow_template_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name= - 'operations/test_instantiate_inline_workflow_template_exception', - done=True) + name="operations/test_instantiate_inline_workflow_template_exception", + done=True, + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} - response = client.instantiate_inline_workflow_template( - parent, template) + response = client.instantiate_inline_workflow_template(parent, template) exception = response.exception() assert exception.errors[0] == error def test_update_workflow_template(self): # Setup Expected Response - id_ = 'id3355' - name = 'name3373707' + id_ = "id3355" + name = "name3373707" version = 351608024 - expected_response = {'id': id_, 'name': name, 'version': version} - expected_response = workflow_templates_pb2.WorkflowTemplate( - **expected_response) + expected_response = {"id": id_, "name": name, "version": version} + expected_response = workflow_templates_pb2.WorkflowTemplate(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() @@ -286,14 +285,15 @@ def test_update_workflow_template(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.UpdateWorkflowTemplateRequest( - template=template) + template=template + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_update_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() @@ -306,25 +306,23 @@ def test_update_workflow_template_exception(self): def test_list_workflow_templates(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" templates_element = {} templates = [templates_element] - expected_response = { - 'next_page_token': next_page_token, - 'templates': templates - } + expected_response = {"next_page_token": next_page_token, "templates": templates} expected_response = workflow_templates_pb2.ListWorkflowTemplatesResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") paged_list_response = client.list_workflow_templates(parent) resources = list(paged_list_response) @@ -334,19 +332,20 @@ def test_list_workflow_templates(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.ListWorkflowTemplatesRequest( - parent=parent) + parent=parent + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_workflow_templates_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") paged_list_response = client.list_workflow_templates(parent) with pytest.raises(CustomException): @@ -354,34 +353,37 @@ def test_list_workflow_templates_exception(self): def test_delete_workflow_template(self): channel = ChannelStub() - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) client.delete_workflow_template(name) assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.DeleteWorkflowTemplateRequest( - name=name) + name=name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_delete_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1.WorkflowTemplateServiceClient() # Setup request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) with pytest.raises(CustomException): client.delete_workflow_template(name) diff --git a/dataproc/tests/unit/gapic/v1beta2/test_cluster_controller_client_v1beta2.py b/dataproc/tests/unit/gapic/v1beta2/test_cluster_controller_client_v1beta2.py index df756855bb954..bf96927994409 100644 --- a/dataproc/tests/unit/gapic/v1beta2/test_cluster_controller_client_v1beta2.py +++ b/dataproc/tests/unit/gapic/v1beta2/test_cluster_controller_client_v1beta2.py @@ -55,10 +55,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -69,29 +66,30 @@ class CustomException(Exception): class TestClusterControllerClient(object): def test_create_cluster(self): # Setup Expected Response - project_id_2 = 'projectId2939242356' - cluster_name = 'clusterName-1018081872' - cluster_uuid = 'clusterUuid-1017854240' + project_id_2 = "projectId2939242356" + cluster_name = "clusterName-1018081872" + cluster_uuid = "clusterUuid-1017854240" expected_response = { - 'project_id': project_id_2, - 'cluster_name': cluster_name, - 'cluster_uuid': cluster_uuid + "project_id": project_id_2, + "cluster_name": cluster_name, + "cluster_uuid": cluster_uuid, } expected_response = clusters_pb2.Cluster(**expected_response) operation = operations_pb2.Operation( - name='operations/test_create_cluster', done=True) + name="operations/test_create_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" cluster = {} response = client.create_cluster(project_id, region, cluster) @@ -100,7 +98,8 @@ def test_create_cluster(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.CreateClusterRequest( - project_id=project_id, region=region, cluster=cluster) + project_id=project_id, region=region, cluster=cluster + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -108,19 +107,20 @@ def test_create_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_create_cluster_exception', done=True) + name="operations/test_create_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" cluster = {} response = client.create_cluster(project_id, region, cluster) @@ -129,35 +129,37 @@ def test_create_cluster_exception(self): def test_update_cluster(self): # Setup Expected Response - project_id_2 = 'projectId2939242356' - cluster_name_2 = 'clusterName2875867491' - cluster_uuid = 'clusterUuid-1017854240' + project_id_2 = "projectId2939242356" + cluster_name_2 = "clusterName2875867491" + cluster_uuid = "clusterUuid-1017854240" expected_response = { - 'project_id': project_id_2, - 'cluster_name': cluster_name_2, - 'cluster_uuid': cluster_uuid + "project_id": project_id_2, + "cluster_name": cluster_name_2, + "cluster_uuid": cluster_uuid, } expected_response = clusters_pb2.Cluster(**expected_response) operation = operations_pb2.Operation( - name='operations/test_update_cluster', done=True) + name="operations/test_update_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" cluster = {} update_mask = {} - response = client.update_cluster(project_id, region, cluster_name, - cluster, update_mask) + response = client.update_cluster( + project_id, region, cluster_name, cluster, update_mask + ) result = response.result() assert expected_response == result @@ -167,7 +169,8 @@ def test_update_cluster(self): region=region, cluster_name=cluster_name, cluster=cluster, - update_mask=update_mask) + update_mask=update_mask, + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -175,25 +178,27 @@ def test_update_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_update_cluster_exception', done=True) + name="operations/test_update_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" cluster = {} update_mask = {} - response = client.update_cluster(project_id, region, cluster_name, - cluster, update_mask) + response = client.update_cluster( + project_id, region, cluster_name, cluster, update_mask + ) exception = response.exception() assert exception.errors[0] == error @@ -202,20 +207,21 @@ def test_delete_cluster(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_delete_cluster', done=True) + name="operations/test_delete_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.delete_cluster(project_id, region, cluster_name) result = response.result() @@ -223,7 +229,8 @@ def test_delete_cluster(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.DeleteClusterRequest( - project_id=project_id, region=region, cluster_name=cluster_name) + project_id=project_id, region=region, cluster_name=cluster_name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -231,20 +238,21 @@ def test_delete_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_delete_cluster_exception', done=True) + name="operations/test_delete_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.delete_cluster(project_id, region, cluster_name) exception = response.exception() @@ -252,75 +260,72 @@ def test_delete_cluster_exception(self): def test_get_cluster(self): # Setup Expected Response - project_id_2 = 'projectId2939242356' - cluster_name_2 = 'clusterName2875867491' - cluster_uuid = 'clusterUuid-1017854240' + project_id_2 = "projectId2939242356" + cluster_name_2 = "clusterName2875867491" + cluster_uuid = "clusterUuid-1017854240" expected_response = { - 'project_id': project_id_2, - 'cluster_name': cluster_name_2, - 'cluster_uuid': cluster_uuid + "project_id": project_id_2, + "cluster_name": cluster_name_2, + "cluster_uuid": cluster_uuid, } expected_response = clusters_pb2.Cluster(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.get_cluster(project_id, region, cluster_name) assert expected_response == response assert len(channel.requests) == 1 expected_request = clusters_pb2.GetClusterRequest( - project_id=project_id, region=region, cluster_name=cluster_name) + project_id=project_id, region=region, cluster_name=cluster_name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_get_cluster_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" with pytest.raises(CustomException): client.get_cluster(project_id, region, cluster_name) def test_list_clusters(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" clusters_element = {} clusters = [clusters_element] - expected_response = { - 'next_page_token': next_page_token, - 'clusters': clusters - } - expected_response = clusters_pb2.ListClustersResponse( - **expected_response) + expected_response = {"next_page_token": next_page_token, "clusters": clusters} + expected_response = clusters_pb2.ListClustersResponse(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_clusters(project_id, region) resources = list(paged_list_response) @@ -330,20 +335,21 @@ def test_list_clusters(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.ListClustersRequest( - project_id=project_id, region=region) + project_id=project_id, region=region + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_clusters_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_clusters(project_id, region) with pytest.raises(CustomException): @@ -354,20 +360,21 @@ def test_diagnose_cluster(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_diagnose_cluster', done=True) + name="operations/test_diagnose_cluster", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.diagnose_cluster(project_id, region, cluster_name) result = response.result() @@ -375,7 +382,8 @@ def test_diagnose_cluster(self): assert len(channel.requests) == 1 expected_request = clusters_pb2.DiagnoseClusterRequest( - project_id=project_id, region=region, cluster_name=cluster_name) + project_id=project_id, region=region, cluster_name=cluster_name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -383,20 +391,21 @@ def test_diagnose_cluster_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_diagnose_cluster_exception', done=True) + name="operations/test_diagnose_cluster_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.ClusterControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - cluster_name = 'clusterName-1018081872' + project_id = "projectId-1969970175" + region = "region-934795532" + cluster_name = "clusterName-1018081872" response = client.diagnose_cluster(project_id, region, cluster_name) exception = response.exception() diff --git a/dataproc/tests/unit/gapic/v1beta2/test_job_controller_client_v1beta2.py b/dataproc/tests/unit/gapic/v1beta2/test_job_controller_client_v1beta2.py index e4b1665c83978..1f8b3599cfff6 100644 --- a/dataproc/tests/unit/gapic/v1beta2/test_job_controller_client_v1beta2.py +++ b/dataproc/tests/unit/gapic/v1beta2/test_job_controller_client_v1beta2.py @@ -52,10 +52,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -66,28 +63,28 @@ class CustomException(Exception): class TestJobControllerClient(object): def test_submit_job(self): # Setup Expected Response - submitted_by = 'submittedBy-2047729125' - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + submitted_by = "submittedBy-2047729125" + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'submitted_by': submitted_by, - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "submitted_by": submitted_by, + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" job = {} response = client.submit_job(project_id, region, job) @@ -95,21 +92,22 @@ def test_submit_job(self): assert len(channel.requests) == 1 expected_request = jobs_pb2.SubmitJobRequest( - project_id=project_id, region=region, job=job) + project_id=project_id, region=region, job=job + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_submit_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" job = {} with pytest.raises(CustomException): @@ -117,73 +115,74 @@ def test_submit_job_exception(self): def test_get_job(self): # Setup Expected Response - submitted_by = 'submittedBy-2047729125' - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + submitted_by = "submittedBy-2047729125" + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'submitted_by': submitted_by, - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "submitted_by": submitted_by, + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" response = client.get_job(project_id, region, job_id) assert expected_response == response assert len(channel.requests) == 1 expected_request = jobs_pb2.GetJobRequest( - project_id=project_id, region=region, job_id=job_id) + project_id=project_id, region=region, job_id=job_id + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_get_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" with pytest.raises(CustomException): client.get_job(project_id, region, job_id) def test_list_jobs(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" jobs_element = {} jobs = [jobs_element] - expected_response = {'next_page_token': next_page_token, 'jobs': jobs} + expected_response = {"next_page_token": next_page_token, "jobs": jobs} expected_response = jobs_pb2.ListJobsResponse(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_jobs(project_id, region) resources = list(paged_list_response) @@ -193,20 +192,21 @@ def test_list_jobs(self): assert len(channel.requests) == 1 expected_request = jobs_pb2.ListJobsRequest( - project_id=project_id, region=region) + project_id=project_id, region=region + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_jobs_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' + project_id = "projectId-1969970175" + region = "region-934795532" paged_list_response = client.list_jobs(project_id, region) with pytest.raises(CustomException): @@ -214,34 +214,33 @@ def test_list_jobs_exception(self): def test_update_job(self): # Setup Expected Response - submitted_by = 'submittedBy-2047729125' - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + submitted_by = "submittedBy-2047729125" + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'submitted_by': submitted_by, - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "submitted_by": submitted_by, + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" job = {} update_mask = {} - response = client.update_job(project_id, region, job_id, job, - update_mask) + response = client.update_job(project_id, region, job_id, job, update_mask) assert expected_response == response assert len(channel.requests) == 1 @@ -250,22 +249,23 @@ def test_update_job(self): region=region, job_id=job_id, job=job, - update_mask=update_mask) + update_mask=update_mask, + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_update_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" job = {} update_mask = {} @@ -274,87 +274,89 @@ def test_update_job_exception(self): def test_cancel_job(self): # Setup Expected Response - submitted_by = 'submittedBy-2047729125' - driver_output_resource_uri = 'driverOutputResourceUri-542229086' - driver_control_files_uri = 'driverControlFilesUri207057643' - job_uuid = 'jobUuid-1615012099' + submitted_by = "submittedBy-2047729125" + driver_output_resource_uri = "driverOutputResourceUri-542229086" + driver_control_files_uri = "driverControlFilesUri207057643" + job_uuid = "jobUuid-1615012099" expected_response = { - 'submitted_by': submitted_by, - 'driver_output_resource_uri': driver_output_resource_uri, - 'driver_control_files_uri': driver_control_files_uri, - 'job_uuid': job_uuid + "submitted_by": submitted_by, + "driver_output_resource_uri": driver_output_resource_uri, + "driver_control_files_uri": driver_control_files_uri, + "job_uuid": job_uuid, } expected_response = jobs_pb2.Job(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" response = client.cancel_job(project_id, region, job_id) assert expected_response == response assert len(channel.requests) == 1 expected_request = jobs_pb2.CancelJobRequest( - project_id=project_id, region=region, job_id=job_id) + project_id=project_id, region=region, job_id=job_id + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_cancel_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" with pytest.raises(CustomException): client.cancel_job(project_id, region, job_id) def test_delete_job(self): channel = ChannelStub() - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup Request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" client.delete_job(project_id, region, job_id) assert len(channel.requests) == 1 expected_request = jobs_pb2.DeleteJobRequest( - project_id=project_id, region=region, job_id=job_id) + project_id=project_id, region=region, job_id=job_id + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_delete_job_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.JobControllerClient() # Setup request - project_id = 'projectId-1969970175' - region = 'region-934795532' - job_id = 'jobId-1154752291' + project_id = "projectId-1969970175" + region = "region-934795532" + job_id = "jobId-1154752291" with pytest.raises(CustomException): client.delete_job(project_id, region, job_id) diff --git a/dataproc/tests/unit/gapic/v1beta2/test_workflow_template_service_client_v1beta2.py b/dataproc/tests/unit/gapic/v1beta2/test_workflow_template_service_client_v1beta2.py index 603622ffb142e..b4064c2113ce1 100644 --- a/dataproc/tests/unit/gapic/v1beta2/test_workflow_template_service_client_v1beta2.py +++ b/dataproc/tests/unit/gapic/v1beta2/test_workflow_template_service_client_v1beta2.py @@ -54,10 +54,7 @@ def __init__(self, responses=[]): self.responses = responses self.requests = [] - def unary_unary(self, - method, - request_serializer=None, - response_deserializer=None): + def unary_unary(self, method, request_serializer=None, response_deserializer=None): return MultiCallableStub(method, self) @@ -68,22 +65,21 @@ class CustomException(Exception): class TestWorkflowTemplateServiceClient(object): def test_create_workflow_template(self): # Setup Expected Response - id_ = 'id3355' - name = 'name3373707' + id_ = "id3355" + name = "name3373707" version = 351608024 - expected_response = {'id': id_, 'name': name, 'version': version} - expected_response = workflow_templates_pb2.WorkflowTemplate( - **expected_response) + expected_response = {"id": id_, "name": name, "version": version} + expected_response = workflow_templates_pb2.WorkflowTemplate(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} response = client.create_workflow_template(parent, template) @@ -91,20 +87,21 @@ def test_create_workflow_template(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.CreateWorkflowTemplateRequest( - parent=parent, template=template) + parent=parent, template=template + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_create_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} with pytest.raises(CustomException): @@ -112,44 +109,44 @@ def test_create_workflow_template_exception(self): def test_get_workflow_template(self): # Setup Expected Response - id_ = 'id3355' - name_2 = 'name2-1052831874' + id_ = "id3355" + name_2 = "name2-1052831874" version = 351608024 - expected_response = {'id': id_, 'name': name_2, 'version': version} - expected_response = workflow_templates_pb2.WorkflowTemplate( - **expected_response) + expected_response = {"id": id_, "name": name_2, "version": version} + expected_response = workflow_templates_pb2.WorkflowTemplate(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) response = client.get_workflow_template(name) assert expected_response == response assert len(channel.requests) == 1 - expected_request = workflow_templates_pb2.GetWorkflowTemplateRequest( - name=name) + expected_request = workflow_templates_pb2.GetWorkflowTemplateRequest(name=name) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_get_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) with pytest.raises(CustomException): client.get_workflow_template(name) @@ -159,19 +156,21 @@ def test_instantiate_workflow_template(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_instantiate_workflow_template', done=True) + name="operations/test_instantiate_workflow_template", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) response = client.instantiate_workflow_template(name) result = response.result() @@ -179,7 +178,8 @@ def test_instantiate_workflow_template(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.InstantiateWorkflowTemplateRequest( - name=name) + name=name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -187,20 +187,21 @@ def test_instantiate_workflow_template_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name='operations/test_instantiate_workflow_template_exception', - done=True) + name="operations/test_instantiate_workflow_template_exception", done=True + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) response = client.instantiate_workflow_template(name) exception = response.exception() @@ -211,29 +212,29 @@ def test_instantiate_inline_workflow_template(self): expected_response = {} expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name='operations/test_instantiate_inline_workflow_template', - done=True) + name="operations/test_instantiate_inline_workflow_template", done=True + ) operation.response.Pack(expected_response) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} - response = client.instantiate_inline_workflow_template( - parent, template) + response = client.instantiate_inline_workflow_template(parent, template) result = response.result() assert expected_response == result assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.InstantiateInlineWorkflowTemplateRequest( - parent=parent, template=template) + parent=parent, template=template + ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -241,39 +242,37 @@ def test_instantiate_inline_workflow_template_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name= - 'operations/test_instantiate_inline_workflow_template_exception', - done=True) + name="operations/test_instantiate_inline_workflow_template_exception", + done=True, + ) operation.error.CopyFrom(error) # Mock the API response channel = ChannelStub(responses=[operation]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") template = {} - response = client.instantiate_inline_workflow_template( - parent, template) + response = client.instantiate_inline_workflow_template(parent, template) exception = response.exception() assert exception.errors[0] == error def test_update_workflow_template(self): # Setup Expected Response - id_ = 'id3355' - name = 'name3373707' + id_ = "id3355" + name = "name3373707" version = 351608024 - expected_response = {'id': id_, 'name': name, 'version': version} - expected_response = workflow_templates_pb2.WorkflowTemplate( - **expected_response) + expected_response = {"id": id_, "name": name, "version": version} + expected_response = workflow_templates_pb2.WorkflowTemplate(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() @@ -286,14 +285,15 @@ def test_update_workflow_template(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.UpdateWorkflowTemplateRequest( - template=template) + template=template + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_update_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() @@ -306,25 +306,23 @@ def test_update_workflow_template_exception(self): def test_list_workflow_templates(self): # Setup Expected Response - next_page_token = '' + next_page_token = "" templates_element = {} templates = [templates_element] - expected_response = { - 'next_page_token': next_page_token, - 'templates': templates - } + expected_response = {"next_page_token": next_page_token, "templates": templates} expected_response = workflow_templates_pb2.ListWorkflowTemplatesResponse( - **expected_response) + **expected_response + ) # Mock the API response channel = ChannelStub(responses=[expected_response]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") paged_list_response = client.list_workflow_templates(parent) resources = list(paged_list_response) @@ -334,19 +332,20 @@ def test_list_workflow_templates(self): assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.ListWorkflowTemplatesRequest( - parent=parent) + parent=parent + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_list_workflow_templates_exception(self): channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup request - parent = client.region_path('[PROJECT]', '[REGION]') + parent = client.region_path("[PROJECT]", "[REGION]") paged_list_response = client.list_workflow_templates(parent) with pytest.raises(CustomException): @@ -354,34 +353,37 @@ def test_list_workflow_templates_exception(self): def test_delete_workflow_template(self): channel = ChannelStub() - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup Request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) client.delete_workflow_template(name) assert len(channel.requests) == 1 expected_request = workflow_templates_pb2.DeleteWorkflowTemplateRequest( - name=name) + name=name + ) actual_request = channel.requests[0][1] assert expected_request == actual_request def test_delete_workflow_template_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch('google.api_core.grpc_helpers.create_channel') + patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = dataproc_v1beta2.WorkflowTemplateServiceClient() # Setup request - name = client.workflow_template_path('[PROJECT]', '[REGION]', - '[WORKFLOW_TEMPLATE]') + name = client.workflow_template_path( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]" + ) with pytest.raises(CustomException): client.delete_workflow_template(name) diff --git a/datastore/google/cloud/datastore_v1/gapic/datastore_client.py b/datastore/google/cloud/datastore_v1/gapic/datastore_client.py index d1ebd3c925bf0..cd1ba4582a63d 100644 --- a/datastore/google/cloud/datastore_v1/gapic/datastore_client.py +++ b/datastore/google/cloud/datastore_v1/gapic/datastore_client.py @@ -35,7 +35,8 @@ from google.cloud.datastore_v1.proto import query_pb2 _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-cloud-datastore', ).version + "google-cloud-datastore" +).version class DatastoreClient(object): @@ -48,12 +49,12 @@ class DatastoreClient(object): the request. """ - SERVICE_ADDRESS = 'datastore.googleapis.com:443' + SERVICE_ADDRESS = "datastore.googleapis.com:443" """The default address of the service.""" # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.datastore.v1.Datastore' + _INTERFACE_NAME = "google.datastore.v1.Datastore" @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -69,19 +70,20 @@ def from_service_account_file(cls, filename, *args, **kwargs): Returns: DatastoreClient: The constructed client. """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials return cls(*args, **kwargs) from_service_account_json = from_service_account_file - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None, + ): """Constructor. Args: @@ -115,18 +117,19 @@ def __init__(self, # Raise deprecation warnings for things we want to go away. if client_config is not None: warnings.warn( - 'The `client_config` argument is deprecated.', + "The `client_config` argument is deprecated.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) else: client_config = datastore_client_config.config if channel: warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', + "The `channel` argument is deprecated; use " "`transport` instead.", PendingDeprecationWarning, - stacklevel=2) + stacklevel=2, + ) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -135,25 +138,24 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=datastore_grpc_transport. - DatastoreGrpcTransport, + default_class=datastore_grpc_transport.DatastoreGrpcTransport, ) else: if credentials: raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + "Received both a transport instance and " + "credentials; these are mutually exclusive." + ) self.transport = transport else: self.transport = datastore_grpc_transport.DatastoreGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, + address=self.SERVICE_ADDRESS, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -163,7 +165,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config["interfaces"][self._INTERFACE_NAME] + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -172,13 +175,15 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def lookup(self, - project_id, - keys, - read_options=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def lookup( + self, + project_id, + keys, + read_options=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Looks up entities by key. @@ -225,32 +230,34 @@ def lookup(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'lookup' not in self._inner_api_calls: + if "lookup" not in self._inner_api_calls: self._inner_api_calls[ - 'lookup'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.lookup, - default_retry=self._method_configs['Lookup'].retry, - default_timeout=self._method_configs['Lookup'].timeout, - client_info=self._client_info, - ) + "lookup" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.lookup, + default_retry=self._method_configs["Lookup"].retry, + default_timeout=self._method_configs["Lookup"].timeout, + client_info=self._client_info, + ) request = datastore_pb2.LookupRequest( - project_id=project_id, - keys=keys, - read_options=read_options, + project_id=project_id, keys=keys, read_options=read_options ) - return self._inner_api_calls['lookup']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def run_query(self, - project_id, - partition_id, - read_options=None, - query=None, - gql_query=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["lookup"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def run_query( + self, + project_id, + partition_id, + read_options=None, + query=None, + gql_query=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Queries for entities. @@ -308,21 +315,19 @@ def run_query(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'run_query' not in self._inner_api_calls: + if "run_query" not in self._inner_api_calls: self._inner_api_calls[ - 'run_query'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.run_query, - default_retry=self._method_configs['RunQuery'].retry, - default_timeout=self._method_configs['RunQuery'].timeout, - client_info=self._client_info, - ) + "run_query" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.run_query, + default_retry=self._method_configs["RunQuery"].retry, + default_timeout=self._method_configs["RunQuery"].timeout, + client_info=self._client_info, + ) # Sanity check: We have some fields which are mutually exclusive; # raise ValueError if more than one is sent. - google.api_core.protobuf_helpers.check_oneof( - query=query, - gql_query=gql_query, - ) + google.api_core.protobuf_helpers.check_oneof(query=query, gql_query=gql_query) request = datastore_pb2.RunQueryRequest( project_id=project_id, @@ -331,15 +336,18 @@ def run_query(self, query=query, gql_query=gql_query, ) - return self._inner_api_calls['run_query']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def begin_transaction(self, - project_id, - transaction_options=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["run_query"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def begin_transaction( + self, + project_id, + transaction_options=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Begins a new transaction. @@ -379,32 +387,33 @@ def begin_transaction(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'begin_transaction' not in self._inner_api_calls: + if "begin_transaction" not in self._inner_api_calls: self._inner_api_calls[ - 'begin_transaction'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.begin_transaction, - default_retry=self._method_configs['BeginTransaction']. - retry, - default_timeout=self._method_configs['BeginTransaction']. - timeout, - client_info=self._client_info, - ) + "begin_transaction" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.begin_transaction, + default_retry=self._method_configs["BeginTransaction"].retry, + default_timeout=self._method_configs["BeginTransaction"].timeout, + client_info=self._client_info, + ) request = datastore_pb2.BeginTransactionRequest( - project_id=project_id, - transaction_options=transaction_options, + project_id=project_id, transaction_options=transaction_options ) - return self._inner_api_calls['begin_transaction']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def commit(self, - project_id, - mode, - mutations, - transaction=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["begin_transaction"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def commit( + self, + project_id, + mode, + mutations, + transaction=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Commits a transaction, optionally creating, deleting or modifying some entities. @@ -468,18 +477,19 @@ def commit(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'commit' not in self._inner_api_calls: + if "commit" not in self._inner_api_calls: self._inner_api_calls[ - 'commit'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.commit, - default_retry=self._method_configs['Commit'].retry, - default_timeout=self._method_configs['Commit'].timeout, - client_info=self._client_info, - ) + "commit" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.commit, + default_retry=self._method_configs["Commit"].retry, + default_timeout=self._method_configs["Commit"].timeout, + client_info=self._client_info, + ) # Sanity check: We have some fields which are mutually exclusive; # raise ValueError if more than one is sent. - google.api_core.protobuf_helpers.check_oneof(transaction=transaction, ) + google.api_core.protobuf_helpers.check_oneof(transaction=transaction) request = datastore_pb2.CommitRequest( project_id=project_id, @@ -487,15 +497,18 @@ def commit(self, mutations=mutations, transaction=transaction, ) - return self._inner_api_calls['commit']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def rollback(self, - project_id, - transaction, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["commit"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def rollback( + self, + project_id, + transaction, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Rolls back a transaction. @@ -536,28 +549,31 @@ def rollback(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'rollback' not in self._inner_api_calls: + if "rollback" not in self._inner_api_calls: self._inner_api_calls[ - 'rollback'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.rollback, - default_retry=self._method_configs['Rollback'].retry, - default_timeout=self._method_configs['Rollback'].timeout, - client_info=self._client_info, - ) + "rollback" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.rollback, + default_retry=self._method_configs["Rollback"].retry, + default_timeout=self._method_configs["Rollback"].timeout, + client_info=self._client_info, + ) request = datastore_pb2.RollbackRequest( - project_id=project_id, - transaction=transaction, + project_id=project_id, transaction=transaction ) - return self._inner_api_calls['rollback']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def allocate_ids(self, - project_id, - keys, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + return self._inner_api_calls["rollback"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def allocate_ids( + self, + project_id, + keys, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted. @@ -602,30 +618,30 @@ def allocate_ids(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'allocate_ids' not in self._inner_api_calls: + if "allocate_ids" not in self._inner_api_calls: self._inner_api_calls[ - 'allocate_ids'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.allocate_ids, - default_retry=self._method_configs['AllocateIds'].retry, - default_timeout=self._method_configs['AllocateIds']. - timeout, - client_info=self._client_info, - ) + "allocate_ids" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.allocate_ids, + default_retry=self._method_configs["AllocateIds"].retry, + default_timeout=self._method_configs["AllocateIds"].timeout, + client_info=self._client_info, + ) - request = datastore_pb2.AllocateIdsRequest( - project_id=project_id, - keys=keys, + request = datastore_pb2.AllocateIdsRequest(project_id=project_id, keys=keys) + return self._inner_api_calls["allocate_ids"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['allocate_ids']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def reserve_ids(self, - project_id, - keys, - database_id=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + + def reserve_ids( + self, + project_id, + keys, + database_id=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): """ Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore. @@ -671,19 +687,19 @@ def reserve_ids(self, ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if 'reserve_ids' not in self._inner_api_calls: + if "reserve_ids" not in self._inner_api_calls: self._inner_api_calls[ - 'reserve_ids'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.reserve_ids, - default_retry=self._method_configs['ReserveIds'].retry, - default_timeout=self._method_configs['ReserveIds'].timeout, - client_info=self._client_info, - ) + "reserve_ids" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.reserve_ids, + default_retry=self._method_configs["ReserveIds"].retry, + default_timeout=self._method_configs["ReserveIds"].timeout, + client_info=self._client_info, + ) request = datastore_pb2.ReserveIdsRequest( - project_id=project_id, - keys=keys, - database_id=database_id, + project_id=project_id, keys=keys, database_id=database_id + ) + return self._inner_api_calls["reserve_ids"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return self._inner_api_calls['reserve_ids']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/datastore/google/cloud/datastore_v1/gapic/datastore_client_config.py b/datastore/google/cloud/datastore_v1/gapic/datastore_client_config.py index 1a3eb9523447a..95822b8babfc2 100644 --- a/datastore/google/cloud/datastore_v1/gapic/datastore_client_config.py +++ b/datastore/google/cloud/datastore_v1/gapic/datastore_client_config.py @@ -3,7 +3,7 @@ "google.datastore.v1.Datastore": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] + "non_idempotent": [], }, "retry_params": { "default": { @@ -13,46 +13,46 @@ "initial_rpc_timeout_millis": 60000, "rpc_timeout_multiplier": 1.0, "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 600000 + "total_timeout_millis": 600000, } }, "methods": { "Lookup": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "RunQuery": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "BeginTransaction": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "Commit": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "Rollback": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "AllocateIds": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_params_name": "default", }, "ReserveIds": { "timeout_millis": 60000, "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } + "retry_params_name": "default", + }, + }, } } } diff --git a/datastore/google/cloud/datastore_v1/gapic/enums.py b/datastore/google/cloud/datastore_v1/gapic/enums.py index 41497f71781b9..78de5345e3774 100644 --- a/datastore/google/cloud/datastore_v1/gapic/enums.py +++ b/datastore/google/cloud/datastore_v1/gapic/enums.py @@ -28,6 +28,7 @@ class NullValue(enum.IntEnum): Attributes: NULL_VALUE (int): Null value. """ + NULL_VALUE = 0 @@ -47,6 +48,7 @@ class ResultType(enum.IntEnum): PROJECTION (int): A projected subset of properties. The entity may have no key. KEY_ONLY (int): Only the key. """ + RESULT_TYPE_UNSPECIFIED = 0 FULL = 1 PROJECTION = 2 @@ -63,6 +65,7 @@ class Direction(enum.IntEnum): ASCENDING (int): Ascending. DESCENDING (int): Descending. """ + DIRECTION_UNSPECIFIED = 0 ASCENDING = 1 DESCENDING = 2 @@ -77,6 +80,7 @@ class Operator(enum.IntEnum): OPERATOR_UNSPECIFIED (int): Unspecified. This value must not be used. AND (int): The results are required to satisfy each of the combined filters. """ + OPERATOR_UNSPECIFIED = 0 AND = 1 @@ -95,6 +99,7 @@ class Operator(enum.IntEnum): EQUAL (int): Equal. HAS_ANCESTOR (int): Has ancestor. """ + OPERATOR_UNSPECIFIED = 0 LESS_THAN = 1 LESS_THAN_OR_EQUAL = 2 @@ -117,6 +122,7 @@ class MoreResultsType(enum.IntEnum): cursor. NO_MORE_RESULTS (int): The query is finished, and there are no more results. """ + MORE_RESULTS_TYPE_UNSPECIFIED = 0 NOT_FINISHED = 1 MORE_RESULTS_AFTER_LIMIT = 2 @@ -136,6 +142,7 @@ class Mode(enum.IntEnum): `here `__. NON_TRANSACTIONAL (int): Non-transactional: The mutations may not apply as all or none. """ + MODE_UNSPECIFIED = 0 TRANSACTIONAL = 1 NON_TRANSACTIONAL = 2 @@ -151,6 +158,7 @@ class ReadConsistency(enum.IntEnum): STRONG (int): Strong consistency. EVENTUAL (int): Eventual consistency. """ + READ_CONSISTENCY_UNSPECIFIED = 0 STRONG = 1 EVENTUAL = 2 diff --git a/datastore/google/cloud/datastore_v1/gapic/transports/datastore_grpc_transport.py b/datastore/google/cloud/datastore_v1/gapic/transports/datastore_grpc_transport.py index 3f0e8ef0cd13f..1b5639d2dd44b 100644 --- a/datastore/google/cloud/datastore_v1/gapic/transports/datastore_grpc_transport.py +++ b/datastore/google/cloud/datastore_v1/gapic/transports/datastore_grpc_transport.py @@ -27,17 +27,17 @@ class DatastoreGrpcTransport(object): which can be used to take advantage of advanced features of gRPC. """ + # The scopes needed to make gRPC calls to all of the methods defined # in this service. _OAUTH_SCOPES = ( - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/datastore', + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/datastore", ) - def __init__(self, - channel=None, - credentials=None, - address='datastore.googleapis.com:443'): + def __init__( + self, channel=None, credentials=None, address="datastore.googleapis.com:443" + ): """Instantiate the transport class. Args: @@ -55,28 +55,21 @@ def __init__(self, # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + "The `channel` and `credentials` arguments are mutually " "exclusive." + ) # Create the channel. if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) + channel = self.create_channel(address=address, credentials=credentials) self._channel = channel # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. - self._stubs = { - 'datastore_stub': datastore_pb2_grpc.DatastoreStub(channel), - } + self._stubs = {"datastore_stub": datastore_pb2_grpc.DatastoreStub(channel)} @classmethod - def create_channel(cls, - address='datastore.googleapis.com:443', - credentials=None): + def create_channel(cls, address="datastore.googleapis.com:443", credentials=None): """Create and return a gRPC channel object. Args: @@ -91,9 +84,7 @@ def create_channel(cls, grpc.Channel: A gRPC channel object. """ return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, + address, credentials=credentials, scopes=cls._OAUTH_SCOPES ) @property @@ -116,7 +107,7 @@ def lookup(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['datastore_stub'].Lookup + return self._stubs["datastore_stub"].Lookup @property def run_query(self): @@ -129,7 +120,7 @@ def run_query(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['datastore_stub'].RunQuery + return self._stubs["datastore_stub"].RunQuery @property def begin_transaction(self): @@ -142,7 +133,7 @@ def begin_transaction(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['datastore_stub'].BeginTransaction + return self._stubs["datastore_stub"].BeginTransaction @property def commit(self): @@ -156,7 +147,7 @@ def commit(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['datastore_stub'].Commit + return self._stubs["datastore_stub"].Commit @property def rollback(self): @@ -169,7 +160,7 @@ def rollback(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['datastore_stub'].Rollback + return self._stubs["datastore_stub"].Rollback @property def allocate_ids(self): @@ -183,7 +174,7 @@ def allocate_ids(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['datastore_stub'].AllocateIds + return self._stubs["datastore_stub"].AllocateIds @property def reserve_ids(self): @@ -197,4 +188,4 @@ def reserve_ids(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['datastore_stub'].ReserveIds + return self._stubs["datastore_stub"].ReserveIds diff --git a/datastore/google/cloud/datastore_v1/proto/datastore_pb2.py b/datastore/google/cloud/datastore_v1/proto/datastore_pb2.py index 2cfcf62435f6e..340a0224ce834 100644 --- a/datastore/google/cloud/datastore_v1/proto/datastore_pb2.py +++ b/datastore/google/cloud/datastore_v1/proto/datastore_pb2.py @@ -2,974 +2,1498 @@ # source: google/cloud/datastore_v1/proto/datastore.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.datastore_v1.proto import entity_pb2 as google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2 -from google.cloud.datastore_v1.proto import query_pb2 as google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2 +from google.cloud.datastore_v1.proto import ( + entity_pb2 as google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2, +) +from google.cloud.datastore_v1.proto import ( + query_pb2 as google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/datastore_v1/proto/datastore.proto', - package='google.datastore.v1', - syntax='proto3', - serialized_pb=_b('\n/google/cloud/datastore_v1/proto/datastore.proto\x12\x13google.datastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/datastore_v1/proto/entity.proto\x1a+google/cloud/datastore_v1/proto/query.proto\"\x83\x01\n\rLookupRequest\x12\x12\n\nproject_id\x18\x08 \x01(\t\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12&\n\x04keys\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.Key\"\xa2\x01\n\x0eLookupResponse\x12\x30\n\x05\x66ound\x18\x01 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x32\n\x07missing\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12*\n\x08\x64\x65\x66\x65rred\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.Key\"\x84\x02\n\x0fRunQueryRequest\x12\x12\n\nproject_id\x18\x08 \x01(\t\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x05query\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.QueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x42\x0c\n\nquery_type\"s\n\x10RunQueryResponse\x12\x34\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32%.google.datastore.v1.QueryResultBatch\x12)\n\x05query\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.Query\"s\n\x17\x42\x65ginTransactionRequest\x12\x12\n\nproject_id\x18\x08 \x01(\t\x12\x44\n\x13transaction_options\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptions\"/\n\x18\x42\x65ginTransactionResponse\x12\x13\n\x0btransaction\x18\x01 \x01(\x0c\":\n\x0fRollbackRequest\x12\x12\n\nproject_id\x18\x08 \x01(\t\x12\x13\n\x0btransaction\x18\x01 \x01(\x0c\"\x12\n\x10RollbackResponse\"\x83\x02\n\rCommitRequest\x12\x12\n\nproject_id\x18\x08 \x01(\t\x12\x35\n\x04mode\x18\x05 \x01(\x0e\x32\'.google.datastore.v1.CommitRequest.Mode\x12\x15\n\x0btransaction\x18\x01 \x01(\x0cH\x00\x12\x30\n\tmutations\x18\x06 \x03(\x0b\x32\x1d.google.datastore.v1.Mutation\"F\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rTRANSACTIONAL\x10\x01\x12\x15\n\x11NON_TRANSACTIONAL\x10\x02\x42\x16\n\x14transaction_selector\"f\n\x0e\x43ommitResponse\x12=\n\x10mutation_results\x18\x03 \x03(\x0b\x32#.google.datastore.v1.MutationResult\x12\x15\n\rindex_updates\x18\x04 \x01(\x05\"P\n\x12\x41llocateIdsRequest\x12\x12\n\nproject_id\x18\x08 \x01(\t\x12&\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.Key\"=\n\x13\x41llocateIdsResponse\x12&\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.Key\"d\n\x11ReserveIdsRequest\x12\x12\n\nproject_id\x18\x08 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12&\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.Key\"\x14\n\x12ReserveIdsResponse\"\x87\x02\n\x08Mutation\x12-\n\x06insert\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06update\x18\x05 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06upsert\x18\x06 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12*\n\x06\x64\x65lete\x18\x07 \x01(\x0b\x32\x18.google.datastore.v1.KeyH\x00\x12\x16\n\x0c\x62\x61se_version\x18\x08 \x01(\x03H\x01\x42\x0b\n\toperationB\x1d\n\x1b\x63onflict_detection_strategy\"c\n\x0eMutationResult\x12%\n\x03key\x18\x03 \x01(\x0b\x32\x18.google.datastore.v1.Key\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x19\n\x11\x63onflict_detected\x18\x05 \x01(\x08\"\xd5\x01\n\x0bReadOptions\x12L\n\x10read_consistency\x18\x01 \x01(\x0e\x32\x30.google.datastore.v1.ReadOptions.ReadConsistencyH\x00\x12\x15\n\x0btransaction\x18\x02 \x01(\x0cH\x00\"M\n\x0fReadConsistency\x12 \n\x1cREAD_CONSISTENCY_UNSPECIFIED\x10\x00\x12\n\n\x06STRONG\x10\x01\x12\x0c\n\x08\x45VENTUAL\x10\x02\x42\x12\n\x10\x63onsistency_type\"\xe3\x01\n\x12TransactionOptions\x12G\n\nread_write\x18\x01 \x01(\x0b\x32\x31.google.datastore.v1.TransactionOptions.ReadWriteH\x00\x12\x45\n\tread_only\x18\x02 \x01(\x0b\x32\x30.google.datastore.v1.TransactionOptions.ReadOnlyH\x00\x1a)\n\tReadWrite\x12\x1c\n\x14previous_transaction\x18\x01 \x01(\x0c\x1a\n\n\x08ReadOnlyB\x06\n\x04mode2\xec\x07\n\tDatastore\x12~\n\x06Lookup\x12\".google.datastore.v1.LookupRequest\x1a#.google.datastore.v1.LookupResponse\"+\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:lookup:\x01*\x12\x86\x01\n\x08RunQuery\x12$.google.datastore.v1.RunQueryRequest\x1a%.google.datastore.v1.RunQueryResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:runQuery:\x01*\x12\xa6\x01\n\x10\x42\x65ginTransaction\x12,.google.datastore.v1.BeginTransactionRequest\x1a-.google.datastore.v1.BeginTransactionResponse\"5\x82\xd3\xe4\x93\x02/\"*/v1/projects/{project_id}:beginTransaction:\x01*\x12~\n\x06\x43ommit\x12\".google.datastore.v1.CommitRequest\x1a#.google.datastore.v1.CommitResponse\"+\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:commit:\x01*\x12\x86\x01\n\x08Rollback\x12$.google.datastore.v1.RollbackRequest\x1a%.google.datastore.v1.RollbackResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:rollback:\x01*\x12\x92\x01\n\x0b\x41llocateIds\x12\'.google.datastore.v1.AllocateIdsRequest\x1a(.google.datastore.v1.AllocateIdsResponse\"0\x82\xd3\xe4\x93\x02*\"%/v1/projects/{project_id}:allocateIds:\x01*\x12\x8e\x01\n\nReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1a\'.google.datastore.v1.ReserveIdsResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/projects/{project_id}:reserveIds:\x01*B\xa1\x01\n\x17\x63om.google.datastore.v1B\x0e\x44\x61tastoreProtoP\x01Z\n\x0fproperty_filter\x18\x02 \x01(\x0b\x32#.google.datastore.v1.PropertyFilterH\x00\x42\r\n\x0b\x66ilter_type\"\xa9\x01\n\x0f\x43ompositeFilter\x12\x39\n\x02op\x18\x01 \x01(\x0e\x32-.google.datastore.v1.CompositeFilter.Operator\x12,\n\x07\x66ilters\x18\x02 \x03(\x0b\x32\x1b.google.datastore.v1.Filter\"-\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\"\xc7\x02\n\x0ePropertyFilter\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\x12\x38\n\x02op\x18\x02 \x01(\x0e\x32,.google.datastore.v1.PropertyFilter.Operator\x12)\n\x05value\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.Value\"\x95\x01\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\r\n\tLESS_THAN\x10\x01\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x04\x12\t\n\x05\x45QUAL\x10\x05\x12\x10\n\x0cHAS_ANCESTOR\x10\x0b\"\xa5\x02\n\x08GqlQuery\x12\x14\n\x0cquery_string\x18\x01 \x01(\t\x12\x16\n\x0e\x61llow_literals\x18\x02 \x01(\x08\x12H\n\x0enamed_bindings\x18\x05 \x03(\x0b\x32\x30.google.datastore.v1.GqlQuery.NamedBindingsEntry\x12\x43\n\x13positional_bindings\x18\x04 \x03(\x0b\x32&.google.datastore.v1.GqlQueryParameter\x1a\\\n\x12NamedBindingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.datastore.v1.GqlQueryParameter:\x02\x38\x01\"d\n\x11GqlQueryParameter\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.ValueH\x00\x12\x10\n\x06\x63ursor\x18\x03 \x01(\x0cH\x00\x42\x10\n\x0eparameter_type\"\xde\x03\n\x10QueryResultBatch\x12\x17\n\x0fskipped_results\x18\x06 \x01(\x05\x12\x16\n\x0eskipped_cursor\x18\x03 \x01(\x0c\x12H\n\x12\x65ntity_result_type\x18\x01 \x01(\x0e\x32,.google.datastore.v1.EntityResult.ResultType\x12\x39\n\x0e\x65ntity_results\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x12\n\nend_cursor\x18\x04 \x01(\x0c\x12K\n\x0cmore_results\x18\x05 \x01(\x0e\x32\x35.google.datastore.v1.QueryResultBatch.MoreResultsType\x12\x18\n\x10snapshot_version\x18\x07 \x01(\x03\"\x98\x01\n\x0fMoreResultsType\x12!\n\x1dMORE_RESULTS_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_FINISHED\x10\x01\x12\x1c\n\x18MORE_RESULTS_AFTER_LIMIT\x10\x02\x12\x1d\n\x19MORE_RESULTS_AFTER_CURSOR\x10\x04\x12\x13\n\x0fNO_MORE_RESULTS\x10\x03\x42\x9d\x01\n\x17\x63om.google.datastore.v1B\nQueryProtoP\x01Z\n\x0fproperty_filter\x18\x02 \x01(\x0b\x32#.google.datastore.v1.PropertyFilterH\x00\x42\r\n\x0b\x66ilter_type"\xa9\x01\n\x0f\x43ompositeFilter\x12\x39\n\x02op\x18\x01 \x01(\x0e\x32-.google.datastore.v1.CompositeFilter.Operator\x12,\n\x07\x66ilters\x18\x02 \x03(\x0b\x32\x1b.google.datastore.v1.Filter"-\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01"\xc7\x02\n\x0ePropertyFilter\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\x12\x38\n\x02op\x18\x02 \x01(\x0e\x32,.google.datastore.v1.PropertyFilter.Operator\x12)\n\x05value\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.Value"\x95\x01\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\r\n\tLESS_THAN\x10\x01\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x04\x12\t\n\x05\x45QUAL\x10\x05\x12\x10\n\x0cHAS_ANCESTOR\x10\x0b"\xa5\x02\n\x08GqlQuery\x12\x14\n\x0cquery_string\x18\x01 \x01(\t\x12\x16\n\x0e\x61llow_literals\x18\x02 \x01(\x08\x12H\n\x0enamed_bindings\x18\x05 \x03(\x0b\x32\x30.google.datastore.v1.GqlQuery.NamedBindingsEntry\x12\x43\n\x13positional_bindings\x18\x04 \x03(\x0b\x32&.google.datastore.v1.GqlQueryParameter\x1a\\\n\x12NamedBindingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.datastore.v1.GqlQueryParameter:\x02\x38\x01"d\n\x11GqlQueryParameter\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.ValueH\x00\x12\x10\n\x06\x63ursor\x18\x03 \x01(\x0cH\x00\x42\x10\n\x0eparameter_type"\xde\x03\n\x10QueryResultBatch\x12\x17\n\x0fskipped_results\x18\x06 \x01(\x05\x12\x16\n\x0eskipped_cursor\x18\x03 \x01(\x0c\x12H\n\x12\x65ntity_result_type\x18\x01 \x01(\x0e\x32,.google.datastore.v1.EntityResult.ResultType\x12\x39\n\x0e\x65ntity_results\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x12\n\nend_cursor\x18\x04 \x01(\x0c\x12K\n\x0cmore_results\x18\x05 \x01(\x0e\x32\x35.google.datastore.v1.QueryResultBatch.MoreResultsType\x12\x18\n\x10snapshot_version\x18\x07 \x01(\x03"\x98\x01\n\x0fMoreResultsType\x12!\n\x1dMORE_RESULTS_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_FINISHED\x10\x01\x12\x1c\n\x18MORE_RESULTS_AFTER_LIMIT\x10\x02\x12\x1d\n\x19MORE_RESULTS_AFTER_CURSOR\x10\x04\x12\x13\n\x0fNO_MORE_RESULTS\x10\x03\x42\x9d\x01\n\x17\x63om.google.datastore.v1B\nQueryProtoP\x01Z= 0 if specified. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.Query) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.Query) + ), +) _sym_db.RegisterMessage(Query) -KindExpression = _reflection.GeneratedProtocolMessageType('KindExpression', (_message.Message,), dict( - DESCRIPTOR = _KINDEXPRESSION, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A representation of a kind. +KindExpression = _reflection.GeneratedProtocolMessageType( + "KindExpression", + (_message.Message,), + dict( + DESCRIPTOR=_KINDEXPRESSION, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A representation of a kind. Attributes: name: The name of the kind. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.KindExpression) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.KindExpression) + ), +) _sym_db.RegisterMessage(KindExpression) -PropertyReference = _reflection.GeneratedProtocolMessageType('PropertyReference', (_message.Message,), dict( - DESCRIPTOR = _PROPERTYREFERENCE, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A reference to a property relative to the kind expressions. +PropertyReference = _reflection.GeneratedProtocolMessageType( + "PropertyReference", + (_message.Message,), + dict( + DESCRIPTOR=_PROPERTYREFERENCE, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A reference to a property relative to the kind expressions. Attributes: @@ -936,30 +1359,36 @@ The name of the property. If name includes "."s, it may be interpreted as a property name path. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyReference) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyReference) + ), +) _sym_db.RegisterMessage(PropertyReference) -Projection = _reflection.GeneratedProtocolMessageType('Projection', (_message.Message,), dict( - DESCRIPTOR = _PROJECTION, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A representation of a property in a projection. +Projection = _reflection.GeneratedProtocolMessageType( + "Projection", + (_message.Message,), + dict( + DESCRIPTOR=_PROJECTION, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A representation of a property in a projection. Attributes: property: The property to project. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.Projection) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.Projection) + ), +) _sym_db.RegisterMessage(Projection) -PropertyOrder = _reflection.GeneratedProtocolMessageType('PropertyOrder', (_message.Message,), dict( - DESCRIPTOR = _PROPERTYORDER, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """The desired order for a specific property. +PropertyOrder = _reflection.GeneratedProtocolMessageType( + "PropertyOrder", + (_message.Message,), + dict( + DESCRIPTOR=_PROPERTYORDER, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""The desired order for a specific property. Attributes: @@ -968,15 +1397,18 @@ direction: The direction to order by. Defaults to ``ASCENDING``. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyOrder) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyOrder) + ), +) _sym_db.RegisterMessage(PropertyOrder) -Filter = _reflection.GeneratedProtocolMessageType('Filter', (_message.Message,), dict( - DESCRIPTOR = _FILTER, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A holder for any type of filter. +Filter = _reflection.GeneratedProtocolMessageType( + "Filter", + (_message.Message,), + dict( + DESCRIPTOR=_FILTER, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A holder for any type of filter. Attributes: @@ -987,15 +1419,18 @@ property_filter: A filter on a property. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.Filter) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.Filter) + ), +) _sym_db.RegisterMessage(Filter) -CompositeFilter = _reflection.GeneratedProtocolMessageType('CompositeFilter', (_message.Message,), dict( - DESCRIPTOR = _COMPOSITEFILTER, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A filter that merges multiple other filters using the given operator. +CompositeFilter = _reflection.GeneratedProtocolMessageType( + "CompositeFilter", + (_message.Message,), + dict( + DESCRIPTOR=_COMPOSITEFILTER, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A filter that merges multiple other filters using the given operator. Attributes: @@ -1005,15 +1440,18 @@ The list of filters to combine. Must contain at least one filter. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.CompositeFilter) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.CompositeFilter) + ), +) _sym_db.RegisterMessage(CompositeFilter) -PropertyFilter = _reflection.GeneratedProtocolMessageType('PropertyFilter', (_message.Message,), dict( - DESCRIPTOR = _PROPERTYFILTER, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A filter on a specific property. +PropertyFilter = _reflection.GeneratedProtocolMessageType( + "PropertyFilter", + (_message.Message,), + dict( + DESCRIPTOR=_PROPERTYFILTER, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A filter on a specific property. Attributes: @@ -1024,22 +1462,27 @@ value: The value to compare the property to. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyFilter) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.PropertyFilter) + ), +) _sym_db.RegisterMessage(PropertyFilter) -GqlQuery = _reflection.GeneratedProtocolMessageType('GqlQuery', (_message.Message,), dict( - - NamedBindingsEntry = _reflection.GeneratedProtocolMessageType('NamedBindingsEntry', (_message.Message,), dict( - DESCRIPTOR = _GQLQUERY_NAMEDBINDINGSENTRY, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - # @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQuery.NamedBindingsEntry) - )) - , - DESCRIPTOR = _GQLQUERY, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A `GQL +GqlQuery = _reflection.GeneratedProtocolMessageType( + "GqlQuery", + (_message.Message,), + dict( + NamedBindingsEntry=_reflection.GeneratedProtocolMessageType( + "NamedBindingsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_GQLQUERY_NAMEDBINDINGSENTRY, + __module__="google.cloud.datastore_v1.proto.query_pb2" + # @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQuery.NamedBindingsEntry) + ), + ), + DESCRIPTOR=_GQLQUERY, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A `GQL query `__. @@ -1065,16 +1508,19 @@ ``query_string``, there must be an i-th numbered parameter. The inverse must also be true. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQuery) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQuery) + ), +) _sym_db.RegisterMessage(GqlQuery) _sym_db.RegisterMessage(GqlQuery.NamedBindingsEntry) -GqlQueryParameter = _reflection.GeneratedProtocolMessageType('GqlQueryParameter', (_message.Message,), dict( - DESCRIPTOR = _GQLQUERYPARAMETER, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A binding parameter for a GQL query. +GqlQueryParameter = _reflection.GeneratedProtocolMessageType( + "GqlQueryParameter", + (_message.Message,), + dict( + DESCRIPTOR=_GQLQUERYPARAMETER, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A binding parameter for a GQL query. Attributes: @@ -1086,15 +1532,18 @@ A query cursor. Query cursors are returned in query result batches. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQueryParameter) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.GqlQueryParameter) + ), +) _sym_db.RegisterMessage(GqlQueryParameter) -QueryResultBatch = _reflection.GeneratedProtocolMessageType('QueryResultBatch', (_message.Message,), dict( - DESCRIPTOR = _QUERYRESULTBATCH, - __module__ = 'google.cloud.datastore_v1.proto.query_pb2' - , - __doc__ = """A batch of results produced by a query. +QueryResultBatch = _reflection.GeneratedProtocolMessageType( + "QueryResultBatch", + (_message.Message,), + dict( + DESCRIPTOR=_QUERYRESULTBATCH, + __module__="google.cloud.datastore_v1.proto.query_pb2", + __doc__="""A batch of results produced by a query. Attributes: @@ -1123,13 +1572,21 @@ preceding batches. The value will be zero for eventually consistent queries. """, - # @@protoc_insertion_point(class_scope:google.datastore.v1.QueryResultBatch) - )) + # @@protoc_insertion_point(class_scope:google.datastore.v1.QueryResultBatch) + ), +) _sym_db.RegisterMessage(QueryResultBatch) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.google.datastore.v1B\nQueryProtoP\001Z\n\x0e\x65xclusion_rule\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.ExclusionRuleH\x00\x42\x06\n\x04type\"~\n\x11InspectionRuleSet\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x34\n\x05rules\x18\x02 \x03(\x0b\x32%.google.privacy.dlp.v2.InspectionRule\"\xc7\x05\n\rInspectConfig\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x39\n\x0emin_likelihood\x18\x02 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x42\n\x06limits\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.InspectConfig.FindingLimits\x12\x15\n\rinclude_quote\x18\x04 \x01(\x08\x12\x1a\n\x12\x65xclude_info_types\x18\x05 \x01(\x08\x12@\n\x11\x63ustom_info_types\x18\x06 \x03(\x0b\x32%.google.privacy.dlp.v2.CustomInfoType\x12=\n\x0f\x63ontent_options\x18\x08 \x03(\x0e\x32$.google.privacy.dlp.v2.ContentOption\x12:\n\x08rule_set\x18\n \x03(\x0b\x32(.google.privacy.dlp.v2.InspectionRuleSet\x1a\x91\x02\n\rFindingLimits\x12\x1d\n\x15max_findings_per_item\x18\x01 \x01(\x05\x12 \n\x18max_findings_per_request\x18\x02 \x01(\x05\x12\x64\n\x1amax_findings_per_info_type\x18\x03 \x03(\x0b\x32@.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit\x1aY\n\rInfoTypeLimit\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x14\n\x0cmax_findings\x18\x02 \x01(\x05\"\xdf\x01\n\x0f\x42yteContentItem\x12>\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.privacy.dlp.v2.ByteContentItem.BytesType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"~\n\tBytesType\x12\x1a\n\x16\x42YTES_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05IMAGE\x10\x06\x12\x0e\n\nIMAGE_JPEG\x10\x01\x12\r\n\tIMAGE_BMP\x10\x02\x12\r\n\tIMAGE_PNG\x10\x03\x12\r\n\tIMAGE_SVG\x10\x04\x12\r\n\tTEXT_UTF8\x10\x05\"\x97\x01\n\x0b\x43ontentItem\x12\x0f\n\x05value\x18\x03 \x01(\tH\x00\x12-\n\x05table\x18\x04 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.TableH\x00\x12;\n\tbyte_item\x18\x05 \x01(\x0b\x32&.google.privacy.dlp.v2.ByteContentItemH\x00\x42\x0b\n\tdata_item\"\x9d\x01\n\x05Table\x12/\n\x07headers\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12.\n\x04rows\x18\x02 \x03(\x0b\x32 .google.privacy.dlp.v2.Table.Row\x1a\x33\n\x03Row\x12,\n\x06values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\"]\n\rInspectResult\x12\x30\n\x08\x66indings\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.Finding\x12\x1a\n\x12\x66indings_truncated\x18\x02 \x01(\x08\"\x9d\x02\n\x07\x46inding\x12\r\n\x05quote\x18\x01 \x01(\t\x12\x32\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x35\n\nlikelihood\x18\x03 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x31\n\x08location\x18\x04 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.Location\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nquote_info\x18\x07 \x01(\x0b\x32 .google.privacy.dlp.v2.QuoteInfo\"\xb6\x01\n\x08Location\x12\x30\n\nbyte_range\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Range\x12\x35\n\x0f\x63odepoint_range\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Range\x12\x41\n\x11\x63ontent_locations\x18\x07 \x03(\x0b\x32&.google.privacy.dlp.v2.ContentLocation\"\xd1\x02\n\x0f\x43ontentLocation\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12@\n\x0frecord_location\x18\x02 \x01(\x0b\x32%.google.privacy.dlp.v2.RecordLocationH\x00\x12>\n\x0eimage_location\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.ImageLocationH\x00\x12\x44\n\x11\x64ocument_location\x18\x05 \x01(\x0b\x32\'.google.privacy.dlp.v2.DocumentLocationH\x00\x12\x37\n\x13\x63ontainer_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x63ontainer_version\x18\x07 \x01(\tB\n\n\x08location\"\'\n\x10\x44ocumentLocation\x12\x13\n\x0b\x66ile_offset\x18\x01 \x01(\x03\"\xb6\x01\n\x0eRecordLocation\x12\x34\n\nrecord_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.RecordKey\x12\x30\n\x08\x66ield_id\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12<\n\x0etable_location\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.TableLocation\"\"\n\rTableLocation\x12\x11\n\trow_index\x18\x01 \x01(\x03\"#\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03\"K\n\rImageLocation\x12:\n\x0e\x62ounding_boxes\x18\x01 \x03(\x0b\x32\".google.privacy.dlp.v2.BoundingBox\"G\n\x0b\x42oundingBox\x12\x0b\n\x03top\x18\x01 \x01(\x05\x12\x0c\n\x04left\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\"\xc3\x03\n\x12RedactImageRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12_\n\x17image_redaction_configs\x18\x05 \x03(\x0b\x32>.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig\x12\x18\n\x10include_findings\x18\x06 \x01(\x08\x12\x39\n\tbyte_item\x18\x07 \x01(\x0b\x32&.google.privacy.dlp.v2.ByteContentItem\x1a\xa8\x01\n\x14ImageRedactionConfig\x12\x34\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x19\n\x0fredact_all_text\x18\x02 \x01(\x08H\x00\x12\x35\n\x0fredaction_color\x18\x03 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.ColorB\x08\n\x06target\"1\n\x05\x43olor\x12\x0b\n\x03red\x18\x01 \x01(\x02\x12\r\n\x05green\x18\x02 \x01(\x02\x12\x0c\n\x04\x62lue\x18\x03 \x01(\x02\"\x83\x01\n\x13RedactImageResponse\x12\x16\n\x0eredacted_image\x18\x01 \x01(\x0c\x12\x16\n\x0e\x65xtracted_text\x18\x02 \x01(\t\x12<\n\x0einspect_result\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectResult\"\x9f\x02\n\x18\x44\x65identifyContentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x42\n\x11\x64\x65identify_config\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig\x12<\n\x0einspect_config\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x04 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x05 \x01(\t\x12 \n\x18\x64\x65identify_template_name\x18\x06 \x01(\t\"\x8e\x01\n\x19\x44\x65identifyContentResponse\x12\x30\n\x04item\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12?\n\x08overview\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.TransformationOverview\"\x9f\x02\n\x18ReidentifyContentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x42\n\x11reidentify_config\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig\x12<\n\x0einspect_config\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x04 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x05 \x01(\t\x12 \n\x18reidentify_template_name\x18\x06 \x01(\t\"\x8e\x01\n\x19ReidentifyContentResponse\x12\x30\n\x04item\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12?\n\x08overview\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.TransformationOverview\"\xb6\x01\n\x15InspectContentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x03 \x01(\x0b\x32\".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x04 \x01(\t\"N\n\x16InspectContentResponse\x12\x34\n\x06result\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectResult\"\xb7\x02\n\x13OutputStorageConfig\x12\x35\n\x05table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTableH\x00\x12N\n\routput_schema\x18\x03 \x01(\x0e\x32\x37.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema\"\x90\x01\n\x0cOutputSchema\x12\x1d\n\x19OUTPUT_SCHEMA_UNSPECIFIED\x10\x00\x12\x11\n\rBASIC_COLUMNS\x10\x01\x12\x0f\n\x0bGCS_COLUMNS\x10\x02\x12\x15\n\x11\x44\x41TASTORE_COLUMNS\x10\x03\x12\x15\n\x11\x42IG_QUERY_COLUMNS\x10\x04\x12\x0f\n\x0b\x41LL_COLUMNS\x10\x05\x42\x06\n\x04type\"R\n\rInfoTypeStats\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xdd\x03\n\x18InspectDataSourceDetails\x12[\n\x11requested_options\x18\x02 \x01(\x0b\x32@.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions\x12\x46\n\x06result\x18\x03 \x01(\x0b\x32\x36.google.privacy.dlp.v2.InspectDataSourceDetails.Result\x1a\x9a\x01\n\x10RequestedOptions\x12I\n\x19snapshot_inspect_template\x18\x01 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12;\n\njob_config\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfig\x1a\x7f\n\x06Result\x12\x17\n\x0fprocessed_bytes\x18\x01 \x01(\x03\x12\x1d\n\x15total_estimated_bytes\x18\x02 \x01(\x03\x12=\n\x0finfo_type_stats\x18\x03 \x03(\x0b\x32$.google.privacy.dlp.v2.InfoTypeStats\"{\n\x13InfoTypeDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12@\n\x0csupported_by\x18\x03 \x03(\x0e\x32*.google.privacy.dlp.v2.InfoTypeSupportedBy\"=\n\x14ListInfoTypesRequest\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"W\n\x15ListInfoTypesResponse\x12>\n\ninfo_types\x18\x01 \x03(\x0b\x32*.google.privacy.dlp.v2.InfoTypeDescription\"\xc1\x01\n\x15RiskAnalysisJobConfig\x12<\n\x0eprivacy_metric\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.PrivacyMetric\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12.\n\x07\x61\x63tions\x18\x03 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.Action\"\xb7\x01\n\x07QuasiId\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x34\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\n\ncustom_tag\x18\x03 \x01(\tH\x00\x12*\n\x08inferred\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x42\x05\n\x03tag\"\xaf\x02\n\x10StatisticalTable\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12O\n\tquasi_ids\x18\x01 \x03(\x0b\x32<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField\x12:\n\x12relative_frequency\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1aY\n\x14QuasiIdentifierField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\ncustom_tag\x18\x02 \x01(\t\"\xf5\x0e\n\rPrivacyMetric\x12[\n\x16numerical_stats_config\x18\x01 \x01(\x0b\x32\x39.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\x00\x12_\n\x18\x63\x61tegorical_stats_config\x18\x02 \x01(\x0b\x32;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\x00\x12S\n\x12k_anonymity_config\x18\x03 \x01(\x0b\x32\x35.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\x00\x12S\n\x12l_diversity_config\x18\x04 \x01(\x0b\x32\x35.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\x00\x12\\\n\x17k_map_estimation_config\x18\x05 \x01(\x0b\x32\x39.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\x00\x12n\n delta_presence_estimation_config\x18\x06 \x01(\x0b\x32\x42.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\x00\x1a\x45\n\x14NumericalStatsConfig\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1aG\n\x16\x43\x61tegoricalStatsConfig\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1ay\n\x10KAnonymityConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x32\n\tentity_id\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.EntityId\x1a\x82\x01\n\x10LDiversityConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12;\n\x13sensitive_attribute\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1a\xe8\x05\n\x14KMapEstimationConfig\x12X\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x45.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x62\n\x10\x61uxiliary_tables\x18\x03 \x03(\x0b\x32H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\x1a\xbb\x01\n\x0bTaggedField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x34\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\n\ncustom_tag\x18\x03 \x01(\tH\x00\x12*\n\x08inferred\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x42\x05\n\x03tag\x1a\xbe\x02\n\x0e\x41uxiliaryTable\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12h\n\tquasi_ids\x18\x01 \x03(\x0b\x32U.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField\x12:\n\x12relative_frequency\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1aQ\n\x0cQuasiIdField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\ncustom_tag\x18\x02 \x01(\t\x1a\xaa\x01\n\x1d\x44\x65ltaPresenceEstimationConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.QuasiId\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x41\n\x10\x61uxiliary_tables\x18\x03 \x03(\x0b\x32\'.google.privacy.dlp.v2.StatisticalTableB\x06\n\x04type\"\xf2\x1d\n\x1c\x41nalyzeDataSourceRiskDetails\x12\x46\n\x18requested_privacy_metric\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.PrivacyMetric\x12\x44\n\x16requested_source_table\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12j\n\x16numerical_stats_result\x18\x03 \x01(\x0b\x32H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\x00\x12n\n\x18\x63\x61tegorical_stats_result\x18\x04 \x01(\x0b\x32J.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\x00\x12\x62\n\x12k_anonymity_result\x18\x05 \x01(\x0b\x32\x44.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\x00\x12\x62\n\x12l_diversity_result\x18\x06 \x01(\x0b\x32\x44.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\x00\x12k\n\x17k_map_estimation_result\x18\x07 \x01(\x0b\x32H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\x00\x12}\n delta_presence_estimation_result\x18\t \x01(\x0b\x32Q.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\x00\x1a\xaf\x01\n\x14NumericalStatsResult\x12/\n\tmin_value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12/\n\tmax_value\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x35\n\x0fquantile_values\x18\x04 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x1a\x8d\x03\n\x16\x43\x61tegoricalStatsResult\x12\x95\x01\n!value_frequency_histogram_buckets\x18\x05 \x03(\x0b\x32j.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\x1a\xda\x01\n\x1f\x43\x61tegoricalStatsHistogramBucket\x12#\n\x1bvalue_frequency_lower_bound\x18\x01 \x01(\x03\x12#\n\x1bvalue_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12<\n\rbucket_values\x18\x04 \x03(\x0b\x32%.google.privacy.dlp.v2.ValueFrequency\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\xb5\x04\n\x10KAnonymityResult\x12\x8b\x01\n#equivalence_class_histogram_buckets\x18\x05 \x03(\x0b\x32^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\x1at\n\x1aKAnonymityEquivalenceClass\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1e\n\x16\x65quivalence_class_size\x18\x02 \x01(\x03\x1a\x9c\x02\n\x19KAnonymityHistogramBucket\x12*\n\"equivalence_class_size_lower_bound\x18\x01 \x01(\x03\x12*\n\"equivalence_class_size_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12v\n\rbucket_values\x18\x04 \x03(\x0b\x32_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\xb0\x05\n\x10LDiversityResult\x12\x93\x01\n+sensitive_value_frequency_histogram_buckets\x18\x05 \x03(\x0b\x32^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\x1a\xe0\x01\n\x1aLDiversityEquivalenceClass\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1e\n\x16\x65quivalence_class_size\x18\x02 \x01(\x03\x12%\n\x1dnum_distinct_sensitive_values\x18\x03 \x01(\x03\x12\x43\n\x14top_sensitive_values\x18\x04 \x03(\x0b\x32%.google.privacy.dlp.v2.ValueFrequency\x1a\xa2\x02\n\x19LDiversityHistogramBucket\x12-\n%sensitive_value_frequency_lower_bound\x18\x01 \x01(\x03\x12-\n%sensitive_value_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12v\n\rbucket_values\x18\x04 \x03(\x0b\x32_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\x95\x04\n\x14KMapEstimationResult\x12\x8a\x01\n\x1ak_map_estimation_histogram\x18\x01 \x03(\x0b\x32\x66.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\x1ar\n\x1bKMapEstimationQuasiIdValues\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1b\n\x13\x65stimated_anonymity\x18\x02 \x01(\x03\x1a\xfb\x01\n\x1dKMapEstimationHistogramBucket\x12\x15\n\rmin_anonymity\x18\x01 \x01(\x03\x12\x15\n\rmax_anonymity\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x05 \x01(\x03\x12{\n\rbucket_values\x18\x06 \x03(\x0b\x32\x64.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\x12\x1a\n\x12\x62ucket_value_count\x18\x07 \x01(\x03\x1a\xe4\x04\n\x1d\x44\x65ltaPresenceEstimationResult\x12\xa5\x01\n#delta_presence_estimation_histogram\x18\x01 \x03(\x0b\x32x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\x1a}\n$DeltaPresenceEstimationQuasiIdValues\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1d\n\x15\x65stimated_probability\x18\x02 \x01(\x01\x1a\x9b\x02\n&DeltaPresenceEstimationHistogramBucket\x12\x17\n\x0fmin_probability\x18\x01 \x01(\x01\x12\x17\n\x0fmax_probability\x18\x02 \x01(\x01\x12\x13\n\x0b\x62ucket_size\x18\x05 \x01(\x03\x12\x8d\x01\n\rbucket_values\x18\x06 \x03(\x0b\x32v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\x12\x1a\n\x12\x62ucket_value_count\x18\x07 \x01(\x03\x42\x08\n\x06result\"L\n\x0eValueFrequency\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xb3\x02\n\x05Value\x12\x17\n\rinteger_value\x18\x01 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x17\n\rboolean_value\x18\x04 \x01(\x08H\x00\x12\x35\n\x0ftimestamp_value\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12,\n\ntime_value\x18\x06 \x01(\x0b\x32\x16.google.type.TimeOfDayH\x00\x12\'\n\ndate_value\x18\x07 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x33\n\x11\x64\x61y_of_week_value\x18\x08 \x01(\x0e\x32\x16.google.type.DayOfWeekH\x00\x42\x06\n\x04type\"Q\n\tQuoteInfo\x12\x34\n\tdate_time\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.DateTimeH\x00\x42\x0e\n\x0cparsed_quote\"\xdf\x01\n\x08\x44\x61teTime\x12\x1f\n\x04\x64\x61te\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12+\n\x0b\x64\x61y_of_week\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeek\x12$\n\x04time\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12;\n\ttime_zone\x18\x04 \x01(\x0b\x32(.google.privacy.dlp.v2.DateTime.TimeZone\x1a\"\n\x08TimeZone\x12\x16\n\x0eoffset_minutes\x18\x01 \x01(\x05\"\xc9\x01\n\x10\x44\x65identifyConfig\x12S\n\x19info_type_transformations\x18\x01 \x01(\x0b\x32..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x12N\n\x16record_transformations\x18\x02 \x01(\x0b\x32,.google.privacy.dlp.v2.RecordTransformationsH\x00\x42\x10\n\x0etransformation\"\x9c\x06\n\x17PrimitiveTransformation\x12\x43\n\x0ereplace_config\x18\x01 \x01(\x0b\x32).google.privacy.dlp.v2.ReplaceValueConfigH\x00\x12<\n\rredact_config\x18\x02 \x01(\x0b\x32#.google.privacy.dlp.v2.RedactConfigH\x00\x12K\n\x15\x63haracter_mask_config\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.CharacterMaskConfigH\x00\x12Y\n\x1d\x63rypto_replace_ffx_fpe_config\x18\x04 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\x00\x12V\n\x1b\x66ixed_size_bucketing_config\x18\x05 \x01(\x0b\x32/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\x00\x12\x42\n\x10\x62ucketing_config\x18\x06 \x01(\x0b\x32&.google.privacy.dlp.v2.BucketingConfigH\x00\x12Y\n\x1dreplace_with_info_type_config\x18\x07 \x01(\x0b\x32\x30.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\x00\x12\x41\n\x10time_part_config\x18\x08 \x01(\x0b\x32%.google.privacy.dlp.v2.TimePartConfigH\x00\x12\x45\n\x12\x63rypto_hash_config\x18\t \x01(\x0b\x32\'.google.privacy.dlp.v2.CryptoHashConfigH\x00\x12\x43\n\x11\x64\x61te_shift_config\x18\x0b \x01(\x0b\x32&.google.privacy.dlp.v2.DateShiftConfigH\x00\x42\x10\n\x0etransformation\"\xdc\x01\n\x0eTimePartConfig\x12G\n\x0fpart_to_extract\x18\x01 \x01(\x0e\x32..google.privacy.dlp.v2.TimePartConfig.TimePart\"\x80\x01\n\x08TimePart\x12\x19\n\x15TIME_PART_UNSPECIFIED\x10\x00\x12\x08\n\x04YEAR\x10\x01\x12\t\n\x05MONTH\x10\x02\x12\x10\n\x0c\x44\x41Y_OF_MONTH\x10\x03\x12\x0f\n\x0b\x44\x41Y_OF_WEEK\x10\x04\x12\x10\n\x0cWEEK_OF_YEAR\x10\x05\x12\x0f\n\x0bHOUR_OF_DAY\x10\x06\"H\n\x10\x43ryptoHashConfig\x12\x34\n\ncrypto_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKey\"E\n\x12ReplaceValueConfig\x12/\n\tnew_value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\"\x1b\n\x19ReplaceWithInfoTypeConfig\"\x0e\n\x0cRedactConfig\"\xb6\x02\n\rCharsToIgnore\x12\x1c\n\x12\x63haracters_to_skip\x18\x01 \x01(\tH\x00\x12_\n\x1b\x63ommon_characters_to_ignore\x18\x02 \x01(\x0e\x32\x38.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\x00\"\x97\x01\n\x13\x43ommonCharsToIgnore\x12&\n\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\x10\x00\x12\x0b\n\x07NUMERIC\x10\x01\x12\x14\n\x10\x41LPHA_UPPER_CASE\x10\x02\x12\x14\n\x10\x41LPHA_LOWER_CASE\x10\x03\x12\x0f\n\x0bPUNCTUATION\x10\x04\x12\x0e\n\nWHITESPACE\x10\x05\x42\x0c\n\ncharacters\"\xa3\x01\n\x13\x43haracterMaskConfig\x12\x19\n\x11masking_character\x18\x01 \x01(\t\x12\x16\n\x0enumber_to_mask\x18\x02 \x01(\x05\x12\x15\n\rreverse_order\x18\x03 \x01(\x08\x12\x42\n\x14\x63haracters_to_ignore\x18\x04 \x03(\x0b\x32$.google.privacy.dlp.v2.CharsToIgnore\"\x95\x01\n\x18\x46ixedSizeBucketingConfig\x12\x31\n\x0blower_bound\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x31\n\x0bupper_bound\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x01\"\xeb\x01\n\x0f\x42ucketingConfig\x12>\n\x07\x62uckets\x18\x01 \x03(\x0b\x32-.google.privacy.dlp.v2.BucketingConfig.Bucket\x1a\x97\x01\n\x06\x42ucket\x12)\n\x03min\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12)\n\x03max\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x37\n\x11replacement_value\x18\x03 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\"\xf4\x03\n\x19\x43ryptoReplaceFfxFpeConfig\x12\x34\n\ncrypto_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKey\x12/\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x63\n\x0f\x63ommon_alphabet\x18\x04 \x01(\x0e\x32H.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\x00\x12\x19\n\x0f\x63ustom_alphabet\x18\x05 \x01(\tH\x00\x12\x0f\n\x05radix\x18\x06 \x01(\x05H\x00\x12<\n\x13surrogate_info_type\x18\x08 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\"\x94\x01\n\x17\x46\x66xCommonNativeAlphabet\x12*\n&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED\x10\x00\x12\x0b\n\x07NUMERIC\x10\x01\x12\x0f\n\x0bHEXADECIMAL\x10\x02\x12\x1c\n\x18UPPER_CASE_ALPHA_NUMERIC\x10\x03\x12\x11\n\rALPHA_NUMERIC\x10\x04\x42\n\n\x08\x61lphabet\"\xd8\x01\n\tCryptoKey\x12>\n\ttransient\x18\x01 \x01(\x0b\x32).google.privacy.dlp.v2.TransientCryptoKeyH\x00\x12>\n\tunwrapped\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.UnwrappedCryptoKeyH\x00\x12\x41\n\x0bkms_wrapped\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\x00\x42\x08\n\x06source\"\"\n\x12TransientCryptoKey\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x12UnwrappedCryptoKey\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"C\n\x13KmsWrappedCryptoKey\x12\x13\n\x0bwrapped_key\x18\x01 \x01(\x0c\x12\x17\n\x0f\x63rypto_key_name\x18\x02 \x01(\t\"\xb8\x01\n\x0f\x44\x61teShiftConfig\x12\x18\n\x10upper_bound_days\x18\x01 \x01(\x05\x12\x18\n\x10lower_bound_days\x18\x02 \x01(\x05\x12/\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x36\n\ncrypto_key\x18\x04 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKeyH\x00\x42\x08\n\x06method\"\x9b\x02\n\x17InfoTypeTransformations\x12^\n\x0ftransformations\x18\x01 \x03(\x0b\x32\x45.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation\x1a\x9f\x01\n\x16InfoTypeTransformation\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12P\n\x18primitive_transformation\x18\x02 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformation\"\xbb\x02\n\x13\x46ieldTransformation\x12.\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x39\n\tcondition\x18\x03 \x01(\x0b\x32&.google.privacy.dlp.v2.RecordCondition\x12R\n\x18primitive_transformation\x18\x04 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformationH\x00\x12S\n\x19info_type_transformations\x18\x05 \x01(\x0b\x32..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x42\x10\n\x0etransformation\"\xa9\x01\n\x15RecordTransformations\x12I\n\x15\x66ield_transformations\x18\x01 \x03(\x0b\x32*.google.privacy.dlp.v2.FieldTransformation\x12\x45\n\x13record_suppressions\x18\x02 \x03(\x0b\x32(.google.privacy.dlp.v2.RecordSuppression\"N\n\x11RecordSuppression\x12\x39\n\tcondition\x18\x01 \x01(\x0b\x32&.google.privacy.dlp.v2.RecordCondition\"\xd2\x04\n\x0fRecordCondition\x12G\n\x0b\x65xpressions\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.RecordCondition.Expressions\x1a\xa4\x01\n\tCondition\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12;\n\x08operator\x18\x03 \x01(\x0e\x32).google.privacy.dlp.v2.RelationalOperator\x12+\n\x05value\x18\x04 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x1aR\n\nConditions\x12\x44\n\nconditions\x18\x01 \x03(\x0b\x32\x30.google.privacy.dlp.v2.RecordCondition.Condition\x1a\xfa\x01\n\x0b\x45xpressions\x12\\\n\x10logical_operator\x18\x01 \x01(\x0e\x32\x42.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\x12G\n\nconditions\x18\x03 \x01(\x0b\x32\x31.google.privacy.dlp.v2.RecordCondition.ConditionsH\x00\"<\n\x0fLogicalOperator\x12 \n\x1cLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x42\x06\n\x04type\"\x83\x01\n\x16TransformationOverview\x12\x19\n\x11transformed_bytes\x18\x02 \x01(\x03\x12N\n\x18transformation_summaries\x18\x03 \x03(\x0b\x32,.google.privacy.dlp.v2.TransformationSummary\"\x9f\x05\n\x15TransformationSummary\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12-\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x46\n\x0etransformation\x18\x03 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformation\x12I\n\x15\x66ield_transformations\x18\x05 \x03(\x0b\x32*.google.privacy.dlp.v2.FieldTransformation\x12\x41\n\x0frecord_suppress\x18\x06 \x01(\x0b\x32(.google.privacy.dlp.v2.RecordSuppression\x12K\n\x07results\x18\x04 \x03(\x0b\x32:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\x12\x19\n\x11transformed_bytes\x18\x07 \x01(\x03\x1a\x84\x01\n\rSummaryResult\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12S\n\x04\x63ode\x18\x02 \x01(\x0e\x32\x45.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t\"^\n\x18TransformationResultCode\x12*\n&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"U\n\x08Schedule\x12?\n\x1arecurrence_period_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x08\n\x06option\"\xea\x01\n\x0fInspectTemplate\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x0einspect_config\x18\x06 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\"\xf3\x01\n\x12\x44\x65identifyTemplate\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x11\x64\x65identify_config\x18\x06 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig\"\\\n\x05\x45rror\x12#\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12.\n\ntimestamps\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdb\x04\n\nJobTrigger\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12>\n\x0binspect_job\x18\x04 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12;\n\x08triggers\x18\x05 \x03(\x0b\x32).google.privacy.dlp.v2.JobTrigger.Trigger\x12,\n\x06\x65rrors\x18\x06 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rlast_run_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x06status\x18\n \x01(\x0e\x32(.google.privacy.dlp.v2.JobTrigger.Status\x1aI\n\x07Trigger\x12\x33\n\x08schedule\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.ScheduleH\x00\x42\t\n\x07trigger\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x42\x05\n\x03job\"\xfd\x02\n\x06\x41\x63tion\x12\x43\n\rsave_findings\x18\x01 \x01(\x0b\x32*.google.privacy.dlp.v2.Action.SaveFindingsH\x00\x12@\n\x07pub_sub\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.Action.PublishToPubSubH\x00\x12U\n\x17publish_summary_to_cscc\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\x00\x1aQ\n\x0cSaveFindings\x12\x41\n\routput_config\x18\x01 \x01(\x0b\x32*.google.privacy.dlp.v2.OutputStorageConfig\x1a \n\x0fPublishToPubSub\x12\r\n\x05topic\x18\x01 \x01(\t\x1a\x16\n\x14PublishSummaryToCsccB\x08\n\x06\x61\x63tion\"\x85\x01\n\x1c\x43reateInspectTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12@\n\x10inspect_template\x18\x02 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12\x13\n\x0btemplate_id\x18\x03 \x01(\t\"\x9f\x01\n\x1cUpdateInspectTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x10inspect_template\x18\x02 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\")\n\x19GetInspectTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"f\n\x1bListInspectTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\"z\n\x1cListInspectTemplatesResponse\x12\x41\n\x11inspect_templates\x18\x01 \x03(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\",\n\x1c\x44\x65leteInspectTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"u\n\x17\x43reateJobTriggerRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x36\n\x0bjob_trigger\x18\x02 \x01(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12\x12\n\ntrigger_id\x18\x03 \x01(\t\"\x90\x01\n\x17UpdateJobTriggerRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x0bjob_trigger\x18\x02 \x01(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"$\n\x14GetJobTriggerRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xbe\x01\n\x13\x43reateDlpJobRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12>\n\x0binspect_job\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12@\n\x08risk_job\x18\x03 \x01(\x0b\x32,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\x00\x12\x0e\n\x06job_id\x18\x04 \x01(\tB\x05\n\x03job\"a\n\x16ListJobTriggersRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\"k\n\x17ListJobTriggersResponse\x12\x37\n\x0cjob_triggers\x18\x01 \x03(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\'\n\x17\x44\x65leteJobTriggerRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xdd\x01\n\x10InspectJobConfig\x12<\n\x0estorage_config\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.StorageConfig\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x1d\n\x15inspect_template_name\x18\x03 \x01(\t\x12.\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.Action\"\xde\x04\n\x06\x44lpJob\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04type\x18\x02 \x01(\x0e\x32!.google.privacy.dlp.v2.DlpJobType\x12\x35\n\x05state\x18\x03 \x01(\x0e\x32&.google.privacy.dlp.v2.DlpJob.JobState\x12K\n\x0crisk_details\x18\x04 \x01(\x0b\x32\x33.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\x00\x12J\n\x0finspect_details\x18\x05 \x01(\x0b\x32/.google.privacy.dlp.v2.InspectDataSourceDetailsH\x00\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10job_trigger_name\x18\n \x01(\t\x12,\n\x06\x65rrors\x18\x0b \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error\"c\n\x08JobState\x12\x19\n\x15JOB_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\x0c\n\x08\x43\x41NCELED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x42\t\n\x07\x64\x65tails\" \n\x10GetDlpJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x9e\x01\n\x12ListDlpJobsRequest\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12/\n\x04type\x18\x05 \x01(\x0e\x32!.google.privacy.dlp.v2.DlpJobType\x12\x10\n\x08order_by\x18\x06 \x01(\t\"[\n\x13ListDlpJobsResponse\x12+\n\x04jobs\x18\x01 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.DlpJob\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"#\n\x13\x43\x61ncelDlpJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"#\n\x13\x44\x65leteDlpJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x8e\x01\n\x1f\x43reateDeidentifyTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x46\n\x13\x64\x65identify_template\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12\x13\n\x0btemplate_id\x18\x03 \x01(\t\"\xa8\x01\n\x1fUpdateDeidentifyTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x46\n\x13\x64\x65identify_template\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\",\n\x1cGetDeidentifyTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"i\n\x1eListDeidentifyTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\"\x83\x01\n\x1fListDeidentifyTemplatesResponse\x12G\n\x14\x64\x65identify_templates\x18\x01 \x03(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"/\n\x1f\x44\x65leteDeidentifyTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xf4\x01\n\x1bLargeCustomDictionaryConfig\x12<\n\x0boutput_path\x18\x01 \x01(\x0b\x32\'.google.privacy.dlp.v2.CloudStoragePath\x12L\n\x16\x63loud_storage_file_set\x18\x02 \x01(\x0b\x32*.google.privacy.dlp.v2.CloudStorageFileSetH\x00\x12?\n\x0f\x62ig_query_field\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryFieldH\x00\x42\x08\n\x06source\"\xa0\x01\n\x14StoredInfoTypeConfig\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12U\n\x17large_custom_dictionary\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\x00\x42\x06\n\x04type\"\xee\x01\n\x15StoredInfoTypeVersion\x12;\n\x06\x63onfig\x18\x01 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.google.privacy.dlp.v2.StoredInfoTypeState\x12,\n\x06\x65rrors\x18\x04 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error\"\xad\x01\n\x0eStoredInfoType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0f\x63urrent_version\x18\x02 \x01(\x0b\x32,.google.privacy.dlp.v2.StoredInfoTypeVersion\x12\x46\n\x10pending_versions\x18\x03 \x03(\x0b\x32,.google.privacy.dlp.v2.StoredInfoTypeVersion\"\x87\x01\n\x1b\x43reateStoredInfoTypeRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12;\n\x06\x63onfig\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12\x1b\n\x13stored_info_type_id\x18\x03 \x01(\t\"\x99\x01\n\x1bUpdateStoredInfoTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x06\x63onfig\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"(\n\x18GetStoredInfoTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"e\n\x1aListStoredInfoTypesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t\"x\n\x1bListStoredInfoTypesResponse\x12@\n\x11stored_info_types\x18\x01 \x03(\x0b\x32%.google.privacy.dlp.v2.StoredInfoType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"+\n\x1b\x44\x65leteStoredInfoTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t*M\n\rContentOption\x12\x17\n\x13\x43ONTENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43ONTENT_TEXT\x10\x01\x12\x11\n\rCONTENT_IMAGE\x10\x02*\x8d\x01\n\x0cMatchingType\x12\x1d\n\x19MATCHING_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18MATCHING_TYPE_FULL_MATCH\x10\x01\x12\x1f\n\x1bMATCHING_TYPE_PARTIAL_MATCH\x10\x02\x12\x1f\n\x1bMATCHING_TYPE_INVERSE_MATCH\x10\x03*P\n\x13InfoTypeSupportedBy\x12\x19\n\x15\x45NUM_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INSPECT\x10\x01\x12\x11\n\rRISK_ANALYSIS\x10\x02*\xbb\x01\n\x12RelationalOperator\x12#\n\x1fRELATIONAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45QUAL_TO\x10\x01\x12\x10\n\x0cNOT_EQUAL_TO\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x1a\n\x16GREATER_THAN_OR_EQUALS\x10\x05\x12\x17\n\x13LESS_THAN_OR_EQUALS\x10\x06\x12\n\n\x06\x45XISTS\x10\x07*R\n\nDlpJobType\x12\x1c\n\x18\x44LP_JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINSPECT_JOB\x10\x01\x12\x15\n\x11RISK_ANALYSIS_JOB\x10\x02*n\n\x13StoredInfoTypeState\x12&\n\"STORED_INFO_TYPE_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\t\n\x05READY\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0b\n\x07INVALID\x10\x04\x32\xa9+\n\nDlpService\x12\xa1\x01\n\x0eInspectContent\x12,.google.privacy.dlp.v2.InspectContentRequest\x1a-.google.privacy.dlp.v2.InspectContentResponse\"2\x82\xd3\xe4\x93\x02,\"\'/v2/{parent=projects/*}/content:inspect:\x01*\x12\x95\x01\n\x0bRedactImage\x12).google.privacy.dlp.v2.RedactImageRequest\x1a*.google.privacy.dlp.v2.RedactImageResponse\"/\x82\xd3\xe4\x93\x02)\"$/v2/{parent=projects/*}/image:redact:\x01*\x12\xad\x01\n\x11\x44\x65identifyContent\x12/.google.privacy.dlp.v2.DeidentifyContentRequest\x1a\x30.google.privacy.dlp.v2.DeidentifyContentResponse\"5\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*}/content:deidentify:\x01*\x12\xad\x01\n\x11ReidentifyContent\x12/.google.privacy.dlp.v2.ReidentifyContentRequest\x1a\x30.google.privacy.dlp.v2.ReidentifyContentResponse\"5\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*}/content:reidentify:\x01*\x12\x81\x01\n\rListInfoTypes\x12+.google.privacy.dlp.v2.ListInfoTypesRequest\x1a,.google.privacy.dlp.v2.ListInfoTypesResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/v2/infoTypes\x12\xdd\x01\n\x15\x43reateInspectTemplate\x12\x33.google.privacy.dlp.v2.CreateInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate\"g\x82\xd3\xe4\x93\x02\x61\"-/v2/{parent=organizations/*}/inspectTemplates:\x01*Z-\"(/v2/{parent=projects/*}/inspectTemplates:\x01*\x12\xdd\x01\n\x15UpdateInspectTemplate\x12\x33.google.privacy.dlp.v2.UpdateInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate\"g\x82\xd3\xe4\x93\x02\x61\x32-/v2/{name=organizations/*/inspectTemplates/*}:\x01*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\x01*\x12\xd1\x01\n\x12GetInspectTemplate\x12\x30.google.privacy.dlp.v2.GetInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate\"a\x82\xd3\xe4\x93\x02[\x12-/v2/{name=organizations/*/inspectTemplates/*}Z*\x12(/v2/{name=projects/*/inspectTemplates/*}\x12\xe2\x01\n\x14ListInspectTemplates\x12\x32.google.privacy.dlp.v2.ListInspectTemplatesRequest\x1a\x33.google.privacy.dlp.v2.ListInspectTemplatesResponse\"a\x82\xd3\xe4\x93\x02[\x12-/v2/{parent=organizations/*}/inspectTemplatesZ*\x12(/v2/{parent=projects/*}/inspectTemplates\x12\xc7\x01\n\x15\x44\x65leteInspectTemplate\x12\x33.google.privacy.dlp.v2.DeleteInspectTemplateRequest\x1a\x16.google.protobuf.Empty\"a\x82\xd3\xe4\x93\x02[*-/v2/{name=organizations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}\x12\xec\x01\n\x18\x43reateDeidentifyTemplate\x12\x36.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest\x1a).google.privacy.dlp.v2.DeidentifyTemplate\"m\x82\xd3\xe4\x93\x02g\"0/v2/{parent=organizations/*}/deidentifyTemplates:\x01*Z0\"+/v2/{parent=projects/*}/deidentifyTemplates:\x01*\x12\xec\x01\n\x18UpdateDeidentifyTemplate\x12\x36.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest\x1a).google.privacy.dlp.v2.DeidentifyTemplate\"m\x82\xd3\xe4\x93\x02g20/v2/{name=organizations/*/deidentifyTemplates/*}:\x01*Z02+/v2/{name=projects/*/deidentifyTemplates/*}:\x01*\x12\xe0\x01\n\x15GetDeidentifyTemplate\x12\x33.google.privacy.dlp.v2.GetDeidentifyTemplateRequest\x1a).google.privacy.dlp.v2.DeidentifyTemplate\"g\x82\xd3\xe4\x93\x02\x61\x12\x30/v2/{name=organizations/*/deidentifyTemplates/*}Z-\x12+/v2/{name=projects/*/deidentifyTemplates/*}\x12\xf1\x01\n\x17ListDeidentifyTemplates\x12\x35.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest\x1a\x36.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse\"g\x82\xd3\xe4\x93\x02\x61\x12\x30/v2/{parent=organizations/*}/deidentifyTemplatesZ-\x12+/v2/{parent=projects/*}/deidentifyTemplates\x12\xd3\x01\n\x18\x44\x65leteDeidentifyTemplate\x12\x36.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest\x1a\x16.google.protobuf.Empty\"g\x82\xd3\xe4\x93\x02\x61*0/v2/{name=organizations/*/deidentifyTemplates/*}Z-*+/v2/{name=projects/*/deidentifyTemplates/*}\x12\x95\x01\n\x10\x43reateJobTrigger\x12..google.privacy.dlp.v2.CreateJobTriggerRequest\x1a!.google.privacy.dlp.v2.JobTrigger\".\x82\xd3\xe4\x93\x02(\"#/v2/{parent=projects/*}/jobTriggers:\x01*\x12\x95\x01\n\x10UpdateJobTrigger\x12..google.privacy.dlp.v2.UpdateJobTriggerRequest\x1a!.google.privacy.dlp.v2.JobTrigger\".\x82\xd3\xe4\x93\x02(2#/v2/{name=projects/*/jobTriggers/*}:\x01*\x12\x8c\x01\n\rGetJobTrigger\x12+.google.privacy.dlp.v2.GetJobTriggerRequest\x1a!.google.privacy.dlp.v2.JobTrigger\"+\x82\xd3\xe4\x93\x02%\x12#/v2/{name=projects/*/jobTriggers/*}\x12\x9d\x01\n\x0fListJobTriggers\x12-.google.privacy.dlp.v2.ListJobTriggersRequest\x1a..google.privacy.dlp.v2.ListJobTriggersResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v2/{parent=projects/*}/jobTriggers\x12\x87\x01\n\x10\x44\x65leteJobTrigger\x12..google.privacy.dlp.v2.DeleteJobTriggerRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%*#/v2/{name=projects/*/jobTriggers/*}\x12\x85\x01\n\x0c\x43reateDlpJob\x12*.google.privacy.dlp.v2.CreateDlpJobRequest\x1a\x1d.google.privacy.dlp.v2.DlpJob\"*\x82\xd3\xe4\x93\x02$\"\x1f/v2/{parent=projects/*}/dlpJobs:\x01*\x12\x8d\x01\n\x0bListDlpJobs\x12).google.privacy.dlp.v2.ListDlpJobsRequest\x1a*.google.privacy.dlp.v2.ListDlpJobsResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v2/{parent=projects/*}/dlpJobs\x12|\n\tGetDlpJob\x12\'.google.privacy.dlp.v2.GetDlpJobRequest\x1a\x1d.google.privacy.dlp.v2.DlpJob\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v2/{name=projects/*/dlpJobs/*}\x12{\n\x0c\x44\x65leteDlpJob\x12*.google.privacy.dlp.v2.DeleteDlpJobRequest\x1a\x16.google.protobuf.Empty\"\'\x82\xd3\xe4\x93\x02!*\x1f/v2/{name=projects/*/dlpJobs/*}\x12\x85\x01\n\x0c\x43\x61ncelDlpJob\x12*.google.privacy.dlp.v2.CancelDlpJobRequest\x1a\x16.google.protobuf.Empty\"1\x82\xd3\xe4\x93\x02+\"&/v2/{name=projects/*/dlpJobs/*}:cancel:\x01*\x12\xd8\x01\n\x14\x43reateStoredInfoType\x12\x32.google.privacy.dlp.v2.CreateStoredInfoTypeRequest\x1a%.google.privacy.dlp.v2.StoredInfoType\"e\x82\xd3\xe4\x93\x02_\",/v2/{parent=organizations/*}/storedInfoTypes:\x01*Z,\"\'/v2/{parent=projects/*}/storedInfoTypes:\x01*\x12\xd8\x01\n\x14UpdateStoredInfoType\x12\x32.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest\x1a%.google.privacy.dlp.v2.StoredInfoType\"e\x82\xd3\xe4\x93\x02_2,/v2/{name=organizations/*/storedInfoTypes/*}:\x01*Z,2\'/v2/{name=projects/*/storedInfoTypes/*}:\x01*\x12\xcc\x01\n\x11GetStoredInfoType\x12/.google.privacy.dlp.v2.GetStoredInfoTypeRequest\x1a%.google.privacy.dlp.v2.StoredInfoType\"_\x82\xd3\xe4\x93\x02Y\x12,/v2/{name=organizations/*/storedInfoTypes/*}Z)\x12\'/v2/{name=projects/*/storedInfoTypes/*}\x12\xdd\x01\n\x13ListStoredInfoTypes\x12\x31.google.privacy.dlp.v2.ListStoredInfoTypesRequest\x1a\x32.google.privacy.dlp.v2.ListStoredInfoTypesResponse\"_\x82\xd3\xe4\x93\x02Y\x12,/v2/{parent=organizations/*}/storedInfoTypesZ)\x12\'/v2/{parent=projects/*}/storedInfoTypes\x12\xc3\x01\n\x14\x44\x65leteStoredInfoType\x12\x32.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest\x1a\x16.google.protobuf.Empty\"_\x82\xd3\xe4\x93\x02Y*,/v2/{name=organizations/*/storedInfoTypes/*}Z)*\'/v2/{name=projects/*/storedInfoTypes/*}B\x8d\x01\n\x19\x63om.google.privacy.dlp.v2B\x08\x44lpProtoP\x01Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\xaa\x02\x13Google.Cloud.Dlp.V2\xca\x02\x13Google\\Cloud\\Dlp\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,google_dot_type_dot_date__pb2.DESCRIPTOR,google_dot_type_dot_dayofweek__pb2.DESCRIPTOR,google_dot_type_dot_timeofday__pb2.DESCRIPTOR,]) + name="google/cloud/privacy/dlp_v2/proto/dlp.proto", + package="google.privacy.dlp.v2", + syntax="proto3", + serialized_pb=_b( + '\n+google/cloud/privacy/dlp_v2/proto/dlp.proto\x12\x15google.privacy.dlp.v2\x1a\x1cgoogle/api/annotations.proto\x1a/google/cloud/privacy/dlp_v2/proto/storage.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto"G\n\x10\x45xcludeInfoTypes\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType"\xa0\x02\n\rExclusionRule\x12\x46\n\ndictionary\x18\x01 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\n\x05regex\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12\x45\n\x12\x65xclude_info_types\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.ExcludeInfoTypesH\x00\x12:\n\rmatching_type\x18\x04 \x01(\x0e\x32#.google.privacy.dlp.v2.MatchingTypeB\x06\n\x04type"\xb1\x01\n\x0eInspectionRule\x12W\n\x0chotword_rule\x18\x01 \x01(\x0b\x32?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x12>\n\x0e\x65xclusion_rule\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.ExclusionRuleH\x00\x42\x06\n\x04type"~\n\x11InspectionRuleSet\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x34\n\x05rules\x18\x02 \x03(\x0b\x32%.google.privacy.dlp.v2.InspectionRule"\xc7\x05\n\rInspectConfig\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x39\n\x0emin_likelihood\x18\x02 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x42\n\x06limits\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.InspectConfig.FindingLimits\x12\x15\n\rinclude_quote\x18\x04 \x01(\x08\x12\x1a\n\x12\x65xclude_info_types\x18\x05 \x01(\x08\x12@\n\x11\x63ustom_info_types\x18\x06 \x03(\x0b\x32%.google.privacy.dlp.v2.CustomInfoType\x12=\n\x0f\x63ontent_options\x18\x08 \x03(\x0e\x32$.google.privacy.dlp.v2.ContentOption\x12:\n\x08rule_set\x18\n \x03(\x0b\x32(.google.privacy.dlp.v2.InspectionRuleSet\x1a\x91\x02\n\rFindingLimits\x12\x1d\n\x15max_findings_per_item\x18\x01 \x01(\x05\x12 \n\x18max_findings_per_request\x18\x02 \x01(\x05\x12\x64\n\x1amax_findings_per_info_type\x18\x03 \x03(\x0b\x32@.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit\x1aY\n\rInfoTypeLimit\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x14\n\x0cmax_findings\x18\x02 \x01(\x05"\xdf\x01\n\x0f\x42yteContentItem\x12>\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.privacy.dlp.v2.ByteContentItem.BytesType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"~\n\tBytesType\x12\x1a\n\x16\x42YTES_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05IMAGE\x10\x06\x12\x0e\n\nIMAGE_JPEG\x10\x01\x12\r\n\tIMAGE_BMP\x10\x02\x12\r\n\tIMAGE_PNG\x10\x03\x12\r\n\tIMAGE_SVG\x10\x04\x12\r\n\tTEXT_UTF8\x10\x05"\x97\x01\n\x0b\x43ontentItem\x12\x0f\n\x05value\x18\x03 \x01(\tH\x00\x12-\n\x05table\x18\x04 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.TableH\x00\x12;\n\tbyte_item\x18\x05 \x01(\x0b\x32&.google.privacy.dlp.v2.ByteContentItemH\x00\x42\x0b\n\tdata_item"\x9d\x01\n\x05Table\x12/\n\x07headers\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12.\n\x04rows\x18\x02 \x03(\x0b\x32 .google.privacy.dlp.v2.Table.Row\x1a\x33\n\x03Row\x12,\n\x06values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value"]\n\rInspectResult\x12\x30\n\x08\x66indings\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.Finding\x12\x1a\n\x12\x66indings_truncated\x18\x02 \x01(\x08"\x9d\x02\n\x07\x46inding\x12\r\n\x05quote\x18\x01 \x01(\t\x12\x32\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x35\n\nlikelihood\x18\x03 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x31\n\x08location\x18\x04 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.Location\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nquote_info\x18\x07 \x01(\x0b\x32 .google.privacy.dlp.v2.QuoteInfo"\xb6\x01\n\x08Location\x12\x30\n\nbyte_range\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Range\x12\x35\n\x0f\x63odepoint_range\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Range\x12\x41\n\x11\x63ontent_locations\x18\x07 \x03(\x0b\x32&.google.privacy.dlp.v2.ContentLocation"\xd1\x02\n\x0f\x43ontentLocation\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12@\n\x0frecord_location\x18\x02 \x01(\x0b\x32%.google.privacy.dlp.v2.RecordLocationH\x00\x12>\n\x0eimage_location\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.ImageLocationH\x00\x12\x44\n\x11\x64ocument_location\x18\x05 \x01(\x0b\x32\'.google.privacy.dlp.v2.DocumentLocationH\x00\x12\x37\n\x13\x63ontainer_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x63ontainer_version\x18\x07 \x01(\tB\n\n\x08location"\'\n\x10\x44ocumentLocation\x12\x13\n\x0b\x66ile_offset\x18\x01 \x01(\x03"\xb6\x01\n\x0eRecordLocation\x12\x34\n\nrecord_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.RecordKey\x12\x30\n\x08\x66ield_id\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12<\n\x0etable_location\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.TableLocation""\n\rTableLocation\x12\x11\n\trow_index\x18\x01 \x01(\x03"#\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03"K\n\rImageLocation\x12:\n\x0e\x62ounding_boxes\x18\x01 \x03(\x0b\x32".google.privacy.dlp.v2.BoundingBox"G\n\x0b\x42oundingBox\x12\x0b\n\x03top\x18\x01 \x01(\x05\x12\x0c\n\x04left\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05"\xc3\x03\n\x12RedactImageRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12_\n\x17image_redaction_configs\x18\x05 \x03(\x0b\x32>.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig\x12\x18\n\x10include_findings\x18\x06 \x01(\x08\x12\x39\n\tbyte_item\x18\x07 \x01(\x0b\x32&.google.privacy.dlp.v2.ByteContentItem\x1a\xa8\x01\n\x14ImageRedactionConfig\x12\x34\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x19\n\x0fredact_all_text\x18\x02 \x01(\x08H\x00\x12\x35\n\x0fredaction_color\x18\x03 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.ColorB\x08\n\x06target"1\n\x05\x43olor\x12\x0b\n\x03red\x18\x01 \x01(\x02\x12\r\n\x05green\x18\x02 \x01(\x02\x12\x0c\n\x04\x62lue\x18\x03 \x01(\x02"\x83\x01\n\x13RedactImageResponse\x12\x16\n\x0eredacted_image\x18\x01 \x01(\x0c\x12\x16\n\x0e\x65xtracted_text\x18\x02 \x01(\t\x12<\n\x0einspect_result\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectResult"\x9f\x02\n\x18\x44\x65identifyContentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x42\n\x11\x64\x65identify_config\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig\x12<\n\x0einspect_config\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x04 \x01(\x0b\x32".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x05 \x01(\t\x12 \n\x18\x64\x65identify_template_name\x18\x06 \x01(\t"\x8e\x01\n\x19\x44\x65identifyContentResponse\x12\x30\n\x04item\x18\x01 \x01(\x0b\x32".google.privacy.dlp.v2.ContentItem\x12?\n\x08overview\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.TransformationOverview"\x9f\x02\n\x18ReidentifyContentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x42\n\x11reidentify_config\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig\x12<\n\x0einspect_config\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x04 \x01(\x0b\x32".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x05 \x01(\t\x12 \n\x18reidentify_template_name\x18\x06 \x01(\t"\x8e\x01\n\x19ReidentifyContentResponse\x12\x30\n\x04item\x18\x01 \x01(\x0b\x32".google.privacy.dlp.v2.ContentItem\x12?\n\x08overview\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.TransformationOverview"\xb6\x01\n\x15InspectContentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x30\n\x04item\x18\x03 \x01(\x0b\x32".google.privacy.dlp.v2.ContentItem\x12\x1d\n\x15inspect_template_name\x18\x04 \x01(\t"N\n\x16InspectContentResponse\x12\x34\n\x06result\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectResult"\xb7\x02\n\x13OutputStorageConfig\x12\x35\n\x05table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTableH\x00\x12N\n\routput_schema\x18\x03 \x01(\x0e\x32\x37.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema"\x90\x01\n\x0cOutputSchema\x12\x1d\n\x19OUTPUT_SCHEMA_UNSPECIFIED\x10\x00\x12\x11\n\rBASIC_COLUMNS\x10\x01\x12\x0f\n\x0bGCS_COLUMNS\x10\x02\x12\x15\n\x11\x44\x41TASTORE_COLUMNS\x10\x03\x12\x15\n\x11\x42IG_QUERY_COLUMNS\x10\x04\x12\x0f\n\x0b\x41LL_COLUMNS\x10\x05\x42\x06\n\x04type"R\n\rInfoTypeStats\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\xdd\x03\n\x18InspectDataSourceDetails\x12[\n\x11requested_options\x18\x02 \x01(\x0b\x32@.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions\x12\x46\n\x06result\x18\x03 \x01(\x0b\x32\x36.google.privacy.dlp.v2.InspectDataSourceDetails.Result\x1a\x9a\x01\n\x10RequestedOptions\x12I\n\x19snapshot_inspect_template\x18\x01 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12;\n\njob_config\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfig\x1a\x7f\n\x06Result\x12\x17\n\x0fprocessed_bytes\x18\x01 \x01(\x03\x12\x1d\n\x15total_estimated_bytes\x18\x02 \x01(\x03\x12=\n\x0finfo_type_stats\x18\x03 \x03(\x0b\x32$.google.privacy.dlp.v2.InfoTypeStats"{\n\x13InfoTypeDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12@\n\x0csupported_by\x18\x03 \x03(\x0e\x32*.google.privacy.dlp.v2.InfoTypeSupportedBy"=\n\x14ListInfoTypesRequest\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t"W\n\x15ListInfoTypesResponse\x12>\n\ninfo_types\x18\x01 \x03(\x0b\x32*.google.privacy.dlp.v2.InfoTypeDescription"\xc1\x01\n\x15RiskAnalysisJobConfig\x12<\n\x0eprivacy_metric\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.PrivacyMetric\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12.\n\x07\x61\x63tions\x18\x03 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.Action"\xb7\x01\n\x07QuasiId\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x34\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\n\ncustom_tag\x18\x03 \x01(\tH\x00\x12*\n\x08inferred\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x42\x05\n\x03tag"\xaf\x02\n\x10StatisticalTable\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12O\n\tquasi_ids\x18\x01 \x03(\x0b\x32<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField\x12:\n\x12relative_frequency\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1aY\n\x14QuasiIdentifierField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\ncustom_tag\x18\x02 \x01(\t"\xf5\x0e\n\rPrivacyMetric\x12[\n\x16numerical_stats_config\x18\x01 \x01(\x0b\x32\x39.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\x00\x12_\n\x18\x63\x61tegorical_stats_config\x18\x02 \x01(\x0b\x32;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\x00\x12S\n\x12k_anonymity_config\x18\x03 \x01(\x0b\x32\x35.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\x00\x12S\n\x12l_diversity_config\x18\x04 \x01(\x0b\x32\x35.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\x00\x12\\\n\x17k_map_estimation_config\x18\x05 \x01(\x0b\x32\x39.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\x00\x12n\n delta_presence_estimation_config\x18\x06 \x01(\x0b\x32\x42.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\x00\x1a\x45\n\x14NumericalStatsConfig\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1aG\n\x16\x43\x61tegoricalStatsConfig\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1ay\n\x10KAnonymityConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x32\n\tentity_id\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.EntityId\x1a\x82\x01\n\x10LDiversityConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12;\n\x13sensitive_attribute\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1a\xe8\x05\n\x14KMapEstimationConfig\x12X\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x45.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x62\n\x10\x61uxiliary_tables\x18\x03 \x03(\x0b\x32H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\x1a\xbb\x01\n\x0bTaggedField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x34\n\tinfo_type\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\n\ncustom_tag\x18\x03 \x01(\tH\x00\x12*\n\x08inferred\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x42\x05\n\x03tag\x1a\xbe\x02\n\x0e\x41uxiliaryTable\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12h\n\tquasi_ids\x18\x01 \x03(\x0b\x32U.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField\x12:\n\x12relative_frequency\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x1aQ\n\x0cQuasiIdField\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\ncustom_tag\x18\x02 \x01(\t\x1a\xaa\x01\n\x1d\x44\x65ltaPresenceEstimationConfig\x12\x31\n\tquasi_ids\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.QuasiId\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x41\n\x10\x61uxiliary_tables\x18\x03 \x03(\x0b\x32\'.google.privacy.dlp.v2.StatisticalTableB\x06\n\x04type"\xf2\x1d\n\x1c\x41nalyzeDataSourceRiskDetails\x12\x46\n\x18requested_privacy_metric\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.PrivacyMetric\x12\x44\n\x16requested_source_table\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12j\n\x16numerical_stats_result\x18\x03 \x01(\x0b\x32H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\x00\x12n\n\x18\x63\x61tegorical_stats_result\x18\x04 \x01(\x0b\x32J.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\x00\x12\x62\n\x12k_anonymity_result\x18\x05 \x01(\x0b\x32\x44.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\x00\x12\x62\n\x12l_diversity_result\x18\x06 \x01(\x0b\x32\x44.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\x00\x12k\n\x17k_map_estimation_result\x18\x07 \x01(\x0b\x32H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\x00\x12}\n delta_presence_estimation_result\x18\t \x01(\x0b\x32Q.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\x00\x1a\xaf\x01\n\x14NumericalStatsResult\x12/\n\tmin_value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12/\n\tmax_value\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x35\n\x0fquantile_values\x18\x04 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x1a\x8d\x03\n\x16\x43\x61tegoricalStatsResult\x12\x95\x01\n!value_frequency_histogram_buckets\x18\x05 \x03(\x0b\x32j.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\x1a\xda\x01\n\x1f\x43\x61tegoricalStatsHistogramBucket\x12#\n\x1bvalue_frequency_lower_bound\x18\x01 \x01(\x03\x12#\n\x1bvalue_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12<\n\rbucket_values\x18\x04 \x03(\x0b\x32%.google.privacy.dlp.v2.ValueFrequency\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\xb5\x04\n\x10KAnonymityResult\x12\x8b\x01\n#equivalence_class_histogram_buckets\x18\x05 \x03(\x0b\x32^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\x1at\n\x1aKAnonymityEquivalenceClass\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1e\n\x16\x65quivalence_class_size\x18\x02 \x01(\x03\x1a\x9c\x02\n\x19KAnonymityHistogramBucket\x12*\n"equivalence_class_size_lower_bound\x18\x01 \x01(\x03\x12*\n"equivalence_class_size_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12v\n\rbucket_values\x18\x04 \x03(\x0b\x32_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\xb0\x05\n\x10LDiversityResult\x12\x93\x01\n+sensitive_value_frequency_histogram_buckets\x18\x05 \x03(\x0b\x32^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\x1a\xe0\x01\n\x1aLDiversityEquivalenceClass\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1e\n\x16\x65quivalence_class_size\x18\x02 \x01(\x03\x12%\n\x1dnum_distinct_sensitive_values\x18\x03 \x01(\x03\x12\x43\n\x14top_sensitive_values\x18\x04 \x03(\x0b\x32%.google.privacy.dlp.v2.ValueFrequency\x1a\xa2\x02\n\x19LDiversityHistogramBucket\x12-\n%sensitive_value_frequency_lower_bound\x18\x01 \x01(\x03\x12-\n%sensitive_value_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x03\x12v\n\rbucket_values\x18\x04 \x03(\x0b\x32_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\x12\x1a\n\x12\x62ucket_value_count\x18\x05 \x01(\x03\x1a\x95\x04\n\x14KMapEstimationResult\x12\x8a\x01\n\x1ak_map_estimation_histogram\x18\x01 \x03(\x0b\x32\x66.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\x1ar\n\x1bKMapEstimationQuasiIdValues\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1b\n\x13\x65stimated_anonymity\x18\x02 \x01(\x03\x1a\xfb\x01\n\x1dKMapEstimationHistogramBucket\x12\x15\n\rmin_anonymity\x18\x01 \x01(\x03\x12\x15\n\rmax_anonymity\x18\x02 \x01(\x03\x12\x13\n\x0b\x62ucket_size\x18\x05 \x01(\x03\x12{\n\rbucket_values\x18\x06 \x03(\x0b\x32\x64.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\x12\x1a\n\x12\x62ucket_value_count\x18\x07 \x01(\x03\x1a\xe4\x04\n\x1d\x44\x65ltaPresenceEstimationResult\x12\xa5\x01\n#delta_presence_estimation_histogram\x18\x01 \x03(\x0b\x32x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\x1a}\n$DeltaPresenceEstimationQuasiIdValues\x12\x36\n\x10quasi_ids_values\x18\x01 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x1d\n\x15\x65stimated_probability\x18\x02 \x01(\x01\x1a\x9b\x02\n&DeltaPresenceEstimationHistogramBucket\x12\x17\n\x0fmin_probability\x18\x01 \x01(\x01\x12\x17\n\x0fmax_probability\x18\x02 \x01(\x01\x12\x13\n\x0b\x62ucket_size\x18\x05 \x01(\x03\x12\x8d\x01\n\rbucket_values\x18\x06 \x03(\x0b\x32v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\x12\x1a\n\x12\x62ucket_value_count\x18\x07 \x01(\x03\x42\x08\n\x06result"L\n\x0eValueFrequency\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\xb3\x02\n\x05Value\x12\x17\n\rinteger_value\x18\x01 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x17\n\rboolean_value\x18\x04 \x01(\x08H\x00\x12\x35\n\x0ftimestamp_value\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12,\n\ntime_value\x18\x06 \x01(\x0b\x32\x16.google.type.TimeOfDayH\x00\x12\'\n\ndate_value\x18\x07 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x33\n\x11\x64\x61y_of_week_value\x18\x08 \x01(\x0e\x32\x16.google.type.DayOfWeekH\x00\x42\x06\n\x04type"Q\n\tQuoteInfo\x12\x34\n\tdate_time\x18\x02 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.DateTimeH\x00\x42\x0e\n\x0cparsed_quote"\xdf\x01\n\x08\x44\x61teTime\x12\x1f\n\x04\x64\x61te\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12+\n\x0b\x64\x61y_of_week\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeek\x12$\n\x04time\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12;\n\ttime_zone\x18\x04 \x01(\x0b\x32(.google.privacy.dlp.v2.DateTime.TimeZone\x1a"\n\x08TimeZone\x12\x16\n\x0eoffset_minutes\x18\x01 \x01(\x05"\xc9\x01\n\x10\x44\x65identifyConfig\x12S\n\x19info_type_transformations\x18\x01 \x01(\x0b\x32..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x12N\n\x16record_transformations\x18\x02 \x01(\x0b\x32,.google.privacy.dlp.v2.RecordTransformationsH\x00\x42\x10\n\x0etransformation"\x9c\x06\n\x17PrimitiveTransformation\x12\x43\n\x0ereplace_config\x18\x01 \x01(\x0b\x32).google.privacy.dlp.v2.ReplaceValueConfigH\x00\x12<\n\rredact_config\x18\x02 \x01(\x0b\x32#.google.privacy.dlp.v2.RedactConfigH\x00\x12K\n\x15\x63haracter_mask_config\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.CharacterMaskConfigH\x00\x12Y\n\x1d\x63rypto_replace_ffx_fpe_config\x18\x04 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\x00\x12V\n\x1b\x66ixed_size_bucketing_config\x18\x05 \x01(\x0b\x32/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\x00\x12\x42\n\x10\x62ucketing_config\x18\x06 \x01(\x0b\x32&.google.privacy.dlp.v2.BucketingConfigH\x00\x12Y\n\x1dreplace_with_info_type_config\x18\x07 \x01(\x0b\x32\x30.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\x00\x12\x41\n\x10time_part_config\x18\x08 \x01(\x0b\x32%.google.privacy.dlp.v2.TimePartConfigH\x00\x12\x45\n\x12\x63rypto_hash_config\x18\t \x01(\x0b\x32\'.google.privacy.dlp.v2.CryptoHashConfigH\x00\x12\x43\n\x11\x64\x61te_shift_config\x18\x0b \x01(\x0b\x32&.google.privacy.dlp.v2.DateShiftConfigH\x00\x42\x10\n\x0etransformation"\xdc\x01\n\x0eTimePartConfig\x12G\n\x0fpart_to_extract\x18\x01 \x01(\x0e\x32..google.privacy.dlp.v2.TimePartConfig.TimePart"\x80\x01\n\x08TimePart\x12\x19\n\x15TIME_PART_UNSPECIFIED\x10\x00\x12\x08\n\x04YEAR\x10\x01\x12\t\n\x05MONTH\x10\x02\x12\x10\n\x0c\x44\x41Y_OF_MONTH\x10\x03\x12\x0f\n\x0b\x44\x41Y_OF_WEEK\x10\x04\x12\x10\n\x0cWEEK_OF_YEAR\x10\x05\x12\x0f\n\x0bHOUR_OF_DAY\x10\x06"H\n\x10\x43ryptoHashConfig\x12\x34\n\ncrypto_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKey"E\n\x12ReplaceValueConfig\x12/\n\tnew_value\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value"\x1b\n\x19ReplaceWithInfoTypeConfig"\x0e\n\x0cRedactConfig"\xb6\x02\n\rCharsToIgnore\x12\x1c\n\x12\x63haracters_to_skip\x18\x01 \x01(\tH\x00\x12_\n\x1b\x63ommon_characters_to_ignore\x18\x02 \x01(\x0e\x32\x38.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\x00"\x97\x01\n\x13\x43ommonCharsToIgnore\x12&\n"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\x10\x00\x12\x0b\n\x07NUMERIC\x10\x01\x12\x14\n\x10\x41LPHA_UPPER_CASE\x10\x02\x12\x14\n\x10\x41LPHA_LOWER_CASE\x10\x03\x12\x0f\n\x0bPUNCTUATION\x10\x04\x12\x0e\n\nWHITESPACE\x10\x05\x42\x0c\n\ncharacters"\xa3\x01\n\x13\x43haracterMaskConfig\x12\x19\n\x11masking_character\x18\x01 \x01(\t\x12\x16\n\x0enumber_to_mask\x18\x02 \x01(\x05\x12\x15\n\rreverse_order\x18\x03 \x01(\x08\x12\x42\n\x14\x63haracters_to_ignore\x18\x04 \x03(\x0b\x32$.google.privacy.dlp.v2.CharsToIgnore"\x95\x01\n\x18\x46ixedSizeBucketingConfig\x12\x31\n\x0blower_bound\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x31\n\x0bupper_bound\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x13\n\x0b\x62ucket_size\x18\x03 \x01(\x01"\xeb\x01\n\x0f\x42ucketingConfig\x12>\n\x07\x62uckets\x18\x01 \x03(\x0b\x32-.google.privacy.dlp.v2.BucketingConfig.Bucket\x1a\x97\x01\n\x06\x42ucket\x12)\n\x03min\x18\x01 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12)\n\x03max\x18\x02 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x12\x37\n\x11replacement_value\x18\x03 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value"\xf4\x03\n\x19\x43ryptoReplaceFfxFpeConfig\x12\x34\n\ncrypto_key\x18\x01 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKey\x12/\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x63\n\x0f\x63ommon_alphabet\x18\x04 \x01(\x0e\x32H.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\x00\x12\x19\n\x0f\x63ustom_alphabet\x18\x05 \x01(\tH\x00\x12\x0f\n\x05radix\x18\x06 \x01(\x05H\x00\x12<\n\x13surrogate_info_type\x18\x08 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType"\x94\x01\n\x17\x46\x66xCommonNativeAlphabet\x12*\n&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED\x10\x00\x12\x0b\n\x07NUMERIC\x10\x01\x12\x0f\n\x0bHEXADECIMAL\x10\x02\x12\x1c\n\x18UPPER_CASE_ALPHA_NUMERIC\x10\x03\x12\x11\n\rALPHA_NUMERIC\x10\x04\x42\n\n\x08\x61lphabet"\xd8\x01\n\tCryptoKey\x12>\n\ttransient\x18\x01 \x01(\x0b\x32).google.privacy.dlp.v2.TransientCryptoKeyH\x00\x12>\n\tunwrapped\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.UnwrappedCryptoKeyH\x00\x12\x41\n\x0bkms_wrapped\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\x00\x42\x08\n\x06source""\n\x12TransientCryptoKey\x12\x0c\n\x04name\x18\x01 \x01(\t"!\n\x12UnwrappedCryptoKey\x12\x0b\n\x03key\x18\x01 \x01(\x0c"C\n\x13KmsWrappedCryptoKey\x12\x13\n\x0bwrapped_key\x18\x01 \x01(\x0c\x12\x17\n\x0f\x63rypto_key_name\x18\x02 \x01(\t"\xb8\x01\n\x0f\x44\x61teShiftConfig\x12\x18\n\x10upper_bound_days\x18\x01 \x01(\x05\x12\x18\n\x10lower_bound_days\x18\x02 \x01(\x05\x12/\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x36\n\ncrypto_key\x18\x04 \x01(\x0b\x32 .google.privacy.dlp.v2.CryptoKeyH\x00\x42\x08\n\x06method"\x9b\x02\n\x17InfoTypeTransformations\x12^\n\x0ftransformations\x18\x01 \x03(\x0b\x32\x45.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation\x1a\x9f\x01\n\x16InfoTypeTransformation\x12\x33\n\ninfo_types\x18\x01 \x03(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12P\n\x18primitive_transformation\x18\x02 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformation"\xbb\x02\n\x13\x46ieldTransformation\x12.\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x39\n\tcondition\x18\x03 \x01(\x0b\x32&.google.privacy.dlp.v2.RecordCondition\x12R\n\x18primitive_transformation\x18\x04 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformationH\x00\x12S\n\x19info_type_transformations\x18\x05 \x01(\x0b\x32..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x42\x10\n\x0etransformation"\xa9\x01\n\x15RecordTransformations\x12I\n\x15\x66ield_transformations\x18\x01 \x03(\x0b\x32*.google.privacy.dlp.v2.FieldTransformation\x12\x45\n\x13record_suppressions\x18\x02 \x03(\x0b\x32(.google.privacy.dlp.v2.RecordSuppression"N\n\x11RecordSuppression\x12\x39\n\tcondition\x18\x01 \x01(\x0b\x32&.google.privacy.dlp.v2.RecordCondition"\xd2\x04\n\x0fRecordCondition\x12G\n\x0b\x65xpressions\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.RecordCondition.Expressions\x1a\xa4\x01\n\tCondition\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12;\n\x08operator\x18\x03 \x01(\x0e\x32).google.privacy.dlp.v2.RelationalOperator\x12+\n\x05value\x18\x04 \x01(\x0b\x32\x1c.google.privacy.dlp.v2.Value\x1aR\n\nConditions\x12\x44\n\nconditions\x18\x01 \x03(\x0b\x32\x30.google.privacy.dlp.v2.RecordCondition.Condition\x1a\xfa\x01\n\x0b\x45xpressions\x12\\\n\x10logical_operator\x18\x01 \x01(\x0e\x32\x42.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\x12G\n\nconditions\x18\x03 \x01(\x0b\x32\x31.google.privacy.dlp.v2.RecordCondition.ConditionsH\x00"<\n\x0fLogicalOperator\x12 \n\x1cLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x42\x06\n\x04type"\x83\x01\n\x16TransformationOverview\x12\x19\n\x11transformed_bytes\x18\x02 \x01(\x03\x12N\n\x18transformation_summaries\x18\x03 \x03(\x0b\x32,.google.privacy.dlp.v2.TransformationSummary"\x9f\x05\n\x15TransformationSummary\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12-\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x46\n\x0etransformation\x18\x03 \x01(\x0b\x32..google.privacy.dlp.v2.PrimitiveTransformation\x12I\n\x15\x66ield_transformations\x18\x05 \x03(\x0b\x32*.google.privacy.dlp.v2.FieldTransformation\x12\x41\n\x0frecord_suppress\x18\x06 \x01(\x0b\x32(.google.privacy.dlp.v2.RecordSuppression\x12K\n\x07results\x18\x04 \x03(\x0b\x32:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\x12\x19\n\x11transformed_bytes\x18\x07 \x01(\x03\x1a\x84\x01\n\rSummaryResult\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12S\n\x04\x63ode\x18\x02 \x01(\x0e\x32\x45.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t"^\n\x18TransformationResultCode\x12*\n&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02"U\n\x08Schedule\x12?\n\x1arecurrence_period_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x08\n\x06option"\xea\x01\n\x0fInspectTemplate\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x0einspect_config\x18\x06 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig"\xf3\x01\n\x12\x44\x65identifyTemplate\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x11\x64\x65identify_config\x18\x06 \x01(\x0b\x32\'.google.privacy.dlp.v2.DeidentifyConfig"\\\n\x05\x45rror\x12#\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12.\n\ntimestamps\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"\xdb\x04\n\nJobTrigger\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12>\n\x0binspect_job\x18\x04 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12;\n\x08triggers\x18\x05 \x03(\x0b\x32).google.privacy.dlp.v2.JobTrigger.Trigger\x12,\n\x06\x65rrors\x18\x06 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rlast_run_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x06status\x18\n \x01(\x0e\x32(.google.privacy.dlp.v2.JobTrigger.Status\x1aI\n\x07Trigger\x12\x33\n\x08schedule\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.ScheduleH\x00\x42\t\n\x07trigger"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x42\x05\n\x03job"\xfd\x02\n\x06\x41\x63tion\x12\x43\n\rsave_findings\x18\x01 \x01(\x0b\x32*.google.privacy.dlp.v2.Action.SaveFindingsH\x00\x12@\n\x07pub_sub\x18\x02 \x01(\x0b\x32-.google.privacy.dlp.v2.Action.PublishToPubSubH\x00\x12U\n\x17publish_summary_to_cscc\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\x00\x1aQ\n\x0cSaveFindings\x12\x41\n\routput_config\x18\x01 \x01(\x0b\x32*.google.privacy.dlp.v2.OutputStorageConfig\x1a \n\x0fPublishToPubSub\x12\r\n\x05topic\x18\x01 \x01(\t\x1a\x16\n\x14PublishSummaryToCsccB\x08\n\x06\x61\x63tion"\x85\x01\n\x1c\x43reateInspectTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12@\n\x10inspect_template\x18\x02 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12\x13\n\x0btemplate_id\x18\x03 \x01(\t"\x9f\x01\n\x1cUpdateInspectTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x10inspect_template\x18\x02 \x01(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask")\n\x19GetInspectTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"f\n\x1bListInspectTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t"z\n\x1cListInspectTemplatesResponse\x12\x41\n\x11inspect_templates\x18\x01 \x03(\x0b\x32&.google.privacy.dlp.v2.InspectTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t",\n\x1c\x44\x65leteInspectTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"u\n\x17\x43reateJobTriggerRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x36\n\x0bjob_trigger\x18\x02 \x01(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12\x12\n\ntrigger_id\x18\x03 \x01(\t"\x90\x01\n\x17UpdateJobTriggerRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x0bjob_trigger\x18\x02 \x01(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"$\n\x14GetJobTriggerRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xbe\x01\n\x13\x43reateDlpJobRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12>\n\x0binspect_job\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12@\n\x08risk_job\x18\x03 \x01(\x0b\x32,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\x00\x12\x0e\n\x06job_id\x18\x04 \x01(\tB\x05\n\x03job"a\n\x16ListJobTriggersRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t"k\n\x17ListJobTriggersResponse\x12\x37\n\x0cjob_triggers\x18\x01 \x03(\x0b\x32!.google.privacy.dlp.v2.JobTrigger\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\'\n\x17\x44\x65leteJobTriggerRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xdd\x01\n\x10InspectJobConfig\x12<\n\x0estorage_config\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.StorageConfig\x12<\n\x0einspect_config\x18\x02 \x01(\x0b\x32$.google.privacy.dlp.v2.InspectConfig\x12\x1d\n\x15inspect_template_name\x18\x03 \x01(\t\x12.\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.Action"\xde\x04\n\x06\x44lpJob\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04type\x18\x02 \x01(\x0e\x32!.google.privacy.dlp.v2.DlpJobType\x12\x35\n\x05state\x18\x03 \x01(\x0e\x32&.google.privacy.dlp.v2.DlpJob.JobState\x12K\n\x0crisk_details\x18\x04 \x01(\x0b\x32\x33.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\x00\x12J\n\x0finspect_details\x18\x05 \x01(\x0b\x32/.google.privacy.dlp.v2.InspectDataSourceDetailsH\x00\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10job_trigger_name\x18\n \x01(\t\x12,\n\x06\x65rrors\x18\x0b \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error"c\n\x08JobState\x12\x19\n\x15JOB_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\x0c\n\x08\x43\x41NCELED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x42\t\n\x07\x64\x65tails" \n\x10GetDlpJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x9e\x01\n\x12ListDlpJobsRequest\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12/\n\x04type\x18\x05 \x01(\x0e\x32!.google.privacy.dlp.v2.DlpJobType\x12\x10\n\x08order_by\x18\x06 \x01(\t"[\n\x13ListDlpJobsResponse\x12+\n\x04jobs\x18\x01 \x03(\x0b\x32\x1d.google.privacy.dlp.v2.DlpJob\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"#\n\x13\x43\x61ncelDlpJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"#\n\x13\x44\x65leteDlpJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x8e\x01\n\x1f\x43reateDeidentifyTemplateRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x46\n\x13\x64\x65identify_template\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12\x13\n\x0btemplate_id\x18\x03 \x01(\t"\xa8\x01\n\x1fUpdateDeidentifyTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x46\n\x13\x64\x65identify_template\x18\x02 \x01(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask",\n\x1cGetDeidentifyTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"i\n\x1eListDeidentifyTemplatesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t"\x83\x01\n\x1fListDeidentifyTemplatesResponse\x12G\n\x14\x64\x65identify_templates\x18\x01 \x03(\x0b\x32).google.privacy.dlp.v2.DeidentifyTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"/\n\x1f\x44\x65leteDeidentifyTemplateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xf4\x01\n\x1bLargeCustomDictionaryConfig\x12<\n\x0boutput_path\x18\x01 \x01(\x0b\x32\'.google.privacy.dlp.v2.CloudStoragePath\x12L\n\x16\x63loud_storage_file_set\x18\x02 \x01(\x0b\x32*.google.privacy.dlp.v2.CloudStorageFileSetH\x00\x12?\n\x0f\x62ig_query_field\x18\x03 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryFieldH\x00\x42\x08\n\x06source"\xa0\x01\n\x14StoredInfoTypeConfig\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12U\n\x17large_custom_dictionary\x18\x03 \x01(\x0b\x32\x32.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\x00\x42\x06\n\x04type"\xee\x01\n\x15StoredInfoTypeVersion\x12;\n\x06\x63onfig\x18\x01 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.google.privacy.dlp.v2.StoredInfoTypeState\x12,\n\x06\x65rrors\x18\x04 \x03(\x0b\x32\x1c.google.privacy.dlp.v2.Error"\xad\x01\n\x0eStoredInfoType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0f\x63urrent_version\x18\x02 \x01(\x0b\x32,.google.privacy.dlp.v2.StoredInfoTypeVersion\x12\x46\n\x10pending_versions\x18\x03 \x03(\x0b\x32,.google.privacy.dlp.v2.StoredInfoTypeVersion"\x87\x01\n\x1b\x43reateStoredInfoTypeRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12;\n\x06\x63onfig\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12\x1b\n\x13stored_info_type_id\x18\x03 \x01(\t"\x99\x01\n\x1bUpdateStoredInfoTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x06\x63onfig\x18\x02 \x01(\x0b\x32+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"(\n\x18GetStoredInfoTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"e\n\x1aListStoredInfoTypesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x10\n\x08order_by\x18\x04 \x01(\t"x\n\x1bListStoredInfoTypesResponse\x12@\n\x11stored_info_types\x18\x01 \x03(\x0b\x32%.google.privacy.dlp.v2.StoredInfoType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"+\n\x1b\x44\x65leteStoredInfoTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t*M\n\rContentOption\x12\x17\n\x13\x43ONTENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43ONTENT_TEXT\x10\x01\x12\x11\n\rCONTENT_IMAGE\x10\x02*\x8d\x01\n\x0cMatchingType\x12\x1d\n\x19MATCHING_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18MATCHING_TYPE_FULL_MATCH\x10\x01\x12\x1f\n\x1bMATCHING_TYPE_PARTIAL_MATCH\x10\x02\x12\x1f\n\x1bMATCHING_TYPE_INVERSE_MATCH\x10\x03*P\n\x13InfoTypeSupportedBy\x12\x19\n\x15\x45NUM_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INSPECT\x10\x01\x12\x11\n\rRISK_ANALYSIS\x10\x02*\xbb\x01\n\x12RelationalOperator\x12#\n\x1fRELATIONAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45QUAL_TO\x10\x01\x12\x10\n\x0cNOT_EQUAL_TO\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x1a\n\x16GREATER_THAN_OR_EQUALS\x10\x05\x12\x17\n\x13LESS_THAN_OR_EQUALS\x10\x06\x12\n\n\x06\x45XISTS\x10\x07*R\n\nDlpJobType\x12\x1c\n\x18\x44LP_JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINSPECT_JOB\x10\x01\x12\x15\n\x11RISK_ANALYSIS_JOB\x10\x02*n\n\x13StoredInfoTypeState\x12&\n"STORED_INFO_TYPE_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\t\n\x05READY\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0b\n\x07INVALID\x10\x04\x32\xa9+\n\nDlpService\x12\xa1\x01\n\x0eInspectContent\x12,.google.privacy.dlp.v2.InspectContentRequest\x1a-.google.privacy.dlp.v2.InspectContentResponse"2\x82\xd3\xe4\x93\x02,"\'/v2/{parent=projects/*}/content:inspect:\x01*\x12\x95\x01\n\x0bRedactImage\x12).google.privacy.dlp.v2.RedactImageRequest\x1a*.google.privacy.dlp.v2.RedactImageResponse"/\x82\xd3\xe4\x93\x02)"$/v2/{parent=projects/*}/image:redact:\x01*\x12\xad\x01\n\x11\x44\x65identifyContent\x12/.google.privacy.dlp.v2.DeidentifyContentRequest\x1a\x30.google.privacy.dlp.v2.DeidentifyContentResponse"5\x82\xd3\xe4\x93\x02/"*/v2/{parent=projects/*}/content:deidentify:\x01*\x12\xad\x01\n\x11ReidentifyContent\x12/.google.privacy.dlp.v2.ReidentifyContentRequest\x1a\x30.google.privacy.dlp.v2.ReidentifyContentResponse"5\x82\xd3\xe4\x93\x02/"*/v2/{parent=projects/*}/content:reidentify:\x01*\x12\x81\x01\n\rListInfoTypes\x12+.google.privacy.dlp.v2.ListInfoTypesRequest\x1a,.google.privacy.dlp.v2.ListInfoTypesResponse"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/v2/infoTypes\x12\xdd\x01\n\x15\x43reateInspectTemplate\x12\x33.google.privacy.dlp.v2.CreateInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate"g\x82\xd3\xe4\x93\x02\x61"-/v2/{parent=organizations/*}/inspectTemplates:\x01*Z-"(/v2/{parent=projects/*}/inspectTemplates:\x01*\x12\xdd\x01\n\x15UpdateInspectTemplate\x12\x33.google.privacy.dlp.v2.UpdateInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate"g\x82\xd3\xe4\x93\x02\x61\x32-/v2/{name=organizations/*/inspectTemplates/*}:\x01*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\x01*\x12\xd1\x01\n\x12GetInspectTemplate\x12\x30.google.privacy.dlp.v2.GetInspectTemplateRequest\x1a&.google.privacy.dlp.v2.InspectTemplate"a\x82\xd3\xe4\x93\x02[\x12-/v2/{name=organizations/*/inspectTemplates/*}Z*\x12(/v2/{name=projects/*/inspectTemplates/*}\x12\xe2\x01\n\x14ListInspectTemplates\x12\x32.google.privacy.dlp.v2.ListInspectTemplatesRequest\x1a\x33.google.privacy.dlp.v2.ListInspectTemplatesResponse"a\x82\xd3\xe4\x93\x02[\x12-/v2/{parent=organizations/*}/inspectTemplatesZ*\x12(/v2/{parent=projects/*}/inspectTemplates\x12\xc7\x01\n\x15\x44\x65leteInspectTemplate\x12\x33.google.privacy.dlp.v2.DeleteInspectTemplateRequest\x1a\x16.google.protobuf.Empty"a\x82\xd3\xe4\x93\x02[*-/v2/{name=organizations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}\x12\xec\x01\n\x18\x43reateDeidentifyTemplate\x12\x36.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest\x1a).google.privacy.dlp.v2.DeidentifyTemplate"m\x82\xd3\xe4\x93\x02g"0/v2/{parent=organizations/*}/deidentifyTemplates:\x01*Z0"+/v2/{parent=projects/*}/deidentifyTemplates:\x01*\x12\xec\x01\n\x18UpdateDeidentifyTemplate\x12\x36.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest\x1a).google.privacy.dlp.v2.DeidentifyTemplate"m\x82\xd3\xe4\x93\x02g20/v2/{name=organizations/*/deidentifyTemplates/*}:\x01*Z02+/v2/{name=projects/*/deidentifyTemplates/*}:\x01*\x12\xe0\x01\n\x15GetDeidentifyTemplate\x12\x33.google.privacy.dlp.v2.GetDeidentifyTemplateRequest\x1a).google.privacy.dlp.v2.DeidentifyTemplate"g\x82\xd3\xe4\x93\x02\x61\x12\x30/v2/{name=organizations/*/deidentifyTemplates/*}Z-\x12+/v2/{name=projects/*/deidentifyTemplates/*}\x12\xf1\x01\n\x17ListDeidentifyTemplates\x12\x35.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest\x1a\x36.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse"g\x82\xd3\xe4\x93\x02\x61\x12\x30/v2/{parent=organizations/*}/deidentifyTemplatesZ-\x12+/v2/{parent=projects/*}/deidentifyTemplates\x12\xd3\x01\n\x18\x44\x65leteDeidentifyTemplate\x12\x36.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest\x1a\x16.google.protobuf.Empty"g\x82\xd3\xe4\x93\x02\x61*0/v2/{name=organizations/*/deidentifyTemplates/*}Z-*+/v2/{name=projects/*/deidentifyTemplates/*}\x12\x95\x01\n\x10\x43reateJobTrigger\x12..google.privacy.dlp.v2.CreateJobTriggerRequest\x1a!.google.privacy.dlp.v2.JobTrigger".\x82\xd3\xe4\x93\x02("#/v2/{parent=projects/*}/jobTriggers:\x01*\x12\x95\x01\n\x10UpdateJobTrigger\x12..google.privacy.dlp.v2.UpdateJobTriggerRequest\x1a!.google.privacy.dlp.v2.JobTrigger".\x82\xd3\xe4\x93\x02(2#/v2/{name=projects/*/jobTriggers/*}:\x01*\x12\x8c\x01\n\rGetJobTrigger\x12+.google.privacy.dlp.v2.GetJobTriggerRequest\x1a!.google.privacy.dlp.v2.JobTrigger"+\x82\xd3\xe4\x93\x02%\x12#/v2/{name=projects/*/jobTriggers/*}\x12\x9d\x01\n\x0fListJobTriggers\x12-.google.privacy.dlp.v2.ListJobTriggersRequest\x1a..google.privacy.dlp.v2.ListJobTriggersResponse"+\x82\xd3\xe4\x93\x02%\x12#/v2/{parent=projects/*}/jobTriggers\x12\x87\x01\n\x10\x44\x65leteJobTrigger\x12..google.privacy.dlp.v2.DeleteJobTriggerRequest\x1a\x16.google.protobuf.Empty"+\x82\xd3\xe4\x93\x02%*#/v2/{name=projects/*/jobTriggers/*}\x12\x85\x01\n\x0c\x43reateDlpJob\x12*.google.privacy.dlp.v2.CreateDlpJobRequest\x1a\x1d.google.privacy.dlp.v2.DlpJob"*\x82\xd3\xe4\x93\x02$"\x1f/v2/{parent=projects/*}/dlpJobs:\x01*\x12\x8d\x01\n\x0bListDlpJobs\x12).google.privacy.dlp.v2.ListDlpJobsRequest\x1a*.google.privacy.dlp.v2.ListDlpJobsResponse"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v2/{parent=projects/*}/dlpJobs\x12|\n\tGetDlpJob\x12\'.google.privacy.dlp.v2.GetDlpJobRequest\x1a\x1d.google.privacy.dlp.v2.DlpJob"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v2/{name=projects/*/dlpJobs/*}\x12{\n\x0c\x44\x65leteDlpJob\x12*.google.privacy.dlp.v2.DeleteDlpJobRequest\x1a\x16.google.protobuf.Empty"\'\x82\xd3\xe4\x93\x02!*\x1f/v2/{name=projects/*/dlpJobs/*}\x12\x85\x01\n\x0c\x43\x61ncelDlpJob\x12*.google.privacy.dlp.v2.CancelDlpJobRequest\x1a\x16.google.protobuf.Empty"1\x82\xd3\xe4\x93\x02+"&/v2/{name=projects/*/dlpJobs/*}:cancel:\x01*\x12\xd8\x01\n\x14\x43reateStoredInfoType\x12\x32.google.privacy.dlp.v2.CreateStoredInfoTypeRequest\x1a%.google.privacy.dlp.v2.StoredInfoType"e\x82\xd3\xe4\x93\x02_",/v2/{parent=organizations/*}/storedInfoTypes:\x01*Z,"\'/v2/{parent=projects/*}/storedInfoTypes:\x01*\x12\xd8\x01\n\x14UpdateStoredInfoType\x12\x32.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest\x1a%.google.privacy.dlp.v2.StoredInfoType"e\x82\xd3\xe4\x93\x02_2,/v2/{name=organizations/*/storedInfoTypes/*}:\x01*Z,2\'/v2/{name=projects/*/storedInfoTypes/*}:\x01*\x12\xcc\x01\n\x11GetStoredInfoType\x12/.google.privacy.dlp.v2.GetStoredInfoTypeRequest\x1a%.google.privacy.dlp.v2.StoredInfoType"_\x82\xd3\xe4\x93\x02Y\x12,/v2/{name=organizations/*/storedInfoTypes/*}Z)\x12\'/v2/{name=projects/*/storedInfoTypes/*}\x12\xdd\x01\n\x13ListStoredInfoTypes\x12\x31.google.privacy.dlp.v2.ListStoredInfoTypesRequest\x1a\x32.google.privacy.dlp.v2.ListStoredInfoTypesResponse"_\x82\xd3\xe4\x93\x02Y\x12,/v2/{parent=organizations/*}/storedInfoTypesZ)\x12\'/v2/{parent=projects/*}/storedInfoTypes\x12\xc3\x01\n\x14\x44\x65leteStoredInfoType\x12\x32.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest\x1a\x16.google.protobuf.Empty"_\x82\xd3\xe4\x93\x02Y*,/v2/{name=organizations/*/storedInfoTypes/*}Z)*\'/v2/{name=projects/*/storedInfoTypes/*}B\x8d\x01\n\x19\x63om.google.privacy.dlp.v2B\x08\x44lpProtoP\x01Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\xaa\x02\x13Google.Cloud.Dlp.V2\xca\x02\x13Google\\Cloud\\Dlp\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + google_dot_type_dot_date__pb2.DESCRIPTOR, + google_dot_type_dot_dayofweek__pb2.DESCRIPTOR, + google_dot_type_dot_timeofday__pb2.DESCRIPTOR, + ], +) _CONTENTOPTION = _descriptor.EnumDescriptor( - name='ContentOption', - full_name='google.privacy.dlp.v2.ContentOption', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CONTENT_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONTENT_TEXT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONTENT_IMAGE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=25612, - serialized_end=25689, + name="ContentOption", + full_name="google.privacy.dlp.v2.ContentOption", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CONTENT_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONTENT_TEXT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONTENT_IMAGE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=25612, + serialized_end=25689, ) _sym_db.RegisterEnumDescriptor(_CONTENTOPTION) ContentOption = enum_type_wrapper.EnumTypeWrapper(_CONTENTOPTION) _MATCHINGTYPE = _descriptor.EnumDescriptor( - name='MatchingType', - full_name='google.privacy.dlp.v2.MatchingType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MATCHING_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MATCHING_TYPE_FULL_MATCH', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MATCHING_TYPE_PARTIAL_MATCH', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MATCHING_TYPE_INVERSE_MATCH', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=25692, - serialized_end=25833, + name="MatchingType", + full_name="google.privacy.dlp.v2.MatchingType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="MATCHING_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MATCHING_TYPE_FULL_MATCH", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MATCHING_TYPE_PARTIAL_MATCH", + index=2, + number=2, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="MATCHING_TYPE_INVERSE_MATCH", + index=3, + number=3, + options=None, + type=None, + ), + ], + containing_type=None, + options=None, + serialized_start=25692, + serialized_end=25833, ) _sym_db.RegisterEnumDescriptor(_MATCHINGTYPE) MatchingType = enum_type_wrapper.EnumTypeWrapper(_MATCHINGTYPE) _INFOTYPESUPPORTEDBY = _descriptor.EnumDescriptor( - name='InfoTypeSupportedBy', - full_name='google.privacy.dlp.v2.InfoTypeSupportedBy', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ENUM_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INSPECT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RISK_ANALYSIS', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=25835, - serialized_end=25915, + name="InfoTypeSupportedBy", + full_name="google.privacy.dlp.v2.InfoTypeSupportedBy", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ENUM_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INSPECT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RISK_ANALYSIS", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=25835, + serialized_end=25915, ) _sym_db.RegisterEnumDescriptor(_INFOTYPESUPPORTEDBY) InfoTypeSupportedBy = enum_type_wrapper.EnumTypeWrapper(_INFOTYPESUPPORTEDBY) _RELATIONALOPERATOR = _descriptor.EnumDescriptor( - name='RelationalOperator', - full_name='google.privacy.dlp.v2.RelationalOperator', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='RELATIONAL_OPERATOR_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EQUAL_TO', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOT_EQUAL_TO', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GREATER_THAN', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LESS_THAN', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GREATER_THAN_OR_EQUALS', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LESS_THAN_OR_EQUALS', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXISTS', index=7, number=7, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=25918, - serialized_end=26105, + name="RelationalOperator", + full_name="google.privacy.dlp.v2.RelationalOperator", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="RELATIONAL_OPERATOR_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="EQUAL_TO", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOT_EQUAL_TO", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GREATER_THAN", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LESS_THAN", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GREATER_THAN_OR_EQUALS", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LESS_THAN_OR_EQUALS", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXISTS", index=7, number=7, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=25918, + serialized_end=26105, ) _sym_db.RegisterEnumDescriptor(_RELATIONALOPERATOR) RelationalOperator = enum_type_wrapper.EnumTypeWrapper(_RELATIONALOPERATOR) _DLPJOBTYPE = _descriptor.EnumDescriptor( - name='DlpJobType', - full_name='google.privacy.dlp.v2.DlpJobType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='DLP_JOB_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INSPECT_JOB', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RISK_ANALYSIS_JOB', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=26107, - serialized_end=26189, + name="DlpJobType", + full_name="google.privacy.dlp.v2.DlpJobType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="DLP_JOB_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INSPECT_JOB", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RISK_ANALYSIS_JOB", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=26107, + serialized_end=26189, ) _sym_db.RegisterEnumDescriptor(_DLPJOBTYPE) DlpJobType = enum_type_wrapper.EnumTypeWrapper(_DLPJOBTYPE) _STOREDINFOTYPESTATE = _descriptor.EnumDescriptor( - name='StoredInfoTypeState', - full_name='google.privacy.dlp.v2.StoredInfoTypeState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STORED_INFO_TYPE_STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FAILED', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=26191, - serialized_end=26301, + name="StoredInfoTypeState", + full_name="google.privacy.dlp.v2.StoredInfoTypeState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STORED_INFO_TYPE_STATE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FAILED", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INVALID", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=26191, + serialized_end=26301, ) _sym_db.RegisterEnumDescriptor(_STOREDINFOTYPESTATE) @@ -258,7569 +265,12599 @@ _BYTECONTENTITEM_BYTESTYPE = _descriptor.EnumDescriptor( - name='BytesType', - full_name='google.privacy.dlp.v2.ByteContentItem.BytesType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='BYTES_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE', index=1, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE_JPEG', index=2, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE_BMP', index=3, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE_PNG', index=4, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE_SVG', index=5, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT_UTF8', index=6, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1868, - serialized_end=1994, + name="BytesType", + full_name="google.privacy.dlp.v2.ByteContentItem.BytesType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="BYTES_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE", index=1, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE_JPEG", index=2, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE_BMP", index=3, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE_PNG", index=4, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE_SVG", index=5, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT_UTF8", index=6, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1868, + serialized_end=1994, ) _sym_db.RegisterEnumDescriptor(_BYTECONTENTITEM_BYTESTYPE) _OUTPUTSTORAGECONFIG_OUTPUTSCHEMA = _descriptor.EnumDescriptor( - name='OutputSchema', - full_name='google.privacy.dlp.v2.OutputStorageConfig.OutputSchema', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='OUTPUT_SCHEMA_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BASIC_COLUMNS', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GCS_COLUMNS', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATASTORE_COLUMNS', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BIG_QUERY_COLUMNS', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALL_COLUMNS', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=5601, - serialized_end=5745, + name="OutputSchema", + full_name="google.privacy.dlp.v2.OutputStorageConfig.OutputSchema", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="OUTPUT_SCHEMA_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BASIC_COLUMNS", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GCS_COLUMNS", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DATASTORE_COLUMNS", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BIG_QUERY_COLUMNS", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALL_COLUMNS", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=5601, + serialized_end=5745, ) _sym_db.RegisterEnumDescriptor(_OUTPUTSTORAGECONFIG_OUTPUTSCHEMA) _TIMEPARTCONFIG_TIMEPART = _descriptor.EnumDescriptor( - name='TimePart', - full_name='google.privacy.dlp.v2.TimePartConfig.TimePart', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TIME_PART_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='YEAR', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MONTH', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DAY_OF_MONTH', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DAY_OF_WEEK', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEEK_OF_YEAR', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HOUR_OF_DAY', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=14818, - serialized_end=14946, + name="TimePart", + full_name="google.privacy.dlp.v2.TimePartConfig.TimePart", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TIME_PART_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="YEAR", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MONTH", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DAY_OF_MONTH", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DAY_OF_WEEK", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WEEK_OF_YEAR", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HOUR_OF_DAY", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=14818, + serialized_end=14946, ) _sym_db.RegisterEnumDescriptor(_TIMEPARTCONFIG_TIMEPART) _CHARSTOIGNORE_COMMONCHARSTOIGNORE = _descriptor.EnumDescriptor( - name='CommonCharsToIgnore', - full_name='google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='COMMON_CHARS_TO_IGNORE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUMERIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALPHA_UPPER_CASE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALPHA_LOWER_CASE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUNCTUATION', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WHITESPACE', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=15284, - serialized_end=15435, + name="CommonCharsToIgnore", + full_name="google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="COMMON_CHARS_TO_IGNORE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="NUMERIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALPHA_UPPER_CASE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALPHA_LOWER_CASE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PUNCTUATION", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WHITESPACE", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=15284, + serialized_end=15435, ) _sym_db.RegisterEnumDescriptor(_CHARSTOIGNORE_COMMONCHARSTOIGNORE) _CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET = _descriptor.EnumDescriptor( - name='FfxCommonNativeAlphabet', - full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUMERIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEXADECIMAL', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPPER_CASE_ALPHA_NUMERIC', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALPHA_NUMERIC', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=16348, - serialized_end=16496, + name="FfxCommonNativeAlphabet", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="NUMERIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEXADECIMAL", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPPER_CASE_ALPHA_NUMERIC", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALPHA_NUMERIC", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=16348, + serialized_end=16496, ) _sym_db.RegisterEnumDescriptor(_CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET) _RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR = _descriptor.EnumDescriptor( - name='LogicalOperator', - full_name='google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LOGICAL_OPERATOR_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AND', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=18439, - serialized_end=18499, + name="LogicalOperator", + full_name="google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LOGICAL_OPERATOR_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="AND", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=18439, + serialized_end=18499, ) _sym_db.RegisterEnumDescriptor(_RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR) _TRANSFORMATIONSUMMARY_TRANSFORMATIONRESULTCODE = _descriptor.EnumDescriptor( - name='TransformationResultCode', - full_name='google.privacy.dlp.v2.TransformationSummary.TransformationResultCode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TRANSFORMATION_RESULT_CODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUCCESS', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=19221, - serialized_end=19315, + name="TransformationResultCode", + full_name="google.privacy.dlp.v2.TransformationSummary.TransformationResultCode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TRANSFORMATION_RESULT_CODE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SUCCESS", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=19221, + serialized_end=19315, ) _sym_db.RegisterEnumDescriptor(_TRANSFORMATIONSUMMARY_TRANSFORMATIONRESULTCODE) _JOBTRIGGER_STATUS = _descriptor.EnumDescriptor( - name='Status', - full_name='google.privacy.dlp.v2.JobTrigger.Status', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATUS_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEALTHY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAUSED', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELLED', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=20506, - serialized_end=20578, + name="Status", + full_name="google.privacy.dlp.v2.JobTrigger.Status", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATUS_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEALTHY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PAUSED", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=20506, + serialized_end=20578, ) _sym_db.RegisterEnumDescriptor(_JOBTRIGGER_STATUS) _DLPJOB_JOBSTATE = _descriptor.EnumDescriptor( - name='JobState', - full_name='google.privacy.dlp.v2.DlpJob.JobState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='JOB_STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELED', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FAILED', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=23053, - serialized_end=23152, + name="JobState", + full_name="google.privacy.dlp.v2.DlpJob.JobState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="JOB_STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PENDING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELED", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FAILED", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=23053, + serialized_end=23152, ) _sym_db.RegisterEnumDescriptor(_DLPJOB_JOBSTATE) _EXCLUDEINFOTYPES = _descriptor.Descriptor( - name='ExcludeInfoTypes', - full_name='google.privacy.dlp.v2.ExcludeInfoTypes', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_types', full_name='google.privacy.dlp.v2.ExcludeInfoTypes.info_types', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=384, - serialized_end=455, + name="ExcludeInfoTypes", + full_name="google.privacy.dlp.v2.ExcludeInfoTypes", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_types", + full_name="google.privacy.dlp.v2.ExcludeInfoTypes.info_types", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=384, + serialized_end=455, ) _EXCLUSIONRULE = _descriptor.Descriptor( - name='ExclusionRule', - full_name='google.privacy.dlp.v2.ExclusionRule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='dictionary', full_name='google.privacy.dlp.v2.ExclusionRule.dictionary', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='regex', full_name='google.privacy.dlp.v2.ExclusionRule.regex', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exclude_info_types', full_name='google.privacy.dlp.v2.ExclusionRule.exclude_info_types', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='matching_type', full_name='google.privacy.dlp.v2.ExclusionRule.matching_type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.ExclusionRule.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=458, - serialized_end=746, + name="ExclusionRule", + full_name="google.privacy.dlp.v2.ExclusionRule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="dictionary", + full_name="google.privacy.dlp.v2.ExclusionRule.dictionary", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="regex", + full_name="google.privacy.dlp.v2.ExclusionRule.regex", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="exclude_info_types", + full_name="google.privacy.dlp.v2.ExclusionRule.exclude_info_types", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="matching_type", + full_name="google.privacy.dlp.v2.ExclusionRule.matching_type", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.ExclusionRule.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=458, + serialized_end=746, ) _INSPECTIONRULE = _descriptor.Descriptor( - name='InspectionRule', - full_name='google.privacy.dlp.v2.InspectionRule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hotword_rule', full_name='google.privacy.dlp.v2.InspectionRule.hotword_rule', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exclusion_rule', full_name='google.privacy.dlp.v2.InspectionRule.exclusion_rule', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.InspectionRule.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=749, - serialized_end=926, + name="InspectionRule", + full_name="google.privacy.dlp.v2.InspectionRule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="hotword_rule", + full_name="google.privacy.dlp.v2.InspectionRule.hotword_rule", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="exclusion_rule", + full_name="google.privacy.dlp.v2.InspectionRule.exclusion_rule", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.InspectionRule.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=749, + serialized_end=926, ) _INSPECTIONRULESET = _descriptor.Descriptor( - name='InspectionRuleSet', - full_name='google.privacy.dlp.v2.InspectionRuleSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_types', full_name='google.privacy.dlp.v2.InspectionRuleSet.info_types', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rules', full_name='google.privacy.dlp.v2.InspectionRuleSet.rules', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=928, - serialized_end=1054, + name="InspectionRuleSet", + full_name="google.privacy.dlp.v2.InspectionRuleSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_types", + full_name="google.privacy.dlp.v2.InspectionRuleSet.info_types", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rules", + full_name="google.privacy.dlp.v2.InspectionRuleSet.rules", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=928, + serialized_end=1054, ) _INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT = _descriptor.Descriptor( - name='InfoTypeLimit', - full_name='google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit.info_type', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_findings', full_name='google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit.max_findings', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1679, - serialized_end=1768, + name="InfoTypeLimit", + full_name="google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit.info_type", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_findings", + full_name="google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit.max_findings", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1679, + serialized_end=1768, ) _INSPECTCONFIG_FINDINGLIMITS = _descriptor.Descriptor( - name='FindingLimits', - full_name='google.privacy.dlp.v2.InspectConfig.FindingLimits', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_findings_per_item', full_name='google.privacy.dlp.v2.InspectConfig.FindingLimits.max_findings_per_item', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_findings_per_request', full_name='google.privacy.dlp.v2.InspectConfig.FindingLimits.max_findings_per_request', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_findings_per_info_type', full_name='google.privacy.dlp.v2.InspectConfig.FindingLimits.max_findings_per_info_type', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1495, - serialized_end=1768, + name="FindingLimits", + full_name="google.privacy.dlp.v2.InspectConfig.FindingLimits", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_findings_per_item", + full_name="google.privacy.dlp.v2.InspectConfig.FindingLimits.max_findings_per_item", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_findings_per_request", + full_name="google.privacy.dlp.v2.InspectConfig.FindingLimits.max_findings_per_request", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_findings_per_info_type", + full_name="google.privacy.dlp.v2.InspectConfig.FindingLimits.max_findings_per_info_type", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1495, + serialized_end=1768, ) _INSPECTCONFIG = _descriptor.Descriptor( - name='InspectConfig', - full_name='google.privacy.dlp.v2.InspectConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_types', full_name='google.privacy.dlp.v2.InspectConfig.info_types', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_likelihood', full_name='google.privacy.dlp.v2.InspectConfig.min_likelihood', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='limits', full_name='google.privacy.dlp.v2.InspectConfig.limits', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='include_quote', full_name='google.privacy.dlp.v2.InspectConfig.include_quote', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exclude_info_types', full_name='google.privacy.dlp.v2.InspectConfig.exclude_info_types', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_info_types', full_name='google.privacy.dlp.v2.InspectConfig.custom_info_types', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_options', full_name='google.privacy.dlp.v2.InspectConfig.content_options', index=6, - number=8, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rule_set', full_name='google.privacy.dlp.v2.InspectConfig.rule_set', index=7, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSPECTCONFIG_FINDINGLIMITS, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1057, - serialized_end=1768, + name="InspectConfig", + full_name="google.privacy.dlp.v2.InspectConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_types", + full_name="google.privacy.dlp.v2.InspectConfig.info_types", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="min_likelihood", + full_name="google.privacy.dlp.v2.InspectConfig.min_likelihood", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="limits", + full_name="google.privacy.dlp.v2.InspectConfig.limits", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="include_quote", + full_name="google.privacy.dlp.v2.InspectConfig.include_quote", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="exclude_info_types", + full_name="google.privacy.dlp.v2.InspectConfig.exclude_info_types", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="custom_info_types", + full_name="google.privacy.dlp.v2.InspectConfig.custom_info_types", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content_options", + full_name="google.privacy.dlp.v2.InspectConfig.content_options", + index=6, + number=8, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rule_set", + full_name="google.privacy.dlp.v2.InspectConfig.rule_set", + index=7, + number=10, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_INSPECTCONFIG_FINDINGLIMITS], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1057, + serialized_end=1768, ) _BYTECONTENTITEM = _descriptor.Descriptor( - name='ByteContentItem', - full_name='google.privacy.dlp.v2.ByteContentItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.privacy.dlp.v2.ByteContentItem.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='google.privacy.dlp.v2.ByteContentItem.data', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _BYTECONTENTITEM_BYTESTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1771, - serialized_end=1994, + name="ByteContentItem", + full_name="google.privacy.dlp.v2.ByteContentItem", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.privacy.dlp.v2.ByteContentItem.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data", + full_name="google.privacy.dlp.v2.ByteContentItem.data", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_BYTECONTENTITEM_BYTESTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1771, + serialized_end=1994, ) _CONTENTITEM = _descriptor.Descriptor( - name='ContentItem', - full_name='google.privacy.dlp.v2.ContentItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value', full_name='google.privacy.dlp.v2.ContentItem.value', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table', full_name='google.privacy.dlp.v2.ContentItem.table', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='byte_item', full_name='google.privacy.dlp.v2.ContentItem.byte_item', index=2, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='data_item', full_name='google.privacy.dlp.v2.ContentItem.data_item', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1997, - serialized_end=2148, + name="ContentItem", + full_name="google.privacy.dlp.v2.ContentItem", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="value", + full_name="google.privacy.dlp.v2.ContentItem.value", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table", + full_name="google.privacy.dlp.v2.ContentItem.table", + index=1, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="byte_item", + full_name="google.privacy.dlp.v2.ContentItem.byte_item", + index=2, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="data_item", + full_name="google.privacy.dlp.v2.ContentItem.data_item", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1997, + serialized_end=2148, ) _TABLE_ROW = _descriptor.Descriptor( - name='Row', - full_name='google.privacy.dlp.v2.Table.Row', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='values', full_name='google.privacy.dlp.v2.Table.Row.values', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2257, - serialized_end=2308, + name="Row", + full_name="google.privacy.dlp.v2.Table.Row", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="values", + full_name="google.privacy.dlp.v2.Table.Row.values", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2257, + serialized_end=2308, ) _TABLE = _descriptor.Descriptor( - name='Table', - full_name='google.privacy.dlp.v2.Table', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headers', full_name='google.privacy.dlp.v2.Table.headers', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rows', full_name='google.privacy.dlp.v2.Table.rows', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TABLE_ROW, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2151, - serialized_end=2308, + name="Table", + full_name="google.privacy.dlp.v2.Table", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="headers", + full_name="google.privacy.dlp.v2.Table.headers", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rows", + full_name="google.privacy.dlp.v2.Table.rows", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_TABLE_ROW], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2151, + serialized_end=2308, ) _INSPECTRESULT = _descriptor.Descriptor( - name='InspectResult', - full_name='google.privacy.dlp.v2.InspectResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='findings', full_name='google.privacy.dlp.v2.InspectResult.findings', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='findings_truncated', full_name='google.privacy.dlp.v2.InspectResult.findings_truncated', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2310, - serialized_end=2403, + name="InspectResult", + full_name="google.privacy.dlp.v2.InspectResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="findings", + full_name="google.privacy.dlp.v2.InspectResult.findings", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="findings_truncated", + full_name="google.privacy.dlp.v2.InspectResult.findings_truncated", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2310, + serialized_end=2403, ) _FINDING = _descriptor.Descriptor( - name='Finding', - full_name='google.privacy.dlp.v2.Finding', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quote', full_name='google.privacy.dlp.v2.Finding.quote', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.Finding.info_type', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='likelihood', full_name='google.privacy.dlp.v2.Finding.likelihood', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location', full_name='google.privacy.dlp.v2.Finding.location', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.privacy.dlp.v2.Finding.create_time', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quote_info', full_name='google.privacy.dlp.v2.Finding.quote_info', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2406, - serialized_end=2691, + name="Finding", + full_name="google.privacy.dlp.v2.Finding", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quote", + full_name="google.privacy.dlp.v2.Finding.quote", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.Finding.info_type", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="likelihood", + full_name="google.privacy.dlp.v2.Finding.likelihood", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location", + full_name="google.privacy.dlp.v2.Finding.location", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.privacy.dlp.v2.Finding.create_time", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="quote_info", + full_name="google.privacy.dlp.v2.Finding.quote_info", + index=5, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2406, + serialized_end=2691, ) _LOCATION = _descriptor.Descriptor( - name='Location', - full_name='google.privacy.dlp.v2.Location', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='byte_range', full_name='google.privacy.dlp.v2.Location.byte_range', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='codepoint_range', full_name='google.privacy.dlp.v2.Location.codepoint_range', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_locations', full_name='google.privacy.dlp.v2.Location.content_locations', index=2, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2694, - serialized_end=2876, + name="Location", + full_name="google.privacy.dlp.v2.Location", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="byte_range", + full_name="google.privacy.dlp.v2.Location.byte_range", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="codepoint_range", + full_name="google.privacy.dlp.v2.Location.codepoint_range", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content_locations", + full_name="google.privacy.dlp.v2.Location.content_locations", + index=2, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2694, + serialized_end=2876, ) _CONTENTLOCATION = _descriptor.Descriptor( - name='ContentLocation', - full_name='google.privacy.dlp.v2.ContentLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='container_name', full_name='google.privacy.dlp.v2.ContentLocation.container_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='record_location', full_name='google.privacy.dlp.v2.ContentLocation.record_location', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_location', full_name='google.privacy.dlp.v2.ContentLocation.image_location', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='document_location', full_name='google.privacy.dlp.v2.ContentLocation.document_location', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='container_timestamp', full_name='google.privacy.dlp.v2.ContentLocation.container_timestamp', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='container_version', full_name='google.privacy.dlp.v2.ContentLocation.container_version', index=5, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='location', full_name='google.privacy.dlp.v2.ContentLocation.location', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2879, - serialized_end=3216, + name="ContentLocation", + full_name="google.privacy.dlp.v2.ContentLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="container_name", + full_name="google.privacy.dlp.v2.ContentLocation.container_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="record_location", + full_name="google.privacy.dlp.v2.ContentLocation.record_location", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_location", + full_name="google.privacy.dlp.v2.ContentLocation.image_location", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="document_location", + full_name="google.privacy.dlp.v2.ContentLocation.document_location", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="container_timestamp", + full_name="google.privacy.dlp.v2.ContentLocation.container_timestamp", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="container_version", + full_name="google.privacy.dlp.v2.ContentLocation.container_version", + index=5, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="location", + full_name="google.privacy.dlp.v2.ContentLocation.location", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2879, + serialized_end=3216, ) _DOCUMENTLOCATION = _descriptor.Descriptor( - name='DocumentLocation', - full_name='google.privacy.dlp.v2.DocumentLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='file_offset', full_name='google.privacy.dlp.v2.DocumentLocation.file_offset', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3218, - serialized_end=3257, + name="DocumentLocation", + full_name="google.privacy.dlp.v2.DocumentLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="file_offset", + full_name="google.privacy.dlp.v2.DocumentLocation.file_offset", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3218, + serialized_end=3257, ) _RECORDLOCATION = _descriptor.Descriptor( - name='RecordLocation', - full_name='google.privacy.dlp.v2.RecordLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='record_key', full_name='google.privacy.dlp.v2.RecordLocation.record_key', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_id', full_name='google.privacy.dlp.v2.RecordLocation.field_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_location', full_name='google.privacy.dlp.v2.RecordLocation.table_location', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3260, - serialized_end=3442, + name="RecordLocation", + full_name="google.privacy.dlp.v2.RecordLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="record_key", + full_name="google.privacy.dlp.v2.RecordLocation.record_key", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="field_id", + full_name="google.privacy.dlp.v2.RecordLocation.field_id", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_location", + full_name="google.privacy.dlp.v2.RecordLocation.table_location", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3260, + serialized_end=3442, ) _TABLELOCATION = _descriptor.Descriptor( - name='TableLocation', - full_name='google.privacy.dlp.v2.TableLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='row_index', full_name='google.privacy.dlp.v2.TableLocation.row_index', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3444, - serialized_end=3478, + name="TableLocation", + full_name="google.privacy.dlp.v2.TableLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="row_index", + full_name="google.privacy.dlp.v2.TableLocation.row_index", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3444, + serialized_end=3478, ) _RANGE = _descriptor.Descriptor( - name='Range', - full_name='google.privacy.dlp.v2.Range', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start', full_name='google.privacy.dlp.v2.Range.start', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end', full_name='google.privacy.dlp.v2.Range.end', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3480, - serialized_end=3515, + name="Range", + full_name="google.privacy.dlp.v2.Range", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start", + full_name="google.privacy.dlp.v2.Range.start", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end", + full_name="google.privacy.dlp.v2.Range.end", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3480, + serialized_end=3515, ) _IMAGELOCATION = _descriptor.Descriptor( - name='ImageLocation', - full_name='google.privacy.dlp.v2.ImageLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_boxes', full_name='google.privacy.dlp.v2.ImageLocation.bounding_boxes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3517, - serialized_end=3592, + name="ImageLocation", + full_name="google.privacy.dlp.v2.ImageLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_boxes", + full_name="google.privacy.dlp.v2.ImageLocation.bounding_boxes", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3517, + serialized_end=3592, ) _BOUNDINGBOX = _descriptor.Descriptor( - name='BoundingBox', - full_name='google.privacy.dlp.v2.BoundingBox', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='top', full_name='google.privacy.dlp.v2.BoundingBox.top', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='left', full_name='google.privacy.dlp.v2.BoundingBox.left', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='width', full_name='google.privacy.dlp.v2.BoundingBox.width', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='height', full_name='google.privacy.dlp.v2.BoundingBox.height', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3594, - serialized_end=3665, + name="BoundingBox", + full_name="google.privacy.dlp.v2.BoundingBox", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="top", + full_name="google.privacy.dlp.v2.BoundingBox.top", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="left", + full_name="google.privacy.dlp.v2.BoundingBox.left", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="width", + full_name="google.privacy.dlp.v2.BoundingBox.width", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="height", + full_name="google.privacy.dlp.v2.BoundingBox.height", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3594, + serialized_end=3665, ) _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG = _descriptor.Descriptor( - name='ImageRedactionConfig', - full_name='google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.info_type', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='redact_all_text', full_name='google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.redact_all_text', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='redaction_color', full_name='google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.redaction_color', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target', full_name='google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.target', - index=0, containing_type=None, fields=[]), - ], - serialized_start=3951, - serialized_end=4119, + name="ImageRedactionConfig", + full_name="google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.info_type", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="redact_all_text", + full_name="google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.redact_all_text", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="redaction_color", + full_name="google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.redaction_color", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="target", + full_name="google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.target", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=3951, + serialized_end=4119, ) _REDACTIMAGEREQUEST = _descriptor.Descriptor( - name='RedactImageRequest', - full_name='google.privacy.dlp.v2.RedactImageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.RedactImageRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_config', full_name='google.privacy.dlp.v2.RedactImageRequest.inspect_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_redaction_configs', full_name='google.privacy.dlp.v2.RedactImageRequest.image_redaction_configs', index=2, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='include_findings', full_name='google.privacy.dlp.v2.RedactImageRequest.include_findings', index=3, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='byte_item', full_name='google.privacy.dlp.v2.RedactImageRequest.byte_item', index=4, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3668, - serialized_end=4119, + name="RedactImageRequest", + full_name="google.privacy.dlp.v2.RedactImageRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.RedactImageRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_config", + full_name="google.privacy.dlp.v2.RedactImageRequest.inspect_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_redaction_configs", + full_name="google.privacy.dlp.v2.RedactImageRequest.image_redaction_configs", + index=2, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="include_findings", + full_name="google.privacy.dlp.v2.RedactImageRequest.include_findings", + index=3, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="byte_item", + full_name="google.privacy.dlp.v2.RedactImageRequest.byte_item", + index=4, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3668, + serialized_end=4119, ) _COLOR = _descriptor.Descriptor( - name='Color', - full_name='google.privacy.dlp.v2.Color', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='red', full_name='google.privacy.dlp.v2.Color.red', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='green', full_name='google.privacy.dlp.v2.Color.green', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blue', full_name='google.privacy.dlp.v2.Color.blue', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4121, - serialized_end=4170, + name="Color", + full_name="google.privacy.dlp.v2.Color", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="red", + full_name="google.privacy.dlp.v2.Color.red", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="green", + full_name="google.privacy.dlp.v2.Color.green", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blue", + full_name="google.privacy.dlp.v2.Color.blue", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4121, + serialized_end=4170, ) _REDACTIMAGERESPONSE = _descriptor.Descriptor( - name='RedactImageResponse', - full_name='google.privacy.dlp.v2.RedactImageResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='redacted_image', full_name='google.privacy.dlp.v2.RedactImageResponse.redacted_image', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extracted_text', full_name='google.privacy.dlp.v2.RedactImageResponse.extracted_text', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_result', full_name='google.privacy.dlp.v2.RedactImageResponse.inspect_result', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4173, - serialized_end=4304, + name="RedactImageResponse", + full_name="google.privacy.dlp.v2.RedactImageResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="redacted_image", + full_name="google.privacy.dlp.v2.RedactImageResponse.redacted_image", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extracted_text", + full_name="google.privacy.dlp.v2.RedactImageResponse.extracted_text", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_result", + full_name="google.privacy.dlp.v2.RedactImageResponse.inspect_result", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4173, + serialized_end=4304, ) _DEIDENTIFYCONTENTREQUEST = _descriptor.Descriptor( - name='DeidentifyContentRequest', - full_name='google.privacy.dlp.v2.DeidentifyContentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.DeidentifyContentRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='deidentify_config', full_name='google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_config', full_name='google.privacy.dlp.v2.DeidentifyContentRequest.inspect_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='item', full_name='google.privacy.dlp.v2.DeidentifyContentRequest.item', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_template_name', full_name='google.privacy.dlp.v2.DeidentifyContentRequest.inspect_template_name', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='deidentify_template_name', full_name='google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_template_name', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4307, - serialized_end=4594, + name="DeidentifyContentRequest", + full_name="google.privacy.dlp.v2.DeidentifyContentRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.DeidentifyContentRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="deidentify_config", + full_name="google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_config", + full_name="google.privacy.dlp.v2.DeidentifyContentRequest.inspect_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="item", + full_name="google.privacy.dlp.v2.DeidentifyContentRequest.item", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_template_name", + full_name="google.privacy.dlp.v2.DeidentifyContentRequest.inspect_template_name", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="deidentify_template_name", + full_name="google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_template_name", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4307, + serialized_end=4594, ) _DEIDENTIFYCONTENTRESPONSE = _descriptor.Descriptor( - name='DeidentifyContentResponse', - full_name='google.privacy.dlp.v2.DeidentifyContentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='item', full_name='google.privacy.dlp.v2.DeidentifyContentResponse.item', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='overview', full_name='google.privacy.dlp.v2.DeidentifyContentResponse.overview', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4597, - serialized_end=4739, + name="DeidentifyContentResponse", + full_name="google.privacy.dlp.v2.DeidentifyContentResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="item", + full_name="google.privacy.dlp.v2.DeidentifyContentResponse.item", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="overview", + full_name="google.privacy.dlp.v2.DeidentifyContentResponse.overview", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4597, + serialized_end=4739, ) _REIDENTIFYCONTENTREQUEST = _descriptor.Descriptor( - name='ReidentifyContentRequest', - full_name='google.privacy.dlp.v2.ReidentifyContentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.ReidentifyContentRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reidentify_config', full_name='google.privacy.dlp.v2.ReidentifyContentRequest.reidentify_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_config', full_name='google.privacy.dlp.v2.ReidentifyContentRequest.inspect_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='item', full_name='google.privacy.dlp.v2.ReidentifyContentRequest.item', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_template_name', full_name='google.privacy.dlp.v2.ReidentifyContentRequest.inspect_template_name', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reidentify_template_name', full_name='google.privacy.dlp.v2.ReidentifyContentRequest.reidentify_template_name', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4742, - serialized_end=5029, + name="ReidentifyContentRequest", + full_name="google.privacy.dlp.v2.ReidentifyContentRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.ReidentifyContentRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reidentify_config", + full_name="google.privacy.dlp.v2.ReidentifyContentRequest.reidentify_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_config", + full_name="google.privacy.dlp.v2.ReidentifyContentRequest.inspect_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="item", + full_name="google.privacy.dlp.v2.ReidentifyContentRequest.item", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_template_name", + full_name="google.privacy.dlp.v2.ReidentifyContentRequest.inspect_template_name", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reidentify_template_name", + full_name="google.privacy.dlp.v2.ReidentifyContentRequest.reidentify_template_name", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4742, + serialized_end=5029, ) _REIDENTIFYCONTENTRESPONSE = _descriptor.Descriptor( - name='ReidentifyContentResponse', - full_name='google.privacy.dlp.v2.ReidentifyContentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='item', full_name='google.privacy.dlp.v2.ReidentifyContentResponse.item', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='overview', full_name='google.privacy.dlp.v2.ReidentifyContentResponse.overview', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5032, - serialized_end=5174, + name="ReidentifyContentResponse", + full_name="google.privacy.dlp.v2.ReidentifyContentResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="item", + full_name="google.privacy.dlp.v2.ReidentifyContentResponse.item", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="overview", + full_name="google.privacy.dlp.v2.ReidentifyContentResponse.overview", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5032, + serialized_end=5174, ) _INSPECTCONTENTREQUEST = _descriptor.Descriptor( - name='InspectContentRequest', - full_name='google.privacy.dlp.v2.InspectContentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.InspectContentRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_config', full_name='google.privacy.dlp.v2.InspectContentRequest.inspect_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='item', full_name='google.privacy.dlp.v2.InspectContentRequest.item', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_template_name', full_name='google.privacy.dlp.v2.InspectContentRequest.inspect_template_name', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5177, - serialized_end=5359, + name="InspectContentRequest", + full_name="google.privacy.dlp.v2.InspectContentRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.InspectContentRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_config", + full_name="google.privacy.dlp.v2.InspectContentRequest.inspect_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="item", + full_name="google.privacy.dlp.v2.InspectContentRequest.item", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_template_name", + full_name="google.privacy.dlp.v2.InspectContentRequest.inspect_template_name", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5177, + serialized_end=5359, ) _INSPECTCONTENTRESPONSE = _descriptor.Descriptor( - name='InspectContentResponse', - full_name='google.privacy.dlp.v2.InspectContentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='result', full_name='google.privacy.dlp.v2.InspectContentResponse.result', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5361, - serialized_end=5439, + name="InspectContentResponse", + full_name="google.privacy.dlp.v2.InspectContentResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="result", + full_name="google.privacy.dlp.v2.InspectContentResponse.result", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5361, + serialized_end=5439, ) _OUTPUTSTORAGECONFIG = _descriptor.Descriptor( - name='OutputStorageConfig', - full_name='google.privacy.dlp.v2.OutputStorageConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table', full_name='google.privacy.dlp.v2.OutputStorageConfig.table', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_schema', full_name='google.privacy.dlp.v2.OutputStorageConfig.output_schema', index=1, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _OUTPUTSTORAGECONFIG_OUTPUTSCHEMA, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.OutputStorageConfig.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=5442, - serialized_end=5753, + name="OutputStorageConfig", + full_name="google.privacy.dlp.v2.OutputStorageConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table", + full_name="google.privacy.dlp.v2.OutputStorageConfig.table", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_schema", + full_name="google.privacy.dlp.v2.OutputStorageConfig.output_schema", + index=1, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_OUTPUTSTORAGECONFIG_OUTPUTSCHEMA], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.OutputStorageConfig.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=5442, + serialized_end=5753, ) _INFOTYPESTATS = _descriptor.Descriptor( - name='InfoTypeStats', - full_name='google.privacy.dlp.v2.InfoTypeStats', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.InfoTypeStats.info_type', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='count', full_name='google.privacy.dlp.v2.InfoTypeStats.count', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5755, - serialized_end=5837, + name="InfoTypeStats", + full_name="google.privacy.dlp.v2.InfoTypeStats", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.InfoTypeStats.info_type", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="count", + full_name="google.privacy.dlp.v2.InfoTypeStats.count", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5755, + serialized_end=5837, ) _INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS = _descriptor.Descriptor( - name='RequestedOptions', - full_name='google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshot_inspect_template', full_name='google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.snapshot_inspect_template', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_config', full_name='google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.job_config', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6034, - serialized_end=6188, + name="RequestedOptions", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshot_inspect_template", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.snapshot_inspect_template", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_config", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.job_config", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6034, + serialized_end=6188, ) _INSPECTDATASOURCEDETAILS_RESULT = _descriptor.Descriptor( - name='Result', - full_name='google.privacy.dlp.v2.InspectDataSourceDetails.Result', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='processed_bytes', full_name='google.privacy.dlp.v2.InspectDataSourceDetails.Result.processed_bytes', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_estimated_bytes', full_name='google.privacy.dlp.v2.InspectDataSourceDetails.Result.total_estimated_bytes', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='info_type_stats', full_name='google.privacy.dlp.v2.InspectDataSourceDetails.Result.info_type_stats', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6190, - serialized_end=6317, + name="Result", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.Result", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="processed_bytes", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.Result.processed_bytes", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_estimated_bytes", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.Result.total_estimated_bytes", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="info_type_stats", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.Result.info_type_stats", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6190, + serialized_end=6317, ) _INSPECTDATASOURCEDETAILS = _descriptor.Descriptor( - name='InspectDataSourceDetails', - full_name='google.privacy.dlp.v2.InspectDataSourceDetails', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='requested_options', full_name='google.privacy.dlp.v2.InspectDataSourceDetails.requested_options', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='result', full_name='google.privacy.dlp.v2.InspectDataSourceDetails.result', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS, _INSPECTDATASOURCEDETAILS_RESULT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5840, - serialized_end=6317, + name="InspectDataSourceDetails", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="requested_options", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.requested_options", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="result", + full_name="google.privacy.dlp.v2.InspectDataSourceDetails.result", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS, + _INSPECTDATASOURCEDETAILS_RESULT, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5840, + serialized_end=6317, ) _INFOTYPEDESCRIPTION = _descriptor.Descriptor( - name='InfoTypeDescription', - full_name='google.privacy.dlp.v2.InfoTypeDescription', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.InfoTypeDescription.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.privacy.dlp.v2.InfoTypeDescription.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='supported_by', full_name='google.privacy.dlp.v2.InfoTypeDescription.supported_by', index=2, - number=3, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6319, - serialized_end=6442, + name="InfoTypeDescription", + full_name="google.privacy.dlp.v2.InfoTypeDescription", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.InfoTypeDescription.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.privacy.dlp.v2.InfoTypeDescription.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="supported_by", + full_name="google.privacy.dlp.v2.InfoTypeDescription.supported_by", + index=2, + number=3, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6319, + serialized_end=6442, ) _LISTINFOTYPESREQUEST = _descriptor.Descriptor( - name='ListInfoTypesRequest', - full_name='google.privacy.dlp.v2.ListInfoTypesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.privacy.dlp.v2.ListInfoTypesRequest.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.privacy.dlp.v2.ListInfoTypesRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6444, - serialized_end=6505, + name="ListInfoTypesRequest", + full_name="google.privacy.dlp.v2.ListInfoTypesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.privacy.dlp.v2.ListInfoTypesRequest.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.privacy.dlp.v2.ListInfoTypesRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6444, + serialized_end=6505, ) _LISTINFOTYPESRESPONSE = _descriptor.Descriptor( - name='ListInfoTypesResponse', - full_name='google.privacy.dlp.v2.ListInfoTypesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_types', full_name='google.privacy.dlp.v2.ListInfoTypesResponse.info_types', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6507, - serialized_end=6594, + name="ListInfoTypesResponse", + full_name="google.privacy.dlp.v2.ListInfoTypesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_types", + full_name="google.privacy.dlp.v2.ListInfoTypesResponse.info_types", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6507, + serialized_end=6594, ) _RISKANALYSISJOBCONFIG = _descriptor.Descriptor( - name='RiskAnalysisJobConfig', - full_name='google.privacy.dlp.v2.RiskAnalysisJobConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='privacy_metric', full_name='google.privacy.dlp.v2.RiskAnalysisJobConfig.privacy_metric', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_table', full_name='google.privacy.dlp.v2.RiskAnalysisJobConfig.source_table', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='actions', full_name='google.privacy.dlp.v2.RiskAnalysisJobConfig.actions', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6597, - serialized_end=6790, + name="RiskAnalysisJobConfig", + full_name="google.privacy.dlp.v2.RiskAnalysisJobConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="privacy_metric", + full_name="google.privacy.dlp.v2.RiskAnalysisJobConfig.privacy_metric", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source_table", + full_name="google.privacy.dlp.v2.RiskAnalysisJobConfig.source_table", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="actions", + full_name="google.privacy.dlp.v2.RiskAnalysisJobConfig.actions", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6597, + serialized_end=6790, ) _QUASIID = _descriptor.Descriptor( - name='QuasiId', - full_name='google.privacy.dlp.v2.QuasiId', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.QuasiId.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.QuasiId.info_type', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_tag', full_name='google.privacy.dlp.v2.QuasiId.custom_tag', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inferred', full_name='google.privacy.dlp.v2.QuasiId.inferred', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='tag', full_name='google.privacy.dlp.v2.QuasiId.tag', - index=0, containing_type=None, fields=[]), - ], - serialized_start=6793, - serialized_end=6976, + name="QuasiId", + full_name="google.privacy.dlp.v2.QuasiId", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.QuasiId.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.QuasiId.info_type", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="custom_tag", + full_name="google.privacy.dlp.v2.QuasiId.custom_tag", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inferred", + full_name="google.privacy.dlp.v2.QuasiId.inferred", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="tag", + full_name="google.privacy.dlp.v2.QuasiId.tag", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=6793, + serialized_end=6976, ) _STATISTICALTABLE_QUASIIDENTIFIERFIELD = _descriptor.Descriptor( - name='QuasiIdentifierField', - full_name='google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_tag', full_name='google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField.custom_tag', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7193, - serialized_end=7282, + name="QuasiIdentifierField", + full_name="google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="custom_tag", + full_name="google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField.custom_tag", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7193, + serialized_end=7282, ) _STATISTICALTABLE = _descriptor.Descriptor( - name='StatisticalTable', - full_name='google.privacy.dlp.v2.StatisticalTable', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table', full_name='google.privacy.dlp.v2.StatisticalTable.table', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quasi_ids', full_name='google.privacy.dlp.v2.StatisticalTable.quasi_ids', index=1, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relative_frequency', full_name='google.privacy.dlp.v2.StatisticalTable.relative_frequency', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_STATISTICALTABLE_QUASIIDENTIFIERFIELD, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6979, - serialized_end=7282, + name="StatisticalTable", + full_name="google.privacy.dlp.v2.StatisticalTable", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table", + full_name="google.privacy.dlp.v2.StatisticalTable.table", + index=0, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="quasi_ids", + full_name="google.privacy.dlp.v2.StatisticalTable.quasi_ids", + index=1, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="relative_frequency", + full_name="google.privacy.dlp.v2.StatisticalTable.relative_frequency", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_STATISTICALTABLE_QUASIIDENTIFIERFIELD], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6979, + serialized_end=7282, ) _PRIVACYMETRIC_NUMERICALSTATSCONFIG = _descriptor.Descriptor( - name='NumericalStatsConfig', - full_name='google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7868, - serialized_end=7937, + name="NumericalStatsConfig", + full_name="google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7868, + serialized_end=7937, ) _PRIVACYMETRIC_CATEGORICALSTATSCONFIG = _descriptor.Descriptor( - name='CategoricalStatsConfig', - full_name='google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7939, - serialized_end=8010, + name="CategoricalStatsConfig", + full_name="google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7939, + serialized_end=8010, ) _PRIVACYMETRIC_KANONYMITYCONFIG = _descriptor.Descriptor( - name='KAnonymityConfig', - full_name='google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids', full_name='google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig.quasi_ids', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig.entity_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8012, - serialized_end=8133, + name="KAnonymityConfig", + full_name="google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids", + full_name="google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig.quasi_ids", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig.entity_id", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=8012, + serialized_end=8133, ) _PRIVACYMETRIC_LDIVERSITYCONFIG = _descriptor.Descriptor( - name='LDiversityConfig', - full_name='google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids', full_name='google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig.quasi_ids', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sensitive_attribute', full_name='google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig.sensitive_attribute', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8136, - serialized_end=8266, + name="LDiversityConfig", + full_name="google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids", + full_name="google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig.quasi_ids", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sensitive_attribute", + full_name="google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig.sensitive_attribute", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=8136, + serialized_end=8266, ) _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD = _descriptor.Descriptor( - name='TaggedField', - full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.info_type', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_tag', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.custom_tag', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inferred', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.inferred', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='tag', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.tag', - index=0, containing_type=None, fields=[]), - ], - serialized_start=8505, - serialized_end=8692, + name="TaggedField", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.info_type", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="custom_tag", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.custom_tag", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inferred", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.inferred", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="tag", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField.tag", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=8505, + serialized_end=8692, ) _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD = _descriptor.Descriptor( - name='QuasiIdField', - full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_tag', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField.custom_tag', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8932, - serialized_end=9013, + name="QuasiIdField", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="custom_tag", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField.custom_tag", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=8932, + serialized_end=9013, ) _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE = _descriptor.Descriptor( - name='AuxiliaryTable', - full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.table', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quasi_ids', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.quasi_ids', index=1, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relative_frequency', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.relative_frequency', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8695, - serialized_end=9013, + name="AuxiliaryTable", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.table", + index=0, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="quasi_ids", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.quasi_ids", + index=1, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="relative_frequency", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.relative_frequency", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=8695, + serialized_end=9013, ) _PRIVACYMETRIC_KMAPESTIMATIONCONFIG = _descriptor.Descriptor( - name='KMapEstimationConfig', - full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.quasi_ids', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region_code', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.region_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='auxiliary_tables', full_name='google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.auxiliary_tables', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD, _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8269, - serialized_end=9013, + name="KMapEstimationConfig", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.quasi_ids", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region_code", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.region_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="auxiliary_tables", + full_name="google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.auxiliary_tables", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD, + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=8269, + serialized_end=9013, ) _PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG = _descriptor.Descriptor( - name='DeltaPresenceEstimationConfig', - full_name='google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids', full_name='google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig.quasi_ids', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region_code', full_name='google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig.region_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='auxiliary_tables', full_name='google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig.auxiliary_tables', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9016, - serialized_end=9186, + name="DeltaPresenceEstimationConfig", + full_name="google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids", + full_name="google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig.quasi_ids", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="region_code", + full_name="google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig.region_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="auxiliary_tables", + full_name="google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig.auxiliary_tables", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=9016, + serialized_end=9186, ) _PRIVACYMETRIC = _descriptor.Descriptor( - name='PrivacyMetric', - full_name='google.privacy.dlp.v2.PrivacyMetric', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='numerical_stats_config', full_name='google.privacy.dlp.v2.PrivacyMetric.numerical_stats_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='categorical_stats_config', full_name='google.privacy.dlp.v2.PrivacyMetric.categorical_stats_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='k_anonymity_config', full_name='google.privacy.dlp.v2.PrivacyMetric.k_anonymity_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='l_diversity_config', full_name='google.privacy.dlp.v2.PrivacyMetric.l_diversity_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='k_map_estimation_config', full_name='google.privacy.dlp.v2.PrivacyMetric.k_map_estimation_config', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delta_presence_estimation_config', full_name='google.privacy.dlp.v2.PrivacyMetric.delta_presence_estimation_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PRIVACYMETRIC_NUMERICALSTATSCONFIG, _PRIVACYMETRIC_CATEGORICALSTATSCONFIG, _PRIVACYMETRIC_KANONYMITYCONFIG, _PRIVACYMETRIC_LDIVERSITYCONFIG, _PRIVACYMETRIC_KMAPESTIMATIONCONFIG, _PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.PrivacyMetric.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=7285, - serialized_end=9194, + name="PrivacyMetric", + full_name="google.privacy.dlp.v2.PrivacyMetric", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="numerical_stats_config", + full_name="google.privacy.dlp.v2.PrivacyMetric.numerical_stats_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="categorical_stats_config", + full_name="google.privacy.dlp.v2.PrivacyMetric.categorical_stats_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="k_anonymity_config", + full_name="google.privacy.dlp.v2.PrivacyMetric.k_anonymity_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="l_diversity_config", + full_name="google.privacy.dlp.v2.PrivacyMetric.l_diversity_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="k_map_estimation_config", + full_name="google.privacy.dlp.v2.PrivacyMetric.k_map_estimation_config", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delta_presence_estimation_config", + full_name="google.privacy.dlp.v2.PrivacyMetric.delta_presence_estimation_config", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _PRIVACYMETRIC_NUMERICALSTATSCONFIG, + _PRIVACYMETRIC_CATEGORICALSTATSCONFIG, + _PRIVACYMETRIC_KANONYMITYCONFIG, + _PRIVACYMETRIC_LDIVERSITYCONFIG, + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG, + _PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.PrivacyMetric.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=7285, + serialized_end=9194, ) _ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT = _descriptor.Descriptor( - name='NumericalStatsResult', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='min_value', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult.min_value', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_value', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult.max_value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quantile_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult.quantile_values', index=2, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10028, - serialized_end=10203, + name="NumericalStatsResult", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="min_value", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult.min_value", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_value", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult.max_value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="quantile_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult.quantile_values", + index=2, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=10028, + serialized_end=10203, ) _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET = _descriptor.Descriptor( - name='CategoricalStatsHistogramBucket', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value_frequency_lower_bound', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.value_frequency_lower_bound', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_frequency_upper_bound', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.value_frequency_upper_bound', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_size', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.bucket_size', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.bucket_values', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_value_count', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.bucket_value_count', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10385, - serialized_end=10603, + name="CategoricalStatsHistogramBucket", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="value_frequency_lower_bound", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.value_frequency_lower_bound", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value_frequency_upper_bound", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.value_frequency_upper_bound", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_size", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.bucket_size", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.bucket_values", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_value_count", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket.bucket_value_count", + index=4, + number=5, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=10385, + serialized_end=10603, ) _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT = _descriptor.Descriptor( - name='CategoricalStatsResult', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value_frequency_histogram_buckets', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.value_frequency_histogram_buckets', index=0, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10206, - serialized_end=10603, + name="CategoricalStatsResult", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="value_frequency_histogram_buckets", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.value_frequency_histogram_buckets", + index=0, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[ + _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=10206, + serialized_end=10603, ) _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS = _descriptor.Descriptor( - name='KAnonymityEquivalenceClass', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass.quasi_ids_values', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='equivalence_class_size', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass.equivalence_class_size', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10768, - serialized_end=10884, + name="KAnonymityEquivalenceClass", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass.quasi_ids_values", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="equivalence_class_size", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass.equivalence_class_size", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=10768, + serialized_end=10884, ) _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET = _descriptor.Descriptor( - name='KAnonymityHistogramBucket', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='equivalence_class_size_lower_bound', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.equivalence_class_size_lower_bound', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='equivalence_class_size_upper_bound', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.equivalence_class_size_upper_bound', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_size', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.bucket_size', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.bucket_values', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_value_count', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.bucket_value_count', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10887, - serialized_end=11171, + name="KAnonymityHistogramBucket", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="equivalence_class_size_lower_bound", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.equivalence_class_size_lower_bound", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="equivalence_class_size_upper_bound", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.equivalence_class_size_upper_bound", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_size", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.bucket_size", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.bucket_values", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_value_count", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket.bucket_value_count", + index=4, + number=5, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=10887, + serialized_end=11171, ) _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT = _descriptor.Descriptor( - name='KAnonymityResult', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='equivalence_class_histogram_buckets', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.equivalence_class_histogram_buckets', index=0, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS, _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10606, - serialized_end=11171, + name="KAnonymityResult", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="equivalence_class_histogram_buckets", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.equivalence_class_histogram_buckets", + index=0, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[ + _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS, + _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=10606, + serialized_end=11171, ) _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS = _descriptor.Descriptor( - name='LDiversityEquivalenceClass', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.quasi_ids_values', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='equivalence_class_size', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.equivalence_class_size', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='num_distinct_sensitive_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.num_distinct_sensitive_values', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top_sensitive_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.top_sensitive_values', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11345, - serialized_end=11569, + name="LDiversityEquivalenceClass", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.quasi_ids_values", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="equivalence_class_size", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.equivalence_class_size", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="num_distinct_sensitive_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.num_distinct_sensitive_values", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="top_sensitive_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass.top_sensitive_values", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=11345, + serialized_end=11569, ) _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET = _descriptor.Descriptor( - name='LDiversityHistogramBucket', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sensitive_value_frequency_lower_bound', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.sensitive_value_frequency_lower_bound', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sensitive_value_frequency_upper_bound', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.sensitive_value_frequency_upper_bound', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_size', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.bucket_size', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.bucket_values', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_value_count', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.bucket_value_count', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11572, - serialized_end=11862, + name="LDiversityHistogramBucket", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sensitive_value_frequency_lower_bound", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.sensitive_value_frequency_lower_bound", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sensitive_value_frequency_upper_bound", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.sensitive_value_frequency_upper_bound", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_size", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.bucket_size", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.bucket_values", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_value_count", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket.bucket_value_count", + index=4, + number=5, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=11572, + serialized_end=11862, ) _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT = _descriptor.Descriptor( - name='LDiversityResult', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sensitive_value_frequency_histogram_buckets', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.sensitive_value_frequency_histogram_buckets', index=0, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS, _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11174, - serialized_end=11862, + name="LDiversityResult", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sensitive_value_frequency_histogram_buckets", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.sensitive_value_frequency_histogram_buckets", + index=0, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[ + _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS, + _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=11174, + serialized_end=11862, ) _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES = _descriptor.Descriptor( - name='KMapEstimationQuasiIdValues', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues.quasi_ids_values', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='estimated_anonymity', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues.estimated_anonymity', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=12030, - serialized_end=12144, + name="KMapEstimationQuasiIdValues", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues.quasi_ids_values", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="estimated_anonymity", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues.estimated_anonymity", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=12030, + serialized_end=12144, ) _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET = _descriptor.Descriptor( - name='KMapEstimationHistogramBucket', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='min_anonymity', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.min_anonymity', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_anonymity', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.max_anonymity', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_size', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.bucket_size', index=2, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.bucket_values', index=3, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_value_count', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.bucket_value_count', index=4, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=12147, - serialized_end=12398, + name="KMapEstimationHistogramBucket", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="min_anonymity", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.min_anonymity", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_anonymity", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.max_anonymity", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_size", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.bucket_size", + index=2, + number=5, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.bucket_values", + index=3, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_value_count", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket.bucket_value_count", + index=4, + number=7, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=12147, + serialized_end=12398, ) _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT = _descriptor.Descriptor( - name='KMapEstimationResult', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='k_map_estimation_histogram', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.k_map_estimation_histogram', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES, _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11865, - serialized_end=12398, + name="KMapEstimationResult", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="k_map_estimation_histogram", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.k_map_estimation_histogram", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[ + _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES, + _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=11865, + serialized_end=12398, ) _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES = _descriptor.Descriptor( - name='DeltaPresenceEstimationQuasiIdValues', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quasi_ids_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues.quasi_ids_values', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='estimated_probability', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues.estimated_probability', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=12602, - serialized_end=12727, + name="DeltaPresenceEstimationQuasiIdValues", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="quasi_ids_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues.quasi_ids_values", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="estimated_probability", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues.estimated_probability", + index=1, + number=2, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=12602, + serialized_end=12727, ) _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET = _descriptor.Descriptor( - name='DeltaPresenceEstimationHistogramBucket', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='min_probability', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.min_probability', index=0, - number=1, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_probability', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.max_probability', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_size', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.bucket_size', index=2, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_values', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.bucket_values', index=3, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_value_count', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.bucket_value_count', index=4, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=12730, - serialized_end=13013, + name="DeltaPresenceEstimationHistogramBucket", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="min_probability", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.min_probability", + index=0, + number=1, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_probability", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.max_probability", + index=1, + number=2, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_size", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.bucket_size", + index=2, + number=5, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_values", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.bucket_values", + index=3, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_value_count", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket.bucket_value_count", + index=4, + number=7, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=12730, + serialized_end=13013, ) _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT = _descriptor.Descriptor( - name='DeltaPresenceEstimationResult', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='delta_presence_estimation_histogram', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.delta_presence_estimation_histogram', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES, _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=12401, - serialized_end=13013, + name="DeltaPresenceEstimationResult", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="delta_presence_estimation_histogram", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.delta_presence_estimation_histogram", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[ + _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES, + _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=12401, + serialized_end=13013, ) _ANALYZEDATASOURCERISKDETAILS = _descriptor.Descriptor( - name='AnalyzeDataSourceRiskDetails', - full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='requested_privacy_metric', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.requested_privacy_metric', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='requested_source_table', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.requested_source_table', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='numerical_stats_result', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.numerical_stats_result', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='categorical_stats_result', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.categorical_stats_result', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='k_anonymity_result', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.k_anonymity_result', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='l_diversity_result', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.l_diversity_result', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='k_map_estimation_result', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.k_map_estimation_result', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delta_presence_estimation_result', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.delta_presence_estimation_result', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT, _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT, _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT, _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT, _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT, _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='result', full_name='google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.result', - index=0, containing_type=None, fields=[]), - ], - serialized_start=9197, - serialized_end=13023, + name="AnalyzeDataSourceRiskDetails", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="requested_privacy_metric", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.requested_privacy_metric", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="requested_source_table", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.requested_source_table", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="numerical_stats_result", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.numerical_stats_result", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="categorical_stats_result", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.categorical_stats_result", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="k_anonymity_result", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.k_anonymity_result", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="l_diversity_result", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.l_diversity_result", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="k_map_estimation_result", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.k_map_estimation_result", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delta_presence_estimation_result", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.delta_presence_estimation_result", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT, + _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT, + _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT, + _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT, + _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT, + _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="result", + full_name="google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.result", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=9197, + serialized_end=13023, ) _VALUEFREQUENCY = _descriptor.Descriptor( - name='ValueFrequency', - full_name='google.privacy.dlp.v2.ValueFrequency', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value', full_name='google.privacy.dlp.v2.ValueFrequency.value', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='count', full_name='google.privacy.dlp.v2.ValueFrequency.count', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=13025, - serialized_end=13101, + name="ValueFrequency", + full_name="google.privacy.dlp.v2.ValueFrequency", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="value", + full_name="google.privacy.dlp.v2.ValueFrequency.value", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="count", + full_name="google.privacy.dlp.v2.ValueFrequency.count", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=13025, + serialized_end=13101, ) _VALUE = _descriptor.Descriptor( - name='Value', - full_name='google.privacy.dlp.v2.Value', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='integer_value', full_name='google.privacy.dlp.v2.Value.integer_value', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='float_value', full_name='google.privacy.dlp.v2.Value.float_value', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='string_value', full_name='google.privacy.dlp.v2.Value.string_value', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='boolean_value', full_name='google.privacy.dlp.v2.Value.boolean_value', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp_value', full_name='google.privacy.dlp.v2.Value.timestamp_value', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_value', full_name='google.privacy.dlp.v2.Value.time_value', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='date_value', full_name='google.privacy.dlp.v2.Value.date_value', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='day_of_week_value', full_name='google.privacy.dlp.v2.Value.day_of_week_value', index=7, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.Value.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=13104, - serialized_end=13411, + name="Value", + full_name="google.privacy.dlp.v2.Value", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="integer_value", + full_name="google.privacy.dlp.v2.Value.integer_value", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="float_value", + full_name="google.privacy.dlp.v2.Value.float_value", + index=1, + number=2, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="string_value", + full_name="google.privacy.dlp.v2.Value.string_value", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="boolean_value", + full_name="google.privacy.dlp.v2.Value.boolean_value", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timestamp_value", + full_name="google.privacy.dlp.v2.Value.timestamp_value", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_value", + full_name="google.privacy.dlp.v2.Value.time_value", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="date_value", + full_name="google.privacy.dlp.v2.Value.date_value", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="day_of_week_value", + full_name="google.privacy.dlp.v2.Value.day_of_week_value", + index=7, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.Value.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=13104, + serialized_end=13411, ) _QUOTEINFO = _descriptor.Descriptor( - name='QuoteInfo', - full_name='google.privacy.dlp.v2.QuoteInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='date_time', full_name='google.privacy.dlp.v2.QuoteInfo.date_time', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='parsed_quote', full_name='google.privacy.dlp.v2.QuoteInfo.parsed_quote', - index=0, containing_type=None, fields=[]), - ], - serialized_start=13413, - serialized_end=13494, + name="QuoteInfo", + full_name="google.privacy.dlp.v2.QuoteInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="date_time", + full_name="google.privacy.dlp.v2.QuoteInfo.date_time", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="parsed_quote", + full_name="google.privacy.dlp.v2.QuoteInfo.parsed_quote", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=13413, + serialized_end=13494, ) _DATETIME_TIMEZONE = _descriptor.Descriptor( - name='TimeZone', - full_name='google.privacy.dlp.v2.DateTime.TimeZone', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='offset_minutes', full_name='google.privacy.dlp.v2.DateTime.TimeZone.offset_minutes', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=13686, - serialized_end=13720, + name="TimeZone", + full_name="google.privacy.dlp.v2.DateTime.TimeZone", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="offset_minutes", + full_name="google.privacy.dlp.v2.DateTime.TimeZone.offset_minutes", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=13686, + serialized_end=13720, ) _DATETIME = _descriptor.Descriptor( - name='DateTime', - full_name='google.privacy.dlp.v2.DateTime', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='date', full_name='google.privacy.dlp.v2.DateTime.date', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='day_of_week', full_name='google.privacy.dlp.v2.DateTime.day_of_week', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time', full_name='google.privacy.dlp.v2.DateTime.time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_zone', full_name='google.privacy.dlp.v2.DateTime.time_zone', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_DATETIME_TIMEZONE, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=13497, - serialized_end=13720, + name="DateTime", + full_name="google.privacy.dlp.v2.DateTime", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="date", + full_name="google.privacy.dlp.v2.DateTime.date", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="day_of_week", + full_name="google.privacy.dlp.v2.DateTime.day_of_week", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time", + full_name="google.privacy.dlp.v2.DateTime.time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_zone", + full_name="google.privacy.dlp.v2.DateTime.time_zone", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_DATETIME_TIMEZONE], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=13497, + serialized_end=13720, ) _DEIDENTIFYCONFIG = _descriptor.Descriptor( - name='DeidentifyConfig', - full_name='google.privacy.dlp.v2.DeidentifyConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_type_transformations', full_name='google.privacy.dlp.v2.DeidentifyConfig.info_type_transformations', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='record_transformations', full_name='google.privacy.dlp.v2.DeidentifyConfig.record_transformations', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='transformation', full_name='google.privacy.dlp.v2.DeidentifyConfig.transformation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=13723, - serialized_end=13924, + name="DeidentifyConfig", + full_name="google.privacy.dlp.v2.DeidentifyConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_type_transformations", + full_name="google.privacy.dlp.v2.DeidentifyConfig.info_type_transformations", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="record_transformations", + full_name="google.privacy.dlp.v2.DeidentifyConfig.record_transformations", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="transformation", + full_name="google.privacy.dlp.v2.DeidentifyConfig.transformation", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=13723, + serialized_end=13924, ) _PRIMITIVETRANSFORMATION = _descriptor.Descriptor( - name='PrimitiveTransformation', - full_name='google.privacy.dlp.v2.PrimitiveTransformation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='replace_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.replace_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='redact_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.redact_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='character_mask_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.character_mask_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_replace_ffx_fpe_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.crypto_replace_ffx_fpe_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='fixed_size_bucketing_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.fixed_size_bucketing_config', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucketing_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.bucketing_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='replace_with_info_type_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.replace_with_info_type_config', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_part_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.time_part_config', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_hash_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.crypto_hash_config', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='date_shift_config', full_name='google.privacy.dlp.v2.PrimitiveTransformation.date_shift_config', index=9, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='transformation', full_name='google.privacy.dlp.v2.PrimitiveTransformation.transformation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=13927, - serialized_end=14723, + name="PrimitiveTransformation", + full_name="google.privacy.dlp.v2.PrimitiveTransformation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="replace_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.replace_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="redact_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.redact_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="character_mask_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.character_mask_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_replace_ffx_fpe_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.crypto_replace_ffx_fpe_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="fixed_size_bucketing_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.fixed_size_bucketing_config", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucketing_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.bucketing_config", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="replace_with_info_type_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.replace_with_info_type_config", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_part_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.time_part_config", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_hash_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.crypto_hash_config", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="date_shift_config", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.date_shift_config", + index=9, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="transformation", + full_name="google.privacy.dlp.v2.PrimitiveTransformation.transformation", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=13927, + serialized_end=14723, ) _TIMEPARTCONFIG = _descriptor.Descriptor( - name='TimePartConfig', - full_name='google.privacy.dlp.v2.TimePartConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='part_to_extract', full_name='google.privacy.dlp.v2.TimePartConfig.part_to_extract', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TIMEPARTCONFIG_TIMEPART, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=14726, - serialized_end=14946, + name="TimePartConfig", + full_name="google.privacy.dlp.v2.TimePartConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="part_to_extract", + full_name="google.privacy.dlp.v2.TimePartConfig.part_to_extract", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[_TIMEPARTCONFIG_TIMEPART], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=14726, + serialized_end=14946, ) _CRYPTOHASHCONFIG = _descriptor.Descriptor( - name='CryptoHashConfig', - full_name='google.privacy.dlp.v2.CryptoHashConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crypto_key', full_name='google.privacy.dlp.v2.CryptoHashConfig.crypto_key', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=14948, - serialized_end=15020, + name="CryptoHashConfig", + full_name="google.privacy.dlp.v2.CryptoHashConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crypto_key", + full_name="google.privacy.dlp.v2.CryptoHashConfig.crypto_key", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=14948, + serialized_end=15020, ) _REPLACEVALUECONFIG = _descriptor.Descriptor( - name='ReplaceValueConfig', - full_name='google.privacy.dlp.v2.ReplaceValueConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='new_value', full_name='google.privacy.dlp.v2.ReplaceValueConfig.new_value', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=15022, - serialized_end=15091, + name="ReplaceValueConfig", + full_name="google.privacy.dlp.v2.ReplaceValueConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="new_value", + full_name="google.privacy.dlp.v2.ReplaceValueConfig.new_value", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=15022, + serialized_end=15091, ) _REPLACEWITHINFOTYPECONFIG = _descriptor.Descriptor( - name='ReplaceWithInfoTypeConfig', - full_name='google.privacy.dlp.v2.ReplaceWithInfoTypeConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=15093, - serialized_end=15120, + name="ReplaceWithInfoTypeConfig", + full_name="google.privacy.dlp.v2.ReplaceWithInfoTypeConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=15093, + serialized_end=15120, ) _REDACTCONFIG = _descriptor.Descriptor( - name='RedactConfig', - full_name='google.privacy.dlp.v2.RedactConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=15122, - serialized_end=15136, + name="RedactConfig", + full_name="google.privacy.dlp.v2.RedactConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=15122, + serialized_end=15136, ) _CHARSTOIGNORE = _descriptor.Descriptor( - name='CharsToIgnore', - full_name='google.privacy.dlp.v2.CharsToIgnore', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='characters_to_skip', full_name='google.privacy.dlp.v2.CharsToIgnore.characters_to_skip', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='common_characters_to_ignore', full_name='google.privacy.dlp.v2.CharsToIgnore.common_characters_to_ignore', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CHARSTOIGNORE_COMMONCHARSTOIGNORE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='characters', full_name='google.privacy.dlp.v2.CharsToIgnore.characters', - index=0, containing_type=None, fields=[]), - ], - serialized_start=15139, - serialized_end=15449, + name="CharsToIgnore", + full_name="google.privacy.dlp.v2.CharsToIgnore", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="characters_to_skip", + full_name="google.privacy.dlp.v2.CharsToIgnore.characters_to_skip", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="common_characters_to_ignore", + full_name="google.privacy.dlp.v2.CharsToIgnore.common_characters_to_ignore", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_CHARSTOIGNORE_COMMONCHARSTOIGNORE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="characters", + full_name="google.privacy.dlp.v2.CharsToIgnore.characters", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=15139, + serialized_end=15449, ) _CHARACTERMASKCONFIG = _descriptor.Descriptor( - name='CharacterMaskConfig', - full_name='google.privacy.dlp.v2.CharacterMaskConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='masking_character', full_name='google.privacy.dlp.v2.CharacterMaskConfig.masking_character', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='number_to_mask', full_name='google.privacy.dlp.v2.CharacterMaskConfig.number_to_mask', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reverse_order', full_name='google.privacy.dlp.v2.CharacterMaskConfig.reverse_order', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='characters_to_ignore', full_name='google.privacy.dlp.v2.CharacterMaskConfig.characters_to_ignore', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=15452, - serialized_end=15615, + name="CharacterMaskConfig", + full_name="google.privacy.dlp.v2.CharacterMaskConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="masking_character", + full_name="google.privacy.dlp.v2.CharacterMaskConfig.masking_character", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="number_to_mask", + full_name="google.privacy.dlp.v2.CharacterMaskConfig.number_to_mask", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reverse_order", + full_name="google.privacy.dlp.v2.CharacterMaskConfig.reverse_order", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="characters_to_ignore", + full_name="google.privacy.dlp.v2.CharacterMaskConfig.characters_to_ignore", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=15452, + serialized_end=15615, ) _FIXEDSIZEBUCKETINGCONFIG = _descriptor.Descriptor( - name='FixedSizeBucketingConfig', - full_name='google.privacy.dlp.v2.FixedSizeBucketingConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='lower_bound', full_name='google.privacy.dlp.v2.FixedSizeBucketingConfig.lower_bound', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='upper_bound', full_name='google.privacy.dlp.v2.FixedSizeBucketingConfig.upper_bound', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bucket_size', full_name='google.privacy.dlp.v2.FixedSizeBucketingConfig.bucket_size', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=15618, - serialized_end=15767, + name="FixedSizeBucketingConfig", + full_name="google.privacy.dlp.v2.FixedSizeBucketingConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="lower_bound", + full_name="google.privacy.dlp.v2.FixedSizeBucketingConfig.lower_bound", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="upper_bound", + full_name="google.privacy.dlp.v2.FixedSizeBucketingConfig.upper_bound", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bucket_size", + full_name="google.privacy.dlp.v2.FixedSizeBucketingConfig.bucket_size", + index=2, + number=3, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=15618, + serialized_end=15767, ) _BUCKETINGCONFIG_BUCKET = _descriptor.Descriptor( - name='Bucket', - full_name='google.privacy.dlp.v2.BucketingConfig.Bucket', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='min', full_name='google.privacy.dlp.v2.BucketingConfig.Bucket.min', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max', full_name='google.privacy.dlp.v2.BucketingConfig.Bucket.max', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='replacement_value', full_name='google.privacy.dlp.v2.BucketingConfig.Bucket.replacement_value', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=15854, - serialized_end=16005, + name="Bucket", + full_name="google.privacy.dlp.v2.BucketingConfig.Bucket", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="min", + full_name="google.privacy.dlp.v2.BucketingConfig.Bucket.min", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max", + full_name="google.privacy.dlp.v2.BucketingConfig.Bucket.max", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="replacement_value", + full_name="google.privacy.dlp.v2.BucketingConfig.Bucket.replacement_value", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=15854, + serialized_end=16005, ) _BUCKETINGCONFIG = _descriptor.Descriptor( - name='BucketingConfig', - full_name='google.privacy.dlp.v2.BucketingConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='buckets', full_name='google.privacy.dlp.v2.BucketingConfig.buckets', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_BUCKETINGCONFIG_BUCKET, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=15770, - serialized_end=16005, + name="BucketingConfig", + full_name="google.privacy.dlp.v2.BucketingConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="buckets", + full_name="google.privacy.dlp.v2.BucketingConfig.buckets", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_BUCKETINGCONFIG_BUCKET], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=15770, + serialized_end=16005, ) _CRYPTOREPLACEFFXFPECONFIG = _descriptor.Descriptor( - name='CryptoReplaceFfxFpeConfig', - full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crypto_key', full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.crypto_key', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='context', full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.context', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='common_alphabet', full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.common_alphabet', index=2, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_alphabet', full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.custom_alphabet', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='radix', full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.radix', index=4, - number=6, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='surrogate_info_type', full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.surrogate_info_type', index=5, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='alphabet', full_name='google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.alphabet', - index=0, containing_type=None, fields=[]), - ], - serialized_start=16008, - serialized_end=16508, + name="CryptoReplaceFfxFpeConfig", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crypto_key", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.crypto_key", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="context", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.context", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="common_alphabet", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.common_alphabet", + index=2, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="custom_alphabet", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.custom_alphabet", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="radix", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.radix", + index=4, + number=6, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="surrogate_info_type", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.surrogate_info_type", + index=5, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="alphabet", + full_name="google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.alphabet", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=16008, + serialized_end=16508, ) _CRYPTOKEY = _descriptor.Descriptor( - name='CryptoKey', - full_name='google.privacy.dlp.v2.CryptoKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transient', full_name='google.privacy.dlp.v2.CryptoKey.transient', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='unwrapped', full_name='google.privacy.dlp.v2.CryptoKey.unwrapped', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='kms_wrapped', full_name='google.privacy.dlp.v2.CryptoKey.kms_wrapped', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='source', full_name='google.privacy.dlp.v2.CryptoKey.source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=16511, - serialized_end=16727, + name="CryptoKey", + full_name="google.privacy.dlp.v2.CryptoKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transient", + full_name="google.privacy.dlp.v2.CryptoKey.transient", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="unwrapped", + full_name="google.privacy.dlp.v2.CryptoKey.unwrapped", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="kms_wrapped", + full_name="google.privacy.dlp.v2.CryptoKey.kms_wrapped", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.privacy.dlp.v2.CryptoKey.source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=16511, + serialized_end=16727, ) _TRANSIENTCRYPTOKEY = _descriptor.Descriptor( - name='TransientCryptoKey', - full_name='google.privacy.dlp.v2.TransientCryptoKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.TransientCryptoKey.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=16729, - serialized_end=16763, + name="TransientCryptoKey", + full_name="google.privacy.dlp.v2.TransientCryptoKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.TransientCryptoKey.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=16729, + serialized_end=16763, ) _UNWRAPPEDCRYPTOKEY = _descriptor.Descriptor( - name='UnwrappedCryptoKey', - full_name='google.privacy.dlp.v2.UnwrappedCryptoKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.privacy.dlp.v2.UnwrappedCryptoKey.key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=16765, - serialized_end=16798, + name="UnwrappedCryptoKey", + full_name="google.privacy.dlp.v2.UnwrappedCryptoKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.privacy.dlp.v2.UnwrappedCryptoKey.key", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=16765, + serialized_end=16798, ) _KMSWRAPPEDCRYPTOKEY = _descriptor.Descriptor( - name='KmsWrappedCryptoKey', - full_name='google.privacy.dlp.v2.KmsWrappedCryptoKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='wrapped_key', full_name='google.privacy.dlp.v2.KmsWrappedCryptoKey.wrapped_key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_key_name', full_name='google.privacy.dlp.v2.KmsWrappedCryptoKey.crypto_key_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=16800, - serialized_end=16867, + name="KmsWrappedCryptoKey", + full_name="google.privacy.dlp.v2.KmsWrappedCryptoKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="wrapped_key", + full_name="google.privacy.dlp.v2.KmsWrappedCryptoKey.wrapped_key", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_key_name", + full_name="google.privacy.dlp.v2.KmsWrappedCryptoKey.crypto_key_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=16800, + serialized_end=16867, ) _DATESHIFTCONFIG = _descriptor.Descriptor( - name='DateShiftConfig', - full_name='google.privacy.dlp.v2.DateShiftConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='upper_bound_days', full_name='google.privacy.dlp.v2.DateShiftConfig.upper_bound_days', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='lower_bound_days', full_name='google.privacy.dlp.v2.DateShiftConfig.lower_bound_days', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='context', full_name='google.privacy.dlp.v2.DateShiftConfig.context', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_key', full_name='google.privacy.dlp.v2.DateShiftConfig.crypto_key', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='method', full_name='google.privacy.dlp.v2.DateShiftConfig.method', - index=0, containing_type=None, fields=[]), - ], - serialized_start=16870, - serialized_end=17054, + name="DateShiftConfig", + full_name="google.privacy.dlp.v2.DateShiftConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="upper_bound_days", + full_name="google.privacy.dlp.v2.DateShiftConfig.upper_bound_days", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="lower_bound_days", + full_name="google.privacy.dlp.v2.DateShiftConfig.lower_bound_days", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="context", + full_name="google.privacy.dlp.v2.DateShiftConfig.context", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_key", + full_name="google.privacy.dlp.v2.DateShiftConfig.crypto_key", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="method", + full_name="google.privacy.dlp.v2.DateShiftConfig.method", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=16870, + serialized_end=17054, ) _INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION = _descriptor.Descriptor( - name='InfoTypeTransformation', - full_name='google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_types', full_name='google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation.info_types', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='primitive_transformation', full_name='google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation.primitive_transformation', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17181, - serialized_end=17340, + name="InfoTypeTransformation", + full_name="google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_types", + full_name="google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation.info_types", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="primitive_transformation", + full_name="google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation.primitive_transformation", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=17181, + serialized_end=17340, ) _INFOTYPETRANSFORMATIONS = _descriptor.Descriptor( - name='InfoTypeTransformations', - full_name='google.privacy.dlp.v2.InfoTypeTransformations', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transformations', full_name='google.privacy.dlp.v2.InfoTypeTransformations.transformations', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17057, - serialized_end=17340, + name="InfoTypeTransformations", + full_name="google.privacy.dlp.v2.InfoTypeTransformations", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transformations", + full_name="google.privacy.dlp.v2.InfoTypeTransformations.transformations", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=17057, + serialized_end=17340, ) _FIELDTRANSFORMATION = _descriptor.Descriptor( - name='FieldTransformation', - full_name='google.privacy.dlp.v2.FieldTransformation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='fields', full_name='google.privacy.dlp.v2.FieldTransformation.fields', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='condition', full_name='google.privacy.dlp.v2.FieldTransformation.condition', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='primitive_transformation', full_name='google.privacy.dlp.v2.FieldTransformation.primitive_transformation', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='info_type_transformations', full_name='google.privacy.dlp.v2.FieldTransformation.info_type_transformations', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='transformation', full_name='google.privacy.dlp.v2.FieldTransformation.transformation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=17343, - serialized_end=17658, + name="FieldTransformation", + full_name="google.privacy.dlp.v2.FieldTransformation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="fields", + full_name="google.privacy.dlp.v2.FieldTransformation.fields", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="condition", + full_name="google.privacy.dlp.v2.FieldTransformation.condition", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="primitive_transformation", + full_name="google.privacy.dlp.v2.FieldTransformation.primitive_transformation", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="info_type_transformations", + full_name="google.privacy.dlp.v2.FieldTransformation.info_type_transformations", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="transformation", + full_name="google.privacy.dlp.v2.FieldTransformation.transformation", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=17343, + serialized_end=17658, ) _RECORDTRANSFORMATIONS = _descriptor.Descriptor( - name='RecordTransformations', - full_name='google.privacy.dlp.v2.RecordTransformations', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field_transformations', full_name='google.privacy.dlp.v2.RecordTransformations.field_transformations', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='record_suppressions', full_name='google.privacy.dlp.v2.RecordTransformations.record_suppressions', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17661, - serialized_end=17830, + name="RecordTransformations", + full_name="google.privacy.dlp.v2.RecordTransformations", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field_transformations", + full_name="google.privacy.dlp.v2.RecordTransformations.field_transformations", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="record_suppressions", + full_name="google.privacy.dlp.v2.RecordTransformations.record_suppressions", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=17661, + serialized_end=17830, ) _RECORDSUPPRESSION = _descriptor.Descriptor( - name='RecordSuppression', - full_name='google.privacy.dlp.v2.RecordSuppression', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='condition', full_name='google.privacy.dlp.v2.RecordSuppression.condition', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17832, - serialized_end=17910, + name="RecordSuppression", + full_name="google.privacy.dlp.v2.RecordSuppression", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="condition", + full_name="google.privacy.dlp.v2.RecordSuppression.condition", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=17832, + serialized_end=17910, ) _RECORDCONDITION_CONDITION = _descriptor.Descriptor( - name='Condition', - full_name='google.privacy.dlp.v2.RecordCondition.Condition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.RecordCondition.Condition.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operator', full_name='google.privacy.dlp.v2.RecordCondition.Condition.operator', index=1, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.privacy.dlp.v2.RecordCondition.Condition.value', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=18006, - serialized_end=18170, + name="Condition", + full_name="google.privacy.dlp.v2.RecordCondition.Condition", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.RecordCondition.Condition.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="operator", + full_name="google.privacy.dlp.v2.RecordCondition.Condition.operator", + index=1, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.privacy.dlp.v2.RecordCondition.Condition.value", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=18006, + serialized_end=18170, ) _RECORDCONDITION_CONDITIONS = _descriptor.Descriptor( - name='Conditions', - full_name='google.privacy.dlp.v2.RecordCondition.Conditions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='conditions', full_name='google.privacy.dlp.v2.RecordCondition.Conditions.conditions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=18172, - serialized_end=18254, + name="Conditions", + full_name="google.privacy.dlp.v2.RecordCondition.Conditions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="conditions", + full_name="google.privacy.dlp.v2.RecordCondition.Conditions.conditions", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=18172, + serialized_end=18254, ) _RECORDCONDITION_EXPRESSIONS = _descriptor.Descriptor( - name='Expressions', - full_name='google.privacy.dlp.v2.RecordCondition.Expressions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='logical_operator', full_name='google.privacy.dlp.v2.RecordCondition.Expressions.logical_operator', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conditions', full_name='google.privacy.dlp.v2.RecordCondition.Expressions.conditions', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.RecordCondition.Expressions.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=18257, - serialized_end=18507, + name="Expressions", + full_name="google.privacy.dlp.v2.RecordCondition.Expressions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="logical_operator", + full_name="google.privacy.dlp.v2.RecordCondition.Expressions.logical_operator", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="conditions", + full_name="google.privacy.dlp.v2.RecordCondition.Expressions.conditions", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.RecordCondition.Expressions.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=18257, + serialized_end=18507, ) _RECORDCONDITION = _descriptor.Descriptor( - name='RecordCondition', - full_name='google.privacy.dlp.v2.RecordCondition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='expressions', full_name='google.privacy.dlp.v2.RecordCondition.expressions', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_RECORDCONDITION_CONDITION, _RECORDCONDITION_CONDITIONS, _RECORDCONDITION_EXPRESSIONS, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17913, - serialized_end=18507, + name="RecordCondition", + full_name="google.privacy.dlp.v2.RecordCondition", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="expressions", + full_name="google.privacy.dlp.v2.RecordCondition.expressions", + index=0, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[ + _RECORDCONDITION_CONDITION, + _RECORDCONDITION_CONDITIONS, + _RECORDCONDITION_EXPRESSIONS, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=17913, + serialized_end=18507, ) _TRANSFORMATIONOVERVIEW = _descriptor.Descriptor( - name='TransformationOverview', - full_name='google.privacy.dlp.v2.TransformationOverview', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transformed_bytes', full_name='google.privacy.dlp.v2.TransformationOverview.transformed_bytes', index=0, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transformation_summaries', full_name='google.privacy.dlp.v2.TransformationOverview.transformation_summaries', index=1, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=18510, - serialized_end=18641, + name="TransformationOverview", + full_name="google.privacy.dlp.v2.TransformationOverview", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transformed_bytes", + full_name="google.privacy.dlp.v2.TransformationOverview.transformed_bytes", + index=0, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transformation_summaries", + full_name="google.privacy.dlp.v2.TransformationOverview.transformation_summaries", + index=1, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=18510, + serialized_end=18641, ) _TRANSFORMATIONSUMMARY_SUMMARYRESULT = _descriptor.Descriptor( - name='SummaryResult', - full_name='google.privacy.dlp.v2.TransformationSummary.SummaryResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='count', full_name='google.privacy.dlp.v2.TransformationSummary.SummaryResult.count', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='code', full_name='google.privacy.dlp.v2.TransformationSummary.SummaryResult.code', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='details', full_name='google.privacy.dlp.v2.TransformationSummary.SummaryResult.details', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=19087, - serialized_end=19219, + name="SummaryResult", + full_name="google.privacy.dlp.v2.TransformationSummary.SummaryResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="count", + full_name="google.privacy.dlp.v2.TransformationSummary.SummaryResult.count", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="code", + full_name="google.privacy.dlp.v2.TransformationSummary.SummaryResult.code", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="details", + full_name="google.privacy.dlp.v2.TransformationSummary.SummaryResult.details", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=19087, + serialized_end=19219, ) _TRANSFORMATIONSUMMARY = _descriptor.Descriptor( - name='TransformationSummary', - full_name='google.privacy.dlp.v2.TransformationSummary', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.TransformationSummary.info_type', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.TransformationSummary.field', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transformation', full_name='google.privacy.dlp.v2.TransformationSummary.transformation', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_transformations', full_name='google.privacy.dlp.v2.TransformationSummary.field_transformations', index=3, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='record_suppress', full_name='google.privacy.dlp.v2.TransformationSummary.record_suppress', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.privacy.dlp.v2.TransformationSummary.results', index=5, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transformed_bytes', full_name='google.privacy.dlp.v2.TransformationSummary.transformed_bytes', index=6, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TRANSFORMATIONSUMMARY_SUMMARYRESULT, ], - enum_types=[ - _TRANSFORMATIONSUMMARY_TRANSFORMATIONRESULTCODE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=18644, - serialized_end=19315, + name="TransformationSummary", + full_name="google.privacy.dlp.v2.TransformationSummary", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.TransformationSummary.info_type", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.TransformationSummary.field", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transformation", + full_name="google.privacy.dlp.v2.TransformationSummary.transformation", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="field_transformations", + full_name="google.privacy.dlp.v2.TransformationSummary.field_transformations", + index=3, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="record_suppress", + full_name="google.privacy.dlp.v2.TransformationSummary.record_suppress", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="results", + full_name="google.privacy.dlp.v2.TransformationSummary.results", + index=5, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transformed_bytes", + full_name="google.privacy.dlp.v2.TransformationSummary.transformed_bytes", + index=6, + number=7, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_TRANSFORMATIONSUMMARY_SUMMARYRESULT], + enum_types=[_TRANSFORMATIONSUMMARY_TRANSFORMATIONRESULTCODE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=18644, + serialized_end=19315, ) _SCHEDULE = _descriptor.Descriptor( - name='Schedule', - full_name='google.privacy.dlp.v2.Schedule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='recurrence_period_duration', full_name='google.privacy.dlp.v2.Schedule.recurrence_period_duration', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='option', full_name='google.privacy.dlp.v2.Schedule.option', - index=0, containing_type=None, fields=[]), - ], - serialized_start=19317, - serialized_end=19402, + name="Schedule", + full_name="google.privacy.dlp.v2.Schedule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="recurrence_period_duration", + full_name="google.privacy.dlp.v2.Schedule.recurrence_period_duration", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="option", + full_name="google.privacy.dlp.v2.Schedule.option", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=19317, + serialized_end=19402, ) _INSPECTTEMPLATE = _descriptor.Descriptor( - name='InspectTemplate', - full_name='google.privacy.dlp.v2.InspectTemplate', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.InspectTemplate.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.privacy.dlp.v2.InspectTemplate.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.privacy.dlp.v2.InspectTemplate.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.privacy.dlp.v2.InspectTemplate.create_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.privacy.dlp.v2.InspectTemplate.update_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_config', full_name='google.privacy.dlp.v2.InspectTemplate.inspect_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=19405, - serialized_end=19639, + name="InspectTemplate", + full_name="google.privacy.dlp.v2.InspectTemplate", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.InspectTemplate.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.privacy.dlp.v2.InspectTemplate.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.privacy.dlp.v2.InspectTemplate.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.privacy.dlp.v2.InspectTemplate.create_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.privacy.dlp.v2.InspectTemplate.update_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_config", + full_name="google.privacy.dlp.v2.InspectTemplate.inspect_config", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=19405, + serialized_end=19639, ) _DEIDENTIFYTEMPLATE = _descriptor.Descriptor( - name='DeidentifyTemplate', - full_name='google.privacy.dlp.v2.DeidentifyTemplate', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.DeidentifyTemplate.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.privacy.dlp.v2.DeidentifyTemplate.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.privacy.dlp.v2.DeidentifyTemplate.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.privacy.dlp.v2.DeidentifyTemplate.create_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.privacy.dlp.v2.DeidentifyTemplate.update_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='deidentify_config', full_name='google.privacy.dlp.v2.DeidentifyTemplate.deidentify_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=19642, - serialized_end=19885, + name="DeidentifyTemplate", + full_name="google.privacy.dlp.v2.DeidentifyTemplate", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.DeidentifyTemplate.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.privacy.dlp.v2.DeidentifyTemplate.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.privacy.dlp.v2.DeidentifyTemplate.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.privacy.dlp.v2.DeidentifyTemplate.create_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.privacy.dlp.v2.DeidentifyTemplate.update_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="deidentify_config", + full_name="google.privacy.dlp.v2.DeidentifyTemplate.deidentify_config", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=19642, + serialized_end=19885, ) _ERROR = _descriptor.Descriptor( - name='Error', - full_name='google.privacy.dlp.v2.Error', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='details', full_name='google.privacy.dlp.v2.Error.details', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamps', full_name='google.privacy.dlp.v2.Error.timestamps', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=19887, - serialized_end=19979, + name="Error", + full_name="google.privacy.dlp.v2.Error", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="details", + full_name="google.privacy.dlp.v2.Error.details", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timestamps", + full_name="google.privacy.dlp.v2.Error.timestamps", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=19887, + serialized_end=19979, ) _JOBTRIGGER_TRIGGER = _descriptor.Descriptor( - name='Trigger', - full_name='google.privacy.dlp.v2.JobTrigger.Trigger', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='schedule', full_name='google.privacy.dlp.v2.JobTrigger.Trigger.schedule', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='trigger', full_name='google.privacy.dlp.v2.JobTrigger.Trigger.trigger', - index=0, containing_type=None, fields=[]), - ], - serialized_start=20431, - serialized_end=20504, + name="Trigger", + full_name="google.privacy.dlp.v2.JobTrigger.Trigger", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="schedule", + full_name="google.privacy.dlp.v2.JobTrigger.Trigger.schedule", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="trigger", + full_name="google.privacy.dlp.v2.JobTrigger.Trigger.trigger", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=20431, + serialized_end=20504, ) _JOBTRIGGER = _descriptor.Descriptor( - name='JobTrigger', - full_name='google.privacy.dlp.v2.JobTrigger', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.JobTrigger.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.privacy.dlp.v2.JobTrigger.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.privacy.dlp.v2.JobTrigger.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_job', full_name='google.privacy.dlp.v2.JobTrigger.inspect_job', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='triggers', full_name='google.privacy.dlp.v2.JobTrigger.triggers', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='errors', full_name='google.privacy.dlp.v2.JobTrigger.errors', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.privacy.dlp.v2.JobTrigger.create_time', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.privacy.dlp.v2.JobTrigger.update_time', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_run_time', full_name='google.privacy.dlp.v2.JobTrigger.last_run_time', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.privacy.dlp.v2.JobTrigger.status', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_JOBTRIGGER_TRIGGER, ], - enum_types=[ - _JOBTRIGGER_STATUS, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='job', full_name='google.privacy.dlp.v2.JobTrigger.job', - index=0, containing_type=None, fields=[]), - ], - serialized_start=19982, - serialized_end=20585, + name="JobTrigger", + full_name="google.privacy.dlp.v2.JobTrigger", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.JobTrigger.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.privacy.dlp.v2.JobTrigger.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.privacy.dlp.v2.JobTrigger.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_job", + full_name="google.privacy.dlp.v2.JobTrigger.inspect_job", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="triggers", + full_name="google.privacy.dlp.v2.JobTrigger.triggers", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="errors", + full_name="google.privacy.dlp.v2.JobTrigger.errors", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.privacy.dlp.v2.JobTrigger.create_time", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.privacy.dlp.v2.JobTrigger.update_time", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_run_time", + full_name="google.privacy.dlp.v2.JobTrigger.last_run_time", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.privacy.dlp.v2.JobTrigger.status", + index=9, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_JOBTRIGGER_TRIGGER], + enum_types=[_JOBTRIGGER_STATUS], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="job", + full_name="google.privacy.dlp.v2.JobTrigger.job", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=19982, + serialized_end=20585, ) _ACTION_SAVEFINDINGS = _descriptor.Descriptor( - name='SaveFindings', - full_name='google.privacy.dlp.v2.Action.SaveFindings', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='output_config', full_name='google.privacy.dlp.v2.Action.SaveFindings.output_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=20820, - serialized_end=20901, + name="SaveFindings", + full_name="google.privacy.dlp.v2.Action.SaveFindings", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.privacy.dlp.v2.Action.SaveFindings.output_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=20820, + serialized_end=20901, ) _ACTION_PUBLISHTOPUBSUB = _descriptor.Descriptor( - name='PublishToPubSub', - full_name='google.privacy.dlp.v2.Action.PublishToPubSub', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.privacy.dlp.v2.Action.PublishToPubSub.topic', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=20903, - serialized_end=20935, + name="PublishToPubSub", + full_name="google.privacy.dlp.v2.Action.PublishToPubSub", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic", + full_name="google.privacy.dlp.v2.Action.PublishToPubSub.topic", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=20903, + serialized_end=20935, ) _ACTION_PUBLISHSUMMARYTOCSCC = _descriptor.Descriptor( - name='PublishSummaryToCscc', - full_name='google.privacy.dlp.v2.Action.PublishSummaryToCscc', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=20937, - serialized_end=20959, + name="PublishSummaryToCscc", + full_name="google.privacy.dlp.v2.Action.PublishSummaryToCscc", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=20937, + serialized_end=20959, ) _ACTION = _descriptor.Descriptor( - name='Action', - full_name='google.privacy.dlp.v2.Action', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='save_findings', full_name='google.privacy.dlp.v2.Action.save_findings', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pub_sub', full_name='google.privacy.dlp.v2.Action.pub_sub', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='publish_summary_to_cscc', full_name='google.privacy.dlp.v2.Action.publish_summary_to_cscc', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ACTION_SAVEFINDINGS, _ACTION_PUBLISHTOPUBSUB, _ACTION_PUBLISHSUMMARYTOCSCC, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='action', full_name='google.privacy.dlp.v2.Action.action', - index=0, containing_type=None, fields=[]), - ], - serialized_start=20588, - serialized_end=20969, + name="Action", + full_name="google.privacy.dlp.v2.Action", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="save_findings", + full_name="google.privacy.dlp.v2.Action.save_findings", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pub_sub", + full_name="google.privacy.dlp.v2.Action.pub_sub", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="publish_summary_to_cscc", + full_name="google.privacy.dlp.v2.Action.publish_summary_to_cscc", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _ACTION_SAVEFINDINGS, + _ACTION_PUBLISHTOPUBSUB, + _ACTION_PUBLISHSUMMARYTOCSCC, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="action", + full_name="google.privacy.dlp.v2.Action.action", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=20588, + serialized_end=20969, ) _CREATEINSPECTTEMPLATEREQUEST = _descriptor.Descriptor( - name='CreateInspectTemplateRequest', - full_name='google.privacy.dlp.v2.CreateInspectTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.CreateInspectTemplateRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_template', full_name='google.privacy.dlp.v2.CreateInspectTemplateRequest.inspect_template', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='template_id', full_name='google.privacy.dlp.v2.CreateInspectTemplateRequest.template_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=20972, - serialized_end=21105, + name="CreateInspectTemplateRequest", + full_name="google.privacy.dlp.v2.CreateInspectTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.CreateInspectTemplateRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_template", + full_name="google.privacy.dlp.v2.CreateInspectTemplateRequest.inspect_template", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="template_id", + full_name="google.privacy.dlp.v2.CreateInspectTemplateRequest.template_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=20972, + serialized_end=21105, ) _UPDATEINSPECTTEMPLATEREQUEST = _descriptor.Descriptor( - name='UpdateInspectTemplateRequest', - full_name='google.privacy.dlp.v2.UpdateInspectTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.UpdateInspectTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_template', full_name='google.privacy.dlp.v2.UpdateInspectTemplateRequest.inspect_template', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.privacy.dlp.v2.UpdateInspectTemplateRequest.update_mask', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21108, - serialized_end=21267, + name="UpdateInspectTemplateRequest", + full_name="google.privacy.dlp.v2.UpdateInspectTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.UpdateInspectTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_template", + full_name="google.privacy.dlp.v2.UpdateInspectTemplateRequest.inspect_template", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.privacy.dlp.v2.UpdateInspectTemplateRequest.update_mask", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21108, + serialized_end=21267, ) _GETINSPECTTEMPLATEREQUEST = _descriptor.Descriptor( - name='GetInspectTemplateRequest', - full_name='google.privacy.dlp.v2.GetInspectTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.GetInspectTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21269, - serialized_end=21310, + name="GetInspectTemplateRequest", + full_name="google.privacy.dlp.v2.GetInspectTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.GetInspectTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21269, + serialized_end=21310, ) _LISTINSPECTTEMPLATESREQUEST = _descriptor.Descriptor( - name='ListInspectTemplatesRequest', - full_name='google.privacy.dlp.v2.ListInspectTemplatesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.ListInspectTemplatesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.privacy.dlp.v2.ListInspectTemplatesRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.privacy.dlp.v2.ListInspectTemplatesRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.privacy.dlp.v2.ListInspectTemplatesRequest.order_by', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21312, - serialized_end=21414, + name="ListInspectTemplatesRequest", + full_name="google.privacy.dlp.v2.ListInspectTemplatesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.ListInspectTemplatesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.privacy.dlp.v2.ListInspectTemplatesRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.privacy.dlp.v2.ListInspectTemplatesRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.privacy.dlp.v2.ListInspectTemplatesRequest.order_by", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21312, + serialized_end=21414, ) _LISTINSPECTTEMPLATESRESPONSE = _descriptor.Descriptor( - name='ListInspectTemplatesResponse', - full_name='google.privacy.dlp.v2.ListInspectTemplatesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='inspect_templates', full_name='google.privacy.dlp.v2.ListInspectTemplatesResponse.inspect_templates', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.privacy.dlp.v2.ListInspectTemplatesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21416, - serialized_end=21538, + name="ListInspectTemplatesResponse", + full_name="google.privacy.dlp.v2.ListInspectTemplatesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="inspect_templates", + full_name="google.privacy.dlp.v2.ListInspectTemplatesResponse.inspect_templates", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.privacy.dlp.v2.ListInspectTemplatesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21416, + serialized_end=21538, ) _DELETEINSPECTTEMPLATEREQUEST = _descriptor.Descriptor( - name='DeleteInspectTemplateRequest', - full_name='google.privacy.dlp.v2.DeleteInspectTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.DeleteInspectTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21540, - serialized_end=21584, + name="DeleteInspectTemplateRequest", + full_name="google.privacy.dlp.v2.DeleteInspectTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.DeleteInspectTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21540, + serialized_end=21584, ) _CREATEJOBTRIGGERREQUEST = _descriptor.Descriptor( - name='CreateJobTriggerRequest', - full_name='google.privacy.dlp.v2.CreateJobTriggerRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.CreateJobTriggerRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_trigger', full_name='google.privacy.dlp.v2.CreateJobTriggerRequest.job_trigger', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trigger_id', full_name='google.privacy.dlp.v2.CreateJobTriggerRequest.trigger_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21586, - serialized_end=21703, + name="CreateJobTriggerRequest", + full_name="google.privacy.dlp.v2.CreateJobTriggerRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.CreateJobTriggerRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_trigger", + full_name="google.privacy.dlp.v2.CreateJobTriggerRequest.job_trigger", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trigger_id", + full_name="google.privacy.dlp.v2.CreateJobTriggerRequest.trigger_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21586, + serialized_end=21703, ) _UPDATEJOBTRIGGERREQUEST = _descriptor.Descriptor( - name='UpdateJobTriggerRequest', - full_name='google.privacy.dlp.v2.UpdateJobTriggerRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.UpdateJobTriggerRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_trigger', full_name='google.privacy.dlp.v2.UpdateJobTriggerRequest.job_trigger', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.privacy.dlp.v2.UpdateJobTriggerRequest.update_mask', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21706, - serialized_end=21850, + name="UpdateJobTriggerRequest", + full_name="google.privacy.dlp.v2.UpdateJobTriggerRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.UpdateJobTriggerRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_trigger", + full_name="google.privacy.dlp.v2.UpdateJobTriggerRequest.job_trigger", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.privacy.dlp.v2.UpdateJobTriggerRequest.update_mask", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21706, + serialized_end=21850, ) _GETJOBTRIGGERREQUEST = _descriptor.Descriptor( - name='GetJobTriggerRequest', - full_name='google.privacy.dlp.v2.GetJobTriggerRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.GetJobTriggerRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=21852, - serialized_end=21888, + name="GetJobTriggerRequest", + full_name="google.privacy.dlp.v2.GetJobTriggerRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.GetJobTriggerRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=21852, + serialized_end=21888, ) _CREATEDLPJOBREQUEST = _descriptor.Descriptor( - name='CreateDlpJobRequest', - full_name='google.privacy.dlp.v2.CreateDlpJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.CreateDlpJobRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_job', full_name='google.privacy.dlp.v2.CreateDlpJobRequest.inspect_job', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='risk_job', full_name='google.privacy.dlp.v2.CreateDlpJobRequest.risk_job', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_id', full_name='google.privacy.dlp.v2.CreateDlpJobRequest.job_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='job', full_name='google.privacy.dlp.v2.CreateDlpJobRequest.job', - index=0, containing_type=None, fields=[]), - ], - serialized_start=21891, - serialized_end=22081, + name="CreateDlpJobRequest", + full_name="google.privacy.dlp.v2.CreateDlpJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.CreateDlpJobRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_job", + full_name="google.privacy.dlp.v2.CreateDlpJobRequest.inspect_job", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="risk_job", + full_name="google.privacy.dlp.v2.CreateDlpJobRequest.risk_job", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_id", + full_name="google.privacy.dlp.v2.CreateDlpJobRequest.job_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="job", + full_name="google.privacy.dlp.v2.CreateDlpJobRequest.job", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=21891, + serialized_end=22081, ) _LISTJOBTRIGGERSREQUEST = _descriptor.Descriptor( - name='ListJobTriggersRequest', - full_name='google.privacy.dlp.v2.ListJobTriggersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.ListJobTriggersRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.privacy.dlp.v2.ListJobTriggersRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.privacy.dlp.v2.ListJobTriggersRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.privacy.dlp.v2.ListJobTriggersRequest.order_by', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=22083, - serialized_end=22180, + name="ListJobTriggersRequest", + full_name="google.privacy.dlp.v2.ListJobTriggersRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.ListJobTriggersRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.privacy.dlp.v2.ListJobTriggersRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.privacy.dlp.v2.ListJobTriggersRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.privacy.dlp.v2.ListJobTriggersRequest.order_by", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=22083, + serialized_end=22180, ) _LISTJOBTRIGGERSRESPONSE = _descriptor.Descriptor( - name='ListJobTriggersResponse', - full_name='google.privacy.dlp.v2.ListJobTriggersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='job_triggers', full_name='google.privacy.dlp.v2.ListJobTriggersResponse.job_triggers', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.privacy.dlp.v2.ListJobTriggersResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=22182, - serialized_end=22289, + name="ListJobTriggersResponse", + full_name="google.privacy.dlp.v2.ListJobTriggersResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="job_triggers", + full_name="google.privacy.dlp.v2.ListJobTriggersResponse.job_triggers", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.privacy.dlp.v2.ListJobTriggersResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=22182, + serialized_end=22289, ) _DELETEJOBTRIGGERREQUEST = _descriptor.Descriptor( - name='DeleteJobTriggerRequest', - full_name='google.privacy.dlp.v2.DeleteJobTriggerRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.DeleteJobTriggerRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=22291, - serialized_end=22330, + name="DeleteJobTriggerRequest", + full_name="google.privacy.dlp.v2.DeleteJobTriggerRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.DeleteJobTriggerRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=22291, + serialized_end=22330, ) _INSPECTJOBCONFIG = _descriptor.Descriptor( - name='InspectJobConfig', - full_name='google.privacy.dlp.v2.InspectJobConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='storage_config', full_name='google.privacy.dlp.v2.InspectJobConfig.storage_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_config', full_name='google.privacy.dlp.v2.InspectJobConfig.inspect_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_template_name', full_name='google.privacy.dlp.v2.InspectJobConfig.inspect_template_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='actions', full_name='google.privacy.dlp.v2.InspectJobConfig.actions', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=22333, - serialized_end=22554, + name="InspectJobConfig", + full_name="google.privacy.dlp.v2.InspectJobConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="storage_config", + full_name="google.privacy.dlp.v2.InspectJobConfig.storage_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_config", + full_name="google.privacy.dlp.v2.InspectJobConfig.inspect_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_template_name", + full_name="google.privacy.dlp.v2.InspectJobConfig.inspect_template_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="actions", + full_name="google.privacy.dlp.v2.InspectJobConfig.actions", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=22333, + serialized_end=22554, ) _DLPJOB = _descriptor.Descriptor( - name='DlpJob', - full_name='google.privacy.dlp.v2.DlpJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.DlpJob.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.privacy.dlp.v2.DlpJob.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.privacy.dlp.v2.DlpJob.state', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='risk_details', full_name='google.privacy.dlp.v2.DlpJob.risk_details', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inspect_details', full_name='google.privacy.dlp.v2.DlpJob.inspect_details', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.privacy.dlp.v2.DlpJob.create_time', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.privacy.dlp.v2.DlpJob.start_time', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.privacy.dlp.v2.DlpJob.end_time', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_trigger_name', full_name='google.privacy.dlp.v2.DlpJob.job_trigger_name', index=8, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='errors', full_name='google.privacy.dlp.v2.DlpJob.errors', index=9, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DLPJOB_JOBSTATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='details', full_name='google.privacy.dlp.v2.DlpJob.details', - index=0, containing_type=None, fields=[]), - ], - serialized_start=22557, - serialized_end=23163, + name="DlpJob", + full_name="google.privacy.dlp.v2.DlpJob", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.DlpJob.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.privacy.dlp.v2.DlpJob.type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.privacy.dlp.v2.DlpJob.state", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="risk_details", + full_name="google.privacy.dlp.v2.DlpJob.risk_details", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inspect_details", + full_name="google.privacy.dlp.v2.DlpJob.inspect_details", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.privacy.dlp.v2.DlpJob.create_time", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.privacy.dlp.v2.DlpJob.start_time", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.privacy.dlp.v2.DlpJob.end_time", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job_trigger_name", + full_name="google.privacy.dlp.v2.DlpJob.job_trigger_name", + index=8, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="errors", + full_name="google.privacy.dlp.v2.DlpJob.errors", + index=9, + number=11, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DLPJOB_JOBSTATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="details", + full_name="google.privacy.dlp.v2.DlpJob.details", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=22557, + serialized_end=23163, ) _GETDLPJOBREQUEST = _descriptor.Descriptor( - name='GetDlpJobRequest', - full_name='google.privacy.dlp.v2.GetDlpJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.GetDlpJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23165, - serialized_end=23197, + name="GetDlpJobRequest", + full_name="google.privacy.dlp.v2.GetDlpJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.GetDlpJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23165, + serialized_end=23197, ) _LISTDLPJOBSREQUEST = _descriptor.Descriptor( - name='ListDlpJobsRequest', - full_name='google.privacy.dlp.v2.ListDlpJobsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.ListDlpJobsRequest.parent', index=0, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.privacy.dlp.v2.ListDlpJobsRequest.filter', index=1, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.privacy.dlp.v2.ListDlpJobsRequest.page_size', index=2, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.privacy.dlp.v2.ListDlpJobsRequest.page_token', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.privacy.dlp.v2.ListDlpJobsRequest.type', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.privacy.dlp.v2.ListDlpJobsRequest.order_by', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23200, - serialized_end=23358, + name="ListDlpJobsRequest", + full_name="google.privacy.dlp.v2.ListDlpJobsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.ListDlpJobsRequest.parent", + index=0, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.privacy.dlp.v2.ListDlpJobsRequest.filter", + index=1, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.privacy.dlp.v2.ListDlpJobsRequest.page_size", + index=2, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.privacy.dlp.v2.ListDlpJobsRequest.page_token", + index=3, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.privacy.dlp.v2.ListDlpJobsRequest.type", + index=4, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.privacy.dlp.v2.ListDlpJobsRequest.order_by", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23200, + serialized_end=23358, ) _LISTDLPJOBSRESPONSE = _descriptor.Descriptor( - name='ListDlpJobsResponse', - full_name='google.privacy.dlp.v2.ListDlpJobsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='jobs', full_name='google.privacy.dlp.v2.ListDlpJobsResponse.jobs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.privacy.dlp.v2.ListDlpJobsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23360, - serialized_end=23451, + name="ListDlpJobsResponse", + full_name="google.privacy.dlp.v2.ListDlpJobsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="jobs", + full_name="google.privacy.dlp.v2.ListDlpJobsResponse.jobs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.privacy.dlp.v2.ListDlpJobsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23360, + serialized_end=23451, ) _CANCELDLPJOBREQUEST = _descriptor.Descriptor( - name='CancelDlpJobRequest', - full_name='google.privacy.dlp.v2.CancelDlpJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.CancelDlpJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23453, - serialized_end=23488, + name="CancelDlpJobRequest", + full_name="google.privacy.dlp.v2.CancelDlpJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.CancelDlpJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23453, + serialized_end=23488, ) _DELETEDLPJOBREQUEST = _descriptor.Descriptor( - name='DeleteDlpJobRequest', - full_name='google.privacy.dlp.v2.DeleteDlpJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.DeleteDlpJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23490, - serialized_end=23525, + name="DeleteDlpJobRequest", + full_name="google.privacy.dlp.v2.DeleteDlpJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.DeleteDlpJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23490, + serialized_end=23525, ) _CREATEDEIDENTIFYTEMPLATEREQUEST = _descriptor.Descriptor( - name='CreateDeidentifyTemplateRequest', - full_name='google.privacy.dlp.v2.CreateDeidentifyTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.CreateDeidentifyTemplateRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='deidentify_template', full_name='google.privacy.dlp.v2.CreateDeidentifyTemplateRequest.deidentify_template', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='template_id', full_name='google.privacy.dlp.v2.CreateDeidentifyTemplateRequest.template_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23528, - serialized_end=23670, + name="CreateDeidentifyTemplateRequest", + full_name="google.privacy.dlp.v2.CreateDeidentifyTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.CreateDeidentifyTemplateRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="deidentify_template", + full_name="google.privacy.dlp.v2.CreateDeidentifyTemplateRequest.deidentify_template", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="template_id", + full_name="google.privacy.dlp.v2.CreateDeidentifyTemplateRequest.template_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23528, + serialized_end=23670, ) _UPDATEDEIDENTIFYTEMPLATEREQUEST = _descriptor.Descriptor( - name='UpdateDeidentifyTemplateRequest', - full_name='google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='deidentify_template', full_name='google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest.deidentify_template', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest.update_mask', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23673, - serialized_end=23841, + name="UpdateDeidentifyTemplateRequest", + full_name="google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="deidentify_template", + full_name="google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest.deidentify_template", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest.update_mask", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23673, + serialized_end=23841, ) _GETDEIDENTIFYTEMPLATEREQUEST = _descriptor.Descriptor( - name='GetDeidentifyTemplateRequest', - full_name='google.privacy.dlp.v2.GetDeidentifyTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.GetDeidentifyTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23843, - serialized_end=23887, + name="GetDeidentifyTemplateRequest", + full_name="google.privacy.dlp.v2.GetDeidentifyTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.GetDeidentifyTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23843, + serialized_end=23887, ) _LISTDEIDENTIFYTEMPLATESREQUEST = _descriptor.Descriptor( - name='ListDeidentifyTemplatesRequest', - full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.order_by', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23889, - serialized_end=23994, + name="ListDeidentifyTemplatesRequest", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesRequest.order_by", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23889, + serialized_end=23994, ) _LISTDEIDENTIFYTEMPLATESRESPONSE = _descriptor.Descriptor( - name='ListDeidentifyTemplatesResponse', - full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='deidentify_templates', full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesResponse.deidentify_templates', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.privacy.dlp.v2.ListDeidentifyTemplatesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23997, - serialized_end=24128, + name="ListDeidentifyTemplatesResponse", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="deidentify_templates", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesResponse.deidentify_templates", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.privacy.dlp.v2.ListDeidentifyTemplatesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=23997, + serialized_end=24128, ) _DELETEDEIDENTIFYTEMPLATEREQUEST = _descriptor.Descriptor( - name='DeleteDeidentifyTemplateRequest', - full_name='google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=24130, - serialized_end=24177, + name="DeleteDeidentifyTemplateRequest", + full_name="google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=24130, + serialized_end=24177, ) _LARGECUSTOMDICTIONARYCONFIG = _descriptor.Descriptor( - name='LargeCustomDictionaryConfig', - full_name='google.privacy.dlp.v2.LargeCustomDictionaryConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='output_path', full_name='google.privacy.dlp.v2.LargeCustomDictionaryConfig.output_path', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cloud_storage_file_set', full_name='google.privacy.dlp.v2.LargeCustomDictionaryConfig.cloud_storage_file_set', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='big_query_field', full_name='google.privacy.dlp.v2.LargeCustomDictionaryConfig.big_query_field', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='source', full_name='google.privacy.dlp.v2.LargeCustomDictionaryConfig.source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=24180, - serialized_end=24424, + name="LargeCustomDictionaryConfig", + full_name="google.privacy.dlp.v2.LargeCustomDictionaryConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="output_path", + full_name="google.privacy.dlp.v2.LargeCustomDictionaryConfig.output_path", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cloud_storage_file_set", + full_name="google.privacy.dlp.v2.LargeCustomDictionaryConfig.cloud_storage_file_set", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="big_query_field", + full_name="google.privacy.dlp.v2.LargeCustomDictionaryConfig.big_query_field", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.privacy.dlp.v2.LargeCustomDictionaryConfig.source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=24180, + serialized_end=24424, ) _STOREDINFOTYPECONFIG = _descriptor.Descriptor( - name='StoredInfoTypeConfig', - full_name='google.privacy.dlp.v2.StoredInfoTypeConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='display_name', full_name='google.privacy.dlp.v2.StoredInfoTypeConfig.display_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.privacy.dlp.v2.StoredInfoTypeConfig.description', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='large_custom_dictionary', full_name='google.privacy.dlp.v2.StoredInfoTypeConfig.large_custom_dictionary', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.StoredInfoTypeConfig.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=24427, - serialized_end=24587, + name="StoredInfoTypeConfig", + full_name="google.privacy.dlp.v2.StoredInfoTypeConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.privacy.dlp.v2.StoredInfoTypeConfig.display_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.privacy.dlp.v2.StoredInfoTypeConfig.description", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="large_custom_dictionary", + full_name="google.privacy.dlp.v2.StoredInfoTypeConfig.large_custom_dictionary", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.StoredInfoTypeConfig.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=24427, + serialized_end=24587, ) _STOREDINFOTYPEVERSION = _descriptor.Descriptor( - name='StoredInfoTypeVersion', - full_name='google.privacy.dlp.v2.StoredInfoTypeVersion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='config', full_name='google.privacy.dlp.v2.StoredInfoTypeVersion.config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.privacy.dlp.v2.StoredInfoTypeVersion.create_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.privacy.dlp.v2.StoredInfoTypeVersion.state', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='errors', full_name='google.privacy.dlp.v2.StoredInfoTypeVersion.errors', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=24590, - serialized_end=24828, + name="StoredInfoTypeVersion", + full_name="google.privacy.dlp.v2.StoredInfoTypeVersion", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="config", + full_name="google.privacy.dlp.v2.StoredInfoTypeVersion.config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.privacy.dlp.v2.StoredInfoTypeVersion.create_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.privacy.dlp.v2.StoredInfoTypeVersion.state", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="errors", + full_name="google.privacy.dlp.v2.StoredInfoTypeVersion.errors", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=24590, + serialized_end=24828, ) _STOREDINFOTYPE = _descriptor.Descriptor( - name='StoredInfoType', - full_name='google.privacy.dlp.v2.StoredInfoType', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.StoredInfoType.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_version', full_name='google.privacy.dlp.v2.StoredInfoType.current_version', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pending_versions', full_name='google.privacy.dlp.v2.StoredInfoType.pending_versions', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=24831, - serialized_end=25004, + name="StoredInfoType", + full_name="google.privacy.dlp.v2.StoredInfoType", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.StoredInfoType.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="current_version", + full_name="google.privacy.dlp.v2.StoredInfoType.current_version", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pending_versions", + full_name="google.privacy.dlp.v2.StoredInfoType.pending_versions", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=24831, + serialized_end=25004, ) _CREATESTOREDINFOTYPEREQUEST = _descriptor.Descriptor( - name='CreateStoredInfoTypeRequest', - full_name='google.privacy.dlp.v2.CreateStoredInfoTypeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.CreateStoredInfoTypeRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='config', full_name='google.privacy.dlp.v2.CreateStoredInfoTypeRequest.config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stored_info_type_id', full_name='google.privacy.dlp.v2.CreateStoredInfoTypeRequest.stored_info_type_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=25007, - serialized_end=25142, + name="CreateStoredInfoTypeRequest", + full_name="google.privacy.dlp.v2.CreateStoredInfoTypeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.CreateStoredInfoTypeRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="config", + full_name="google.privacy.dlp.v2.CreateStoredInfoTypeRequest.config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stored_info_type_id", + full_name="google.privacy.dlp.v2.CreateStoredInfoTypeRequest.stored_info_type_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=25007, + serialized_end=25142, ) _UPDATESTOREDINFOTYPEREQUEST = _descriptor.Descriptor( - name='UpdateStoredInfoTypeRequest', - full_name='google.privacy.dlp.v2.UpdateStoredInfoTypeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.UpdateStoredInfoTypeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='config', full_name='google.privacy.dlp.v2.UpdateStoredInfoTypeRequest.config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.privacy.dlp.v2.UpdateStoredInfoTypeRequest.update_mask', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=25145, - serialized_end=25298, + name="UpdateStoredInfoTypeRequest", + full_name="google.privacy.dlp.v2.UpdateStoredInfoTypeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.UpdateStoredInfoTypeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="config", + full_name="google.privacy.dlp.v2.UpdateStoredInfoTypeRequest.config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.privacy.dlp.v2.UpdateStoredInfoTypeRequest.update_mask", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=25145, + serialized_end=25298, ) _GETSTOREDINFOTYPEREQUEST = _descriptor.Descriptor( - name='GetStoredInfoTypeRequest', - full_name='google.privacy.dlp.v2.GetStoredInfoTypeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.GetStoredInfoTypeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=25300, - serialized_end=25340, + name="GetStoredInfoTypeRequest", + full_name="google.privacy.dlp.v2.GetStoredInfoTypeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.GetStoredInfoTypeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=25300, + serialized_end=25340, ) _LISTSTOREDINFOTYPESREQUEST = _descriptor.Descriptor( - name='ListStoredInfoTypesRequest', - full_name='google.privacy.dlp.v2.ListStoredInfoTypesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.privacy.dlp.v2.ListStoredInfoTypesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.privacy.dlp.v2.ListStoredInfoTypesRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.privacy.dlp.v2.ListStoredInfoTypesRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.privacy.dlp.v2.ListStoredInfoTypesRequest.order_by', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=25342, - serialized_end=25443, + name="ListStoredInfoTypesRequest", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesRequest.order_by", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=25342, + serialized_end=25443, ) _LISTSTOREDINFOTYPESRESPONSE = _descriptor.Descriptor( - name='ListStoredInfoTypesResponse', - full_name='google.privacy.dlp.v2.ListStoredInfoTypesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stored_info_types', full_name='google.privacy.dlp.v2.ListStoredInfoTypesResponse.stored_info_types', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.privacy.dlp.v2.ListStoredInfoTypesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=25445, - serialized_end=25565, + name="ListStoredInfoTypesResponse", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="stored_info_types", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesResponse.stored_info_types", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.privacy.dlp.v2.ListStoredInfoTypesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=25445, + serialized_end=25565, ) _DELETESTOREDINFOTYPEREQUEST = _descriptor.Descriptor( - name='DeleteStoredInfoTypeRequest', - full_name='google.privacy.dlp.v2.DeleteStoredInfoTypeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.DeleteStoredInfoTypeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=25567, - serialized_end=25610, -) - -_EXCLUDEINFOTYPES.fields_by_name['info_types'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_EXCLUSIONRULE.fields_by_name['dictionary'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE_DICTIONARY -_EXCLUSIONRULE.fields_by_name['regex'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE_REGEX -_EXCLUSIONRULE.fields_by_name['exclude_info_types'].message_type = _EXCLUDEINFOTYPES -_EXCLUSIONRULE.fields_by_name['matching_type'].enum_type = _MATCHINGTYPE -_EXCLUSIONRULE.oneofs_by_name['type'].fields.append( - _EXCLUSIONRULE.fields_by_name['dictionary']) -_EXCLUSIONRULE.fields_by_name['dictionary'].containing_oneof = _EXCLUSIONRULE.oneofs_by_name['type'] -_EXCLUSIONRULE.oneofs_by_name['type'].fields.append( - _EXCLUSIONRULE.fields_by_name['regex']) -_EXCLUSIONRULE.fields_by_name['regex'].containing_oneof = _EXCLUSIONRULE.oneofs_by_name['type'] -_EXCLUSIONRULE.oneofs_by_name['type'].fields.append( - _EXCLUSIONRULE.fields_by_name['exclude_info_types']) -_EXCLUSIONRULE.fields_by_name['exclude_info_types'].containing_oneof = _EXCLUSIONRULE.oneofs_by_name['type'] -_INSPECTIONRULE.fields_by_name['hotword_rule'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE -_INSPECTIONRULE.fields_by_name['exclusion_rule'].message_type = _EXCLUSIONRULE -_INSPECTIONRULE.oneofs_by_name['type'].fields.append( - _INSPECTIONRULE.fields_by_name['hotword_rule']) -_INSPECTIONRULE.fields_by_name['hotword_rule'].containing_oneof = _INSPECTIONRULE.oneofs_by_name['type'] -_INSPECTIONRULE.oneofs_by_name['type'].fields.append( - _INSPECTIONRULE.fields_by_name['exclusion_rule']) -_INSPECTIONRULE.fields_by_name['exclusion_rule'].containing_oneof = _INSPECTIONRULE.oneofs_by_name['type'] -_INSPECTIONRULESET.fields_by_name['info_types'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_INSPECTIONRULESET.fields_by_name['rules'].message_type = _INSPECTIONRULE -_INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT.fields_by_name['info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT.containing_type = _INSPECTCONFIG_FINDINGLIMITS -_INSPECTCONFIG_FINDINGLIMITS.fields_by_name['max_findings_per_info_type'].message_type = _INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT + name="DeleteStoredInfoTypeRequest", + full_name="google.privacy.dlp.v2.DeleteStoredInfoTypeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.DeleteStoredInfoTypeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=25567, + serialized_end=25610, +) + +_EXCLUDEINFOTYPES.fields_by_name[ + "info_types" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_EXCLUSIONRULE.fields_by_name[ + "dictionary" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE_DICTIONARY +) +_EXCLUSIONRULE.fields_by_name[ + "regex" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE_REGEX +) +_EXCLUSIONRULE.fields_by_name["exclude_info_types"].message_type = _EXCLUDEINFOTYPES +_EXCLUSIONRULE.fields_by_name["matching_type"].enum_type = _MATCHINGTYPE +_EXCLUSIONRULE.oneofs_by_name["type"].fields.append( + _EXCLUSIONRULE.fields_by_name["dictionary"] +) +_EXCLUSIONRULE.fields_by_name[ + "dictionary" +].containing_oneof = _EXCLUSIONRULE.oneofs_by_name["type"] +_EXCLUSIONRULE.oneofs_by_name["type"].fields.append( + _EXCLUSIONRULE.fields_by_name["regex"] +) +_EXCLUSIONRULE.fields_by_name["regex"].containing_oneof = _EXCLUSIONRULE.oneofs_by_name[ + "type" +] +_EXCLUSIONRULE.oneofs_by_name["type"].fields.append( + _EXCLUSIONRULE.fields_by_name["exclude_info_types"] +) +_EXCLUSIONRULE.fields_by_name[ + "exclude_info_types" +].containing_oneof = _EXCLUSIONRULE.oneofs_by_name["type"] +_INSPECTIONRULE.fields_by_name[ + "hotword_rule" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE +) +_INSPECTIONRULE.fields_by_name["exclusion_rule"].message_type = _EXCLUSIONRULE +_INSPECTIONRULE.oneofs_by_name["type"].fields.append( + _INSPECTIONRULE.fields_by_name["hotword_rule"] +) +_INSPECTIONRULE.fields_by_name[ + "hotword_rule" +].containing_oneof = _INSPECTIONRULE.oneofs_by_name["type"] +_INSPECTIONRULE.oneofs_by_name["type"].fields.append( + _INSPECTIONRULE.fields_by_name["exclusion_rule"] +) +_INSPECTIONRULE.fields_by_name[ + "exclusion_rule" +].containing_oneof = _INSPECTIONRULE.oneofs_by_name["type"] +_INSPECTIONRULESET.fields_by_name[ + "info_types" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_INSPECTIONRULESET.fields_by_name["rules"].message_type = _INSPECTIONRULE +_INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT.fields_by_name[ + "info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT.containing_type = ( + _INSPECTCONFIG_FINDINGLIMITS +) +_INSPECTCONFIG_FINDINGLIMITS.fields_by_name[ + "max_findings_per_info_type" +].message_type = _INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT _INSPECTCONFIG_FINDINGLIMITS.containing_type = _INSPECTCONFIG -_INSPECTCONFIG.fields_by_name['info_types'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_INSPECTCONFIG.fields_by_name['min_likelihood'].enum_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._LIKELIHOOD -_INSPECTCONFIG.fields_by_name['limits'].message_type = _INSPECTCONFIG_FINDINGLIMITS -_INSPECTCONFIG.fields_by_name['custom_info_types'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE -_INSPECTCONFIG.fields_by_name['content_options'].enum_type = _CONTENTOPTION -_INSPECTCONFIG.fields_by_name['rule_set'].message_type = _INSPECTIONRULESET -_BYTECONTENTITEM.fields_by_name['type'].enum_type = _BYTECONTENTITEM_BYTESTYPE +_INSPECTCONFIG.fields_by_name[ + "info_types" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_INSPECTCONFIG.fields_by_name[ + "min_likelihood" +].enum_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._LIKELIHOOD +) +_INSPECTCONFIG.fields_by_name["limits"].message_type = _INSPECTCONFIG_FINDINGLIMITS +_INSPECTCONFIG.fields_by_name[ + "custom_info_types" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CUSTOMINFOTYPE +) +_INSPECTCONFIG.fields_by_name["content_options"].enum_type = _CONTENTOPTION +_INSPECTCONFIG.fields_by_name["rule_set"].message_type = _INSPECTIONRULESET +_BYTECONTENTITEM.fields_by_name["type"].enum_type = _BYTECONTENTITEM_BYTESTYPE _BYTECONTENTITEM_BYTESTYPE.containing_type = _BYTECONTENTITEM -_CONTENTITEM.fields_by_name['table'].message_type = _TABLE -_CONTENTITEM.fields_by_name['byte_item'].message_type = _BYTECONTENTITEM -_CONTENTITEM.oneofs_by_name['data_item'].fields.append( - _CONTENTITEM.fields_by_name['value']) -_CONTENTITEM.fields_by_name['value'].containing_oneof = _CONTENTITEM.oneofs_by_name['data_item'] -_CONTENTITEM.oneofs_by_name['data_item'].fields.append( - _CONTENTITEM.fields_by_name['table']) -_CONTENTITEM.fields_by_name['table'].containing_oneof = _CONTENTITEM.oneofs_by_name['data_item'] -_CONTENTITEM.oneofs_by_name['data_item'].fields.append( - _CONTENTITEM.fields_by_name['byte_item']) -_CONTENTITEM.fields_by_name['byte_item'].containing_oneof = _CONTENTITEM.oneofs_by_name['data_item'] -_TABLE_ROW.fields_by_name['values'].message_type = _VALUE +_CONTENTITEM.fields_by_name["table"].message_type = _TABLE +_CONTENTITEM.fields_by_name["byte_item"].message_type = _BYTECONTENTITEM +_CONTENTITEM.oneofs_by_name["data_item"].fields.append( + _CONTENTITEM.fields_by_name["value"] +) +_CONTENTITEM.fields_by_name["value"].containing_oneof = _CONTENTITEM.oneofs_by_name[ + "data_item" +] +_CONTENTITEM.oneofs_by_name["data_item"].fields.append( + _CONTENTITEM.fields_by_name["table"] +) +_CONTENTITEM.fields_by_name["table"].containing_oneof = _CONTENTITEM.oneofs_by_name[ + "data_item" +] +_CONTENTITEM.oneofs_by_name["data_item"].fields.append( + _CONTENTITEM.fields_by_name["byte_item"] +) +_CONTENTITEM.fields_by_name["byte_item"].containing_oneof = _CONTENTITEM.oneofs_by_name[ + "data_item" +] +_TABLE_ROW.fields_by_name["values"].message_type = _VALUE _TABLE_ROW.containing_type = _TABLE -_TABLE.fields_by_name['headers'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_TABLE.fields_by_name['rows'].message_type = _TABLE_ROW -_INSPECTRESULT.fields_by_name['findings'].message_type = _FINDING -_FINDING.fields_by_name['info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_FINDING.fields_by_name['likelihood'].enum_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._LIKELIHOOD -_FINDING.fields_by_name['location'].message_type = _LOCATION -_FINDING.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_FINDING.fields_by_name['quote_info'].message_type = _QUOTEINFO -_LOCATION.fields_by_name['byte_range'].message_type = _RANGE -_LOCATION.fields_by_name['codepoint_range'].message_type = _RANGE -_LOCATION.fields_by_name['content_locations'].message_type = _CONTENTLOCATION -_CONTENTLOCATION.fields_by_name['record_location'].message_type = _RECORDLOCATION -_CONTENTLOCATION.fields_by_name['image_location'].message_type = _IMAGELOCATION -_CONTENTLOCATION.fields_by_name['document_location'].message_type = _DOCUMENTLOCATION -_CONTENTLOCATION.fields_by_name['container_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CONTENTLOCATION.oneofs_by_name['location'].fields.append( - _CONTENTLOCATION.fields_by_name['record_location']) -_CONTENTLOCATION.fields_by_name['record_location'].containing_oneof = _CONTENTLOCATION.oneofs_by_name['location'] -_CONTENTLOCATION.oneofs_by_name['location'].fields.append( - _CONTENTLOCATION.fields_by_name['image_location']) -_CONTENTLOCATION.fields_by_name['image_location'].containing_oneof = _CONTENTLOCATION.oneofs_by_name['location'] -_CONTENTLOCATION.oneofs_by_name['location'].fields.append( - _CONTENTLOCATION.fields_by_name['document_location']) -_CONTENTLOCATION.fields_by_name['document_location'].containing_oneof = _CONTENTLOCATION.oneofs_by_name['location'] -_RECORDLOCATION.fields_by_name['record_key'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._RECORDKEY -_RECORDLOCATION.fields_by_name['field_id'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_RECORDLOCATION.fields_by_name['table_location'].message_type = _TABLELOCATION -_IMAGELOCATION.fields_by_name['bounding_boxes'].message_type = _BOUNDINGBOX -_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name['info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name['redaction_color'].message_type = _COLOR +_TABLE.fields_by_name[ + "headers" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_TABLE.fields_by_name["rows"].message_type = _TABLE_ROW +_INSPECTRESULT.fields_by_name["findings"].message_type = _FINDING +_FINDING.fields_by_name[ + "info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_FINDING.fields_by_name[ + "likelihood" +].enum_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._LIKELIHOOD +) +_FINDING.fields_by_name["location"].message_type = _LOCATION +_FINDING.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_FINDING.fields_by_name["quote_info"].message_type = _QUOTEINFO +_LOCATION.fields_by_name["byte_range"].message_type = _RANGE +_LOCATION.fields_by_name["codepoint_range"].message_type = _RANGE +_LOCATION.fields_by_name["content_locations"].message_type = _CONTENTLOCATION +_CONTENTLOCATION.fields_by_name["record_location"].message_type = _RECORDLOCATION +_CONTENTLOCATION.fields_by_name["image_location"].message_type = _IMAGELOCATION +_CONTENTLOCATION.fields_by_name["document_location"].message_type = _DOCUMENTLOCATION +_CONTENTLOCATION.fields_by_name[ + "container_timestamp" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CONTENTLOCATION.oneofs_by_name["location"].fields.append( + _CONTENTLOCATION.fields_by_name["record_location"] +) +_CONTENTLOCATION.fields_by_name[ + "record_location" +].containing_oneof = _CONTENTLOCATION.oneofs_by_name["location"] +_CONTENTLOCATION.oneofs_by_name["location"].fields.append( + _CONTENTLOCATION.fields_by_name["image_location"] +) +_CONTENTLOCATION.fields_by_name[ + "image_location" +].containing_oneof = _CONTENTLOCATION.oneofs_by_name["location"] +_CONTENTLOCATION.oneofs_by_name["location"].fields.append( + _CONTENTLOCATION.fields_by_name["document_location"] +) +_CONTENTLOCATION.fields_by_name[ + "document_location" +].containing_oneof = _CONTENTLOCATION.oneofs_by_name["location"] +_RECORDLOCATION.fields_by_name[ + "record_key" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._RECORDKEY +) +_RECORDLOCATION.fields_by_name[ + "field_id" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_RECORDLOCATION.fields_by_name["table_location"].message_type = _TABLELOCATION +_IMAGELOCATION.fields_by_name["bounding_boxes"].message_type = _BOUNDINGBOX +_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name[ + "info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name[ + "redaction_color" +].message_type = _COLOR _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.containing_type = _REDACTIMAGEREQUEST -_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name['target'].fields.append( - _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name['info_type']) -_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name['info_type'].containing_oneof = _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name['target'] -_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name['target'].fields.append( - _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name['redact_all_text']) -_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name['redact_all_text'].containing_oneof = _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name['target'] -_REDACTIMAGEREQUEST.fields_by_name['inspect_config'].message_type = _INSPECTCONFIG -_REDACTIMAGEREQUEST.fields_by_name['image_redaction_configs'].message_type = _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG -_REDACTIMAGEREQUEST.fields_by_name['byte_item'].message_type = _BYTECONTENTITEM -_REDACTIMAGERESPONSE.fields_by_name['inspect_result'].message_type = _INSPECTRESULT -_DEIDENTIFYCONTENTREQUEST.fields_by_name['deidentify_config'].message_type = _DEIDENTIFYCONFIG -_DEIDENTIFYCONTENTREQUEST.fields_by_name['inspect_config'].message_type = _INSPECTCONFIG -_DEIDENTIFYCONTENTREQUEST.fields_by_name['item'].message_type = _CONTENTITEM -_DEIDENTIFYCONTENTRESPONSE.fields_by_name['item'].message_type = _CONTENTITEM -_DEIDENTIFYCONTENTRESPONSE.fields_by_name['overview'].message_type = _TRANSFORMATIONOVERVIEW -_REIDENTIFYCONTENTREQUEST.fields_by_name['reidentify_config'].message_type = _DEIDENTIFYCONFIG -_REIDENTIFYCONTENTREQUEST.fields_by_name['inspect_config'].message_type = _INSPECTCONFIG -_REIDENTIFYCONTENTREQUEST.fields_by_name['item'].message_type = _CONTENTITEM -_REIDENTIFYCONTENTRESPONSE.fields_by_name['item'].message_type = _CONTENTITEM -_REIDENTIFYCONTENTRESPONSE.fields_by_name['overview'].message_type = _TRANSFORMATIONOVERVIEW -_INSPECTCONTENTREQUEST.fields_by_name['inspect_config'].message_type = _INSPECTCONFIG -_INSPECTCONTENTREQUEST.fields_by_name['item'].message_type = _CONTENTITEM -_INSPECTCONTENTRESPONSE.fields_by_name['result'].message_type = _INSPECTRESULT -_OUTPUTSTORAGECONFIG.fields_by_name['table'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE -_OUTPUTSTORAGECONFIG.fields_by_name['output_schema'].enum_type = _OUTPUTSTORAGECONFIG_OUTPUTSCHEMA +_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name["target"].fields.append( + _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name["info_type"] +) +_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name[ + "info_type" +].containing_oneof = _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name["target"] +_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name["target"].fields.append( + _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name["redact_all_text"] +) +_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.fields_by_name[ + "redact_all_text" +].containing_oneof = _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG.oneofs_by_name["target"] +_REDACTIMAGEREQUEST.fields_by_name["inspect_config"].message_type = _INSPECTCONFIG +_REDACTIMAGEREQUEST.fields_by_name[ + "image_redaction_configs" +].message_type = _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG +_REDACTIMAGEREQUEST.fields_by_name["byte_item"].message_type = _BYTECONTENTITEM +_REDACTIMAGERESPONSE.fields_by_name["inspect_result"].message_type = _INSPECTRESULT +_DEIDENTIFYCONTENTREQUEST.fields_by_name[ + "deidentify_config" +].message_type = _DEIDENTIFYCONFIG +_DEIDENTIFYCONTENTREQUEST.fields_by_name["inspect_config"].message_type = _INSPECTCONFIG +_DEIDENTIFYCONTENTREQUEST.fields_by_name["item"].message_type = _CONTENTITEM +_DEIDENTIFYCONTENTRESPONSE.fields_by_name["item"].message_type = _CONTENTITEM +_DEIDENTIFYCONTENTRESPONSE.fields_by_name[ + "overview" +].message_type = _TRANSFORMATIONOVERVIEW +_REIDENTIFYCONTENTREQUEST.fields_by_name[ + "reidentify_config" +].message_type = _DEIDENTIFYCONFIG +_REIDENTIFYCONTENTREQUEST.fields_by_name["inspect_config"].message_type = _INSPECTCONFIG +_REIDENTIFYCONTENTREQUEST.fields_by_name["item"].message_type = _CONTENTITEM +_REIDENTIFYCONTENTRESPONSE.fields_by_name["item"].message_type = _CONTENTITEM +_REIDENTIFYCONTENTRESPONSE.fields_by_name[ + "overview" +].message_type = _TRANSFORMATIONOVERVIEW +_INSPECTCONTENTREQUEST.fields_by_name["inspect_config"].message_type = _INSPECTCONFIG +_INSPECTCONTENTREQUEST.fields_by_name["item"].message_type = _CONTENTITEM +_INSPECTCONTENTRESPONSE.fields_by_name["result"].message_type = _INSPECTRESULT +_OUTPUTSTORAGECONFIG.fields_by_name[ + "table" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE +) +_OUTPUTSTORAGECONFIG.fields_by_name[ + "output_schema" +].enum_type = _OUTPUTSTORAGECONFIG_OUTPUTSCHEMA _OUTPUTSTORAGECONFIG_OUTPUTSCHEMA.containing_type = _OUTPUTSTORAGECONFIG -_OUTPUTSTORAGECONFIG.oneofs_by_name['type'].fields.append( - _OUTPUTSTORAGECONFIG.fields_by_name['table']) -_OUTPUTSTORAGECONFIG.fields_by_name['table'].containing_oneof = _OUTPUTSTORAGECONFIG.oneofs_by_name['type'] -_INFOTYPESTATS.fields_by_name['info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS.fields_by_name['snapshot_inspect_template'].message_type = _INSPECTTEMPLATE -_INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS.fields_by_name['job_config'].message_type = _INSPECTJOBCONFIG +_OUTPUTSTORAGECONFIG.oneofs_by_name["type"].fields.append( + _OUTPUTSTORAGECONFIG.fields_by_name["table"] +) +_OUTPUTSTORAGECONFIG.fields_by_name[ + "table" +].containing_oneof = _OUTPUTSTORAGECONFIG.oneofs_by_name["type"] +_INFOTYPESTATS.fields_by_name[ + "info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS.fields_by_name[ + "snapshot_inspect_template" +].message_type = _INSPECTTEMPLATE +_INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS.fields_by_name[ + "job_config" +].message_type = _INSPECTJOBCONFIG _INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS.containing_type = _INSPECTDATASOURCEDETAILS -_INSPECTDATASOURCEDETAILS_RESULT.fields_by_name['info_type_stats'].message_type = _INFOTYPESTATS +_INSPECTDATASOURCEDETAILS_RESULT.fields_by_name[ + "info_type_stats" +].message_type = _INFOTYPESTATS _INSPECTDATASOURCEDETAILS_RESULT.containing_type = _INSPECTDATASOURCEDETAILS -_INSPECTDATASOURCEDETAILS.fields_by_name['requested_options'].message_type = _INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS -_INSPECTDATASOURCEDETAILS.fields_by_name['result'].message_type = _INSPECTDATASOURCEDETAILS_RESULT -_INFOTYPEDESCRIPTION.fields_by_name['supported_by'].enum_type = _INFOTYPESUPPORTEDBY -_LISTINFOTYPESRESPONSE.fields_by_name['info_types'].message_type = _INFOTYPEDESCRIPTION -_RISKANALYSISJOBCONFIG.fields_by_name['privacy_metric'].message_type = _PRIVACYMETRIC -_RISKANALYSISJOBCONFIG.fields_by_name['source_table'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE -_RISKANALYSISJOBCONFIG.fields_by_name['actions'].message_type = _ACTION -_QUASIID.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_QUASIID.fields_by_name['info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_QUASIID.fields_by_name['inferred'].message_type = google_dot_protobuf_dot_empty__pb2._EMPTY -_QUASIID.oneofs_by_name['tag'].fields.append( - _QUASIID.fields_by_name['info_type']) -_QUASIID.fields_by_name['info_type'].containing_oneof = _QUASIID.oneofs_by_name['tag'] -_QUASIID.oneofs_by_name['tag'].fields.append( - _QUASIID.fields_by_name['custom_tag']) -_QUASIID.fields_by_name['custom_tag'].containing_oneof = _QUASIID.oneofs_by_name['tag'] -_QUASIID.oneofs_by_name['tag'].fields.append( - _QUASIID.fields_by_name['inferred']) -_QUASIID.fields_by_name['inferred'].containing_oneof = _QUASIID.oneofs_by_name['tag'] -_STATISTICALTABLE_QUASIIDENTIFIERFIELD.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +_INSPECTDATASOURCEDETAILS.fields_by_name[ + "requested_options" +].message_type = _INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS +_INSPECTDATASOURCEDETAILS.fields_by_name[ + "result" +].message_type = _INSPECTDATASOURCEDETAILS_RESULT +_INFOTYPEDESCRIPTION.fields_by_name["supported_by"].enum_type = _INFOTYPESUPPORTEDBY +_LISTINFOTYPESRESPONSE.fields_by_name["info_types"].message_type = _INFOTYPEDESCRIPTION +_RISKANALYSISJOBCONFIG.fields_by_name["privacy_metric"].message_type = _PRIVACYMETRIC +_RISKANALYSISJOBCONFIG.fields_by_name[ + "source_table" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE +) +_RISKANALYSISJOBCONFIG.fields_by_name["actions"].message_type = _ACTION +_QUASIID.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_QUASIID.fields_by_name[ + "info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_QUASIID.fields_by_name[ + "inferred" +].message_type = google_dot_protobuf_dot_empty__pb2._EMPTY +_QUASIID.oneofs_by_name["tag"].fields.append(_QUASIID.fields_by_name["info_type"]) +_QUASIID.fields_by_name["info_type"].containing_oneof = _QUASIID.oneofs_by_name["tag"] +_QUASIID.oneofs_by_name["tag"].fields.append(_QUASIID.fields_by_name["custom_tag"]) +_QUASIID.fields_by_name["custom_tag"].containing_oneof = _QUASIID.oneofs_by_name["tag"] +_QUASIID.oneofs_by_name["tag"].fields.append(_QUASIID.fields_by_name["inferred"]) +_QUASIID.fields_by_name["inferred"].containing_oneof = _QUASIID.oneofs_by_name["tag"] +_STATISTICALTABLE_QUASIIDENTIFIERFIELD.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) _STATISTICALTABLE_QUASIIDENTIFIERFIELD.containing_type = _STATISTICALTABLE -_STATISTICALTABLE.fields_by_name['table'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE -_STATISTICALTABLE.fields_by_name['quasi_ids'].message_type = _STATISTICALTABLE_QUASIIDENTIFIERFIELD -_STATISTICALTABLE.fields_by_name['relative_frequency'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_PRIVACYMETRIC_NUMERICALSTATSCONFIG.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +_STATISTICALTABLE.fields_by_name[ + "table" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE +) +_STATISTICALTABLE.fields_by_name[ + "quasi_ids" +].message_type = _STATISTICALTABLE_QUASIIDENTIFIERFIELD +_STATISTICALTABLE.fields_by_name[ + "relative_frequency" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_PRIVACYMETRIC_NUMERICALSTATSCONFIG.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) _PRIVACYMETRIC_NUMERICALSTATSCONFIG.containing_type = _PRIVACYMETRIC -_PRIVACYMETRIC_CATEGORICALSTATSCONFIG.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +_PRIVACYMETRIC_CATEGORICALSTATSCONFIG.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) _PRIVACYMETRIC_CATEGORICALSTATSCONFIG.containing_type = _PRIVACYMETRIC -_PRIVACYMETRIC_KANONYMITYCONFIG.fields_by_name['quasi_ids'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_PRIVACYMETRIC_KANONYMITYCONFIG.fields_by_name['entity_id'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._ENTITYID +_PRIVACYMETRIC_KANONYMITYCONFIG.fields_by_name[ + "quasi_ids" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_PRIVACYMETRIC_KANONYMITYCONFIG.fields_by_name[ + "entity_id" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._ENTITYID +) _PRIVACYMETRIC_KANONYMITYCONFIG.containing_type = _PRIVACYMETRIC -_PRIVACYMETRIC_LDIVERSITYCONFIG.fields_by_name['quasi_ids'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_PRIVACYMETRIC_LDIVERSITYCONFIG.fields_by_name['sensitive_attribute'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +_PRIVACYMETRIC_LDIVERSITYCONFIG.fields_by_name[ + "quasi_ids" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_PRIVACYMETRIC_LDIVERSITYCONFIG.fields_by_name[ + "sensitive_attribute" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) _PRIVACYMETRIC_LDIVERSITYCONFIG.containing_type = _PRIVACYMETRIC -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['inferred'].message_type = google_dot_protobuf_dot_empty__pb2._EMPTY -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.containing_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name['tag'].fields.append( - _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['info_type']) -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['info_type'].containing_oneof = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name['tag'] -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name['tag'].fields.append( - _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['custom_tag']) -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['custom_tag'].containing_oneof = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name['tag'] -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name['tag'].fields.append( - _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['inferred']) -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name['inferred'].containing_oneof = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name['tag'] -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD.containing_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.fields_by_name['table'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.fields_by_name['quasi_ids'].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.fields_by_name['relative_frequency'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.containing_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG.fields_by_name['quasi_ids'].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD -_PRIVACYMETRIC_KMAPESTIMATIONCONFIG.fields_by_name['auxiliary_tables'].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name[ + "info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name[ + "inferred" +].message_type = google_dot_protobuf_dot_empty__pb2._EMPTY +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.containing_type = ( + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name["tag"].fields.append( + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name["info_type"] +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name[ + "info_type" +].containing_oneof = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name[ + "tag" +] +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name["tag"].fields.append( + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name["custom_tag"] +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name[ + "custom_tag" +].containing_oneof = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name[ + "tag" +] +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name["tag"].fields.append( + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name["inferred"] +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.fields_by_name[ + "inferred" +].containing_oneof = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD.oneofs_by_name[ + "tag" +] +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD.containing_type = ( + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.fields_by_name[ + "table" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.fields_by_name[ + "quasi_ids" +].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.fields_by_name[ + "relative_frequency" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE.containing_type = ( + _PRIVACYMETRIC_KMAPESTIMATIONCONFIG +) +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG.fields_by_name[ + "quasi_ids" +].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD +_PRIVACYMETRIC_KMAPESTIMATIONCONFIG.fields_by_name[ + "auxiliary_tables" +].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE _PRIVACYMETRIC_KMAPESTIMATIONCONFIG.containing_type = _PRIVACYMETRIC -_PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG.fields_by_name['quasi_ids'].message_type = _QUASIID -_PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG.fields_by_name['auxiliary_tables'].message_type = _STATISTICALTABLE +_PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG.fields_by_name[ + "quasi_ids" +].message_type = _QUASIID +_PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG.fields_by_name[ + "auxiliary_tables" +].message_type = _STATISTICALTABLE _PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG.containing_type = _PRIVACYMETRIC -_PRIVACYMETRIC.fields_by_name['numerical_stats_config'].message_type = _PRIVACYMETRIC_NUMERICALSTATSCONFIG -_PRIVACYMETRIC.fields_by_name['categorical_stats_config'].message_type = _PRIVACYMETRIC_CATEGORICALSTATSCONFIG -_PRIVACYMETRIC.fields_by_name['k_anonymity_config'].message_type = _PRIVACYMETRIC_KANONYMITYCONFIG -_PRIVACYMETRIC.fields_by_name['l_diversity_config'].message_type = _PRIVACYMETRIC_LDIVERSITYCONFIG -_PRIVACYMETRIC.fields_by_name['k_map_estimation_config'].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG -_PRIVACYMETRIC.fields_by_name['delta_presence_estimation_config'].message_type = _PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG -_PRIVACYMETRIC.oneofs_by_name['type'].fields.append( - _PRIVACYMETRIC.fields_by_name['numerical_stats_config']) -_PRIVACYMETRIC.fields_by_name['numerical_stats_config'].containing_oneof = _PRIVACYMETRIC.oneofs_by_name['type'] -_PRIVACYMETRIC.oneofs_by_name['type'].fields.append( - _PRIVACYMETRIC.fields_by_name['categorical_stats_config']) -_PRIVACYMETRIC.fields_by_name['categorical_stats_config'].containing_oneof = _PRIVACYMETRIC.oneofs_by_name['type'] -_PRIVACYMETRIC.oneofs_by_name['type'].fields.append( - _PRIVACYMETRIC.fields_by_name['k_anonymity_config']) -_PRIVACYMETRIC.fields_by_name['k_anonymity_config'].containing_oneof = _PRIVACYMETRIC.oneofs_by_name['type'] -_PRIVACYMETRIC.oneofs_by_name['type'].fields.append( - _PRIVACYMETRIC.fields_by_name['l_diversity_config']) -_PRIVACYMETRIC.fields_by_name['l_diversity_config'].containing_oneof = _PRIVACYMETRIC.oneofs_by_name['type'] -_PRIVACYMETRIC.oneofs_by_name['type'].fields.append( - _PRIVACYMETRIC.fields_by_name['k_map_estimation_config']) -_PRIVACYMETRIC.fields_by_name['k_map_estimation_config'].containing_oneof = _PRIVACYMETRIC.oneofs_by_name['type'] -_PRIVACYMETRIC.oneofs_by_name['type'].fields.append( - _PRIVACYMETRIC.fields_by_name['delta_presence_estimation_config']) -_PRIVACYMETRIC.fields_by_name['delta_presence_estimation_config'].containing_oneof = _PRIVACYMETRIC.oneofs_by_name['type'] -_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.fields_by_name['min_value'].message_type = _VALUE -_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.fields_by_name['max_value'].message_type = _VALUE -_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.fields_by_name['quantile_values'].message_type = _VALUE -_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.containing_type = _ANALYZEDATASOURCERISKDETAILS -_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET.fields_by_name['bucket_values'].message_type = _VALUEFREQUENCY -_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET.containing_type = _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT -_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT.fields_by_name['value_frequency_histogram_buckets'].message_type = _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET -_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT.containing_type = _ANALYZEDATASOURCERISKDETAILS -_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS.fields_by_name['quasi_ids_values'].message_type = _VALUE -_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS.containing_type = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT -_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET.fields_by_name['bucket_values'].message_type = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS -_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET.containing_type = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT -_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT.fields_by_name['equivalence_class_histogram_buckets'].message_type = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET -_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT.containing_type = _ANALYZEDATASOURCERISKDETAILS -_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS.fields_by_name['quasi_ids_values'].message_type = _VALUE -_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS.fields_by_name['top_sensitive_values'].message_type = _VALUEFREQUENCY -_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS.containing_type = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT -_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET.fields_by_name['bucket_values'].message_type = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS -_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET.containing_type = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT -_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT.fields_by_name['sensitive_value_frequency_histogram_buckets'].message_type = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET -_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT.containing_type = _ANALYZEDATASOURCERISKDETAILS -_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES.fields_by_name['quasi_ids_values'].message_type = _VALUE -_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES.containing_type = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT -_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET.fields_by_name['bucket_values'].message_type = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES -_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET.containing_type = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT -_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT.fields_by_name['k_map_estimation_histogram'].message_type = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET -_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT.containing_type = _ANALYZEDATASOURCERISKDETAILS -_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES.fields_by_name['quasi_ids_values'].message_type = _VALUE -_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES.containing_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT -_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET.fields_by_name['bucket_values'].message_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES -_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET.containing_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT -_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT.fields_by_name['delta_presence_estimation_histogram'].message_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET -_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT.containing_type = _ANALYZEDATASOURCERISKDETAILS -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['requested_privacy_metric'].message_type = _PRIVACYMETRIC -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['requested_source_table'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['numerical_stats_result'].message_type = _ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['categorical_stats_result'].message_type = _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['k_anonymity_result'].message_type = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['l_diversity_result'].message_type = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['k_map_estimation_result'].message_type = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['delta_presence_estimation_result'].message_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT -_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'].fields.append( - _ANALYZEDATASOURCERISKDETAILS.fields_by_name['numerical_stats_result']) -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['numerical_stats_result'].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'] -_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'].fields.append( - _ANALYZEDATASOURCERISKDETAILS.fields_by_name['categorical_stats_result']) -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['categorical_stats_result'].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'] -_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'].fields.append( - _ANALYZEDATASOURCERISKDETAILS.fields_by_name['k_anonymity_result']) -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['k_anonymity_result'].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'] -_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'].fields.append( - _ANALYZEDATASOURCERISKDETAILS.fields_by_name['l_diversity_result']) -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['l_diversity_result'].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'] -_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'].fields.append( - _ANALYZEDATASOURCERISKDETAILS.fields_by_name['k_map_estimation_result']) -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['k_map_estimation_result'].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'] -_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'].fields.append( - _ANALYZEDATASOURCERISKDETAILS.fields_by_name['delta_presence_estimation_result']) -_ANALYZEDATASOURCERISKDETAILS.fields_by_name['delta_presence_estimation_result'].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name['result'] -_VALUEFREQUENCY.fields_by_name['value'].message_type = _VALUE -_VALUE.fields_by_name['timestamp_value'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_VALUE.fields_by_name['time_value'].message_type = google_dot_type_dot_timeofday__pb2._TIMEOFDAY -_VALUE.fields_by_name['date_value'].message_type = google_dot_type_dot_date__pb2._DATE -_VALUE.fields_by_name['day_of_week_value'].enum_type = google_dot_type_dot_dayofweek__pb2._DAYOFWEEK -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['integer_value']) -_VALUE.fields_by_name['integer_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['float_value']) -_VALUE.fields_by_name['float_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['string_value']) -_VALUE.fields_by_name['string_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['boolean_value']) -_VALUE.fields_by_name['boolean_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['timestamp_value']) -_VALUE.fields_by_name['timestamp_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['time_value']) -_VALUE.fields_by_name['time_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['date_value']) -_VALUE.fields_by_name['date_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_VALUE.oneofs_by_name['type'].fields.append( - _VALUE.fields_by_name['day_of_week_value']) -_VALUE.fields_by_name['day_of_week_value'].containing_oneof = _VALUE.oneofs_by_name['type'] -_QUOTEINFO.fields_by_name['date_time'].message_type = _DATETIME -_QUOTEINFO.oneofs_by_name['parsed_quote'].fields.append( - _QUOTEINFO.fields_by_name['date_time']) -_QUOTEINFO.fields_by_name['date_time'].containing_oneof = _QUOTEINFO.oneofs_by_name['parsed_quote'] +_PRIVACYMETRIC.fields_by_name[ + "numerical_stats_config" +].message_type = _PRIVACYMETRIC_NUMERICALSTATSCONFIG +_PRIVACYMETRIC.fields_by_name[ + "categorical_stats_config" +].message_type = _PRIVACYMETRIC_CATEGORICALSTATSCONFIG +_PRIVACYMETRIC.fields_by_name[ + "k_anonymity_config" +].message_type = _PRIVACYMETRIC_KANONYMITYCONFIG +_PRIVACYMETRIC.fields_by_name[ + "l_diversity_config" +].message_type = _PRIVACYMETRIC_LDIVERSITYCONFIG +_PRIVACYMETRIC.fields_by_name[ + "k_map_estimation_config" +].message_type = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG +_PRIVACYMETRIC.fields_by_name[ + "delta_presence_estimation_config" +].message_type = _PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG +_PRIVACYMETRIC.oneofs_by_name["type"].fields.append( + _PRIVACYMETRIC.fields_by_name["numerical_stats_config"] +) +_PRIVACYMETRIC.fields_by_name[ + "numerical_stats_config" +].containing_oneof = _PRIVACYMETRIC.oneofs_by_name["type"] +_PRIVACYMETRIC.oneofs_by_name["type"].fields.append( + _PRIVACYMETRIC.fields_by_name["categorical_stats_config"] +) +_PRIVACYMETRIC.fields_by_name[ + "categorical_stats_config" +].containing_oneof = _PRIVACYMETRIC.oneofs_by_name["type"] +_PRIVACYMETRIC.oneofs_by_name["type"].fields.append( + _PRIVACYMETRIC.fields_by_name["k_anonymity_config"] +) +_PRIVACYMETRIC.fields_by_name[ + "k_anonymity_config" +].containing_oneof = _PRIVACYMETRIC.oneofs_by_name["type"] +_PRIVACYMETRIC.oneofs_by_name["type"].fields.append( + _PRIVACYMETRIC.fields_by_name["l_diversity_config"] +) +_PRIVACYMETRIC.fields_by_name[ + "l_diversity_config" +].containing_oneof = _PRIVACYMETRIC.oneofs_by_name["type"] +_PRIVACYMETRIC.oneofs_by_name["type"].fields.append( + _PRIVACYMETRIC.fields_by_name["k_map_estimation_config"] +) +_PRIVACYMETRIC.fields_by_name[ + "k_map_estimation_config" +].containing_oneof = _PRIVACYMETRIC.oneofs_by_name["type"] +_PRIVACYMETRIC.oneofs_by_name["type"].fields.append( + _PRIVACYMETRIC.fields_by_name["delta_presence_estimation_config"] +) +_PRIVACYMETRIC.fields_by_name[ + "delta_presence_estimation_config" +].containing_oneof = _PRIVACYMETRIC.oneofs_by_name["type"] +_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.fields_by_name[ + "min_value" +].message_type = _VALUE +_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.fields_by_name[ + "max_value" +].message_type = _VALUE +_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.fields_by_name[ + "quantile_values" +].message_type = _VALUE +_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS +) +_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET.fields_by_name[ + "bucket_values" +].message_type = _VALUEFREQUENCY +_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT +) +_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT.fields_by_name[ + "value_frequency_histogram_buckets" +].message_type = ( + _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET +) +_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS +) +_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS.fields_by_name[ + "quasi_ids_values" +].message_type = _VALUE +_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT +) +_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET.fields_by_name[ + "bucket_values" +].message_type = ( + _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS +) +_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT +) +_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT.fields_by_name[ + "equivalence_class_histogram_buckets" +].message_type = ( + _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET +) +_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS +) +_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS.fields_by_name[ + "quasi_ids_values" +].message_type = _VALUE +_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS.fields_by_name[ + "top_sensitive_values" +].message_type = _VALUEFREQUENCY +_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT +) +_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET.fields_by_name[ + "bucket_values" +].message_type = ( + _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS +) +_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT +) +_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT.fields_by_name[ + "sensitive_value_frequency_histogram_buckets" +].message_type = ( + _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET +) +_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS +) +_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES.fields_by_name[ + "quasi_ids_values" +].message_type = _VALUE +_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT +) +_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET.fields_by_name[ + "bucket_values" +].message_type = ( + _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES +) +_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT +) +_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT.fields_by_name[ + "k_map_estimation_histogram" +].message_type = ( + _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET +) +_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS +) +_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES.fields_by_name[ + "quasi_ids_values" +].message_type = _VALUE +_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT +) +_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET.fields_by_name[ + "bucket_values" +].message_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES +_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT +) +_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT.fields_by_name[ + "delta_presence_estimation_histogram" +].message_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET +_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT.containing_type = ( + _ANALYZEDATASOURCERISKDETAILS +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "requested_privacy_metric" +].message_type = _PRIVACYMETRIC +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "requested_source_table" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYTABLE +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "numerical_stats_result" +].message_type = _ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "categorical_stats_result" +].message_type = _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "k_anonymity_result" +].message_type = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "l_diversity_result" +].message_type = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "k_map_estimation_result" +].message_type = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "delta_presence_estimation_result" +].message_type = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT +_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"].fields.append( + _ANALYZEDATASOURCERISKDETAILS.fields_by_name["numerical_stats_result"] +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "numerical_stats_result" +].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"] +_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"].fields.append( + _ANALYZEDATASOURCERISKDETAILS.fields_by_name["categorical_stats_result"] +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "categorical_stats_result" +].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"] +_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"].fields.append( + _ANALYZEDATASOURCERISKDETAILS.fields_by_name["k_anonymity_result"] +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "k_anonymity_result" +].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"] +_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"].fields.append( + _ANALYZEDATASOURCERISKDETAILS.fields_by_name["l_diversity_result"] +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "l_diversity_result" +].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"] +_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"].fields.append( + _ANALYZEDATASOURCERISKDETAILS.fields_by_name["k_map_estimation_result"] +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "k_map_estimation_result" +].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"] +_ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"].fields.append( + _ANALYZEDATASOURCERISKDETAILS.fields_by_name["delta_presence_estimation_result"] +) +_ANALYZEDATASOURCERISKDETAILS.fields_by_name[ + "delta_presence_estimation_result" +].containing_oneof = _ANALYZEDATASOURCERISKDETAILS.oneofs_by_name["result"] +_VALUEFREQUENCY.fields_by_name["value"].message_type = _VALUE +_VALUE.fields_by_name[ + "timestamp_value" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_VALUE.fields_by_name[ + "time_value" +].message_type = google_dot_type_dot_timeofday__pb2._TIMEOFDAY +_VALUE.fields_by_name["date_value"].message_type = google_dot_type_dot_date__pb2._DATE +_VALUE.fields_by_name[ + "day_of_week_value" +].enum_type = google_dot_type_dot_dayofweek__pb2._DAYOFWEEK +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["integer_value"]) +_VALUE.fields_by_name["integer_value"].containing_oneof = _VALUE.oneofs_by_name["type"] +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["float_value"]) +_VALUE.fields_by_name["float_value"].containing_oneof = _VALUE.oneofs_by_name["type"] +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["string_value"]) +_VALUE.fields_by_name["string_value"].containing_oneof = _VALUE.oneofs_by_name["type"] +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["boolean_value"]) +_VALUE.fields_by_name["boolean_value"].containing_oneof = _VALUE.oneofs_by_name["type"] +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["timestamp_value"]) +_VALUE.fields_by_name["timestamp_value"].containing_oneof = _VALUE.oneofs_by_name[ + "type" +] +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["time_value"]) +_VALUE.fields_by_name["time_value"].containing_oneof = _VALUE.oneofs_by_name["type"] +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["date_value"]) +_VALUE.fields_by_name["date_value"].containing_oneof = _VALUE.oneofs_by_name["type"] +_VALUE.oneofs_by_name["type"].fields.append(_VALUE.fields_by_name["day_of_week_value"]) +_VALUE.fields_by_name["day_of_week_value"].containing_oneof = _VALUE.oneofs_by_name[ + "type" +] +_QUOTEINFO.fields_by_name["date_time"].message_type = _DATETIME +_QUOTEINFO.oneofs_by_name["parsed_quote"].fields.append( + _QUOTEINFO.fields_by_name["date_time"] +) +_QUOTEINFO.fields_by_name["date_time"].containing_oneof = _QUOTEINFO.oneofs_by_name[ + "parsed_quote" +] _DATETIME_TIMEZONE.containing_type = _DATETIME -_DATETIME.fields_by_name['date'].message_type = google_dot_type_dot_date__pb2._DATE -_DATETIME.fields_by_name['day_of_week'].enum_type = google_dot_type_dot_dayofweek__pb2._DAYOFWEEK -_DATETIME.fields_by_name['time'].message_type = google_dot_type_dot_timeofday__pb2._TIMEOFDAY -_DATETIME.fields_by_name['time_zone'].message_type = _DATETIME_TIMEZONE -_DEIDENTIFYCONFIG.fields_by_name['info_type_transformations'].message_type = _INFOTYPETRANSFORMATIONS -_DEIDENTIFYCONFIG.fields_by_name['record_transformations'].message_type = _RECORDTRANSFORMATIONS -_DEIDENTIFYCONFIG.oneofs_by_name['transformation'].fields.append( - _DEIDENTIFYCONFIG.fields_by_name['info_type_transformations']) -_DEIDENTIFYCONFIG.fields_by_name['info_type_transformations'].containing_oneof = _DEIDENTIFYCONFIG.oneofs_by_name['transformation'] -_DEIDENTIFYCONFIG.oneofs_by_name['transformation'].fields.append( - _DEIDENTIFYCONFIG.fields_by_name['record_transformations']) -_DEIDENTIFYCONFIG.fields_by_name['record_transformations'].containing_oneof = _DEIDENTIFYCONFIG.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.fields_by_name['replace_config'].message_type = _REPLACEVALUECONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['redact_config'].message_type = _REDACTCONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['character_mask_config'].message_type = _CHARACTERMASKCONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['crypto_replace_ffx_fpe_config'].message_type = _CRYPTOREPLACEFFXFPECONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['fixed_size_bucketing_config'].message_type = _FIXEDSIZEBUCKETINGCONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['bucketing_config'].message_type = _BUCKETINGCONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['replace_with_info_type_config'].message_type = _REPLACEWITHINFOTYPECONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['time_part_config'].message_type = _TIMEPARTCONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['crypto_hash_config'].message_type = _CRYPTOHASHCONFIG -_PRIMITIVETRANSFORMATION.fields_by_name['date_shift_config'].message_type = _DATESHIFTCONFIG -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['replace_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['replace_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['redact_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['redact_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['character_mask_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['character_mask_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['crypto_replace_ffx_fpe_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['crypto_replace_ffx_fpe_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['fixed_size_bucketing_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['fixed_size_bucketing_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['bucketing_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['bucketing_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['replace_with_info_type_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['replace_with_info_type_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['time_part_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['time_part_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['crypto_hash_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['crypto_hash_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _PRIMITIVETRANSFORMATION.fields_by_name['date_shift_config']) -_PRIMITIVETRANSFORMATION.fields_by_name['date_shift_config'].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name['transformation'] -_TIMEPARTCONFIG.fields_by_name['part_to_extract'].enum_type = _TIMEPARTCONFIG_TIMEPART +_DATETIME.fields_by_name["date"].message_type = google_dot_type_dot_date__pb2._DATE +_DATETIME.fields_by_name[ + "day_of_week" +].enum_type = google_dot_type_dot_dayofweek__pb2._DAYOFWEEK +_DATETIME.fields_by_name[ + "time" +].message_type = google_dot_type_dot_timeofday__pb2._TIMEOFDAY +_DATETIME.fields_by_name["time_zone"].message_type = _DATETIME_TIMEZONE +_DEIDENTIFYCONFIG.fields_by_name[ + "info_type_transformations" +].message_type = _INFOTYPETRANSFORMATIONS +_DEIDENTIFYCONFIG.fields_by_name[ + "record_transformations" +].message_type = _RECORDTRANSFORMATIONS +_DEIDENTIFYCONFIG.oneofs_by_name["transformation"].fields.append( + _DEIDENTIFYCONFIG.fields_by_name["info_type_transformations"] +) +_DEIDENTIFYCONFIG.fields_by_name[ + "info_type_transformations" +].containing_oneof = _DEIDENTIFYCONFIG.oneofs_by_name["transformation"] +_DEIDENTIFYCONFIG.oneofs_by_name["transformation"].fields.append( + _DEIDENTIFYCONFIG.fields_by_name["record_transformations"] +) +_DEIDENTIFYCONFIG.fields_by_name[ + "record_transformations" +].containing_oneof = _DEIDENTIFYCONFIG.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.fields_by_name[ + "replace_config" +].message_type = _REPLACEVALUECONFIG +_PRIMITIVETRANSFORMATION.fields_by_name["redact_config"].message_type = _REDACTCONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "character_mask_config" +].message_type = _CHARACTERMASKCONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "crypto_replace_ffx_fpe_config" +].message_type = _CRYPTOREPLACEFFXFPECONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "fixed_size_bucketing_config" +].message_type = _FIXEDSIZEBUCKETINGCONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "bucketing_config" +].message_type = _BUCKETINGCONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "replace_with_info_type_config" +].message_type = _REPLACEWITHINFOTYPECONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "time_part_config" +].message_type = _TIMEPARTCONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "crypto_hash_config" +].message_type = _CRYPTOHASHCONFIG +_PRIMITIVETRANSFORMATION.fields_by_name[ + "date_shift_config" +].message_type = _DATESHIFTCONFIG +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["replace_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "replace_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["redact_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "redact_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["character_mask_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "character_mask_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["crypto_replace_ffx_fpe_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "crypto_replace_ffx_fpe_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["fixed_size_bucketing_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "fixed_size_bucketing_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["bucketing_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "bucketing_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["replace_with_info_type_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "replace_with_info_type_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["time_part_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "time_part_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["crypto_hash_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "crypto_hash_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _PRIMITIVETRANSFORMATION.fields_by_name["date_shift_config"] +) +_PRIMITIVETRANSFORMATION.fields_by_name[ + "date_shift_config" +].containing_oneof = _PRIMITIVETRANSFORMATION.oneofs_by_name["transformation"] +_TIMEPARTCONFIG.fields_by_name["part_to_extract"].enum_type = _TIMEPARTCONFIG_TIMEPART _TIMEPARTCONFIG_TIMEPART.containing_type = _TIMEPARTCONFIG -_CRYPTOHASHCONFIG.fields_by_name['crypto_key'].message_type = _CRYPTOKEY -_REPLACEVALUECONFIG.fields_by_name['new_value'].message_type = _VALUE -_CHARSTOIGNORE.fields_by_name['common_characters_to_ignore'].enum_type = _CHARSTOIGNORE_COMMONCHARSTOIGNORE +_CRYPTOHASHCONFIG.fields_by_name["crypto_key"].message_type = _CRYPTOKEY +_REPLACEVALUECONFIG.fields_by_name["new_value"].message_type = _VALUE +_CHARSTOIGNORE.fields_by_name[ + "common_characters_to_ignore" +].enum_type = _CHARSTOIGNORE_COMMONCHARSTOIGNORE _CHARSTOIGNORE_COMMONCHARSTOIGNORE.containing_type = _CHARSTOIGNORE -_CHARSTOIGNORE.oneofs_by_name['characters'].fields.append( - _CHARSTOIGNORE.fields_by_name['characters_to_skip']) -_CHARSTOIGNORE.fields_by_name['characters_to_skip'].containing_oneof = _CHARSTOIGNORE.oneofs_by_name['characters'] -_CHARSTOIGNORE.oneofs_by_name['characters'].fields.append( - _CHARSTOIGNORE.fields_by_name['common_characters_to_ignore']) -_CHARSTOIGNORE.fields_by_name['common_characters_to_ignore'].containing_oneof = _CHARSTOIGNORE.oneofs_by_name['characters'] -_CHARACTERMASKCONFIG.fields_by_name['characters_to_ignore'].message_type = _CHARSTOIGNORE -_FIXEDSIZEBUCKETINGCONFIG.fields_by_name['lower_bound'].message_type = _VALUE -_FIXEDSIZEBUCKETINGCONFIG.fields_by_name['upper_bound'].message_type = _VALUE -_BUCKETINGCONFIG_BUCKET.fields_by_name['min'].message_type = _VALUE -_BUCKETINGCONFIG_BUCKET.fields_by_name['max'].message_type = _VALUE -_BUCKETINGCONFIG_BUCKET.fields_by_name['replacement_value'].message_type = _VALUE +_CHARSTOIGNORE.oneofs_by_name["characters"].fields.append( + _CHARSTOIGNORE.fields_by_name["characters_to_skip"] +) +_CHARSTOIGNORE.fields_by_name[ + "characters_to_skip" +].containing_oneof = _CHARSTOIGNORE.oneofs_by_name["characters"] +_CHARSTOIGNORE.oneofs_by_name["characters"].fields.append( + _CHARSTOIGNORE.fields_by_name["common_characters_to_ignore"] +) +_CHARSTOIGNORE.fields_by_name[ + "common_characters_to_ignore" +].containing_oneof = _CHARSTOIGNORE.oneofs_by_name["characters"] +_CHARACTERMASKCONFIG.fields_by_name[ + "characters_to_ignore" +].message_type = _CHARSTOIGNORE +_FIXEDSIZEBUCKETINGCONFIG.fields_by_name["lower_bound"].message_type = _VALUE +_FIXEDSIZEBUCKETINGCONFIG.fields_by_name["upper_bound"].message_type = _VALUE +_BUCKETINGCONFIG_BUCKET.fields_by_name["min"].message_type = _VALUE +_BUCKETINGCONFIG_BUCKET.fields_by_name["max"].message_type = _VALUE +_BUCKETINGCONFIG_BUCKET.fields_by_name["replacement_value"].message_type = _VALUE _BUCKETINGCONFIG_BUCKET.containing_type = _BUCKETINGCONFIG -_BUCKETINGCONFIG.fields_by_name['buckets'].message_type = _BUCKETINGCONFIG_BUCKET -_CRYPTOREPLACEFFXFPECONFIG.fields_by_name['crypto_key'].message_type = _CRYPTOKEY -_CRYPTOREPLACEFFXFPECONFIG.fields_by_name['context'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_CRYPTOREPLACEFFXFPECONFIG.fields_by_name['common_alphabet'].enum_type = _CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET -_CRYPTOREPLACEFFXFPECONFIG.fields_by_name['surrogate_info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET.containing_type = _CRYPTOREPLACEFFXFPECONFIG -_CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name['alphabet'].fields.append( - _CRYPTOREPLACEFFXFPECONFIG.fields_by_name['common_alphabet']) -_CRYPTOREPLACEFFXFPECONFIG.fields_by_name['common_alphabet'].containing_oneof = _CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name['alphabet'] -_CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name['alphabet'].fields.append( - _CRYPTOREPLACEFFXFPECONFIG.fields_by_name['custom_alphabet']) -_CRYPTOREPLACEFFXFPECONFIG.fields_by_name['custom_alphabet'].containing_oneof = _CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name['alphabet'] -_CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name['alphabet'].fields.append( - _CRYPTOREPLACEFFXFPECONFIG.fields_by_name['radix']) -_CRYPTOREPLACEFFXFPECONFIG.fields_by_name['radix'].containing_oneof = _CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name['alphabet'] -_CRYPTOKEY.fields_by_name['transient'].message_type = _TRANSIENTCRYPTOKEY -_CRYPTOKEY.fields_by_name['unwrapped'].message_type = _UNWRAPPEDCRYPTOKEY -_CRYPTOKEY.fields_by_name['kms_wrapped'].message_type = _KMSWRAPPEDCRYPTOKEY -_CRYPTOKEY.oneofs_by_name['source'].fields.append( - _CRYPTOKEY.fields_by_name['transient']) -_CRYPTOKEY.fields_by_name['transient'].containing_oneof = _CRYPTOKEY.oneofs_by_name['source'] -_CRYPTOKEY.oneofs_by_name['source'].fields.append( - _CRYPTOKEY.fields_by_name['unwrapped']) -_CRYPTOKEY.fields_by_name['unwrapped'].containing_oneof = _CRYPTOKEY.oneofs_by_name['source'] -_CRYPTOKEY.oneofs_by_name['source'].fields.append( - _CRYPTOKEY.fields_by_name['kms_wrapped']) -_CRYPTOKEY.fields_by_name['kms_wrapped'].containing_oneof = _CRYPTOKEY.oneofs_by_name['source'] -_DATESHIFTCONFIG.fields_by_name['context'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_DATESHIFTCONFIG.fields_by_name['crypto_key'].message_type = _CRYPTOKEY -_DATESHIFTCONFIG.oneofs_by_name['method'].fields.append( - _DATESHIFTCONFIG.fields_by_name['crypto_key']) -_DATESHIFTCONFIG.fields_by_name['crypto_key'].containing_oneof = _DATESHIFTCONFIG.oneofs_by_name['method'] -_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION.fields_by_name['info_types'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION.fields_by_name['primitive_transformation'].message_type = _PRIMITIVETRANSFORMATION -_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION.containing_type = _INFOTYPETRANSFORMATIONS -_INFOTYPETRANSFORMATIONS.fields_by_name['transformations'].message_type = _INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION -_FIELDTRANSFORMATION.fields_by_name['fields'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_FIELDTRANSFORMATION.fields_by_name['condition'].message_type = _RECORDCONDITION -_FIELDTRANSFORMATION.fields_by_name['primitive_transformation'].message_type = _PRIMITIVETRANSFORMATION -_FIELDTRANSFORMATION.fields_by_name['info_type_transformations'].message_type = _INFOTYPETRANSFORMATIONS -_FIELDTRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _FIELDTRANSFORMATION.fields_by_name['primitive_transformation']) -_FIELDTRANSFORMATION.fields_by_name['primitive_transformation'].containing_oneof = _FIELDTRANSFORMATION.oneofs_by_name['transformation'] -_FIELDTRANSFORMATION.oneofs_by_name['transformation'].fields.append( - _FIELDTRANSFORMATION.fields_by_name['info_type_transformations']) -_FIELDTRANSFORMATION.fields_by_name['info_type_transformations'].containing_oneof = _FIELDTRANSFORMATION.oneofs_by_name['transformation'] -_RECORDTRANSFORMATIONS.fields_by_name['field_transformations'].message_type = _FIELDTRANSFORMATION -_RECORDTRANSFORMATIONS.fields_by_name['record_suppressions'].message_type = _RECORDSUPPRESSION -_RECORDSUPPRESSION.fields_by_name['condition'].message_type = _RECORDCONDITION -_RECORDCONDITION_CONDITION.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_RECORDCONDITION_CONDITION.fields_by_name['operator'].enum_type = _RELATIONALOPERATOR -_RECORDCONDITION_CONDITION.fields_by_name['value'].message_type = _VALUE +_BUCKETINGCONFIG.fields_by_name["buckets"].message_type = _BUCKETINGCONFIG_BUCKET +_CRYPTOREPLACEFFXFPECONFIG.fields_by_name["crypto_key"].message_type = _CRYPTOKEY +_CRYPTOREPLACEFFXFPECONFIG.fields_by_name[ + "context" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_CRYPTOREPLACEFFXFPECONFIG.fields_by_name[ + "common_alphabet" +].enum_type = _CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET +_CRYPTOREPLACEFFXFPECONFIG.fields_by_name[ + "surrogate_info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_CRYPTOREPLACEFFXFPECONFIG_FFXCOMMONNATIVEALPHABET.containing_type = ( + _CRYPTOREPLACEFFXFPECONFIG +) +_CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name["alphabet"].fields.append( + _CRYPTOREPLACEFFXFPECONFIG.fields_by_name["common_alphabet"] +) +_CRYPTOREPLACEFFXFPECONFIG.fields_by_name[ + "common_alphabet" +].containing_oneof = _CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name["alphabet"] +_CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name["alphabet"].fields.append( + _CRYPTOREPLACEFFXFPECONFIG.fields_by_name["custom_alphabet"] +) +_CRYPTOREPLACEFFXFPECONFIG.fields_by_name[ + "custom_alphabet" +].containing_oneof = _CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name["alphabet"] +_CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name["alphabet"].fields.append( + _CRYPTOREPLACEFFXFPECONFIG.fields_by_name["radix"] +) +_CRYPTOREPLACEFFXFPECONFIG.fields_by_name[ + "radix" +].containing_oneof = _CRYPTOREPLACEFFXFPECONFIG.oneofs_by_name["alphabet"] +_CRYPTOKEY.fields_by_name["transient"].message_type = _TRANSIENTCRYPTOKEY +_CRYPTOKEY.fields_by_name["unwrapped"].message_type = _UNWRAPPEDCRYPTOKEY +_CRYPTOKEY.fields_by_name["kms_wrapped"].message_type = _KMSWRAPPEDCRYPTOKEY +_CRYPTOKEY.oneofs_by_name["source"].fields.append( + _CRYPTOKEY.fields_by_name["transient"] +) +_CRYPTOKEY.fields_by_name["transient"].containing_oneof = _CRYPTOKEY.oneofs_by_name[ + "source" +] +_CRYPTOKEY.oneofs_by_name["source"].fields.append( + _CRYPTOKEY.fields_by_name["unwrapped"] +) +_CRYPTOKEY.fields_by_name["unwrapped"].containing_oneof = _CRYPTOKEY.oneofs_by_name[ + "source" +] +_CRYPTOKEY.oneofs_by_name["source"].fields.append( + _CRYPTOKEY.fields_by_name["kms_wrapped"] +) +_CRYPTOKEY.fields_by_name["kms_wrapped"].containing_oneof = _CRYPTOKEY.oneofs_by_name[ + "source" +] +_DATESHIFTCONFIG.fields_by_name[ + "context" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_DATESHIFTCONFIG.fields_by_name["crypto_key"].message_type = _CRYPTOKEY +_DATESHIFTCONFIG.oneofs_by_name["method"].fields.append( + _DATESHIFTCONFIG.fields_by_name["crypto_key"] +) +_DATESHIFTCONFIG.fields_by_name[ + "crypto_key" +].containing_oneof = _DATESHIFTCONFIG.oneofs_by_name["method"] +_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION.fields_by_name[ + "info_types" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION.fields_by_name[ + "primitive_transformation" +].message_type = _PRIMITIVETRANSFORMATION +_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION.containing_type = ( + _INFOTYPETRANSFORMATIONS +) +_INFOTYPETRANSFORMATIONS.fields_by_name[ + "transformations" +].message_type = _INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION +_FIELDTRANSFORMATION.fields_by_name[ + "fields" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_FIELDTRANSFORMATION.fields_by_name["condition"].message_type = _RECORDCONDITION +_FIELDTRANSFORMATION.fields_by_name[ + "primitive_transformation" +].message_type = _PRIMITIVETRANSFORMATION +_FIELDTRANSFORMATION.fields_by_name[ + "info_type_transformations" +].message_type = _INFOTYPETRANSFORMATIONS +_FIELDTRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _FIELDTRANSFORMATION.fields_by_name["primitive_transformation"] +) +_FIELDTRANSFORMATION.fields_by_name[ + "primitive_transformation" +].containing_oneof = _FIELDTRANSFORMATION.oneofs_by_name["transformation"] +_FIELDTRANSFORMATION.oneofs_by_name["transformation"].fields.append( + _FIELDTRANSFORMATION.fields_by_name["info_type_transformations"] +) +_FIELDTRANSFORMATION.fields_by_name[ + "info_type_transformations" +].containing_oneof = _FIELDTRANSFORMATION.oneofs_by_name["transformation"] +_RECORDTRANSFORMATIONS.fields_by_name[ + "field_transformations" +].message_type = _FIELDTRANSFORMATION +_RECORDTRANSFORMATIONS.fields_by_name[ + "record_suppressions" +].message_type = _RECORDSUPPRESSION +_RECORDSUPPRESSION.fields_by_name["condition"].message_type = _RECORDCONDITION +_RECORDCONDITION_CONDITION.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_RECORDCONDITION_CONDITION.fields_by_name["operator"].enum_type = _RELATIONALOPERATOR +_RECORDCONDITION_CONDITION.fields_by_name["value"].message_type = _VALUE _RECORDCONDITION_CONDITION.containing_type = _RECORDCONDITION -_RECORDCONDITION_CONDITIONS.fields_by_name['conditions'].message_type = _RECORDCONDITION_CONDITION +_RECORDCONDITION_CONDITIONS.fields_by_name[ + "conditions" +].message_type = _RECORDCONDITION_CONDITION _RECORDCONDITION_CONDITIONS.containing_type = _RECORDCONDITION -_RECORDCONDITION_EXPRESSIONS.fields_by_name['logical_operator'].enum_type = _RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR -_RECORDCONDITION_EXPRESSIONS.fields_by_name['conditions'].message_type = _RECORDCONDITION_CONDITIONS +_RECORDCONDITION_EXPRESSIONS.fields_by_name[ + "logical_operator" +].enum_type = _RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR +_RECORDCONDITION_EXPRESSIONS.fields_by_name[ + "conditions" +].message_type = _RECORDCONDITION_CONDITIONS _RECORDCONDITION_EXPRESSIONS.containing_type = _RECORDCONDITION -_RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR.containing_type = _RECORDCONDITION_EXPRESSIONS -_RECORDCONDITION_EXPRESSIONS.oneofs_by_name['type'].fields.append( - _RECORDCONDITION_EXPRESSIONS.fields_by_name['conditions']) -_RECORDCONDITION_EXPRESSIONS.fields_by_name['conditions'].containing_oneof = _RECORDCONDITION_EXPRESSIONS.oneofs_by_name['type'] -_RECORDCONDITION.fields_by_name['expressions'].message_type = _RECORDCONDITION_EXPRESSIONS -_TRANSFORMATIONOVERVIEW.fields_by_name['transformation_summaries'].message_type = _TRANSFORMATIONSUMMARY -_TRANSFORMATIONSUMMARY_SUMMARYRESULT.fields_by_name['code'].enum_type = _TRANSFORMATIONSUMMARY_TRANSFORMATIONRESULTCODE +_RECORDCONDITION_EXPRESSIONS_LOGICALOPERATOR.containing_type = ( + _RECORDCONDITION_EXPRESSIONS +) +_RECORDCONDITION_EXPRESSIONS.oneofs_by_name["type"].fields.append( + _RECORDCONDITION_EXPRESSIONS.fields_by_name["conditions"] +) +_RECORDCONDITION_EXPRESSIONS.fields_by_name[ + "conditions" +].containing_oneof = _RECORDCONDITION_EXPRESSIONS.oneofs_by_name["type"] +_RECORDCONDITION.fields_by_name[ + "expressions" +].message_type = _RECORDCONDITION_EXPRESSIONS +_TRANSFORMATIONOVERVIEW.fields_by_name[ + "transformation_summaries" +].message_type = _TRANSFORMATIONSUMMARY +_TRANSFORMATIONSUMMARY_SUMMARYRESULT.fields_by_name[ + "code" +].enum_type = _TRANSFORMATIONSUMMARY_TRANSFORMATIONRESULTCODE _TRANSFORMATIONSUMMARY_SUMMARYRESULT.containing_type = _TRANSFORMATIONSUMMARY -_TRANSFORMATIONSUMMARY.fields_by_name['info_type'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE -_TRANSFORMATIONSUMMARY.fields_by_name['field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID -_TRANSFORMATIONSUMMARY.fields_by_name['transformation'].message_type = _PRIMITIVETRANSFORMATION -_TRANSFORMATIONSUMMARY.fields_by_name['field_transformations'].message_type = _FIELDTRANSFORMATION -_TRANSFORMATIONSUMMARY.fields_by_name['record_suppress'].message_type = _RECORDSUPPRESSION -_TRANSFORMATIONSUMMARY.fields_by_name['results'].message_type = _TRANSFORMATIONSUMMARY_SUMMARYRESULT +_TRANSFORMATIONSUMMARY.fields_by_name[ + "info_type" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._INFOTYPE +) +_TRANSFORMATIONSUMMARY.fields_by_name[ + "field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._FIELDID +) +_TRANSFORMATIONSUMMARY.fields_by_name[ + "transformation" +].message_type = _PRIMITIVETRANSFORMATION +_TRANSFORMATIONSUMMARY.fields_by_name[ + "field_transformations" +].message_type = _FIELDTRANSFORMATION +_TRANSFORMATIONSUMMARY.fields_by_name[ + "record_suppress" +].message_type = _RECORDSUPPRESSION +_TRANSFORMATIONSUMMARY.fields_by_name[ + "results" +].message_type = _TRANSFORMATIONSUMMARY_SUMMARYRESULT _TRANSFORMATIONSUMMARY_TRANSFORMATIONRESULTCODE.containing_type = _TRANSFORMATIONSUMMARY -_SCHEDULE.fields_by_name['recurrence_period_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_SCHEDULE.oneofs_by_name['option'].fields.append( - _SCHEDULE.fields_by_name['recurrence_period_duration']) -_SCHEDULE.fields_by_name['recurrence_period_duration'].containing_oneof = _SCHEDULE.oneofs_by_name['option'] -_INSPECTTEMPLATE.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_INSPECTTEMPLATE.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_INSPECTTEMPLATE.fields_by_name['inspect_config'].message_type = _INSPECTCONFIG -_DEIDENTIFYTEMPLATE.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEIDENTIFYTEMPLATE.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEIDENTIFYTEMPLATE.fields_by_name['deidentify_config'].message_type = _DEIDENTIFYCONFIG -_ERROR.fields_by_name['details'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ERROR.fields_by_name['timestamps'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOBTRIGGER_TRIGGER.fields_by_name['schedule'].message_type = _SCHEDULE +_SCHEDULE.fields_by_name[ + "recurrence_period_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_SCHEDULE.oneofs_by_name["option"].fields.append( + _SCHEDULE.fields_by_name["recurrence_period_duration"] +) +_SCHEDULE.fields_by_name[ + "recurrence_period_duration" +].containing_oneof = _SCHEDULE.oneofs_by_name["option"] +_INSPECTTEMPLATE.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_INSPECTTEMPLATE.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_INSPECTTEMPLATE.fields_by_name["inspect_config"].message_type = _INSPECTCONFIG +_DEIDENTIFYTEMPLATE.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEIDENTIFYTEMPLATE.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEIDENTIFYTEMPLATE.fields_by_name["deidentify_config"].message_type = _DEIDENTIFYCONFIG +_ERROR.fields_by_name["details"].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ERROR.fields_by_name[ + "timestamps" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOBTRIGGER_TRIGGER.fields_by_name["schedule"].message_type = _SCHEDULE _JOBTRIGGER_TRIGGER.containing_type = _JOBTRIGGER -_JOBTRIGGER_TRIGGER.oneofs_by_name['trigger'].fields.append( - _JOBTRIGGER_TRIGGER.fields_by_name['schedule']) -_JOBTRIGGER_TRIGGER.fields_by_name['schedule'].containing_oneof = _JOBTRIGGER_TRIGGER.oneofs_by_name['trigger'] -_JOBTRIGGER.fields_by_name['inspect_job'].message_type = _INSPECTJOBCONFIG -_JOBTRIGGER.fields_by_name['triggers'].message_type = _JOBTRIGGER_TRIGGER -_JOBTRIGGER.fields_by_name['errors'].message_type = _ERROR -_JOBTRIGGER.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOBTRIGGER.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOBTRIGGER.fields_by_name['last_run_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOBTRIGGER.fields_by_name['status'].enum_type = _JOBTRIGGER_STATUS +_JOBTRIGGER_TRIGGER.oneofs_by_name["trigger"].fields.append( + _JOBTRIGGER_TRIGGER.fields_by_name["schedule"] +) +_JOBTRIGGER_TRIGGER.fields_by_name[ + "schedule" +].containing_oneof = _JOBTRIGGER_TRIGGER.oneofs_by_name["trigger"] +_JOBTRIGGER.fields_by_name["inspect_job"].message_type = _INSPECTJOBCONFIG +_JOBTRIGGER.fields_by_name["triggers"].message_type = _JOBTRIGGER_TRIGGER +_JOBTRIGGER.fields_by_name["errors"].message_type = _ERROR +_JOBTRIGGER.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOBTRIGGER.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOBTRIGGER.fields_by_name[ + "last_run_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOBTRIGGER.fields_by_name["status"].enum_type = _JOBTRIGGER_STATUS _JOBTRIGGER_STATUS.containing_type = _JOBTRIGGER -_JOBTRIGGER.oneofs_by_name['job'].fields.append( - _JOBTRIGGER.fields_by_name['inspect_job']) -_JOBTRIGGER.fields_by_name['inspect_job'].containing_oneof = _JOBTRIGGER.oneofs_by_name['job'] -_ACTION_SAVEFINDINGS.fields_by_name['output_config'].message_type = _OUTPUTSTORAGECONFIG +_JOBTRIGGER.oneofs_by_name["job"].fields.append( + _JOBTRIGGER.fields_by_name["inspect_job"] +) +_JOBTRIGGER.fields_by_name["inspect_job"].containing_oneof = _JOBTRIGGER.oneofs_by_name[ + "job" +] +_ACTION_SAVEFINDINGS.fields_by_name["output_config"].message_type = _OUTPUTSTORAGECONFIG _ACTION_SAVEFINDINGS.containing_type = _ACTION _ACTION_PUBLISHTOPUBSUB.containing_type = _ACTION _ACTION_PUBLISHSUMMARYTOCSCC.containing_type = _ACTION -_ACTION.fields_by_name['save_findings'].message_type = _ACTION_SAVEFINDINGS -_ACTION.fields_by_name['pub_sub'].message_type = _ACTION_PUBLISHTOPUBSUB -_ACTION.fields_by_name['publish_summary_to_cscc'].message_type = _ACTION_PUBLISHSUMMARYTOCSCC -_ACTION.oneofs_by_name['action'].fields.append( - _ACTION.fields_by_name['save_findings']) -_ACTION.fields_by_name['save_findings'].containing_oneof = _ACTION.oneofs_by_name['action'] -_ACTION.oneofs_by_name['action'].fields.append( - _ACTION.fields_by_name['pub_sub']) -_ACTION.fields_by_name['pub_sub'].containing_oneof = _ACTION.oneofs_by_name['action'] -_ACTION.oneofs_by_name['action'].fields.append( - _ACTION.fields_by_name['publish_summary_to_cscc']) -_ACTION.fields_by_name['publish_summary_to_cscc'].containing_oneof = _ACTION.oneofs_by_name['action'] -_CREATEINSPECTTEMPLATEREQUEST.fields_by_name['inspect_template'].message_type = _INSPECTTEMPLATE -_UPDATEINSPECTTEMPLATEREQUEST.fields_by_name['inspect_template'].message_type = _INSPECTTEMPLATE -_UPDATEINSPECTTEMPLATEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTINSPECTTEMPLATESRESPONSE.fields_by_name['inspect_templates'].message_type = _INSPECTTEMPLATE -_CREATEJOBTRIGGERREQUEST.fields_by_name['job_trigger'].message_type = _JOBTRIGGER -_UPDATEJOBTRIGGERREQUEST.fields_by_name['job_trigger'].message_type = _JOBTRIGGER -_UPDATEJOBTRIGGERREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CREATEDLPJOBREQUEST.fields_by_name['inspect_job'].message_type = _INSPECTJOBCONFIG -_CREATEDLPJOBREQUEST.fields_by_name['risk_job'].message_type = _RISKANALYSISJOBCONFIG -_CREATEDLPJOBREQUEST.oneofs_by_name['job'].fields.append( - _CREATEDLPJOBREQUEST.fields_by_name['inspect_job']) -_CREATEDLPJOBREQUEST.fields_by_name['inspect_job'].containing_oneof = _CREATEDLPJOBREQUEST.oneofs_by_name['job'] -_CREATEDLPJOBREQUEST.oneofs_by_name['job'].fields.append( - _CREATEDLPJOBREQUEST.fields_by_name['risk_job']) -_CREATEDLPJOBREQUEST.fields_by_name['risk_job'].containing_oneof = _CREATEDLPJOBREQUEST.oneofs_by_name['job'] -_LISTJOBTRIGGERSRESPONSE.fields_by_name['job_triggers'].message_type = _JOBTRIGGER -_INSPECTJOBCONFIG.fields_by_name['storage_config'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._STORAGECONFIG -_INSPECTJOBCONFIG.fields_by_name['inspect_config'].message_type = _INSPECTCONFIG -_INSPECTJOBCONFIG.fields_by_name['actions'].message_type = _ACTION -_DLPJOB.fields_by_name['type'].enum_type = _DLPJOBTYPE -_DLPJOB.fields_by_name['state'].enum_type = _DLPJOB_JOBSTATE -_DLPJOB.fields_by_name['risk_details'].message_type = _ANALYZEDATASOURCERISKDETAILS -_DLPJOB.fields_by_name['inspect_details'].message_type = _INSPECTDATASOURCEDETAILS -_DLPJOB.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DLPJOB.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DLPJOB.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DLPJOB.fields_by_name['errors'].message_type = _ERROR +_ACTION.fields_by_name["save_findings"].message_type = _ACTION_SAVEFINDINGS +_ACTION.fields_by_name["pub_sub"].message_type = _ACTION_PUBLISHTOPUBSUB +_ACTION.fields_by_name[ + "publish_summary_to_cscc" +].message_type = _ACTION_PUBLISHSUMMARYTOCSCC +_ACTION.oneofs_by_name["action"].fields.append(_ACTION.fields_by_name["save_findings"]) +_ACTION.fields_by_name["save_findings"].containing_oneof = _ACTION.oneofs_by_name[ + "action" +] +_ACTION.oneofs_by_name["action"].fields.append(_ACTION.fields_by_name["pub_sub"]) +_ACTION.fields_by_name["pub_sub"].containing_oneof = _ACTION.oneofs_by_name["action"] +_ACTION.oneofs_by_name["action"].fields.append( + _ACTION.fields_by_name["publish_summary_to_cscc"] +) +_ACTION.fields_by_name[ + "publish_summary_to_cscc" +].containing_oneof = _ACTION.oneofs_by_name["action"] +_CREATEINSPECTTEMPLATEREQUEST.fields_by_name[ + "inspect_template" +].message_type = _INSPECTTEMPLATE +_UPDATEINSPECTTEMPLATEREQUEST.fields_by_name[ + "inspect_template" +].message_type = _INSPECTTEMPLATE +_UPDATEINSPECTTEMPLATEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTINSPECTTEMPLATESRESPONSE.fields_by_name[ + "inspect_templates" +].message_type = _INSPECTTEMPLATE +_CREATEJOBTRIGGERREQUEST.fields_by_name["job_trigger"].message_type = _JOBTRIGGER +_UPDATEJOBTRIGGERREQUEST.fields_by_name["job_trigger"].message_type = _JOBTRIGGER +_UPDATEJOBTRIGGERREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CREATEDLPJOBREQUEST.fields_by_name["inspect_job"].message_type = _INSPECTJOBCONFIG +_CREATEDLPJOBREQUEST.fields_by_name["risk_job"].message_type = _RISKANALYSISJOBCONFIG +_CREATEDLPJOBREQUEST.oneofs_by_name["job"].fields.append( + _CREATEDLPJOBREQUEST.fields_by_name["inspect_job"] +) +_CREATEDLPJOBREQUEST.fields_by_name[ + "inspect_job" +].containing_oneof = _CREATEDLPJOBREQUEST.oneofs_by_name["job"] +_CREATEDLPJOBREQUEST.oneofs_by_name["job"].fields.append( + _CREATEDLPJOBREQUEST.fields_by_name["risk_job"] +) +_CREATEDLPJOBREQUEST.fields_by_name[ + "risk_job" +].containing_oneof = _CREATEDLPJOBREQUEST.oneofs_by_name["job"] +_LISTJOBTRIGGERSRESPONSE.fields_by_name["job_triggers"].message_type = _JOBTRIGGER +_INSPECTJOBCONFIG.fields_by_name[ + "storage_config" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._STORAGECONFIG +) +_INSPECTJOBCONFIG.fields_by_name["inspect_config"].message_type = _INSPECTCONFIG +_INSPECTJOBCONFIG.fields_by_name["actions"].message_type = _ACTION +_DLPJOB.fields_by_name["type"].enum_type = _DLPJOBTYPE +_DLPJOB.fields_by_name["state"].enum_type = _DLPJOB_JOBSTATE +_DLPJOB.fields_by_name["risk_details"].message_type = _ANALYZEDATASOURCERISKDETAILS +_DLPJOB.fields_by_name["inspect_details"].message_type = _INSPECTDATASOURCEDETAILS +_DLPJOB.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DLPJOB.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DLPJOB.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DLPJOB.fields_by_name["errors"].message_type = _ERROR _DLPJOB_JOBSTATE.containing_type = _DLPJOB -_DLPJOB.oneofs_by_name['details'].fields.append( - _DLPJOB.fields_by_name['risk_details']) -_DLPJOB.fields_by_name['risk_details'].containing_oneof = _DLPJOB.oneofs_by_name['details'] -_DLPJOB.oneofs_by_name['details'].fields.append( - _DLPJOB.fields_by_name['inspect_details']) -_DLPJOB.fields_by_name['inspect_details'].containing_oneof = _DLPJOB.oneofs_by_name['details'] -_LISTDLPJOBSREQUEST.fields_by_name['type'].enum_type = _DLPJOBTYPE -_LISTDLPJOBSRESPONSE.fields_by_name['jobs'].message_type = _DLPJOB -_CREATEDEIDENTIFYTEMPLATEREQUEST.fields_by_name['deidentify_template'].message_type = _DEIDENTIFYTEMPLATE -_UPDATEDEIDENTIFYTEMPLATEREQUEST.fields_by_name['deidentify_template'].message_type = _DEIDENTIFYTEMPLATE -_UPDATEDEIDENTIFYTEMPLATEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTDEIDENTIFYTEMPLATESRESPONSE.fields_by_name['deidentify_templates'].message_type = _DEIDENTIFYTEMPLATE -_LARGECUSTOMDICTIONARYCONFIG.fields_by_name['output_path'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CLOUDSTORAGEPATH -_LARGECUSTOMDICTIONARYCONFIG.fields_by_name['cloud_storage_file_set'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CLOUDSTORAGEFILESET -_LARGECUSTOMDICTIONARYCONFIG.fields_by_name['big_query_field'].message_type = google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYFIELD -_LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name['source'].fields.append( - _LARGECUSTOMDICTIONARYCONFIG.fields_by_name['cloud_storage_file_set']) -_LARGECUSTOMDICTIONARYCONFIG.fields_by_name['cloud_storage_file_set'].containing_oneof = _LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name['source'] -_LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name['source'].fields.append( - _LARGECUSTOMDICTIONARYCONFIG.fields_by_name['big_query_field']) -_LARGECUSTOMDICTIONARYCONFIG.fields_by_name['big_query_field'].containing_oneof = _LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name['source'] -_STOREDINFOTYPECONFIG.fields_by_name['large_custom_dictionary'].message_type = _LARGECUSTOMDICTIONARYCONFIG -_STOREDINFOTYPECONFIG.oneofs_by_name['type'].fields.append( - _STOREDINFOTYPECONFIG.fields_by_name['large_custom_dictionary']) -_STOREDINFOTYPECONFIG.fields_by_name['large_custom_dictionary'].containing_oneof = _STOREDINFOTYPECONFIG.oneofs_by_name['type'] -_STOREDINFOTYPEVERSION.fields_by_name['config'].message_type = _STOREDINFOTYPECONFIG -_STOREDINFOTYPEVERSION.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_STOREDINFOTYPEVERSION.fields_by_name['state'].enum_type = _STOREDINFOTYPESTATE -_STOREDINFOTYPEVERSION.fields_by_name['errors'].message_type = _ERROR -_STOREDINFOTYPE.fields_by_name['current_version'].message_type = _STOREDINFOTYPEVERSION -_STOREDINFOTYPE.fields_by_name['pending_versions'].message_type = _STOREDINFOTYPEVERSION -_CREATESTOREDINFOTYPEREQUEST.fields_by_name['config'].message_type = _STOREDINFOTYPECONFIG -_UPDATESTOREDINFOTYPEREQUEST.fields_by_name['config'].message_type = _STOREDINFOTYPECONFIG -_UPDATESTOREDINFOTYPEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTSTOREDINFOTYPESRESPONSE.fields_by_name['stored_info_types'].message_type = _STOREDINFOTYPE -DESCRIPTOR.message_types_by_name['ExcludeInfoTypes'] = _EXCLUDEINFOTYPES -DESCRIPTOR.message_types_by_name['ExclusionRule'] = _EXCLUSIONRULE -DESCRIPTOR.message_types_by_name['InspectionRule'] = _INSPECTIONRULE -DESCRIPTOR.message_types_by_name['InspectionRuleSet'] = _INSPECTIONRULESET -DESCRIPTOR.message_types_by_name['InspectConfig'] = _INSPECTCONFIG -DESCRIPTOR.message_types_by_name['ByteContentItem'] = _BYTECONTENTITEM -DESCRIPTOR.message_types_by_name['ContentItem'] = _CONTENTITEM -DESCRIPTOR.message_types_by_name['Table'] = _TABLE -DESCRIPTOR.message_types_by_name['InspectResult'] = _INSPECTRESULT -DESCRIPTOR.message_types_by_name['Finding'] = _FINDING -DESCRIPTOR.message_types_by_name['Location'] = _LOCATION -DESCRIPTOR.message_types_by_name['ContentLocation'] = _CONTENTLOCATION -DESCRIPTOR.message_types_by_name['DocumentLocation'] = _DOCUMENTLOCATION -DESCRIPTOR.message_types_by_name['RecordLocation'] = _RECORDLOCATION -DESCRIPTOR.message_types_by_name['TableLocation'] = _TABLELOCATION -DESCRIPTOR.message_types_by_name['Range'] = _RANGE -DESCRIPTOR.message_types_by_name['ImageLocation'] = _IMAGELOCATION -DESCRIPTOR.message_types_by_name['BoundingBox'] = _BOUNDINGBOX -DESCRIPTOR.message_types_by_name['RedactImageRequest'] = _REDACTIMAGEREQUEST -DESCRIPTOR.message_types_by_name['Color'] = _COLOR -DESCRIPTOR.message_types_by_name['RedactImageResponse'] = _REDACTIMAGERESPONSE -DESCRIPTOR.message_types_by_name['DeidentifyContentRequest'] = _DEIDENTIFYCONTENTREQUEST -DESCRIPTOR.message_types_by_name['DeidentifyContentResponse'] = _DEIDENTIFYCONTENTRESPONSE -DESCRIPTOR.message_types_by_name['ReidentifyContentRequest'] = _REIDENTIFYCONTENTREQUEST -DESCRIPTOR.message_types_by_name['ReidentifyContentResponse'] = _REIDENTIFYCONTENTRESPONSE -DESCRIPTOR.message_types_by_name['InspectContentRequest'] = _INSPECTCONTENTREQUEST -DESCRIPTOR.message_types_by_name['InspectContentResponse'] = _INSPECTCONTENTRESPONSE -DESCRIPTOR.message_types_by_name['OutputStorageConfig'] = _OUTPUTSTORAGECONFIG -DESCRIPTOR.message_types_by_name['InfoTypeStats'] = _INFOTYPESTATS -DESCRIPTOR.message_types_by_name['InspectDataSourceDetails'] = _INSPECTDATASOURCEDETAILS -DESCRIPTOR.message_types_by_name['InfoTypeDescription'] = _INFOTYPEDESCRIPTION -DESCRIPTOR.message_types_by_name['ListInfoTypesRequest'] = _LISTINFOTYPESREQUEST -DESCRIPTOR.message_types_by_name['ListInfoTypesResponse'] = _LISTINFOTYPESRESPONSE -DESCRIPTOR.message_types_by_name['RiskAnalysisJobConfig'] = _RISKANALYSISJOBCONFIG -DESCRIPTOR.message_types_by_name['QuasiId'] = _QUASIID -DESCRIPTOR.message_types_by_name['StatisticalTable'] = _STATISTICALTABLE -DESCRIPTOR.message_types_by_name['PrivacyMetric'] = _PRIVACYMETRIC -DESCRIPTOR.message_types_by_name['AnalyzeDataSourceRiskDetails'] = _ANALYZEDATASOURCERISKDETAILS -DESCRIPTOR.message_types_by_name['ValueFrequency'] = _VALUEFREQUENCY -DESCRIPTOR.message_types_by_name['Value'] = _VALUE -DESCRIPTOR.message_types_by_name['QuoteInfo'] = _QUOTEINFO -DESCRIPTOR.message_types_by_name['DateTime'] = _DATETIME -DESCRIPTOR.message_types_by_name['DeidentifyConfig'] = _DEIDENTIFYCONFIG -DESCRIPTOR.message_types_by_name['PrimitiveTransformation'] = _PRIMITIVETRANSFORMATION -DESCRIPTOR.message_types_by_name['TimePartConfig'] = _TIMEPARTCONFIG -DESCRIPTOR.message_types_by_name['CryptoHashConfig'] = _CRYPTOHASHCONFIG -DESCRIPTOR.message_types_by_name['ReplaceValueConfig'] = _REPLACEVALUECONFIG -DESCRIPTOR.message_types_by_name['ReplaceWithInfoTypeConfig'] = _REPLACEWITHINFOTYPECONFIG -DESCRIPTOR.message_types_by_name['RedactConfig'] = _REDACTCONFIG -DESCRIPTOR.message_types_by_name['CharsToIgnore'] = _CHARSTOIGNORE -DESCRIPTOR.message_types_by_name['CharacterMaskConfig'] = _CHARACTERMASKCONFIG -DESCRIPTOR.message_types_by_name['FixedSizeBucketingConfig'] = _FIXEDSIZEBUCKETINGCONFIG -DESCRIPTOR.message_types_by_name['BucketingConfig'] = _BUCKETINGCONFIG -DESCRIPTOR.message_types_by_name['CryptoReplaceFfxFpeConfig'] = _CRYPTOREPLACEFFXFPECONFIG -DESCRIPTOR.message_types_by_name['CryptoKey'] = _CRYPTOKEY -DESCRIPTOR.message_types_by_name['TransientCryptoKey'] = _TRANSIENTCRYPTOKEY -DESCRIPTOR.message_types_by_name['UnwrappedCryptoKey'] = _UNWRAPPEDCRYPTOKEY -DESCRIPTOR.message_types_by_name['KmsWrappedCryptoKey'] = _KMSWRAPPEDCRYPTOKEY -DESCRIPTOR.message_types_by_name['DateShiftConfig'] = _DATESHIFTCONFIG -DESCRIPTOR.message_types_by_name['InfoTypeTransformations'] = _INFOTYPETRANSFORMATIONS -DESCRIPTOR.message_types_by_name['FieldTransformation'] = _FIELDTRANSFORMATION -DESCRIPTOR.message_types_by_name['RecordTransformations'] = _RECORDTRANSFORMATIONS -DESCRIPTOR.message_types_by_name['RecordSuppression'] = _RECORDSUPPRESSION -DESCRIPTOR.message_types_by_name['RecordCondition'] = _RECORDCONDITION -DESCRIPTOR.message_types_by_name['TransformationOverview'] = _TRANSFORMATIONOVERVIEW -DESCRIPTOR.message_types_by_name['TransformationSummary'] = _TRANSFORMATIONSUMMARY -DESCRIPTOR.message_types_by_name['Schedule'] = _SCHEDULE -DESCRIPTOR.message_types_by_name['InspectTemplate'] = _INSPECTTEMPLATE -DESCRIPTOR.message_types_by_name['DeidentifyTemplate'] = _DEIDENTIFYTEMPLATE -DESCRIPTOR.message_types_by_name['Error'] = _ERROR -DESCRIPTOR.message_types_by_name['JobTrigger'] = _JOBTRIGGER -DESCRIPTOR.message_types_by_name['Action'] = _ACTION -DESCRIPTOR.message_types_by_name['CreateInspectTemplateRequest'] = _CREATEINSPECTTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['UpdateInspectTemplateRequest'] = _UPDATEINSPECTTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['GetInspectTemplateRequest'] = _GETINSPECTTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['ListInspectTemplatesRequest'] = _LISTINSPECTTEMPLATESREQUEST -DESCRIPTOR.message_types_by_name['ListInspectTemplatesResponse'] = _LISTINSPECTTEMPLATESRESPONSE -DESCRIPTOR.message_types_by_name['DeleteInspectTemplateRequest'] = _DELETEINSPECTTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['CreateJobTriggerRequest'] = _CREATEJOBTRIGGERREQUEST -DESCRIPTOR.message_types_by_name['UpdateJobTriggerRequest'] = _UPDATEJOBTRIGGERREQUEST -DESCRIPTOR.message_types_by_name['GetJobTriggerRequest'] = _GETJOBTRIGGERREQUEST -DESCRIPTOR.message_types_by_name['CreateDlpJobRequest'] = _CREATEDLPJOBREQUEST -DESCRIPTOR.message_types_by_name['ListJobTriggersRequest'] = _LISTJOBTRIGGERSREQUEST -DESCRIPTOR.message_types_by_name['ListJobTriggersResponse'] = _LISTJOBTRIGGERSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteJobTriggerRequest'] = _DELETEJOBTRIGGERREQUEST -DESCRIPTOR.message_types_by_name['InspectJobConfig'] = _INSPECTJOBCONFIG -DESCRIPTOR.message_types_by_name['DlpJob'] = _DLPJOB -DESCRIPTOR.message_types_by_name['GetDlpJobRequest'] = _GETDLPJOBREQUEST -DESCRIPTOR.message_types_by_name['ListDlpJobsRequest'] = _LISTDLPJOBSREQUEST -DESCRIPTOR.message_types_by_name['ListDlpJobsResponse'] = _LISTDLPJOBSRESPONSE -DESCRIPTOR.message_types_by_name['CancelDlpJobRequest'] = _CANCELDLPJOBREQUEST -DESCRIPTOR.message_types_by_name['DeleteDlpJobRequest'] = _DELETEDLPJOBREQUEST -DESCRIPTOR.message_types_by_name['CreateDeidentifyTemplateRequest'] = _CREATEDEIDENTIFYTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['UpdateDeidentifyTemplateRequest'] = _UPDATEDEIDENTIFYTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['GetDeidentifyTemplateRequest'] = _GETDEIDENTIFYTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['ListDeidentifyTemplatesRequest'] = _LISTDEIDENTIFYTEMPLATESREQUEST -DESCRIPTOR.message_types_by_name['ListDeidentifyTemplatesResponse'] = _LISTDEIDENTIFYTEMPLATESRESPONSE -DESCRIPTOR.message_types_by_name['DeleteDeidentifyTemplateRequest'] = _DELETEDEIDENTIFYTEMPLATEREQUEST -DESCRIPTOR.message_types_by_name['LargeCustomDictionaryConfig'] = _LARGECUSTOMDICTIONARYCONFIG -DESCRIPTOR.message_types_by_name['StoredInfoTypeConfig'] = _STOREDINFOTYPECONFIG -DESCRIPTOR.message_types_by_name['StoredInfoTypeVersion'] = _STOREDINFOTYPEVERSION -DESCRIPTOR.message_types_by_name['StoredInfoType'] = _STOREDINFOTYPE -DESCRIPTOR.message_types_by_name['CreateStoredInfoTypeRequest'] = _CREATESTOREDINFOTYPEREQUEST -DESCRIPTOR.message_types_by_name['UpdateStoredInfoTypeRequest'] = _UPDATESTOREDINFOTYPEREQUEST -DESCRIPTOR.message_types_by_name['GetStoredInfoTypeRequest'] = _GETSTOREDINFOTYPEREQUEST -DESCRIPTOR.message_types_by_name['ListStoredInfoTypesRequest'] = _LISTSTOREDINFOTYPESREQUEST -DESCRIPTOR.message_types_by_name['ListStoredInfoTypesResponse'] = _LISTSTOREDINFOTYPESRESPONSE -DESCRIPTOR.message_types_by_name['DeleteStoredInfoTypeRequest'] = _DELETESTOREDINFOTYPEREQUEST -DESCRIPTOR.enum_types_by_name['ContentOption'] = _CONTENTOPTION -DESCRIPTOR.enum_types_by_name['MatchingType'] = _MATCHINGTYPE -DESCRIPTOR.enum_types_by_name['InfoTypeSupportedBy'] = _INFOTYPESUPPORTEDBY -DESCRIPTOR.enum_types_by_name['RelationalOperator'] = _RELATIONALOPERATOR -DESCRIPTOR.enum_types_by_name['DlpJobType'] = _DLPJOBTYPE -DESCRIPTOR.enum_types_by_name['StoredInfoTypeState'] = _STOREDINFOTYPESTATE +_DLPJOB.oneofs_by_name["details"].fields.append(_DLPJOB.fields_by_name["risk_details"]) +_DLPJOB.fields_by_name["risk_details"].containing_oneof = _DLPJOB.oneofs_by_name[ + "details" +] +_DLPJOB.oneofs_by_name["details"].fields.append( + _DLPJOB.fields_by_name["inspect_details"] +) +_DLPJOB.fields_by_name["inspect_details"].containing_oneof = _DLPJOB.oneofs_by_name[ + "details" +] +_LISTDLPJOBSREQUEST.fields_by_name["type"].enum_type = _DLPJOBTYPE +_LISTDLPJOBSRESPONSE.fields_by_name["jobs"].message_type = _DLPJOB +_CREATEDEIDENTIFYTEMPLATEREQUEST.fields_by_name[ + "deidentify_template" +].message_type = _DEIDENTIFYTEMPLATE +_UPDATEDEIDENTIFYTEMPLATEREQUEST.fields_by_name[ + "deidentify_template" +].message_type = _DEIDENTIFYTEMPLATE +_UPDATEDEIDENTIFYTEMPLATEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTDEIDENTIFYTEMPLATESRESPONSE.fields_by_name[ + "deidentify_templates" +].message_type = _DEIDENTIFYTEMPLATE +_LARGECUSTOMDICTIONARYCONFIG.fields_by_name[ + "output_path" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CLOUDSTORAGEPATH +) +_LARGECUSTOMDICTIONARYCONFIG.fields_by_name[ + "cloud_storage_file_set" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._CLOUDSTORAGEFILESET +) +_LARGECUSTOMDICTIONARYCONFIG.fields_by_name[ + "big_query_field" +].message_type = ( + google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_storage__pb2._BIGQUERYFIELD +) +_LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name["source"].fields.append( + _LARGECUSTOMDICTIONARYCONFIG.fields_by_name["cloud_storage_file_set"] +) +_LARGECUSTOMDICTIONARYCONFIG.fields_by_name[ + "cloud_storage_file_set" +].containing_oneof = _LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name["source"] +_LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name["source"].fields.append( + _LARGECUSTOMDICTIONARYCONFIG.fields_by_name["big_query_field"] +) +_LARGECUSTOMDICTIONARYCONFIG.fields_by_name[ + "big_query_field" +].containing_oneof = _LARGECUSTOMDICTIONARYCONFIG.oneofs_by_name["source"] +_STOREDINFOTYPECONFIG.fields_by_name[ + "large_custom_dictionary" +].message_type = _LARGECUSTOMDICTIONARYCONFIG +_STOREDINFOTYPECONFIG.oneofs_by_name["type"].fields.append( + _STOREDINFOTYPECONFIG.fields_by_name["large_custom_dictionary"] +) +_STOREDINFOTYPECONFIG.fields_by_name[ + "large_custom_dictionary" +].containing_oneof = _STOREDINFOTYPECONFIG.oneofs_by_name["type"] +_STOREDINFOTYPEVERSION.fields_by_name["config"].message_type = _STOREDINFOTYPECONFIG +_STOREDINFOTYPEVERSION.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_STOREDINFOTYPEVERSION.fields_by_name["state"].enum_type = _STOREDINFOTYPESTATE +_STOREDINFOTYPEVERSION.fields_by_name["errors"].message_type = _ERROR +_STOREDINFOTYPE.fields_by_name["current_version"].message_type = _STOREDINFOTYPEVERSION +_STOREDINFOTYPE.fields_by_name["pending_versions"].message_type = _STOREDINFOTYPEVERSION +_CREATESTOREDINFOTYPEREQUEST.fields_by_name[ + "config" +].message_type = _STOREDINFOTYPECONFIG +_UPDATESTOREDINFOTYPEREQUEST.fields_by_name[ + "config" +].message_type = _STOREDINFOTYPECONFIG +_UPDATESTOREDINFOTYPEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTSTOREDINFOTYPESRESPONSE.fields_by_name[ + "stored_info_types" +].message_type = _STOREDINFOTYPE +DESCRIPTOR.message_types_by_name["ExcludeInfoTypes"] = _EXCLUDEINFOTYPES +DESCRIPTOR.message_types_by_name["ExclusionRule"] = _EXCLUSIONRULE +DESCRIPTOR.message_types_by_name["InspectionRule"] = _INSPECTIONRULE +DESCRIPTOR.message_types_by_name["InspectionRuleSet"] = _INSPECTIONRULESET +DESCRIPTOR.message_types_by_name["InspectConfig"] = _INSPECTCONFIG +DESCRIPTOR.message_types_by_name["ByteContentItem"] = _BYTECONTENTITEM +DESCRIPTOR.message_types_by_name["ContentItem"] = _CONTENTITEM +DESCRIPTOR.message_types_by_name["Table"] = _TABLE +DESCRIPTOR.message_types_by_name["InspectResult"] = _INSPECTRESULT +DESCRIPTOR.message_types_by_name["Finding"] = _FINDING +DESCRIPTOR.message_types_by_name["Location"] = _LOCATION +DESCRIPTOR.message_types_by_name["ContentLocation"] = _CONTENTLOCATION +DESCRIPTOR.message_types_by_name["DocumentLocation"] = _DOCUMENTLOCATION +DESCRIPTOR.message_types_by_name["RecordLocation"] = _RECORDLOCATION +DESCRIPTOR.message_types_by_name["TableLocation"] = _TABLELOCATION +DESCRIPTOR.message_types_by_name["Range"] = _RANGE +DESCRIPTOR.message_types_by_name["ImageLocation"] = _IMAGELOCATION +DESCRIPTOR.message_types_by_name["BoundingBox"] = _BOUNDINGBOX +DESCRIPTOR.message_types_by_name["RedactImageRequest"] = _REDACTIMAGEREQUEST +DESCRIPTOR.message_types_by_name["Color"] = _COLOR +DESCRIPTOR.message_types_by_name["RedactImageResponse"] = _REDACTIMAGERESPONSE +DESCRIPTOR.message_types_by_name["DeidentifyContentRequest"] = _DEIDENTIFYCONTENTREQUEST +DESCRIPTOR.message_types_by_name[ + "DeidentifyContentResponse" +] = _DEIDENTIFYCONTENTRESPONSE +DESCRIPTOR.message_types_by_name["ReidentifyContentRequest"] = _REIDENTIFYCONTENTREQUEST +DESCRIPTOR.message_types_by_name[ + "ReidentifyContentResponse" +] = _REIDENTIFYCONTENTRESPONSE +DESCRIPTOR.message_types_by_name["InspectContentRequest"] = _INSPECTCONTENTREQUEST +DESCRIPTOR.message_types_by_name["InspectContentResponse"] = _INSPECTCONTENTRESPONSE +DESCRIPTOR.message_types_by_name["OutputStorageConfig"] = _OUTPUTSTORAGECONFIG +DESCRIPTOR.message_types_by_name["InfoTypeStats"] = _INFOTYPESTATS +DESCRIPTOR.message_types_by_name["InspectDataSourceDetails"] = _INSPECTDATASOURCEDETAILS +DESCRIPTOR.message_types_by_name["InfoTypeDescription"] = _INFOTYPEDESCRIPTION +DESCRIPTOR.message_types_by_name["ListInfoTypesRequest"] = _LISTINFOTYPESREQUEST +DESCRIPTOR.message_types_by_name["ListInfoTypesResponse"] = _LISTINFOTYPESRESPONSE +DESCRIPTOR.message_types_by_name["RiskAnalysisJobConfig"] = _RISKANALYSISJOBCONFIG +DESCRIPTOR.message_types_by_name["QuasiId"] = _QUASIID +DESCRIPTOR.message_types_by_name["StatisticalTable"] = _STATISTICALTABLE +DESCRIPTOR.message_types_by_name["PrivacyMetric"] = _PRIVACYMETRIC +DESCRIPTOR.message_types_by_name[ + "AnalyzeDataSourceRiskDetails" +] = _ANALYZEDATASOURCERISKDETAILS +DESCRIPTOR.message_types_by_name["ValueFrequency"] = _VALUEFREQUENCY +DESCRIPTOR.message_types_by_name["Value"] = _VALUE +DESCRIPTOR.message_types_by_name["QuoteInfo"] = _QUOTEINFO +DESCRIPTOR.message_types_by_name["DateTime"] = _DATETIME +DESCRIPTOR.message_types_by_name["DeidentifyConfig"] = _DEIDENTIFYCONFIG +DESCRIPTOR.message_types_by_name["PrimitiveTransformation"] = _PRIMITIVETRANSFORMATION +DESCRIPTOR.message_types_by_name["TimePartConfig"] = _TIMEPARTCONFIG +DESCRIPTOR.message_types_by_name["CryptoHashConfig"] = _CRYPTOHASHCONFIG +DESCRIPTOR.message_types_by_name["ReplaceValueConfig"] = _REPLACEVALUECONFIG +DESCRIPTOR.message_types_by_name[ + "ReplaceWithInfoTypeConfig" +] = _REPLACEWITHINFOTYPECONFIG +DESCRIPTOR.message_types_by_name["RedactConfig"] = _REDACTCONFIG +DESCRIPTOR.message_types_by_name["CharsToIgnore"] = _CHARSTOIGNORE +DESCRIPTOR.message_types_by_name["CharacterMaskConfig"] = _CHARACTERMASKCONFIG +DESCRIPTOR.message_types_by_name["FixedSizeBucketingConfig"] = _FIXEDSIZEBUCKETINGCONFIG +DESCRIPTOR.message_types_by_name["BucketingConfig"] = _BUCKETINGCONFIG +DESCRIPTOR.message_types_by_name[ + "CryptoReplaceFfxFpeConfig" +] = _CRYPTOREPLACEFFXFPECONFIG +DESCRIPTOR.message_types_by_name["CryptoKey"] = _CRYPTOKEY +DESCRIPTOR.message_types_by_name["TransientCryptoKey"] = _TRANSIENTCRYPTOKEY +DESCRIPTOR.message_types_by_name["UnwrappedCryptoKey"] = _UNWRAPPEDCRYPTOKEY +DESCRIPTOR.message_types_by_name["KmsWrappedCryptoKey"] = _KMSWRAPPEDCRYPTOKEY +DESCRIPTOR.message_types_by_name["DateShiftConfig"] = _DATESHIFTCONFIG +DESCRIPTOR.message_types_by_name["InfoTypeTransformations"] = _INFOTYPETRANSFORMATIONS +DESCRIPTOR.message_types_by_name["FieldTransformation"] = _FIELDTRANSFORMATION +DESCRIPTOR.message_types_by_name["RecordTransformations"] = _RECORDTRANSFORMATIONS +DESCRIPTOR.message_types_by_name["RecordSuppression"] = _RECORDSUPPRESSION +DESCRIPTOR.message_types_by_name["RecordCondition"] = _RECORDCONDITION +DESCRIPTOR.message_types_by_name["TransformationOverview"] = _TRANSFORMATIONOVERVIEW +DESCRIPTOR.message_types_by_name["TransformationSummary"] = _TRANSFORMATIONSUMMARY +DESCRIPTOR.message_types_by_name["Schedule"] = _SCHEDULE +DESCRIPTOR.message_types_by_name["InspectTemplate"] = _INSPECTTEMPLATE +DESCRIPTOR.message_types_by_name["DeidentifyTemplate"] = _DEIDENTIFYTEMPLATE +DESCRIPTOR.message_types_by_name["Error"] = _ERROR +DESCRIPTOR.message_types_by_name["JobTrigger"] = _JOBTRIGGER +DESCRIPTOR.message_types_by_name["Action"] = _ACTION +DESCRIPTOR.message_types_by_name[ + "CreateInspectTemplateRequest" +] = _CREATEINSPECTTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateInspectTemplateRequest" +] = _UPDATEINSPECTTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "GetInspectTemplateRequest" +] = _GETINSPECTTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "ListInspectTemplatesRequest" +] = _LISTINSPECTTEMPLATESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListInspectTemplatesResponse" +] = _LISTINSPECTTEMPLATESRESPONSE +DESCRIPTOR.message_types_by_name[ + "DeleteInspectTemplateRequest" +] = _DELETEINSPECTTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name["CreateJobTriggerRequest"] = _CREATEJOBTRIGGERREQUEST +DESCRIPTOR.message_types_by_name["UpdateJobTriggerRequest"] = _UPDATEJOBTRIGGERREQUEST +DESCRIPTOR.message_types_by_name["GetJobTriggerRequest"] = _GETJOBTRIGGERREQUEST +DESCRIPTOR.message_types_by_name["CreateDlpJobRequest"] = _CREATEDLPJOBREQUEST +DESCRIPTOR.message_types_by_name["ListJobTriggersRequest"] = _LISTJOBTRIGGERSREQUEST +DESCRIPTOR.message_types_by_name["ListJobTriggersResponse"] = _LISTJOBTRIGGERSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteJobTriggerRequest"] = _DELETEJOBTRIGGERREQUEST +DESCRIPTOR.message_types_by_name["InspectJobConfig"] = _INSPECTJOBCONFIG +DESCRIPTOR.message_types_by_name["DlpJob"] = _DLPJOB +DESCRIPTOR.message_types_by_name["GetDlpJobRequest"] = _GETDLPJOBREQUEST +DESCRIPTOR.message_types_by_name["ListDlpJobsRequest"] = _LISTDLPJOBSREQUEST +DESCRIPTOR.message_types_by_name["ListDlpJobsResponse"] = _LISTDLPJOBSRESPONSE +DESCRIPTOR.message_types_by_name["CancelDlpJobRequest"] = _CANCELDLPJOBREQUEST +DESCRIPTOR.message_types_by_name["DeleteDlpJobRequest"] = _DELETEDLPJOBREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateDeidentifyTemplateRequest" +] = _CREATEDEIDENTIFYTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateDeidentifyTemplateRequest" +] = _UPDATEDEIDENTIFYTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "GetDeidentifyTemplateRequest" +] = _GETDEIDENTIFYTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "ListDeidentifyTemplatesRequest" +] = _LISTDEIDENTIFYTEMPLATESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListDeidentifyTemplatesResponse" +] = _LISTDEIDENTIFYTEMPLATESRESPONSE +DESCRIPTOR.message_types_by_name[ + "DeleteDeidentifyTemplateRequest" +] = _DELETEDEIDENTIFYTEMPLATEREQUEST +DESCRIPTOR.message_types_by_name[ + "LargeCustomDictionaryConfig" +] = _LARGECUSTOMDICTIONARYCONFIG +DESCRIPTOR.message_types_by_name["StoredInfoTypeConfig"] = _STOREDINFOTYPECONFIG +DESCRIPTOR.message_types_by_name["StoredInfoTypeVersion"] = _STOREDINFOTYPEVERSION +DESCRIPTOR.message_types_by_name["StoredInfoType"] = _STOREDINFOTYPE +DESCRIPTOR.message_types_by_name[ + "CreateStoredInfoTypeRequest" +] = _CREATESTOREDINFOTYPEREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateStoredInfoTypeRequest" +] = _UPDATESTOREDINFOTYPEREQUEST +DESCRIPTOR.message_types_by_name["GetStoredInfoTypeRequest"] = _GETSTOREDINFOTYPEREQUEST +DESCRIPTOR.message_types_by_name[ + "ListStoredInfoTypesRequest" +] = _LISTSTOREDINFOTYPESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListStoredInfoTypesResponse" +] = _LISTSTOREDINFOTYPESRESPONSE +DESCRIPTOR.message_types_by_name[ + "DeleteStoredInfoTypeRequest" +] = _DELETESTOREDINFOTYPEREQUEST +DESCRIPTOR.enum_types_by_name["ContentOption"] = _CONTENTOPTION +DESCRIPTOR.enum_types_by_name["MatchingType"] = _MATCHINGTYPE +DESCRIPTOR.enum_types_by_name["InfoTypeSupportedBy"] = _INFOTYPESUPPORTEDBY +DESCRIPTOR.enum_types_by_name["RelationalOperator"] = _RELATIONALOPERATOR +DESCRIPTOR.enum_types_by_name["DlpJobType"] = _DLPJOBTYPE +DESCRIPTOR.enum_types_by_name["StoredInfoTypeState"] = _STOREDINFOTYPESTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ExcludeInfoTypes = _reflection.GeneratedProtocolMessageType('ExcludeInfoTypes', (_message.Message,), dict( - DESCRIPTOR = _EXCLUDEINFOTYPES, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """List of exclude infoTypes. +ExcludeInfoTypes = _reflection.GeneratedProtocolMessageType( + "ExcludeInfoTypes", + (_message.Message,), + dict( + DESCRIPTOR=_EXCLUDEINFOTYPES, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""List of exclude infoTypes. Attributes: @@ -7836,15 +12873,18 @@ "555-222-2222@example.org" to generate only a single finding, namely email address. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ExcludeInfoTypes) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ExcludeInfoTypes) + ), +) _sym_db.RegisterMessage(ExcludeInfoTypes) -ExclusionRule = _reflection.GeneratedProtocolMessageType('ExclusionRule', (_message.Message,), dict( - DESCRIPTOR = _EXCLUSIONRULE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The rule that specifies conditions when findings of infoTypes specified +ExclusionRule = _reflection.GeneratedProtocolMessageType( + "ExclusionRule", + (_message.Message,), + dict( + DESCRIPTOR=_EXCLUSIONRULE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The rule that specifies conditions when findings of infoTypes specified in ``InspectionRuleSet`` are removed from results. @@ -7859,15 +12899,18 @@ How the rule is applied, see MatchingType documentation for details. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ExclusionRule) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ExclusionRule) + ), +) _sym_db.RegisterMessage(ExclusionRule) -InspectionRule = _reflection.GeneratedProtocolMessageType('InspectionRule', (_message.Message,), dict( - DESCRIPTOR = _INSPECTIONRULE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A single inspection rule to be applied to infoTypes, specified in +InspectionRule = _reflection.GeneratedProtocolMessageType( + "InspectionRule", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTIONRULE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A single inspection rule to be applied to infoTypes, specified in ``InspectionRuleSet``. @@ -7877,15 +12920,18 @@ exclusion_rule: Exclusion rule. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectionRule) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectionRule) + ), +) _sym_db.RegisterMessage(InspectionRule) -InspectionRuleSet = _reflection.GeneratedProtocolMessageType('InspectionRuleSet', (_message.Message,), dict( - DESCRIPTOR = _INSPECTIONRULESET, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Rule set for modifying a set of infoTypes to alter behavior under +InspectionRuleSet = _reflection.GeneratedProtocolMessageType( + "InspectionRuleSet", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTIONRULESET, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Rule set for modifying a set of infoTypes to alter behavior under certain circumstances, depending on the specific details of the rules within the set. @@ -7897,19 +12943,26 @@ Set of rules to be applied to infoTypes. The rules are applied in order. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectionRuleSet) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectionRuleSet) + ), +) _sym_db.RegisterMessage(InspectionRuleSet) -InspectConfig = _reflection.GeneratedProtocolMessageType('InspectConfig', (_message.Message,), dict( - - FindingLimits = _reflection.GeneratedProtocolMessageType('FindingLimits', (_message.Message,), dict( - - InfoTypeLimit = _reflection.GeneratedProtocolMessageType('InfoTypeLimit', (_message.Message,), dict( - DESCRIPTOR = _INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Max findings configuration per infoType, per content item or long +InspectConfig = _reflection.GeneratedProtocolMessageType( + "InspectConfig", + (_message.Message,), + dict( + FindingLimits=_reflection.GeneratedProtocolMessageType( + "FindingLimits", + (_message.Message,), + dict( + InfoTypeLimit=_reflection.GeneratedProtocolMessageType( + "InfoTypeLimit", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTCONFIG_FINDINGLIMITS_INFOTYPELIMIT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Max findings configuration per infoType, per content item or long running DlpJob. @@ -7923,13 +12976,12 @@ max_findings: Max findings limit for the given infoType. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit) - )) - , - DESCRIPTOR = _INSPECTCONFIG_FINDINGLIMITS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit) + ), + ), + DESCRIPTOR=_INSPECTCONFIG_FINDINGLIMITS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: max_findings_per_item: \ Max number of findings that will be returned for each item \ scanned. When set within ``InspectDataSourceRequest``, the \ @@ -7943,13 +12995,12 @@ max_findings_per_info_type: \ Configuration of findings limit given for specified infoTypes. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectConfig.FindingLimits) - )) - , - DESCRIPTOR = _INSPECTCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Configuration description of the scanning process. When used with + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectConfig.FindingLimits) + ), + ), + DESCRIPTOR=_INSPECTCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Configuration description of the scanning process. When used with redactContent only info\_types and min\_likelihood are currently used. @@ -7989,17 +13040,20 @@ other rules are executed in the order they are specified for each info type. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectConfig) + ), +) _sym_db.RegisterMessage(InspectConfig) _sym_db.RegisterMessage(InspectConfig.FindingLimits) _sym_db.RegisterMessage(InspectConfig.FindingLimits.InfoTypeLimit) -ByteContentItem = _reflection.GeneratedProtocolMessageType('ByteContentItem', (_message.Message,), dict( - DESCRIPTOR = _BYTECONTENTITEM, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Container for bytes to inspect or redact. +ByteContentItem = _reflection.GeneratedProtocolMessageType( + "ByteContentItem", + (_message.Message,), + dict( + DESCRIPTOR=_BYTECONTENTITEM, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Container for bytes to inspect or redact. Attributes: @@ -8009,15 +13063,18 @@ data: Content data to inspect or redact. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ByteContentItem) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ByteContentItem) + ), +) _sym_db.RegisterMessage(ByteContentItem) -ContentItem = _reflection.GeneratedProtocolMessageType('ContentItem', (_message.Message,), dict( - DESCRIPTOR = _CONTENTITEM, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Container structure for the content to inspect. +ContentItem = _reflection.GeneratedProtocolMessageType( + "ContentItem", + (_message.Message,), + dict( + DESCRIPTOR=_CONTENTITEM, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Container structure for the content to inspect. Attributes: @@ -8034,36 +13091,44 @@ Content data to inspect or redact. Replaces ``type`` and ``data``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ContentItem) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ContentItem) + ), +) _sym_db.RegisterMessage(ContentItem) -Table = _reflection.GeneratedProtocolMessageType('Table', (_message.Message,), dict( - - Row = _reflection.GeneratedProtocolMessageType('Row', (_message.Message,), dict( - DESCRIPTOR = _TABLE_ROW, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Table.Row) - )) - , - DESCRIPTOR = _TABLE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Structured content to inspect. Up to 50,000 ``Value``\ s per request +Table = _reflection.GeneratedProtocolMessageType( + "Table", + (_message.Message,), + dict( + Row=_reflection.GeneratedProtocolMessageType( + "Row", + (_message.Message,), + dict( + DESCRIPTOR=_TABLE_ROW, + __module__="google.cloud.dlp_v2.proto.dlp_pb2" + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Table.Row) + ), + ), + DESCRIPTOR=_TABLE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Structured content to inspect. Up to 50,000 ``Value``\ s per request allowed. See https://cloud.google.com/dlp/docs/inspecting-text#inspecting\_a\_table to learn more. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Table) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Table) + ), +) _sym_db.RegisterMessage(Table) _sym_db.RegisterMessage(Table.Row) -InspectResult = _reflection.GeneratedProtocolMessageType('InspectResult', (_message.Message,), dict( - DESCRIPTOR = _INSPECTRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """All the findings for a single scanned item. +InspectResult = _reflection.GeneratedProtocolMessageType( + "InspectResult", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""All the findings for a single scanned item. Attributes: @@ -8077,15 +13142,18 @@ maximum amount of resources allowed for a single API call. For best results, divide the input into smaller batches. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectResult) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectResult) + ), +) _sym_db.RegisterMessage(InspectResult) -Finding = _reflection.GeneratedProtocolMessageType('Finding', (_message.Message,), dict( - DESCRIPTOR = _FINDING, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Represents a piece of potentially sensitive content. +Finding = _reflection.GeneratedProtocolMessageType( + "Finding", + (_message.Message,), + dict( + DESCRIPTOR=_FINDING, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Represents a piece of potentially sensitive content. Attributes: @@ -8111,15 +13179,18 @@ requested. Currently supported infoTypes: DATE, DATE\_OF\_BIRTH and TIME. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Finding) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Finding) + ), +) _sym_db.RegisterMessage(Finding) -Location = _reflection.GeneratedProtocolMessageType('Location', (_message.Message,), dict( - DESCRIPTOR = _LOCATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Specifies the location of the finding. +Location = _reflection.GeneratedProtocolMessageType( + "Location", + (_message.Message,), + dict( + DESCRIPTOR=_LOCATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Specifies the location of the finding. Attributes: @@ -8137,15 +13208,18 @@ List of nested objects pointing to the precise location of the finding within the file or record. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Location) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Location) + ), +) _sym_db.RegisterMessage(Location) -ContentLocation = _reflection.GeneratedProtocolMessageType('ContentLocation', (_message.Message,), dict( - DESCRIPTOR = _CONTENTLOCATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Findings container location data. +ContentLocation = _reflection.GeneratedProtocolMessageType( + "ContentLocation", + (_message.Message,), + dict( + DESCRIPTOR=_CONTENTLOCATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Findings container location data. Attributes: @@ -8176,15 +13250,18 @@ Findings container version, if available ("generation" for Google Cloud Storage). """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ContentLocation) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ContentLocation) + ), +) _sym_db.RegisterMessage(ContentLocation) -DocumentLocation = _reflection.GeneratedProtocolMessageType('DocumentLocation', (_message.Message,), dict( - DESCRIPTOR = _DOCUMENTLOCATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Location of a finding within a document. +DocumentLocation = _reflection.GeneratedProtocolMessageType( + "DocumentLocation", + (_message.Message,), + dict( + DESCRIPTOR=_DOCUMENTLOCATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Location of a finding within a document. Attributes: @@ -8192,15 +13269,18 @@ Offset of the line, from the beginning of the file, where the finding is located. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DocumentLocation) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DocumentLocation) + ), +) _sym_db.RegisterMessage(DocumentLocation) -RecordLocation = _reflection.GeneratedProtocolMessageType('RecordLocation', (_message.Message,), dict( - DESCRIPTOR = _RECORDLOCATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Location of a finding within a row or record. +RecordLocation = _reflection.GeneratedProtocolMessageType( + "RecordLocation", + (_message.Message,), + dict( + DESCRIPTOR=_RECORDLOCATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Location of a finding within a row or record. Attributes: @@ -8211,30 +13291,36 @@ table_location: Location within a ``ContentItem.Table``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordLocation) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordLocation) + ), +) _sym_db.RegisterMessage(RecordLocation) -TableLocation = _reflection.GeneratedProtocolMessageType('TableLocation', (_message.Message,), dict( - DESCRIPTOR = _TABLELOCATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Location of a finding within a table. +TableLocation = _reflection.GeneratedProtocolMessageType( + "TableLocation", + (_message.Message,), + dict( + DESCRIPTOR=_TABLELOCATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Location of a finding within a table. Attributes: row_index: The zero-based index of the row where the finding is located. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TableLocation) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TableLocation) + ), +) _sym_db.RegisterMessage(TableLocation) -Range = _reflection.GeneratedProtocolMessageType('Range', (_message.Message,), dict( - DESCRIPTOR = _RANGE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Generic half-open interval [start, end) +Range = _reflection.GeneratedProtocolMessageType( + "Range", + (_message.Message,), + dict( + DESCRIPTOR=_RANGE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Generic half-open interval [start, end) Attributes: @@ -8243,15 +13329,18 @@ end: Index of the last character of the range (exclusive). """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Range) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Range) + ), +) _sym_db.RegisterMessage(Range) -ImageLocation = _reflection.GeneratedProtocolMessageType('ImageLocation', (_message.Message,), dict( - DESCRIPTOR = _IMAGELOCATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Location of the finding within an image. +ImageLocation = _reflection.GeneratedProtocolMessageType( + "ImageLocation", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGELOCATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Location of the finding within an image. Attributes: @@ -8259,15 +13348,18 @@ Bounding boxes locating the pixels within the image containing the finding. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ImageLocation) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ImageLocation) + ), +) _sym_db.RegisterMessage(ImageLocation) -BoundingBox = _reflection.GeneratedProtocolMessageType('BoundingBox', (_message.Message,), dict( - DESCRIPTOR = _BOUNDINGBOX, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Bounding box encompassing detected text within an image. +BoundingBox = _reflection.GeneratedProtocolMessageType( + "BoundingBox", + (_message.Message,), + dict( + DESCRIPTOR=_BOUNDINGBOX, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Bounding box encompassing detected text within an image. Attributes: @@ -8280,17 +13372,22 @@ height: Height of the bounding box in pixels. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BoundingBox) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BoundingBox) + ), +) _sym_db.RegisterMessage(BoundingBox) -RedactImageRequest = _reflection.GeneratedProtocolMessageType('RedactImageRequest', (_message.Message,), dict( - - ImageRedactionConfig = _reflection.GeneratedProtocolMessageType('ImageRedactionConfig', (_message.Message,), dict( - DESCRIPTOR = _REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Configuration for determining how redaction of images should occur. +RedactImageRequest = _reflection.GeneratedProtocolMessageType( + "RedactImageRequest", + (_message.Message,), + dict( + ImageRedactionConfig=_reflection.GeneratedProtocolMessageType( + "ImageRedactionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_REDACTIMAGEREQUEST_IMAGEREDACTIONCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Configuration for determining how redaction of images should occur. Attributes: @@ -8309,13 +13406,12 @@ The color to use when redacting content from an image. If not specified, the default is black. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig) - )) - , - DESCRIPTOR = _REDACTIMAGEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request to search for potentially sensitive info in an image and redact + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig) + ), + ), + DESCRIPTOR=_REDACTIMAGEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle. @@ -8333,16 +13429,19 @@ byte_item: The content must be PNG, JPEG, SVG or BMP. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactImageRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactImageRequest) + ), +) _sym_db.RegisterMessage(RedactImageRequest) _sym_db.RegisterMessage(RedactImageRequest.ImageRedactionConfig) -Color = _reflection.GeneratedProtocolMessageType('Color', (_message.Message,), dict( - DESCRIPTOR = _COLOR, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Represents a color in the RGB color space. +Color = _reflection.GeneratedProtocolMessageType( + "Color", + (_message.Message,), + dict( + DESCRIPTOR=_COLOR, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Represents a color in the RGB color space. Attributes: @@ -8356,15 +13455,18 @@ The amount of blue in the color as a value in the interval [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Color) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Color) + ), +) _sym_db.RegisterMessage(Color) -RedactImageResponse = _reflection.GeneratedProtocolMessageType('RedactImageResponse', (_message.Message,), dict( - DESCRIPTOR = _REDACTIMAGERESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Results of redacting an image. +RedactImageResponse = _reflection.GeneratedProtocolMessageType( + "RedactImageResponse", + (_message.Message,), + dict( + DESCRIPTOR=_REDACTIMAGERESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Results of redacting an image. Attributes: @@ -8379,15 +13481,18 @@ The findings. Populated when include\_findings in the request is true. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactImageResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactImageResponse) + ), +) _sym_db.RegisterMessage(RedactImageResponse) -DeidentifyContentRequest = _reflection.GeneratedProtocolMessageType('DeidentifyContentRequest', (_message.Message,), dict( - DESCRIPTOR = _DEIDENTIFYCONTENTREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request to de-identify a list of items. +DeidentifyContentRequest = _reflection.GeneratedProtocolMessageType( + "DeidentifyContentRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DEIDENTIFYCONTENTREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request to de-identify a list of items. Attributes: @@ -8418,15 +13523,18 @@ are appended. Singular sub-messages and groups are recursively merged. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyContentRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyContentRequest) + ), +) _sym_db.RegisterMessage(DeidentifyContentRequest) -DeidentifyContentResponse = _reflection.GeneratedProtocolMessageType('DeidentifyContentResponse', (_message.Message,), dict( - DESCRIPTOR = _DEIDENTIFYCONTENTRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Results of de-identifying a ContentItem. +DeidentifyContentResponse = _reflection.GeneratedProtocolMessageType( + "DeidentifyContentResponse", + (_message.Message,), + dict( + DESCRIPTOR=_DEIDENTIFYCONTENTRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Results of de-identifying a ContentItem. Attributes: @@ -8435,15 +13543,18 @@ overview: An overview of the changes that were made on the ``item``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyContentResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyContentResponse) + ), +) _sym_db.RegisterMessage(DeidentifyContentResponse) -ReidentifyContentRequest = _reflection.GeneratedProtocolMessageType('ReidentifyContentRequest', (_message.Message,), dict( - DESCRIPTOR = _REIDENTIFYCONTENTREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request to re-identify an item. +ReidentifyContentRequest = _reflection.GeneratedProtocolMessageType( + "ReidentifyContentRequest", + (_message.Message,), + dict( + DESCRIPTOR=_REIDENTIFYCONTENTREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request to re-identify an item. Attributes: @@ -8478,15 +13589,18 @@ template. Repeated fields are appended. Singular sub-messages and groups are recursively merged. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReidentifyContentRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReidentifyContentRequest) + ), +) _sym_db.RegisterMessage(ReidentifyContentRequest) -ReidentifyContentResponse = _reflection.GeneratedProtocolMessageType('ReidentifyContentResponse', (_message.Message,), dict( - DESCRIPTOR = _REIDENTIFYCONTENTRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Results of re-identifying a item. +ReidentifyContentResponse = _reflection.GeneratedProtocolMessageType( + "ReidentifyContentResponse", + (_message.Message,), + dict( + DESCRIPTOR=_REIDENTIFYCONTENTRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Results of re-identifying a item. Attributes: @@ -8495,15 +13609,18 @@ overview: An overview of the changes that were made to the ``item``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReidentifyContentResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReidentifyContentResponse) + ), +) _sym_db.RegisterMessage(ReidentifyContentResponse) -InspectContentRequest = _reflection.GeneratedProtocolMessageType('InspectContentRequest', (_message.Message,), dict( - DESCRIPTOR = _INSPECTCONTENTREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request to search for potentially sensitive info in a ContentItem. +InspectContentRequest = _reflection.GeneratedProtocolMessageType( + "InspectContentRequest", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTCONTENTREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request to search for potentially sensitive info in a ContentItem. Attributes: @@ -8523,30 +13640,36 @@ are appended. Singular sub-messages and groups are recursively merged. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectContentRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectContentRequest) + ), +) _sym_db.RegisterMessage(InspectContentRequest) -InspectContentResponse = _reflection.GeneratedProtocolMessageType('InspectContentResponse', (_message.Message,), dict( - DESCRIPTOR = _INSPECTCONTENTRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Results of inspecting an item. +InspectContentResponse = _reflection.GeneratedProtocolMessageType( + "InspectContentResponse", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTCONTENTRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Results of inspecting an item. Attributes: result: The findings. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectContentResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectContentResponse) + ), +) _sym_db.RegisterMessage(InspectContentResponse) -OutputStorageConfig = _reflection.GeneratedProtocolMessageType('OutputStorageConfig', (_message.Message,), dict( - DESCRIPTOR = _OUTPUTSTORAGECONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Cloud repository for storing output. +OutputStorageConfig = _reflection.GeneratedProtocolMessageType( + "OutputStorageConfig", + (_message.Message,), + dict( + DESCRIPTOR=_OUTPUTSTORAGECONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Cloud repository for storing output. Attributes: @@ -8575,15 +13698,18 @@ (existing) table with no schema, and no changes will be made to an existing table that has a schema. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.OutputStorageConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.OutputStorageConfig) + ), +) _sym_db.RegisterMessage(OutputStorageConfig) -InfoTypeStats = _reflection.GeneratedProtocolMessageType('InfoTypeStats', (_message.Message,), dict( - DESCRIPTOR = _INFOTYPESTATS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Statistics regarding a specific InfoType. +InfoTypeStats = _reflection.GeneratedProtocolMessageType( + "InfoTypeStats", + (_message.Message,), + dict( + DESCRIPTOR=_INFOTYPESTATS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Statistics regarding a specific InfoType. Attributes: @@ -8592,30 +13718,36 @@ count: Number of findings for this infoType. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeStats) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeStats) + ), +) _sym_db.RegisterMessage(InfoTypeStats) -InspectDataSourceDetails = _reflection.GeneratedProtocolMessageType('InspectDataSourceDetails', (_message.Message,), dict( - - RequestedOptions = _reflection.GeneratedProtocolMessageType('RequestedOptions', (_message.Message,), dict( - DESCRIPTOR = _INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: +InspectDataSourceDetails = _reflection.GeneratedProtocolMessageType( + "InspectDataSourceDetails", + (_message.Message,), + dict( + RequestedOptions=_reflection.GeneratedProtocolMessageType( + "RequestedOptions", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTDATASOURCEDETAILS_REQUESTEDOPTIONS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: snapshot_inspect_template: \ If run with an InspectTemplate, a snapshot of its state at the \ time of this run. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions) - )) - , - - Result = _reflection.GeneratedProtocolMessageType('Result', (_message.Message,), dict( - DESCRIPTOR = _INSPECTDATASOURCEDETAILS_RESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions) + ), + ), + Result=_reflection.GeneratedProtocolMessageType( + "Result", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTDATASOURCEDETAILS_RESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: processed_bytes: \ Total size in bytes that were processed. total_estimated_bytes: \ @@ -8624,13 +13756,12 @@ Statistics of how many instances of each info type were found \ during inspect job. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectDataSourceDetails.Result) - )) - , - DESCRIPTOR = _INSPECTDATASOURCEDETAILS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The results of an inspect DataSource job. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectDataSourceDetails.Result) + ), + ), + DESCRIPTOR=_INSPECTDATASOURCEDETAILS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The results of an inspect DataSource job. Attributes: @@ -8639,17 +13770,20 @@ result: \ A summary of the outcome of this inspect job. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectDataSourceDetails) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectDataSourceDetails) + ), +) _sym_db.RegisterMessage(InspectDataSourceDetails) _sym_db.RegisterMessage(InspectDataSourceDetails.RequestedOptions) _sym_db.RegisterMessage(InspectDataSourceDetails.Result) -InfoTypeDescription = _reflection.GeneratedProtocolMessageType('InfoTypeDescription', (_message.Message,), dict( - DESCRIPTOR = _INFOTYPEDESCRIPTION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """InfoType description. +InfoTypeDescription = _reflection.GeneratedProtocolMessageType( + "InfoTypeDescription", + (_message.Message,), + dict( + DESCRIPTOR=_INFOTYPEDESCRIPTION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""InfoType description. Attributes: @@ -8660,15 +13794,18 @@ supported_by: Which parts of the API supports this InfoType. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeDescription) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeDescription) + ), +) _sym_db.RegisterMessage(InfoTypeDescription) -ListInfoTypesRequest = _reflection.GeneratedProtocolMessageType('ListInfoTypesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTINFOTYPESREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request for the list of infoTypes. +ListInfoTypesRequest = _reflection.GeneratedProtocolMessageType( + "ListInfoTypesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINFOTYPESREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request for the list of infoTypes. Attributes: @@ -8680,30 +13817,36 @@ Optional filter to only return infoTypes supported by certain parts of the API. Defaults to supported\_by=INSPECT. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInfoTypesRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInfoTypesRequest) + ), +) _sym_db.RegisterMessage(ListInfoTypesRequest) -ListInfoTypesResponse = _reflection.GeneratedProtocolMessageType('ListInfoTypesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTINFOTYPESRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Response to the ListInfoTypes request. +ListInfoTypesResponse = _reflection.GeneratedProtocolMessageType( + "ListInfoTypesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINFOTYPESRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Response to the ListInfoTypes request. Attributes: info_types: Set of sensitive infoTypes. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInfoTypesResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInfoTypesResponse) + ), +) _sym_db.RegisterMessage(ListInfoTypesResponse) -RiskAnalysisJobConfig = _reflection.GeneratedProtocolMessageType('RiskAnalysisJobConfig', (_message.Message,), dict( - DESCRIPTOR = _RISKANALYSISJOBCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Configuration for a risk analysis job. See +RiskAnalysisJobConfig = _reflection.GeneratedProtocolMessageType( + "RiskAnalysisJobConfig", + (_message.Message,), + dict( + DESCRIPTOR=_RISKANALYSISJOBCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Configuration for a risk analysis job. See https://cloud.google.com/dlp/docs/concepts-risk-analysis to learn more. @@ -8716,15 +13859,18 @@ Actions to execute at the completion of the job. Are executed in the order provided. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RiskAnalysisJobConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RiskAnalysisJobConfig) + ), +) _sym_db.RegisterMessage(RiskAnalysisJobConfig) -QuasiId = _reflection.GeneratedProtocolMessageType('QuasiId', (_message.Message,), dict( - DESCRIPTOR = _QUASIID, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A column with a semantic tag attached. +QuasiId = _reflection.GeneratedProtocolMessageType( + "QuasiId", + (_message.Message,), + dict( + DESCRIPTOR=_QUASIID, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A column with a semantic tag attached. Attributes: @@ -8750,26 +13896,30 @@ If no semantic tag is indicated, we infer the statistical model from the distribution of values in the input data """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.QuasiId) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.QuasiId) + ), +) _sym_db.RegisterMessage(QuasiId) -StatisticalTable = _reflection.GeneratedProtocolMessageType('StatisticalTable', (_message.Message,), dict( - - QuasiIdentifierField = _reflection.GeneratedProtocolMessageType('QuasiIdentifierField', (_message.Message,), dict( - DESCRIPTOR = _STATISTICALTABLE_QUASIIDENTIFIERFIELD, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A quasi-identifier column has a custom\_tag, used to know which column +StatisticalTable = _reflection.GeneratedProtocolMessageType( + "StatisticalTable", + (_message.Message,), + dict( + QuasiIdentifierField=_reflection.GeneratedProtocolMessageType( + "QuasiIdentifierField", + (_message.Message,), + dict( + DESCRIPTOR=_STATISTICALTABLE_QUASIIDENTIFIERFIELD, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A quasi-identifier column has a custom\_tag, used to know which column in the data corresponds to which column in the statistical model. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField) - )) - , - DESCRIPTOR = _STATISTICALTABLE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """An auxiliary table containing statistical information on the relative + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField) + ), + ), + DESCRIPTOR=_STATISTICALTABLE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""An auxiliary table containing statistical information on the relative frequency of different quasi-identifiers values. It has one or several quasi-identifiers columns, and one column that indicates the relative frequency of each quasi-identifier tuple. If a tuple is present in the @@ -8788,18 +13938,23 @@ number between 0 and 1 (inclusive). Null values are assumed to be zero. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StatisticalTable) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StatisticalTable) + ), +) _sym_db.RegisterMessage(StatisticalTable) _sym_db.RegisterMessage(StatisticalTable.QuasiIdentifierField) -PrivacyMetric = _reflection.GeneratedProtocolMessageType('PrivacyMetric', (_message.Message,), dict( - - NumericalStatsConfig = _reflection.GeneratedProtocolMessageType('NumericalStatsConfig', (_message.Message,), dict( - DESCRIPTOR = _PRIVACYMETRIC_NUMERICALSTATSCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Compute numerical stats over an individual column, including min, max, +PrivacyMetric = _reflection.GeneratedProtocolMessageType( + "PrivacyMetric", + (_message.Message,), + dict( + NumericalStatsConfig=_reflection.GeneratedProtocolMessageType( + "NumericalStatsConfig", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVACYMETRIC_NUMERICALSTATSCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Compute numerical stats over an individual column, including min, max, and quantiles. @@ -8808,15 +13963,16 @@ Field to compute numerical stats on. Supported types are integer, float, date, datetime, timestamp, time. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig) - )) - , - - CategoricalStatsConfig = _reflection.GeneratedProtocolMessageType('CategoricalStatsConfig', (_message.Message,), dict( - DESCRIPTOR = _PRIVACYMETRIC_CATEGORICALSTATSCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Compute numerical stats over an individual column, including number of + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig) + ), + ), + CategoricalStatsConfig=_reflection.GeneratedProtocolMessageType( + "CategoricalStatsConfig", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVACYMETRIC_CATEGORICALSTATSCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Compute numerical stats over an individual column, including number of distinct values and value count distribution. @@ -8827,15 +13983,16 @@ more informative to use NumericalStats when the field type is supported, depending on the data. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig) - )) - , - - KAnonymityConfig = _reflection.GeneratedProtocolMessageType('KAnonymityConfig', (_message.Message,), dict( - DESCRIPTOR = _PRIVACYMETRIC_KANONYMITYCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """k-anonymity metric, used for analysis of reidentification risk. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig) + ), + ), + KAnonymityConfig=_reflection.GeneratedProtocolMessageType( + "KAnonymityConfig", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVACYMETRIC_KANONYMITYCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""k-anonymity metric, used for analysis of reidentification risk. Attributes: @@ -8857,15 +14014,16 @@ entity ID. If more rows are associated with the same entity ID, some might be ignored. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig) - )) - , - - LDiversityConfig = _reflection.GeneratedProtocolMessageType('LDiversityConfig', (_message.Message,), dict( - DESCRIPTOR = _PRIVACYMETRIC_LDIVERSITYCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """l-diversity metric, used for analysis of reidentification risk. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig) + ), + ), + LDiversityConfig=_reflection.GeneratedProtocolMessageType( + "LDiversityConfig", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVACYMETRIC_LDIVERSITYCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""l-diversity metric, used for analysis of reidentification risk. Attributes: @@ -8877,17 +14035,20 @@ sensitive_attribute: Sensitive field for computing the l-value. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig) - )) - , - - KMapEstimationConfig = _reflection.GeneratedProtocolMessageType('KMapEstimationConfig', (_message.Message,), dict( - - TaggedField = _reflection.GeneratedProtocolMessageType('TaggedField', (_message.Message,), dict( - DESCRIPTOR = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig) + ), + ), + KMapEstimationConfig=_reflection.GeneratedProtocolMessageType( + "KMapEstimationConfig", + (_message.Message,), + dict( + TaggedField=_reflection.GeneratedProtocolMessageType( + "TaggedField", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_TAGGEDFIELD, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: field: \ Identifies the column. [required] tag: \ @@ -8910,26 +14071,28 @@ If no semantic tag is indicated, we infer the statistical \ model from the distribution of values in the input data """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField) - )) - , - - AuxiliaryTable = _reflection.GeneratedProtocolMessageType('AuxiliaryTable', (_message.Message,), dict( - - QuasiIdField = _reflection.GeneratedProtocolMessageType('QuasiIdField', (_message.Message,), dict( - DESCRIPTOR = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A quasi-identifier column has a custom\_tag, used to know which column + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField) + ), + ), + AuxiliaryTable=_reflection.GeneratedProtocolMessageType( + "AuxiliaryTable", + (_message.Message,), + dict( + QuasiIdField=_reflection.GeneratedProtocolMessageType( + "QuasiIdField", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE_QUASIIDFIELD, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A quasi-identifier column has a custom\_tag, used to know which column in the data corresponds to which column in the statistical model. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField) - )) - , - DESCRIPTOR = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """An auxiliary table contains statistical information on the relative + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField) + ), + ), + DESCRIPTOR=_PRIVACYMETRIC_KMAPESTIMATIONCONFIG_AUXILIARYTABLE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""An auxiliary table contains statistical information on the relative frequency of different quasi-identifiers values. It has one or several quasi-identifiers columns, and one column that indicates the relative frequency of each quasi-identifier tuple. If a tuple is present in the @@ -8948,13 +14111,12 @@ number between 0 and 1 (inclusive). Null values are assumed to be zero. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable) - )) - , - DESCRIPTOR = _PRIVACYMETRIC_KMAPESTIMATIONCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Reidentifiability metric. This corresponds to a risk model similar to + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable) + ), + ), + DESCRIPTOR=_PRIVACYMETRIC_KMAPESTIMATIONCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Reidentifiability metric. This corresponds to a risk model similar to what is called "journalist risk" in the literature, except the attack dataset is statistically modeled instead of being perfectly known. This can be done using publicly available data (like the US Census), or using @@ -8976,15 +14138,16 @@ custom\_tag used to tag a quasi-identifiers column must appear in exactly one column of one auxiliary table. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig) - )) - , - - DeltaPresenceEstimationConfig = _reflection.GeneratedProtocolMessageType('DeltaPresenceEstimationConfig', (_message.Message,), dict( - DESCRIPTOR = _PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """δ-presence metric, used to estimate how likely it is for an attacker to + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig) + ), + ), + DeltaPresenceEstimationConfig=_reflection.GeneratedProtocolMessageType( + "DeltaPresenceEstimationConfig", + (_message.Message,), + dict( + DESCRIPTOR=_PRIVACYMETRIC_DELTAPRESENCEESTIMATIONCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""δ-presence metric, used to estimate how likely it is for an attacker to figure out that one given individual appears in a de-identified dataset. Similarly to the k-map metric, we cannot compute δ-presence exactly without knowing the attack dataset, so we use a statistical model @@ -9004,16 +14167,16 @@ custom\_tag used to tag a quasi-identifiers field must appear in exactly one field of one auxiliary table. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig) - )) - , - DESCRIPTOR = _PRIVACYMETRIC, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Privacy metric to compute for reidentification risk analysis. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig) + ), + ), + DESCRIPTOR=_PRIVACYMETRIC, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Privacy metric to compute for reidentification risk analysis. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrivacyMetric) + ), +) _sym_db.RegisterMessage(PrivacyMetric) _sym_db.RegisterMessage(PrivacyMetric.NumericalStatsConfig) _sym_db.RegisterMessage(PrivacyMetric.CategoricalStatsConfig) @@ -9025,13 +14188,17 @@ _sym_db.RegisterMessage(PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField) _sym_db.RegisterMessage(PrivacyMetric.DeltaPresenceEstimationConfig) -AnalyzeDataSourceRiskDetails = _reflection.GeneratedProtocolMessageType('AnalyzeDataSourceRiskDetails', (_message.Message,), dict( - - NumericalStatsResult = _reflection.GeneratedProtocolMessageType('NumericalStatsResult', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Result of the numerical stats computation. +AnalyzeDataSourceRiskDetails = _reflection.GeneratedProtocolMessageType( + "AnalyzeDataSourceRiskDetails", + (_message.Message,), + dict( + NumericalStatsResult=_reflection.GeneratedProtocolMessageType( + "NumericalStatsResult", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_NUMERICALSTATSRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Result of the numerical stats computation. Attributes: @@ -9043,47 +14210,52 @@ List of 99 values that partition the set of field values into 100 equal sized buckets. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult) - )) - , - - CategoricalStatsResult = _reflection.GeneratedProtocolMessageType('CategoricalStatsResult', (_message.Message,), dict( - - CategoricalStatsHistogramBucket = _reflection.GeneratedProtocolMessageType('CategoricalStatsHistogramBucket', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult) + ), + ), + CategoricalStatsResult=_reflection.GeneratedProtocolMessageType( + "CategoricalStatsResult", + (_message.Message,), + dict( + CategoricalStatsHistogramBucket=_reflection.GeneratedProtocolMessageType( + "CategoricalStatsHistogramBucket", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT_CATEGORICALSTATSHISTOGRAMBUCKET, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: value_frequency_lower_bound: Lower bound on the value frequency of the values in this bucket. value_frequency_upper_bound: Upper bound on the value frequency of the values in this bucket. bucket_size: Total number of values in this bucket. bucket_values: Sample of value frequencies in this bucket. The total number of values returned per bucket is capped at 20. bucket_value_count: Total number of distinct values in this bucket. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket) - )) - , - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Result of the categorical stats computation. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket) + ), + ), + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_CATEGORICALSTATSRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Result of the categorical stats computation. Attributes: value_frequency_histogram_buckets: Histogram of value frequencies in the column. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult) - )) - , - - KAnonymityResult = _reflection.GeneratedProtocolMessageType('KAnonymityResult', (_message.Message,), dict( - - KAnonymityEquivalenceClass = _reflection.GeneratedProtocolMessageType('KAnonymityEquivalenceClass', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The set of columns' values that share the same ldiversity value + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult) + ), + ), + KAnonymityResult=_reflection.GeneratedProtocolMessageType( + "KAnonymityResult", + (_message.Message,), + dict( + KAnonymityEquivalenceClass=_reflection.GeneratedProtocolMessageType( + "KAnonymityEquivalenceClass", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYEQUIVALENCECLASS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The set of columns' values that share the same ldiversity value Attributes: @@ -9095,15 +14267,16 @@ Size of the equivalence class, for example number of rows with \ the above set of values. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass) - )) - , - - KAnonymityHistogramBucket = _reflection.GeneratedProtocolMessageType('KAnonymityHistogramBucket', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass) + ), + ), + KAnonymityHistogramBucket=_reflection.GeneratedProtocolMessageType( + "KAnonymityHistogramBucket", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT_KANONYMITYHISTOGRAMBUCKET, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: equivalence_class_size_lower_bound: \ Lower bound on the size of the equivalence classes in this \ bucket. @@ -9118,30 +14291,32 @@ bucket_value_count: \ Total number of distinct equivalence classes in this bucket. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket) - )) - , - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Result of the k-anonymity computation. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket) + ), + ), + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_KANONYMITYRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Result of the k-anonymity computation. Attributes: equivalence_class_histogram_buckets: Histogram of k-anonymity equivalence classes. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult) - )) - , - - LDiversityResult = _reflection.GeneratedProtocolMessageType('LDiversityResult', (_message.Message,), dict( - - LDiversityEquivalenceClass = _reflection.GeneratedProtocolMessageType('LDiversityEquivalenceClass', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The set of columns' values that share the same ldiversity value. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult) + ), + ), + LDiversityResult=_reflection.GeneratedProtocolMessageType( + "LDiversityResult", + (_message.Message,), + dict( + LDiversityEquivalenceClass=_reflection.GeneratedProtocolMessageType( + "LDiversityEquivalenceClass", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYEQUIVALENCECLASS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The set of columns' values that share the same ldiversity value. Attributes: @@ -9155,15 +14330,16 @@ top_sensitive_values: Estimated frequencies of top sensitive values. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass) - )) - , - - LDiversityHistogramBucket = _reflection.GeneratedProtocolMessageType('LDiversityHistogramBucket', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass) + ), + ), + LDiversityHistogramBucket=_reflection.GeneratedProtocolMessageType( + "LDiversityHistogramBucket", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT_LDIVERSITYHISTOGRAMBUCKET, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: sensitive_value_frequency_lower_bound: \ Lower bound on the sensitive value frequencies of the \ equivalence classes in this bucket. @@ -9178,13 +14354,12 @@ bucket_value_count: \ Total number of distinct equivalence classes in this bucket. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket) - )) - , - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Result of the l-diversity computation. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket) + ), + ), + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_LDIVERSITYRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Result of the l-diversity computation. Attributes: @@ -9192,17 +14367,20 @@ Histogram of l-diversity equivalence class sensitive value frequencies. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult) - )) - , - - KMapEstimationResult = _reflection.GeneratedProtocolMessageType('KMapEstimationResult', (_message.Message,), dict( - - KMapEstimationQuasiIdValues = _reflection.GeneratedProtocolMessageType('KMapEstimationQuasiIdValues', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A tuple of values for the quasi-identifier columns. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult) + ), + ), + KMapEstimationResult=_reflection.GeneratedProtocolMessageType( + "KMapEstimationResult", + (_message.Message,), + dict( + KMapEstimationQuasiIdValues=_reflection.GeneratedProtocolMessageType( + "KMapEstimationQuasiIdValues", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONQUASIIDVALUES, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A tuple of values for the quasi-identifier columns. Attributes: @@ -9211,15 +14389,16 @@ estimated_anonymity: The estimated anonymity for these quasi-identifier values. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues) - )) - , - - KMapEstimationHistogramBucket = _reflection.GeneratedProtocolMessageType('KMapEstimationHistogramBucket', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A KMapEstimationHistogramBucket message with the following values: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues) + ), + ), + KMapEstimationHistogramBucket=_reflection.GeneratedProtocolMessageType( + "KMapEstimationHistogramBucket", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT_KMAPESTIMATIONHISTOGRAMBUCKET, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A KMapEstimationHistogramBucket message with the following values: min\_anonymity: 3 max\_anonymity: 5 frequency: 42 means that there are 42 records whose quasi-identifier values correspond to 3, 4 or 5 people in the overlying population. An important particular case is when @@ -9241,13 +14420,12 @@ Total number of distinct quasi-identifier tuple values in this bucket. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket) - )) - , - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Result of the reidentifiability analysis. Note that these results are an + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket) + ), + ), + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_KMAPESTIMATIONRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Result of the reidentifiability analysis. Note that these results are an estimation, not exact values. @@ -9262,17 +14440,20 @@ that there are no record with an estimated anonymity of 4, 5, or larger than 10. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult) - )) - , - - DeltaPresenceEstimationResult = _reflection.GeneratedProtocolMessageType('DeltaPresenceEstimationResult', (_message.Message,), dict( - - DeltaPresenceEstimationQuasiIdValues = _reflection.GeneratedProtocolMessageType('DeltaPresenceEstimationQuasiIdValues', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A tuple of values for the quasi-identifier columns. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult) + ), + ), + DeltaPresenceEstimationResult=_reflection.GeneratedProtocolMessageType( + "DeltaPresenceEstimationResult", + (_message.Message,), + dict( + DeltaPresenceEstimationQuasiIdValues=_reflection.GeneratedProtocolMessageType( + "DeltaPresenceEstimationQuasiIdValues", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONQUASIIDVALUES, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A tuple of values for the quasi-identifier columns. Attributes: @@ -9289,15 +14470,16 @@ identifier values, and an estimated 100 people in the entire population with these values, then δ is 0.15. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues) - )) - , - - DeltaPresenceEstimationHistogramBucket = _reflection.GeneratedProtocolMessageType('DeltaPresenceEstimationHistogramBucket', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A DeltaPresenceEstimationHistogramBucket message with the following + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues) + ), + ), + DeltaPresenceEstimationHistogramBucket=_reflection.GeneratedProtocolMessageType( + "DeltaPresenceEstimationHistogramBucket", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT_DELTAPRESENCEESTIMATIONHISTOGRAMBUCKET, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A DeltaPresenceEstimationHistogramBucket message with the following values: min\_probability: 0.1 max\_probability: 0.2 frequency: 42 means that there are 42 records for which δ is in [0.1, 0.2). An important particular case is when min\_probability = max\_probability = 1: then, @@ -9319,13 +14501,12 @@ Total number of distinct quasi-identifier tuple values in this bucket. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket) - )) - , - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Result of the δ-presence computation. Note that these results are an + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket) + ), + ), + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS_DELTAPRESENCEESTIMATIONRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Result of the δ-presence computation. Note that these results are an estimation, not exact values. @@ -9340,13 +14521,12 @@ frequency: 99} mean that there are no record with an estimated probability in [0.1, 0.2) nor larger or equal to 0.4. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult) - )) - , - DESCRIPTOR = _ANALYZEDATASOURCERISKDETAILS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Result of a risk analysis operation request. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult) + ), + ), + DESCRIPTOR=_ANALYZEDATASOURCERISKDETAILS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Result of a risk analysis operation request. Attributes: @@ -9357,30 +14537,51 @@ result: Values associated with this metric. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails) + ), +) _sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails) _sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.NumericalStatsResult) _sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.CategoricalStatsResult) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket +) _sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.KAnonymityResult) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass +) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket +) _sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.LDiversityResult) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass +) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket +) _sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.KMapEstimationResult) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues +) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket +) _sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues) -_sym_db.RegisterMessage(AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues +) +_sym_db.RegisterMessage( + AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket +) -ValueFrequency = _reflection.GeneratedProtocolMessageType('ValueFrequency', (_message.Message,), dict( - DESCRIPTOR = _VALUEFREQUENCY, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A value of a field, including its frequency. +ValueFrequency = _reflection.GeneratedProtocolMessageType( + "ValueFrequency", + (_message.Message,), + dict( + DESCRIPTOR=_VALUEFREQUENCY, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A value of a field, including its frequency. Attributes: @@ -9389,30 +14590,36 @@ count: How many times the value is contained in the field. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ValueFrequency) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ValueFrequency) + ), +) _sym_db.RegisterMessage(ValueFrequency) -Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), dict( - DESCRIPTOR = _VALUE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Set of primitive values supported by the system. Note that for the +Value = _reflection.GeneratedProtocolMessageType( + "Value", + (_message.Message,), + dict( + DESCRIPTOR=_VALUE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Set of primitive values supported by the system. Note that for the purposes of inspection or transformation, the number of bytes considered to comprise a 'Value' is based on its representation as a UTF-8 encoded string. For example, if 'integer\_value' is set to 123456789, the number of bytes would be counted as 9, even though an int64 only holds up to 8 bytes of data. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Value) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Value) + ), +) _sym_db.RegisterMessage(Value) -QuoteInfo = _reflection.GeneratedProtocolMessageType('QuoteInfo', (_message.Message,), dict( - DESCRIPTOR = _QUOTEINFO, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Message for infoType-dependent details parsed from quote. +QuoteInfo = _reflection.GeneratedProtocolMessageType( + "QuoteInfo", + (_message.Message,), + dict( + DESCRIPTOR=_QUOTEINFO, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Message for infoType-dependent details parsed from quote. Attributes: @@ -9421,28 +14628,32 @@ date_time: The date time indicated by the quote. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.QuoteInfo) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.QuoteInfo) + ), +) _sym_db.RegisterMessage(QuoteInfo) -DateTime = _reflection.GeneratedProtocolMessageType('DateTime', (_message.Message,), dict( - - TimeZone = _reflection.GeneratedProtocolMessageType('TimeZone', (_message.Message,), dict( - DESCRIPTOR = _DATETIME_TIMEZONE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: +DateTime = _reflection.GeneratedProtocolMessageType( + "DateTime", + (_message.Message,), + dict( + TimeZone=_reflection.GeneratedProtocolMessageType( + "TimeZone", + (_message.Message,), + dict( + DESCRIPTOR=_DATETIME_TIMEZONE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: offset_minutes: \ Set only if the offset can be determined. Positive for time \ ahead of UTC. E.g. For "UTC-9", this value is -540. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DateTime.TimeZone) - )) - , - DESCRIPTOR = _DATETIME, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Message for a date time object. e.g. 2018-01-01, 5th August. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DateTime.TimeZone) + ), + ), + DESCRIPTOR=_DATETIME, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Message for a date time object. e.g. 2018-01-01, 5th August. Attributes: @@ -9450,16 +14661,19 @@ One or more of the following must be set. All fields are optional, but when set must be valid date or time values. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DateTime) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DateTime) + ), +) _sym_db.RegisterMessage(DateTime) _sym_db.RegisterMessage(DateTime.TimeZone) -DeidentifyConfig = _reflection.GeneratedProtocolMessageType('DeidentifyConfig', (_message.Message,), dict( - DESCRIPTOR = _DEIDENTIFYCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The configuration that controls how the data will change. +DeidentifyConfig = _reflection.GeneratedProtocolMessageType( + "DeidentifyConfig", + (_message.Message,), + dict( + DESCRIPTOR=_DEIDENTIFYCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The configuration that controls how the data will change. Attributes: @@ -9471,36 +14685,45 @@ applied to specific locations within structured datasets, such as transforming a column within a table. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyConfig) + ), +) _sym_db.RegisterMessage(DeidentifyConfig) -PrimitiveTransformation = _reflection.GeneratedProtocolMessageType('PrimitiveTransformation', (_message.Message,), dict( - DESCRIPTOR = _PRIMITIVETRANSFORMATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A rule for transforming a value. +PrimitiveTransformation = _reflection.GeneratedProtocolMessageType( + "PrimitiveTransformation", + (_message.Message,), + dict( + DESCRIPTOR=_PRIMITIVETRANSFORMATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A rule for transforming a value. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrimitiveTransformation) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PrimitiveTransformation) + ), +) _sym_db.RegisterMessage(PrimitiveTransformation) -TimePartConfig = _reflection.GeneratedProtocolMessageType('TimePartConfig', (_message.Message,), dict( - DESCRIPTOR = _TIMEPARTCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """For use with ``Date``, ``Timestamp``, and ``TimeOfDay``, extract or +TimePartConfig = _reflection.GeneratedProtocolMessageType( + "TimePartConfig", + (_message.Message,), + dict( + DESCRIPTOR=_TIMEPARTCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""For use with ``Date``, ``Timestamp``, and ``TimeOfDay``, extract or preserve a portion of the value. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TimePartConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TimePartConfig) + ), +) _sym_db.RegisterMessage(TimePartConfig) -CryptoHashConfig = _reflection.GeneratedProtocolMessageType('CryptoHashConfig', (_message.Message,), dict( - DESCRIPTOR = _CRYPTOHASHCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Pseudonymization method that generates surrogates via cryptographic +CryptoHashConfig = _reflection.GeneratedProtocolMessageType( + "CryptoHashConfig", + (_message.Message,), + dict( + DESCRIPTOR=_CRYPTOHASHCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Pseudonymization method that generates surrogates via cryptographic hashing. Uses SHA-256. The key size must be either 32 or 64 bytes. Outputs a 32 byte digest as an uppercase hex string (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE). Currently, only string and integer @@ -9511,64 +14734,79 @@ crypto_key: The key used by the hash function. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CryptoHashConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CryptoHashConfig) + ), +) _sym_db.RegisterMessage(CryptoHashConfig) -ReplaceValueConfig = _reflection.GeneratedProtocolMessageType('ReplaceValueConfig', (_message.Message,), dict( - DESCRIPTOR = _REPLACEVALUECONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Replace each input value with a given ``Value``. +ReplaceValueConfig = _reflection.GeneratedProtocolMessageType( + "ReplaceValueConfig", + (_message.Message,), + dict( + DESCRIPTOR=_REPLACEVALUECONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Replace each input value with a given ``Value``. Attributes: new_value: Value to replace it with. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReplaceValueConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReplaceValueConfig) + ), +) _sym_db.RegisterMessage(ReplaceValueConfig) -ReplaceWithInfoTypeConfig = _reflection.GeneratedProtocolMessageType('ReplaceWithInfoTypeConfig', (_message.Message,), dict( - DESCRIPTOR = _REPLACEWITHINFOTYPECONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Replace each matching finding with the name of the info\_type. +ReplaceWithInfoTypeConfig = _reflection.GeneratedProtocolMessageType( + "ReplaceWithInfoTypeConfig", + (_message.Message,), + dict( + DESCRIPTOR=_REPLACEWITHINFOTYPECONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Replace each matching finding with the name of the info\_type. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReplaceWithInfoTypeConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ReplaceWithInfoTypeConfig) + ), +) _sym_db.RegisterMessage(ReplaceWithInfoTypeConfig) -RedactConfig = _reflection.GeneratedProtocolMessageType('RedactConfig', (_message.Message,), dict( - DESCRIPTOR = _REDACTCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Redact a given value. For example, if used with an +RedactConfig = _reflection.GeneratedProtocolMessageType( + "RedactConfig", + (_message.Message,), + dict( + DESCRIPTOR=_REDACTCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Redact a given value. For example, if used with an ``InfoTypeTransformation`` transforming PHONE\_NUMBER, and input 'My phone number is 206-555-0123', the output would be 'My phone number is '. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RedactConfig) + ), +) _sym_db.RegisterMessage(RedactConfig) -CharsToIgnore = _reflection.GeneratedProtocolMessageType('CharsToIgnore', (_message.Message,), dict( - DESCRIPTOR = _CHARSTOIGNORE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Characters to skip when doing deidentification of a value. These will be +CharsToIgnore = _reflection.GeneratedProtocolMessageType( + "CharsToIgnore", + (_message.Message,), + dict( + DESCRIPTOR=_CHARSTOIGNORE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Characters to skip when doing deidentification of a value. These will be left alone and skipped. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CharsToIgnore) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CharsToIgnore) + ), +) _sym_db.RegisterMessage(CharsToIgnore) -CharacterMaskConfig = _reflection.GeneratedProtocolMessageType('CharacterMaskConfig', (_message.Message,), dict( - DESCRIPTOR = _CHARACTERMASKCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Partially mask a string by replacing a given number of characters with a +CharacterMaskConfig = _reflection.GeneratedProtocolMessageType( + "CharacterMaskConfig", + (_message.Message,), + dict( + DESCRIPTOR=_CHARACTERMASKCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Partially mask a string by replacing a given number of characters with a fixed character. Masking can start from the beginning or end of the string. This can be used on data of any type (numbers, longs, and so on) and when de-identifying structured data we'll attempt to preserve the @@ -9600,15 +14838,18 @@ ask us to skip ``-`` and mask 5 chars with \* we would produce \*\*\ *-*\ 55-5555. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CharacterMaskConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CharacterMaskConfig) + ), +) _sym_db.RegisterMessage(CharacterMaskConfig) -FixedSizeBucketingConfig = _reflection.GeneratedProtocolMessageType('FixedSizeBucketingConfig', (_message.Message,), dict( - DESCRIPTOR = _FIXEDSIZEBUCKETINGCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Buckets values based on fixed size ranges. The Bucketing transformation +FixedSizeBucketingConfig = _reflection.GeneratedProtocolMessageType( + "FixedSizeBucketingConfig", + (_message.Message,), + dict( + DESCRIPTOR=_FIXEDSIZEBUCKETINGCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Buckets values based on fixed size ranges. The Bucketing transformation can provide all of this functionality, but requires more configuration. This message is provided as a convenience to the user for simple bucketing strategies. @@ -9644,17 +14885,22 @@ used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required]. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FixedSizeBucketingConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FixedSizeBucketingConfig) + ), +) _sym_db.RegisterMessage(FixedSizeBucketingConfig) -BucketingConfig = _reflection.GeneratedProtocolMessageType('BucketingConfig', (_message.Message,), dict( - - Bucket = _reflection.GeneratedProtocolMessageType('Bucket', (_message.Message,), dict( - DESCRIPTOR = _BUCKETINGCONFIG_BUCKET, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Bucket is represented as a range, along with replacement values. +BucketingConfig = _reflection.GeneratedProtocolMessageType( + "BucketingConfig", + (_message.Message,), + dict( + Bucket=_reflection.GeneratedProtocolMessageType( + "Bucket", + (_message.Message,), + dict( + DESCRIPTOR=_BUCKETINGCONFIG_BUCKET, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Bucket is represented as a range, along with replacement values. Attributes: @@ -9667,13 +14913,12 @@ Replacement value for this bucket. If not provided the default behavior will be to hyphenate the min-max range. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BucketingConfig.Bucket) - )) - , - DESCRIPTOR = _BUCKETINGCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Generalization function that buckets values based on ranges. The ranges + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BucketingConfig.Bucket) + ), + ), + DESCRIPTOR=_BUCKETINGCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Generalization function that buckets values based on ranges. The ranges and replacement values are dynamically provided by the user for custom behavior, such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH This can be used on data of type: number, long, string, timestamp. If the bound @@ -9687,16 +14932,19 @@ buckets: Set of buckets. Ranges must be non-overlapping. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BucketingConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BucketingConfig) + ), +) _sym_db.RegisterMessage(BucketingConfig) _sym_db.RegisterMessage(BucketingConfig.Bucket) -CryptoReplaceFfxFpeConfig = _reflection.GeneratedProtocolMessageType('CryptoReplaceFfxFpeConfig', (_message.Message,), dict( - DESCRIPTOR = _CRYPTOREPLACEFFXFPECONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Replaces an identifier with a surrogate using FPE with the FFX mode of +CryptoReplaceFfxFpeConfig = _reflection.GeneratedProtocolMessageType( + "CryptoReplaceFfxFpeConfig", + (_message.Message,), + dict( + DESCRIPTOR=_CRYPTOREPLACEFFXFPECONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Replaces an identifier with a surrogate using FPE with the FFX mode of operation; however when used in the ``ReidentifyContent`` API method, it serves the opposite function by reversing the surrogate back into the original identifier. The identifier must be encoded as ASCII. For a @@ -9760,28 +15008,34 @@ regular ASCII keyboard, the symbol with the hex code point 29DD might be used like so: ⧝MY\_TOKEN\_TYPE """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig) + ), +) _sym_db.RegisterMessage(CryptoReplaceFfxFpeConfig) -CryptoKey = _reflection.GeneratedProtocolMessageType('CryptoKey', (_message.Message,), dict( - DESCRIPTOR = _CRYPTOKEY, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """This is a data encryption key (DEK) (as opposed to a key encryption key +CryptoKey = _reflection.GeneratedProtocolMessageType( + "CryptoKey", + (_message.Message,), + dict( + DESCRIPTOR=_CRYPTOKEY, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot unwrap the data crypto key. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CryptoKey) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CryptoKey) + ), +) _sym_db.RegisterMessage(CryptoKey) -TransientCryptoKey = _reflection.GeneratedProtocolMessageType('TransientCryptoKey', (_message.Message,), dict( - DESCRIPTOR = _TRANSIENTCRYPTOKEY, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Use this to have a random data crypto key generated. It will be +TransientCryptoKey = _reflection.GeneratedProtocolMessageType( + "TransientCryptoKey", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSIENTCRYPTOKEY, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Use this to have a random data crypto key generated. It will be discarded after the request finishes. @@ -9795,15 +15049,18 @@ (repeating the api call will result in a different key being generated). """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransientCryptoKey) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransientCryptoKey) + ), +) _sym_db.RegisterMessage(TransientCryptoKey) -UnwrappedCryptoKey = _reflection.GeneratedProtocolMessageType('UnwrappedCryptoKey', (_message.Message,), dict( - DESCRIPTOR = _UNWRAPPEDCRYPTOKEY, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Using raw keys is prone to security risks due to accidentally leaking +UnwrappedCryptoKey = _reflection.GeneratedProtocolMessageType( + "UnwrappedCryptoKey", + (_message.Message,), + dict( + DESCRIPTOR=_UNWRAPPEDCRYPTOKEY, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Using raw keys is prone to security risks due to accidentally leaking the key. Choose another type of key if possible. @@ -9811,15 +15068,18 @@ key: The AES 128/192/256 bit key. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UnwrappedCryptoKey) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UnwrappedCryptoKey) + ), +) _sym_db.RegisterMessage(UnwrappedCryptoKey) -KmsWrappedCryptoKey = _reflection.GeneratedProtocolMessageType('KmsWrappedCryptoKey', (_message.Message,), dict( - DESCRIPTOR = _KMSWRAPPEDCRYPTOKEY, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Include to use an existing data crypto key wrapped by KMS. Authorization +KmsWrappedCryptoKey = _reflection.GeneratedProtocolMessageType( + "KmsWrappedCryptoKey", + (_message.Message,), + dict( + DESCRIPTOR=_KMSWRAPPEDCRYPTOKEY, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Include to use an existing data crypto key wrapped by KMS. Authorization requires the following IAM permissions when sending a request to perform a crypto transformation using a kms-wrapped crypto key: dlp.kms.encrypt @@ -9831,15 +15091,18 @@ The resource name of the KMS CryptoKey to use for unwrapping. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.KmsWrappedCryptoKey) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.KmsWrappedCryptoKey) + ), +) _sym_db.RegisterMessage(KmsWrappedCryptoKey) -DateShiftConfig = _reflection.GeneratedProtocolMessageType('DateShiftConfig', (_message.Message,), dict( - DESCRIPTOR = _DATESHIFTCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Shifts dates by random number of days, with option to be consistent for +DateShiftConfig = _reflection.GeneratedProtocolMessageType( + "DateShiftConfig", + (_message.Message,), + dict( + DESCRIPTOR=_DATESHIFTCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Shifts dates by random number of days, with option to be consistent for the same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting to learn more. @@ -9867,17 +15130,22 @@ context. This results in the same shift for the same context and crypto\_key. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DateShiftConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DateShiftConfig) + ), +) _sym_db.RegisterMessage(DateShiftConfig) -InfoTypeTransformations = _reflection.GeneratedProtocolMessageType('InfoTypeTransformations', (_message.Message,), dict( - - InfoTypeTransformation = _reflection.GeneratedProtocolMessageType('InfoTypeTransformation', (_message.Message,), dict( - DESCRIPTOR = _INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A transformation to apply to text that is identified as a specific +InfoTypeTransformations = _reflection.GeneratedProtocolMessageType( + "InfoTypeTransformations", + (_message.Message,), + dict( + InfoTypeTransformation=_reflection.GeneratedProtocolMessageType( + "InfoTypeTransformation", + (_message.Message,), + dict( + DESCRIPTOR=_INFOTYPETRANSFORMATIONS_INFOTYPETRANSFORMATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A transformation to apply to text that is identified as a specific info\_type. @@ -9890,13 +15158,12 @@ primitive_transformation: Primitive transformation to apply to the infoType. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation) - )) - , - DESCRIPTOR = _INFOTYPETRANSFORMATIONS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A type of transformation that will scan unstructured text and apply + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation) + ), + ), + DESCRIPTOR=_INFOTYPETRANSFORMATIONS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A type of transformation that will scan unstructured text and apply various ``PrimitiveTransformation``\ s to each finding, where the transformation is applied to only values that were identified as a specific info\_type. @@ -9907,16 +15174,19 @@ Transformation for each infoType. Cannot specify more than one for a given infoType. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeTransformations) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeTransformations) + ), +) _sym_db.RegisterMessage(InfoTypeTransformations) _sym_db.RegisterMessage(InfoTypeTransformations.InfoTypeTransformation) -FieldTransformation = _reflection.GeneratedProtocolMessageType('FieldTransformation', (_message.Message,), dict( - DESCRIPTOR = _FIELDTRANSFORMATION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The transformation to apply to the field. +FieldTransformation = _reflection.GeneratedProtocolMessageType( + "FieldTransformation", + (_message.Message,), + dict( + DESCRIPTOR=_FIELDTRANSFORMATION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The transformation to apply to the field. Attributes: @@ -9938,15 +15208,18 @@ Treat the contents of the field as free text, and selectively transform content that matches an ``InfoType``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FieldTransformation) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FieldTransformation) + ), +) _sym_db.RegisterMessage(FieldTransformation) -RecordTransformations = _reflection.GeneratedProtocolMessageType('RecordTransformations', (_message.Message,), dict( - DESCRIPTOR = _RECORDTRANSFORMATIONS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A type of transformation that is applied over structured data such as a +RecordTransformations = _reflection.GeneratedProtocolMessageType( + "RecordTransformations", + (_message.Message,), + dict( + DESCRIPTOR=_RECORDTRANSFORMATIONS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A type of transformation that is applied over structured data such as a table. @@ -9959,15 +15232,18 @@ Records that match any suppression rule are omitted from the output [optional]. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordTransformations) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordTransformations) + ), +) _sym_db.RegisterMessage(RecordTransformations) -RecordSuppression = _reflection.GeneratedProtocolMessageType('RecordSuppression', (_message.Message,), dict( - DESCRIPTOR = _RECORDSUPPRESSION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Configuration to suppress records whose suppression conditions evaluate +RecordSuppression = _reflection.GeneratedProtocolMessageType( + "RecordSuppression", + (_message.Message,), + dict( + DESCRIPTOR=_RECORDSUPPRESSION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Configuration to suppress records whose suppression conditions evaluate to true. @@ -9977,34 +15253,42 @@ record being evaluated to be suppressed from the transformed content. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordSuppression) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordSuppression) + ), +) _sym_db.RegisterMessage(RecordSuppression) -RecordCondition = _reflection.GeneratedProtocolMessageType('RecordCondition', (_message.Message,), dict( - - Condition = _reflection.GeneratedProtocolMessageType('Condition', (_message.Message,), dict( - DESCRIPTOR = _RECORDCONDITION_CONDITION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition.Condition) - )) - , - - Conditions = _reflection.GeneratedProtocolMessageType('Conditions', (_message.Message,), dict( - DESCRIPTOR = _RECORDCONDITION_CONDITIONS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A collection of conditions. +RecordCondition = _reflection.GeneratedProtocolMessageType( + "RecordCondition", + (_message.Message,), + dict( + Condition=_reflection.GeneratedProtocolMessageType( + "Condition", + (_message.Message,), + dict( + DESCRIPTOR=_RECORDCONDITION_CONDITION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2" + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition.Condition) + ), + ), + Conditions=_reflection.GeneratedProtocolMessageType( + "Conditions", + (_message.Message,), + dict( + DESCRIPTOR=_RECORDCONDITION_CONDITIONS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A collection of conditions. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition.Conditions) - )) - , - - Expressions = _reflection.GeneratedProtocolMessageType('Expressions', (_message.Message,), dict( - DESCRIPTOR = _RECORDCONDITION_EXPRESSIONS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """An expression, consisting or an operator and conditions. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition.Conditions) + ), + ), + Expressions=_reflection.GeneratedProtocolMessageType( + "Expressions", + (_message.Message,), + dict( + DESCRIPTOR=_RECORDCONDITION_EXPRESSIONS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""An expression, consisting or an operator and conditions. Attributes: @@ -10012,13 +15296,12 @@ The operator to apply to the result of conditions. Default and currently only supported value is ``AND``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition.Expressions) - )) - , - DESCRIPTOR = _RECORDCONDITION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The field type of ``value`` and ``field`` do not need to match to be + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition.Expressions) + ), + ), + DESCRIPTOR=_RECORDCONDITION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The field type of ``value`` and ``field`` do not need to match to be considered equal, but not all comparisons are possible. A ``value`` of type: @@ -10051,18 +15334,21 @@ expressions: An expression. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordCondition) + ), +) _sym_db.RegisterMessage(RecordCondition) _sym_db.RegisterMessage(RecordCondition.Condition) _sym_db.RegisterMessage(RecordCondition.Conditions) _sym_db.RegisterMessage(RecordCondition.Expressions) -TransformationOverview = _reflection.GeneratedProtocolMessageType('TransformationOverview', (_message.Message,), dict( - DESCRIPTOR = _TRANSFORMATIONOVERVIEW, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Overview of the modifications that occurred. +TransformationOverview = _reflection.GeneratedProtocolMessageType( + "TransformationOverview", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSFORMATIONOVERVIEW, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Overview of the modifications that occurred. Attributes: @@ -10071,17 +15357,22 @@ transformation_summaries: Transformations applied to the dataset. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationOverview) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationOverview) + ), +) _sym_db.RegisterMessage(TransformationOverview) -TransformationSummary = _reflection.GeneratedProtocolMessageType('TransformationSummary', (_message.Message,), dict( - - SummaryResult = _reflection.GeneratedProtocolMessageType('SummaryResult', (_message.Message,), dict( - DESCRIPTOR = _TRANSFORMATIONSUMMARY_SUMMARYRESULT, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A collection that informs the user the number of times a particular +TransformationSummary = _reflection.GeneratedProtocolMessageType( + "TransformationSummary", + (_message.Message,), + dict( + SummaryResult=_reflection.GeneratedProtocolMessageType( + "SummaryResult", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSFORMATIONSUMMARY_SUMMARYRESULT, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A collection that informs the user the number of times a particular ``TransformationResultCode`` and error details occurred. @@ -10090,13 +15381,12 @@ A place for warnings or errors to show up if a transformation didn't work as expected. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationSummary.SummaryResult) - )) - , - DESCRIPTOR = _TRANSFORMATIONSUMMARY, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Summary of a single tranformation. Only one of 'transformation', + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationSummary.SummaryResult) + ), + ), + DESCRIPTOR=_TRANSFORMATIONSUMMARY, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Summary of a single tranformation. Only one of 'transformation', 'field\_transformation', or 'record\_suppress' will be set. @@ -10117,16 +15407,19 @@ transformed_bytes: Total size in bytes that were transformed in some way. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationSummary) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationSummary) + ), +) _sym_db.RegisterMessage(TransformationSummary) _sym_db.RegisterMessage(TransformationSummary.SummaryResult) -Schedule = _reflection.GeneratedProtocolMessageType('Schedule', (_message.Message,), dict( - DESCRIPTOR = _SCHEDULE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Schedule for triggeredJobs. +Schedule = _reflection.GeneratedProtocolMessageType( + "Schedule", + (_message.Message,), + dict( + DESCRIPTOR=_SCHEDULE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Schedule for triggeredJobs. Attributes: @@ -10138,15 +15431,18 @@ time duration greater than or equal to 1 day and can be no longer than 60 days. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Schedule) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Schedule) + ), +) _sym_db.RegisterMessage(Schedule) -InspectTemplate = _reflection.GeneratedProtocolMessageType('InspectTemplate', (_message.Message,), dict( - DESCRIPTOR = _INSPECTTEMPLATE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The inspectTemplate contains a configuration (set of types of sensitive +InspectTemplate = _reflection.GeneratedProtocolMessageType( + "InspectTemplate", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTTEMPLATE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The inspectTemplate contains a configuration (set of types of sensitive data to be detected) to be used anywhere you otherwise would normally specify InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates to learn more. @@ -10172,15 +15468,18 @@ The core content of the template. Configuration of the scanning process. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectTemplate) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectTemplate) + ), +) _sym_db.RegisterMessage(InspectTemplate) -DeidentifyTemplate = _reflection.GeneratedProtocolMessageType('DeidentifyTemplate', (_message.Message,), dict( - DESCRIPTOR = _DEIDENTIFYTEMPLATE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The DeidentifyTemplates contains instructions on how to deidentify +DeidentifyTemplate = _reflection.GeneratedProtocolMessageType( + "DeidentifyTemplate", + (_message.Message,), + dict( + DESCRIPTOR=_DEIDENTIFYTEMPLATE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The DeidentifyTemplates contains instructions on how to deidentify content. See https://cloud.google.com/dlp/docs/concepts-templates to learn more. @@ -10204,15 +15503,18 @@ deidentify_config: ///////////// // The core content of the template // /////////////// """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyTemplate) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyTemplate) + ), +) _sym_db.RegisterMessage(DeidentifyTemplate) -Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), dict( - DESCRIPTOR = _ERROR, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Details information about an error encountered during job execution or +Error = _reflection.GeneratedProtocolMessageType( + "Error", + (_message.Message,), + dict( + DESCRIPTOR=_ERROR, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger. Output only field. @@ -10221,22 +15523,27 @@ timestamps: The times the error occurred. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Error) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Error) + ), +) _sym_db.RegisterMessage(Error) -JobTrigger = _reflection.GeneratedProtocolMessageType('JobTrigger', (_message.Message,), dict( - - Trigger = _reflection.GeneratedProtocolMessageType('Trigger', (_message.Message,), dict( - DESCRIPTOR = _JOBTRIGGER_TRIGGER, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.JobTrigger.Trigger) - )) - , - DESCRIPTOR = _JOBTRIGGER, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """What event needs to occur for a new job to be started. +JobTrigger = _reflection.GeneratedProtocolMessageType( + "JobTrigger", + (_message.Message,), + dict( + Trigger=_reflection.GeneratedProtocolMessageType( + "Trigger", + (_message.Message,), + dict( + DESCRIPTOR=_JOBTRIGGER_TRIGGER, + __module__="google.cloud.dlp_v2.proto.dlp_pb2" + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.JobTrigger.Trigger) + ), + ), + DESCRIPTOR=_JOBTRIGGER, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""What event needs to occur for a new job to be started. Attributes: @@ -10274,30 +15581,36 @@ status: A status for this trigger. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.JobTrigger) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.JobTrigger) + ), +) _sym_db.RegisterMessage(JobTrigger) _sym_db.RegisterMessage(JobTrigger.Trigger) -Action = _reflection.GeneratedProtocolMessageType('Action', (_message.Message,), dict( - - SaveFindings = _reflection.GeneratedProtocolMessageType('SaveFindings', (_message.Message,), dict( - DESCRIPTOR = _ACTION_SAVEFINDINGS, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """If set, the detailed findings will be persisted to the specified +Action = _reflection.GeneratedProtocolMessageType( + "Action", + (_message.Message,), + dict( + SaveFindings=_reflection.GeneratedProtocolMessageType( + "SaveFindings", + (_message.Message,), + dict( + DESCRIPTOR=_ACTION_SAVEFINDINGS, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.SaveFindings) - )) - , - - PublishToPubSub = _reflection.GeneratedProtocolMessageType('PublishToPubSub', (_message.Message,), dict( - DESCRIPTOR = _ACTION_PUBLISHTOPUBSUB, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Publish the results of a DlpJob to a pub sub channel. Compatible with: + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.SaveFindings) + ), + ), + PublishToPubSub=_reflection.GeneratedProtocolMessageType( + "PublishToPubSub", + (_message.Message,), + dict( + DESCRIPTOR=_ACTION_PUBLISHTOPUBSUB, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Publish the results of a DlpJob to a pub sub channel. Compatible with: Inspect, Risk @@ -10308,15 +15621,16 @@ account executing the long running DlpJob sending the notifications. Format is projects/{project}/topics/{topic}. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishToPubSub) - )) - , - - PublishSummaryToCscc = _reflection.GeneratedProtocolMessageType('PublishSummaryToCscc', (_message.Message,), dict( - DESCRIPTOR = _ACTION_PUBLISHSUMMARYTOCSCC, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Publish the result summary of a DlpJob to the Cloud Security Command + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishToPubSub) + ), + ), + PublishSummaryToCscc=_reflection.GeneratedProtocolMessageType( + "PublishSummaryToCscc", + (_message.Message,), + dict( + DESCRIPTOR=_ACTION_PUBLISHSUMMARYTOCSCC, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Publish the result summary of a DlpJob to the Cloud Security Command Center (CSCC Alpha). This action is only available for projects which are parts of an organization and whitelisted for the alpha Cloud Security Command Center. The action will publish count of finding @@ -10325,13 +15639,12 @@ https://cloud.google.com/terms/service-terms Only a single instance of this action can be specified. Compatible with: Inspect """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishSummaryToCscc) - )) - , - DESCRIPTOR = _ACTION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """A task to execute on the completion of a job. See + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishSummaryToCscc) + ), + ), + DESCRIPTOR=_ACTION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""A task to execute on the completion of a job. See https://cloud.google.com/dlp/docs/concepts-actions to learn more. @@ -10343,18 +15656,21 @@ publish_summary_to_cscc: Publish summary to Cloud Security Command Center (Alpha). """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action) + ), +) _sym_db.RegisterMessage(Action) _sym_db.RegisterMessage(Action.SaveFindings) _sym_db.RegisterMessage(Action.PublishToPubSub) _sym_db.RegisterMessage(Action.PublishSummaryToCscc) -CreateInspectTemplateRequest = _reflection.GeneratedProtocolMessageType('CreateInspectTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEINSPECTTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for CreateInspectTemplate. +CreateInspectTemplateRequest = _reflection.GeneratedProtocolMessageType( + "CreateInspectTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEINSPECTTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for CreateInspectTemplate. Attributes: @@ -10369,15 +15685,18 @@ expression: ``[a-zA-Z\\d-]+``. The maximum length is 100 characters. Can be empty to allow the system to generate one. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateInspectTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateInspectTemplateRequest) + ), +) _sym_db.RegisterMessage(CreateInspectTemplateRequest) -UpdateInspectTemplateRequest = _reflection.GeneratedProtocolMessageType('UpdateInspectTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEINSPECTTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for UpdateInspectTemplate. +UpdateInspectTemplateRequest = _reflection.GeneratedProtocolMessageType( + "UpdateInspectTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEINSPECTTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for UpdateInspectTemplate. Attributes: @@ -10391,15 +15710,18 @@ update_mask: Mask to control which fields get updated. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateInspectTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateInspectTemplateRequest) + ), +) _sym_db.RegisterMessage(UpdateInspectTemplateRequest) -GetInspectTemplateRequest = _reflection.GeneratedProtocolMessageType('GetInspectTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _GETINSPECTTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for GetInspectTemplate. +GetInspectTemplateRequest = _reflection.GeneratedProtocolMessageType( + "GetInspectTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETINSPECTTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for GetInspectTemplate. Attributes: @@ -10409,15 +15731,18 @@ ``organizations/433245324/inspectTemplates/432452342`` or projects/project-id/inspectTemplates/432452342. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetInspectTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetInspectTemplateRequest) + ), +) _sym_db.RegisterMessage(GetInspectTemplateRequest) -ListInspectTemplatesRequest = _reflection.GeneratedProtocolMessageType('ListInspectTemplatesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTINSPECTTEMPLATESREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for ListInspectTemplates. +ListInspectTemplatesRequest = _reflection.GeneratedProtocolMessageType( + "ListInspectTemplatesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSPECTTEMPLATESREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for ListInspectTemplates. Attributes: @@ -10441,15 +15766,18 @@ updated. - ``name``: corresponds to template's name. - ``display_name``: corresponds to template's display name. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInspectTemplatesRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInspectTemplatesRequest) + ), +) _sym_db.RegisterMessage(ListInspectTemplatesRequest) -ListInspectTemplatesResponse = _reflection.GeneratedProtocolMessageType('ListInspectTemplatesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTINSPECTTEMPLATESRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Response message for ListInspectTemplates. +ListInspectTemplatesResponse = _reflection.GeneratedProtocolMessageType( + "ListInspectTemplatesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSPECTTEMPLATESRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Response message for ListInspectTemplates. Attributes: @@ -10460,15 +15788,18 @@ If the next page is available then the next page token to be used in following ListInspectTemplates request. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInspectTemplatesResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInspectTemplatesResponse) + ), +) _sym_db.RegisterMessage(ListInspectTemplatesResponse) -DeleteInspectTemplateRequest = _reflection.GeneratedProtocolMessageType('DeleteInspectTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEINSPECTTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for DeleteInspectTemplate. +DeleteInspectTemplateRequest = _reflection.GeneratedProtocolMessageType( + "DeleteInspectTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEINSPECTTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for DeleteInspectTemplate. Attributes: @@ -10478,15 +15809,18 @@ ``organizations/433245324/inspectTemplates/432452342`` or projects/project-id/inspectTemplates/432452342. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteInspectTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteInspectTemplateRequest) + ), +) _sym_db.RegisterMessage(DeleteInspectTemplateRequest) -CreateJobTriggerRequest = _reflection.GeneratedProtocolMessageType('CreateJobTriggerRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEJOBTRIGGERREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for CreateJobTrigger. +CreateJobTriggerRequest = _reflection.GeneratedProtocolMessageType( + "CreateJobTriggerRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEJOBTRIGGERREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for CreateJobTrigger. Attributes: @@ -10500,15 +15834,18 @@ expression: ``[a-zA-Z\\d-]+``. The maximum length is 100 characters. Can be empty to allow the system to generate one. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateJobTriggerRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateJobTriggerRequest) + ), +) _sym_db.RegisterMessage(CreateJobTriggerRequest) -UpdateJobTriggerRequest = _reflection.GeneratedProtocolMessageType('UpdateJobTriggerRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEJOBTRIGGERREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for UpdateJobTrigger. +UpdateJobTriggerRequest = _reflection.GeneratedProtocolMessageType( + "UpdateJobTriggerRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEJOBTRIGGERREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for UpdateJobTrigger. Attributes: @@ -10520,15 +15857,18 @@ update_mask: Mask to control which fields get updated. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateJobTriggerRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateJobTriggerRequest) + ), +) _sym_db.RegisterMessage(UpdateJobTriggerRequest) -GetJobTriggerRequest = _reflection.GeneratedProtocolMessageType('GetJobTriggerRequest', (_message.Message,), dict( - DESCRIPTOR = _GETJOBTRIGGERREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for GetJobTrigger. +GetJobTriggerRequest = _reflection.GeneratedProtocolMessageType( + "GetJobTriggerRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETJOBTRIGGERREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for GetJobTrigger. Attributes: @@ -10536,15 +15876,18 @@ Resource name of the project and the triggeredJob, for example ``projects/dlp-test-project/jobTriggers/53234423``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetJobTriggerRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetJobTriggerRequest) + ), +) _sym_db.RegisterMessage(GetJobTriggerRequest) -CreateDlpJobRequest = _reflection.GeneratedProtocolMessageType('CreateDlpJobRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEDLPJOBREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for CreateDlpJobRequest. Used to initiate long running +CreateDlpJobRequest = _reflection.GeneratedProtocolMessageType( + "CreateDlpJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEDLPJOBREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for CreateDlpJobRequest. Used to initiate long running jobs such as calculating risk metrics or inspecting Google Cloud Storage. @@ -10560,15 +15903,18 @@ expression: ``[a-zA-Z\\d-]+``. The maximum length is 100 characters. Can be empty to allow the system to generate one. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateDlpJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateDlpJobRequest) + ), +) _sym_db.RegisterMessage(CreateDlpJobRequest) -ListJobTriggersRequest = _reflection.GeneratedProtocolMessageType('ListJobTriggersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBTRIGGERSREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for ListJobTriggers. +ListJobTriggersRequest = _reflection.GeneratedProtocolMessageType( + "ListJobTriggersRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBTRIGGERSREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for ListJobTriggers. Attributes: @@ -10594,15 +15940,18 @@ JobTrigger's display name. - ``status``: corresponds to JobTrigger's status. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListJobTriggersRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListJobTriggersRequest) + ), +) _sym_db.RegisterMessage(ListJobTriggersRequest) -ListJobTriggersResponse = _reflection.GeneratedProtocolMessageType('ListJobTriggersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBTRIGGERSRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Response message for ListJobTriggers. +ListJobTriggersResponse = _reflection.GeneratedProtocolMessageType( + "ListJobTriggersResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBTRIGGERSRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Response message for ListJobTriggers. Attributes: @@ -10613,15 +15962,18 @@ If the next page is available then the next page token to be used in following ListJobTriggers request. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListJobTriggersResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListJobTriggersResponse) + ), +) _sym_db.RegisterMessage(ListJobTriggersResponse) -DeleteJobTriggerRequest = _reflection.GeneratedProtocolMessageType('DeleteJobTriggerRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEJOBTRIGGERREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for DeleteJobTrigger. +DeleteJobTriggerRequest = _reflection.GeneratedProtocolMessageType( + "DeleteJobTriggerRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEJOBTRIGGERREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for DeleteJobTrigger. Attributes: @@ -10629,15 +15981,18 @@ Resource name of the project and the triggeredJob, for example ``projects/dlp-test-project/jobTriggers/53234423``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteJobTriggerRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteJobTriggerRequest) + ), +) _sym_db.RegisterMessage(DeleteJobTriggerRequest) -InspectJobConfig = _reflection.GeneratedProtocolMessageType('InspectJobConfig', (_message.Message,), dict( - DESCRIPTOR = _INSPECTJOBCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Attributes: +InspectJobConfig = _reflection.GeneratedProtocolMessageType( + "InspectJobConfig", + (_message.Message,), + dict( + DESCRIPTOR=_INSPECTJOBCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Attributes: storage_config: \ The data to scan. inspect_config: \ @@ -10650,15 +16005,18 @@ Actions to execute at the completion of the job. Are executed \ in the order provided. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectJobConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectJobConfig) + ), +) _sym_db.RegisterMessage(InspectJobConfig) -DlpJob = _reflection.GeneratedProtocolMessageType('DlpJob', (_message.Message,), dict( - DESCRIPTOR = _DLPJOB, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Combines all of the information about a DLP job. +DlpJob = _reflection.GeneratedProtocolMessageType( + "DlpJob", + (_message.Message,), + dict( + DESCRIPTOR=_DLPJOB, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Combines all of the information about a DLP job. Attributes: @@ -10684,30 +16042,36 @@ errors: A stream of errors encountered running the job. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DlpJob) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DlpJob) + ), +) _sym_db.RegisterMessage(DlpJob) -GetDlpJobRequest = _reflection.GeneratedProtocolMessageType('GetDlpJobRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDLPJOBREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The request message for [DlpJobs.GetDlpJob][]. +GetDlpJobRequest = _reflection.GeneratedProtocolMessageType( + "GetDlpJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDLPJOBREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The request message for [DlpJobs.GetDlpJob][]. Attributes: name: The name of the DlpJob resource. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetDlpJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetDlpJobRequest) + ), +) _sym_db.RegisterMessage(GetDlpJobRequest) -ListDlpJobsRequest = _reflection.GeneratedProtocolMessageType('ListDlpJobsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDLPJOBSREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The request message for listing DLP jobs. +ListDlpJobsRequest = _reflection.GeneratedProtocolMessageType( + "ListDlpJobsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDLPJOBSREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The request message for listing DLP jobs. Attributes: @@ -10747,15 +16111,18 @@ corresponds to time the job ended. - ``name``: corresponds to job's name. - ``state``: corresponds to ``state`` """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDlpJobsRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDlpJobsRequest) + ), +) _sym_db.RegisterMessage(ListDlpJobsRequest) -ListDlpJobsResponse = _reflection.GeneratedProtocolMessageType('ListDlpJobsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDLPJOBSRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The response message for listing DLP jobs. +ListDlpJobsResponse = _reflection.GeneratedProtocolMessageType( + "ListDlpJobsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDLPJOBSRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The response message for listing DLP jobs. Attributes: @@ -10765,45 +16132,54 @@ next_page_token: The standard List next-page token. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDlpJobsResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDlpJobsResponse) + ), +) _sym_db.RegisterMessage(ListDlpJobsResponse) -CancelDlpJobRequest = _reflection.GeneratedProtocolMessageType('CancelDlpJobRequest', (_message.Message,), dict( - DESCRIPTOR = _CANCELDLPJOBREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The request message for canceling a DLP job. +CancelDlpJobRequest = _reflection.GeneratedProtocolMessageType( + "CancelDlpJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CANCELDLPJOBREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The request message for canceling a DLP job. Attributes: name: The name of the DlpJob resource to be cancelled. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CancelDlpJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CancelDlpJobRequest) + ), +) _sym_db.RegisterMessage(CancelDlpJobRequest) -DeleteDlpJobRequest = _reflection.GeneratedProtocolMessageType('DeleteDlpJobRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEDLPJOBREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """The request message for deleting a DLP job. +DeleteDlpJobRequest = _reflection.GeneratedProtocolMessageType( + "DeleteDlpJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEDLPJOBREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""The request message for deleting a DLP job. Attributes: name: The name of the DlpJob resource to be deleted. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteDlpJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteDlpJobRequest) + ), +) _sym_db.RegisterMessage(DeleteDlpJobRequest) -CreateDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType('CreateDeidentifyTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEDEIDENTIFYTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for CreateDeidentifyTemplate. +CreateDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType( + "CreateDeidentifyTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEDEIDENTIFYTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for CreateDeidentifyTemplate. Attributes: @@ -10818,15 +16194,18 @@ expression: ``[a-zA-Z\\d-]+``. The maximum length is 100 characters. Can be empty to allow the system to generate one. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateDeidentifyTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateDeidentifyTemplateRequest) + ), +) _sym_db.RegisterMessage(CreateDeidentifyTemplateRequest) -UpdateDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType('UpdateDeidentifyTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEDEIDENTIFYTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for UpdateDeidentifyTemplate. +UpdateDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType( + "UpdateDeidentifyTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEDEIDENTIFYTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for UpdateDeidentifyTemplate. Attributes: @@ -10840,15 +16219,18 @@ update_mask: Mask to control which fields get updated. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest) + ), +) _sym_db.RegisterMessage(UpdateDeidentifyTemplateRequest) -GetDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType('GetDeidentifyTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDEIDENTIFYTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for GetDeidentifyTemplate. +GetDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType( + "GetDeidentifyTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDEIDENTIFYTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for GetDeidentifyTemplate. Attributes: @@ -10858,15 +16240,18 @@ ``organizations/433245324/deidentifyTemplates/432452342`` or projects/project-id/deidentifyTemplates/432452342. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetDeidentifyTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetDeidentifyTemplateRequest) + ), +) _sym_db.RegisterMessage(GetDeidentifyTemplateRequest) -ListDeidentifyTemplatesRequest = _reflection.GeneratedProtocolMessageType('ListDeidentifyTemplatesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDEIDENTIFYTEMPLATESREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for ListDeidentifyTemplates. +ListDeidentifyTemplatesRequest = _reflection.GeneratedProtocolMessageType( + "ListDeidentifyTemplatesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEIDENTIFYTEMPLATESREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for ListDeidentifyTemplates. Attributes: @@ -10890,15 +16275,18 @@ updated. - ``name``: corresponds to template's name. - ``display_name``: corresponds to template's display name. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDeidentifyTemplatesRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDeidentifyTemplatesRequest) + ), +) _sym_db.RegisterMessage(ListDeidentifyTemplatesRequest) -ListDeidentifyTemplatesResponse = _reflection.GeneratedProtocolMessageType('ListDeidentifyTemplatesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDEIDENTIFYTEMPLATESRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Response message for ListDeidentifyTemplates. +ListDeidentifyTemplatesResponse = _reflection.GeneratedProtocolMessageType( + "ListDeidentifyTemplatesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEIDENTIFYTEMPLATESRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Response message for ListDeidentifyTemplates. Attributes: @@ -10909,15 +16297,18 @@ If the next page is available then the next page token to be used in following ListDeidentifyTemplates request. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDeidentifyTemplatesResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListDeidentifyTemplatesResponse) + ), +) _sym_db.RegisterMessage(ListDeidentifyTemplatesResponse) -DeleteDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType('DeleteDeidentifyTemplateRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEDEIDENTIFYTEMPLATEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for DeleteDeidentifyTemplate. +DeleteDeidentifyTemplateRequest = _reflection.GeneratedProtocolMessageType( + "DeleteDeidentifyTemplateRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEDEIDENTIFYTEMPLATEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for DeleteDeidentifyTemplate. Attributes: @@ -10927,15 +16318,18 @@ ``organizations/433245324/deidentifyTemplates/432452342`` or projects/project-id/deidentifyTemplates/432452342. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest) + ), +) _sym_db.RegisterMessage(DeleteDeidentifyTemplateRequest) -LargeCustomDictionaryConfig = _reflection.GeneratedProtocolMessageType('LargeCustomDictionaryConfig', (_message.Message,), dict( - DESCRIPTOR = _LARGECUSTOMDICTIONARYCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Configuration for a custom dictionary created from a data source of any +LargeCustomDictionaryConfig = _reflection.GeneratedProtocolMessageType( + "LargeCustomDictionaryConfig", + (_message.Message,), + dict( + DESCRIPTOR=_LARGECUSTOMDICTIONARYCONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Configuration for a custom dictionary created from a data source of any size up to the maximum size defined in the `limits `__ page. The artifacts of dictionary creation are stored in the specified Google Cloud Storage @@ -10956,15 +16350,18 @@ Field in a BigQuery table where each cell represents a dictionary phrase. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.LargeCustomDictionaryConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.LargeCustomDictionaryConfig) + ), +) _sym_db.RegisterMessage(LargeCustomDictionaryConfig) -StoredInfoTypeConfig = _reflection.GeneratedProtocolMessageType('StoredInfoTypeConfig', (_message.Message,), dict( - DESCRIPTOR = _STOREDINFOTYPECONFIG, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Configuration for a StoredInfoType. +StoredInfoTypeConfig = _reflection.GeneratedProtocolMessageType( + "StoredInfoTypeConfig", + (_message.Message,), + dict( + DESCRIPTOR=_STOREDINFOTYPECONFIG, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Configuration for a StoredInfoType. Attributes: @@ -10976,15 +16373,18 @@ StoredInfoType where findings are defined by a dictionary of phrases. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredInfoTypeConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredInfoTypeConfig) + ), +) _sym_db.RegisterMessage(StoredInfoTypeConfig) -StoredInfoTypeVersion = _reflection.GeneratedProtocolMessageType('StoredInfoTypeVersion', (_message.Message,), dict( - DESCRIPTOR = _STOREDINFOTYPEVERSION, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Version of a StoredInfoType, including the configuration used to build +StoredInfoTypeVersion = _reflection.GeneratedProtocolMessageType( + "StoredInfoTypeVersion", + (_message.Message,), + dict( + DESCRIPTOR=_STOREDINFOTYPEVERSION, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state. @@ -11012,15 +16412,18 @@ it, reusing the same ``config`` if it was not the source of the error. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredInfoTypeVersion) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredInfoTypeVersion) + ), +) _sym_db.RegisterMessage(StoredInfoTypeVersion) -StoredInfoType = _reflection.GeneratedProtocolMessageType('StoredInfoType', (_message.Message,), dict( - DESCRIPTOR = _STOREDINFOTYPE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """StoredInfoType resource message that contains information about the +StoredInfoType = _reflection.GeneratedProtocolMessageType( + "StoredInfoType", + (_message.Message,), + dict( + DESCRIPTOR=_STOREDINFOTYPE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""StoredInfoType resource message that contains information about the current version and any pending updates. @@ -11033,15 +16436,18 @@ Pending versions of the stored info type. Empty if no versions are pending. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredInfoType) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredInfoType) + ), +) _sym_db.RegisterMessage(StoredInfoType) -CreateStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType('CreateStoredInfoTypeRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATESTOREDINFOTYPEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for CreateStoredInfoType. +CreateStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType( + "CreateStoredInfoTypeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATESTOREDINFOTYPEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for CreateStoredInfoType. Attributes: @@ -11057,15 +16463,18 @@ 100 characters. Can be empty to allow the system to generate one. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateStoredInfoTypeRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CreateStoredInfoTypeRequest) + ), +) _sym_db.RegisterMessage(CreateStoredInfoTypeRequest) -UpdateStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType('UpdateStoredInfoTypeRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATESTOREDINFOTYPEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for UpdateStoredInfoType. +UpdateStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType( + "UpdateStoredInfoTypeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATESTOREDINFOTYPEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for UpdateStoredInfoType. Attributes: @@ -11081,15 +16490,18 @@ update_mask: Mask to control which fields get updated. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateStoredInfoTypeRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.UpdateStoredInfoTypeRequest) + ), +) _sym_db.RegisterMessage(UpdateStoredInfoTypeRequest) -GetStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType('GetStoredInfoTypeRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSTOREDINFOTYPEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for GetStoredInfoType. +GetStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType( + "GetStoredInfoTypeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSTOREDINFOTYPEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for GetStoredInfoType. Attributes: @@ -11099,15 +16511,18 @@ ``organizations/433245324/storedInfoTypes/432452342`` or projects/project-id/storedInfoTypes/432452342. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetStoredInfoTypeRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetStoredInfoTypeRequest) + ), +) _sym_db.RegisterMessage(GetStoredInfoTypeRequest) -ListStoredInfoTypesRequest = _reflection.GeneratedProtocolMessageType('ListStoredInfoTypesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTSTOREDINFOTYPESREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for ListStoredInfoTypes. +ListStoredInfoTypesRequest = _reflection.GeneratedProtocolMessageType( + "ListStoredInfoTypesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSTOREDINFOTYPESREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for ListStoredInfoTypes. Attributes: @@ -11131,15 +16546,18 @@ resource. - ``name``: corresponds to resource name. - ``display_name``: corresponds to info type's display name. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListStoredInfoTypesRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListStoredInfoTypesRequest) + ), +) _sym_db.RegisterMessage(ListStoredInfoTypesRequest) -ListStoredInfoTypesResponse = _reflection.GeneratedProtocolMessageType('ListStoredInfoTypesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTSTOREDINFOTYPESRESPONSE, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Response message for ListStoredInfoTypes. +ListStoredInfoTypesResponse = _reflection.GeneratedProtocolMessageType( + "ListStoredInfoTypesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSTOREDINFOTYPESRESPONSE, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Response message for ListStoredInfoTypes. Attributes: @@ -11150,15 +16568,18 @@ If the next page is available then the next page token to be used in following ListStoredInfoTypes request. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListStoredInfoTypesResponse) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListStoredInfoTypesResponse) + ), +) _sym_db.RegisterMessage(ListStoredInfoTypesResponse) -DeleteStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType('DeleteStoredInfoTypeRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETESTOREDINFOTYPEREQUEST, - __module__ = 'google.cloud.dlp_v2.proto.dlp_pb2' - , - __doc__ = """Request message for DeleteStoredInfoType. +DeleteStoredInfoTypeRequest = _reflection.GeneratedProtocolMessageType( + "DeleteStoredInfoTypeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESTOREDINFOTYPEREQUEST, + __module__="google.cloud.dlp_v2.proto.dlp_pb2", + __doc__="""Request message for DeleteStoredInfoType. Attributes: @@ -11168,296 +16589,431 @@ ``organizations/433245324/storedInfoTypes/432452342`` or projects/project-id/storedInfoTypes/432452342. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteStoredInfoTypeRequest) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteStoredInfoTypeRequest) + ), +) _sym_db.RegisterMessage(DeleteStoredInfoTypeRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\031com.google.privacy.dlp.v2B\010DlpProtoP\001Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\031com.google.privacy.dlp.v2B\010DlpProtoP\001Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2" + ), +) _DLPSERVICE = _descriptor.ServiceDescriptor( - name='DlpService', - full_name='google.privacy.dlp.v2.DlpService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=26304, - serialized_end=31849, - methods=[ - _descriptor.MethodDescriptor( - name='InspectContent', - full_name='google.privacy.dlp.v2.DlpService.InspectContent', + name="DlpService", + full_name="google.privacy.dlp.v2.DlpService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_INSPECTCONTENTREQUEST, - output_type=_INSPECTCONTENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\"\'/v2/{parent=projects/*}/content:inspect:\001*')), - ), - _descriptor.MethodDescriptor( - name='RedactImage', - full_name='google.privacy.dlp.v2.DlpService.RedactImage', - index=1, - containing_service=None, - input_type=_REDACTIMAGEREQUEST, - output_type=_REDACTIMAGERESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\"$/v2/{parent=projects/*}/image:redact:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeidentifyContent', - full_name='google.privacy.dlp.v2.DlpService.DeidentifyContent', - index=2, - containing_service=None, - input_type=_DEIDENTIFYCONTENTREQUEST, - output_type=_DEIDENTIFYCONTENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\"*/v2/{parent=projects/*}/content:deidentify:\001*')), - ), - _descriptor.MethodDescriptor( - name='ReidentifyContent', - full_name='google.privacy.dlp.v2.DlpService.ReidentifyContent', - index=3, - containing_service=None, - input_type=_REIDENTIFYCONTENTREQUEST, - output_type=_REIDENTIFYCONTENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\"*/v2/{parent=projects/*}/content:reidentify:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListInfoTypes', - full_name='google.privacy.dlp.v2.DlpService.ListInfoTypes', - index=4, - containing_service=None, - input_type=_LISTINFOTYPESREQUEST, - output_type=_LISTINFOTYPESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\017\022\r/v2/infoTypes')), - ), - _descriptor.MethodDescriptor( - name='CreateInspectTemplate', - full_name='google.privacy.dlp.v2.DlpService.CreateInspectTemplate', - index=5, - containing_service=None, - input_type=_CREATEINSPECTTEMPLATEREQUEST, - output_type=_INSPECTTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002a\"-/v2/{parent=organizations/*}/inspectTemplates:\001*Z-\"(/v2/{parent=projects/*}/inspectTemplates:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateInspectTemplate', - full_name='google.privacy.dlp.v2.DlpService.UpdateInspectTemplate', - index=6, - containing_service=None, - input_type=_UPDATEINSPECTTEMPLATEREQUEST, - output_type=_INSPECTTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002a2-/v2/{name=organizations/*/inspectTemplates/*}:\001*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetInspectTemplate', - full_name='google.privacy.dlp.v2.DlpService.GetInspectTemplate', - index=7, - containing_service=None, - input_type=_GETINSPECTTEMPLATEREQUEST, - output_type=_INSPECTTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002[\022-/v2/{name=organizations/*/inspectTemplates/*}Z*\022(/v2/{name=projects/*/inspectTemplates/*}')), - ), - _descriptor.MethodDescriptor( - name='ListInspectTemplates', - full_name='google.privacy.dlp.v2.DlpService.ListInspectTemplates', - index=8, - containing_service=None, - input_type=_LISTINSPECTTEMPLATESREQUEST, - output_type=_LISTINSPECTTEMPLATESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002[\022-/v2/{parent=organizations/*}/inspectTemplatesZ*\022(/v2/{parent=projects/*}/inspectTemplates')), - ), - _descriptor.MethodDescriptor( - name='DeleteInspectTemplate', - full_name='google.privacy.dlp.v2.DlpService.DeleteInspectTemplate', - index=9, - containing_service=None, - input_type=_DELETEINSPECTTEMPLATEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002[*-/v2/{name=organizations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateDeidentifyTemplate', - full_name='google.privacy.dlp.v2.DlpService.CreateDeidentifyTemplate', - index=10, - containing_service=None, - input_type=_CREATEDEIDENTIFYTEMPLATEREQUEST, - output_type=_DEIDENTIFYTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002g\"0/v2/{parent=organizations/*}/deidentifyTemplates:\001*Z0\"+/v2/{parent=projects/*}/deidentifyTemplates:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateDeidentifyTemplate', - full_name='google.privacy.dlp.v2.DlpService.UpdateDeidentifyTemplate', - index=11, - containing_service=None, - input_type=_UPDATEDEIDENTIFYTEMPLATEREQUEST, - output_type=_DEIDENTIFYTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002g20/v2/{name=organizations/*/deidentifyTemplates/*}:\001*Z02+/v2/{name=projects/*/deidentifyTemplates/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetDeidentifyTemplate', - full_name='google.privacy.dlp.v2.DlpService.GetDeidentifyTemplate', - index=12, - containing_service=None, - input_type=_GETDEIDENTIFYTEMPLATEREQUEST, - output_type=_DEIDENTIFYTEMPLATE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002a\0220/v2/{name=organizations/*/deidentifyTemplates/*}Z-\022+/v2/{name=projects/*/deidentifyTemplates/*}')), - ), - _descriptor.MethodDescriptor( - name='ListDeidentifyTemplates', - full_name='google.privacy.dlp.v2.DlpService.ListDeidentifyTemplates', - index=13, - containing_service=None, - input_type=_LISTDEIDENTIFYTEMPLATESREQUEST, - output_type=_LISTDEIDENTIFYTEMPLATESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002a\0220/v2/{parent=organizations/*}/deidentifyTemplatesZ-\022+/v2/{parent=projects/*}/deidentifyTemplates')), - ), - _descriptor.MethodDescriptor( - name='DeleteDeidentifyTemplate', - full_name='google.privacy.dlp.v2.DlpService.DeleteDeidentifyTemplate', - index=14, - containing_service=None, - input_type=_DELETEDEIDENTIFYTEMPLATEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002a*0/v2/{name=organizations/*/deidentifyTemplates/*}Z-*+/v2/{name=projects/*/deidentifyTemplates/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateJobTrigger', - full_name='google.privacy.dlp.v2.DlpService.CreateJobTrigger', - index=15, - containing_service=None, - input_type=_CREATEJOBTRIGGERREQUEST, - output_type=_JOBTRIGGER, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\"#/v2/{parent=projects/*}/jobTriggers:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateJobTrigger', - full_name='google.privacy.dlp.v2.DlpService.UpdateJobTrigger', - index=16, - containing_service=None, - input_type=_UPDATEJOBTRIGGERREQUEST, - output_type=_JOBTRIGGER, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(2#/v2/{name=projects/*/jobTriggers/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetJobTrigger', - full_name='google.privacy.dlp.v2.DlpService.GetJobTrigger', - index=17, - containing_service=None, - input_type=_GETJOBTRIGGERREQUEST, - output_type=_JOBTRIGGER, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\022#/v2/{name=projects/*/jobTriggers/*}')), - ), - _descriptor.MethodDescriptor( - name='ListJobTriggers', - full_name='google.privacy.dlp.v2.DlpService.ListJobTriggers', - index=18, - containing_service=None, - input_type=_LISTJOBTRIGGERSREQUEST, - output_type=_LISTJOBTRIGGERSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\022#/v2/{parent=projects/*}/jobTriggers')), - ), - _descriptor.MethodDescriptor( - name='DeleteJobTrigger', - full_name='google.privacy.dlp.v2.DlpService.DeleteJobTrigger', - index=19, - containing_service=None, - input_type=_DELETEJOBTRIGGERREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%*#/v2/{name=projects/*/jobTriggers/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateDlpJob', - full_name='google.privacy.dlp.v2.DlpService.CreateDlpJob', - index=20, - containing_service=None, - input_type=_CREATEDLPJOBREQUEST, - output_type=_DLPJOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002$\"\037/v2/{parent=projects/*}/dlpJobs:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListDlpJobs', - full_name='google.privacy.dlp.v2.DlpService.ListDlpJobs', - index=21, - containing_service=None, - input_type=_LISTDLPJOBSREQUEST, - output_type=_LISTDLPJOBSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002!\022\037/v2/{parent=projects/*}/dlpJobs')), - ), - _descriptor.MethodDescriptor( - name='GetDlpJob', - full_name='google.privacy.dlp.v2.DlpService.GetDlpJob', - index=22, - containing_service=None, - input_type=_GETDLPJOBREQUEST, - output_type=_DLPJOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002!\022\037/v2/{name=projects/*/dlpJobs/*}')), - ), - _descriptor.MethodDescriptor( - name='DeleteDlpJob', - full_name='google.privacy.dlp.v2.DlpService.DeleteDlpJob', - index=23, - containing_service=None, - input_type=_DELETEDLPJOBREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002!*\037/v2/{name=projects/*/dlpJobs/*}')), - ), - _descriptor.MethodDescriptor( - name='CancelDlpJob', - full_name='google.privacy.dlp.v2.DlpService.CancelDlpJob', - index=24, - containing_service=None, - input_type=_CANCELDLPJOBREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+\"&/v2/{name=projects/*/dlpJobs/*}:cancel:\001*')), - ), - _descriptor.MethodDescriptor( - name='CreateStoredInfoType', - full_name='google.privacy.dlp.v2.DlpService.CreateStoredInfoType', - index=25, - containing_service=None, - input_type=_CREATESTOREDINFOTYPEREQUEST, - output_type=_STOREDINFOTYPE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002_\",/v2/{parent=organizations/*}/storedInfoTypes:\001*Z,\"\'/v2/{parent=projects/*}/storedInfoTypes:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateStoredInfoType', - full_name='google.privacy.dlp.v2.DlpService.UpdateStoredInfoType', - index=26, - containing_service=None, - input_type=_UPDATESTOREDINFOTYPEREQUEST, - output_type=_STOREDINFOTYPE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002_2,/v2/{name=organizations/*/storedInfoTypes/*}:\001*Z,2\'/v2/{name=projects/*/storedInfoTypes/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetStoredInfoType', - full_name='google.privacy.dlp.v2.DlpService.GetStoredInfoType', - index=27, - containing_service=None, - input_type=_GETSTOREDINFOTYPEREQUEST, - output_type=_STOREDINFOTYPE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Y\022,/v2/{name=organizations/*/storedInfoTypes/*}Z)\022\'/v2/{name=projects/*/storedInfoTypes/*}')), - ), - _descriptor.MethodDescriptor( - name='ListStoredInfoTypes', - full_name='google.privacy.dlp.v2.DlpService.ListStoredInfoTypes', - index=28, - containing_service=None, - input_type=_LISTSTOREDINFOTYPESREQUEST, - output_type=_LISTSTOREDINFOTYPESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Y\022,/v2/{parent=organizations/*}/storedInfoTypesZ)\022\'/v2/{parent=projects/*}/storedInfoTypes')), - ), - _descriptor.MethodDescriptor( - name='DeleteStoredInfoType', - full_name='google.privacy.dlp.v2.DlpService.DeleteStoredInfoType', - index=29, - containing_service=None, - input_type=_DELETESTOREDINFOTYPEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Y*,/v2/{name=organizations/*/storedInfoTypes/*}Z)*\'/v2/{name=projects/*/storedInfoTypes/*}')), - ), -]) + options=None, + serialized_start=26304, + serialized_end=31849, + methods=[ + _descriptor.MethodDescriptor( + name="InspectContent", + full_name="google.privacy.dlp.v2.DlpService.InspectContent", + index=0, + containing_service=None, + input_type=_INSPECTCONTENTREQUEST, + output_type=_INSPECTCONTENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\"'/v2/{parent=projects/*}/content:inspect:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="RedactImage", + full_name="google.privacy.dlp.v2.DlpService.RedactImage", + index=1, + containing_service=None, + input_type=_REDACTIMAGEREQUEST, + output_type=_REDACTIMAGERESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002)"$/v2/{parent=projects/*}/image:redact:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="DeidentifyContent", + full_name="google.privacy.dlp.v2.DlpService.DeidentifyContent", + index=2, + containing_service=None, + input_type=_DEIDENTIFYCONTENTREQUEST, + output_type=_DEIDENTIFYCONTENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002/"*/v2/{parent=projects/*}/content:deidentify:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ReidentifyContent", + full_name="google.privacy.dlp.v2.DlpService.ReidentifyContent", + index=3, + containing_service=None, + input_type=_REIDENTIFYCONTENTREQUEST, + output_type=_REIDENTIFYCONTENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002/"*/v2/{parent=projects/*}/content:reidentify:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListInfoTypes", + full_name="google.privacy.dlp.v2.DlpService.ListInfoTypes", + index=4, + containing_service=None, + input_type=_LISTINFOTYPESREQUEST, + output_type=_LISTINFOTYPESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\017\022\r/v2/infoTypes"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateInspectTemplate", + full_name="google.privacy.dlp.v2.DlpService.CreateInspectTemplate", + index=5, + containing_service=None, + input_type=_CREATEINSPECTTEMPLATEREQUEST, + output_type=_INSPECTTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002a"-/v2/{parent=organizations/*}/inspectTemplates:\001*Z-"(/v2/{parent=projects/*}/inspectTemplates:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateInspectTemplate", + full_name="google.privacy.dlp.v2.DlpService.UpdateInspectTemplate", + index=6, + containing_service=None, + input_type=_UPDATEINSPECTTEMPLATEREQUEST, + output_type=_INSPECTTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002a2-/v2/{name=organizations/*/inspectTemplates/*}:\001*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetInspectTemplate", + full_name="google.privacy.dlp.v2.DlpService.GetInspectTemplate", + index=7, + containing_service=None, + input_type=_GETINSPECTTEMPLATEREQUEST, + output_type=_INSPECTTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002[\022-/v2/{name=organizations/*/inspectTemplates/*}Z*\022(/v2/{name=projects/*/inspectTemplates/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListInspectTemplates", + full_name="google.privacy.dlp.v2.DlpService.ListInspectTemplates", + index=8, + containing_service=None, + input_type=_LISTINSPECTTEMPLATESREQUEST, + output_type=_LISTINSPECTTEMPLATESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002[\022-/v2/{parent=organizations/*}/inspectTemplatesZ*\022(/v2/{parent=projects/*}/inspectTemplates" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteInspectTemplate", + full_name="google.privacy.dlp.v2.DlpService.DeleteInspectTemplate", + index=9, + containing_service=None, + input_type=_DELETEINSPECTTEMPLATEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002[*-/v2/{name=organizations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateDeidentifyTemplate", + full_name="google.privacy.dlp.v2.DlpService.CreateDeidentifyTemplate", + index=10, + containing_service=None, + input_type=_CREATEDEIDENTIFYTEMPLATEREQUEST, + output_type=_DEIDENTIFYTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002g"0/v2/{parent=organizations/*}/deidentifyTemplates:\001*Z0"+/v2/{parent=projects/*}/deidentifyTemplates:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateDeidentifyTemplate", + full_name="google.privacy.dlp.v2.DlpService.UpdateDeidentifyTemplate", + index=11, + containing_service=None, + input_type=_UPDATEDEIDENTIFYTEMPLATEREQUEST, + output_type=_DEIDENTIFYTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002g20/v2/{name=organizations/*/deidentifyTemplates/*}:\001*Z02+/v2/{name=projects/*/deidentifyTemplates/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetDeidentifyTemplate", + full_name="google.privacy.dlp.v2.DlpService.GetDeidentifyTemplate", + index=12, + containing_service=None, + input_type=_GETDEIDENTIFYTEMPLATEREQUEST, + output_type=_DEIDENTIFYTEMPLATE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002a\0220/v2/{name=organizations/*/deidentifyTemplates/*}Z-\022+/v2/{name=projects/*/deidentifyTemplates/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListDeidentifyTemplates", + full_name="google.privacy.dlp.v2.DlpService.ListDeidentifyTemplates", + index=13, + containing_service=None, + input_type=_LISTDEIDENTIFYTEMPLATESREQUEST, + output_type=_LISTDEIDENTIFYTEMPLATESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002a\0220/v2/{parent=organizations/*}/deidentifyTemplatesZ-\022+/v2/{parent=projects/*}/deidentifyTemplates" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteDeidentifyTemplate", + full_name="google.privacy.dlp.v2.DlpService.DeleteDeidentifyTemplate", + index=14, + containing_service=None, + input_type=_DELETEDEIDENTIFYTEMPLATEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002a*0/v2/{name=organizations/*/deidentifyTemplates/*}Z-*+/v2/{name=projects/*/deidentifyTemplates/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateJobTrigger", + full_name="google.privacy.dlp.v2.DlpService.CreateJobTrigger", + index=15, + containing_service=None, + input_type=_CREATEJOBTRIGGERREQUEST, + output_type=_JOBTRIGGER, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002("#/v2/{parent=projects/*}/jobTriggers:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateJobTrigger", + full_name="google.privacy.dlp.v2.DlpService.UpdateJobTrigger", + index=16, + containing_service=None, + input_type=_UPDATEJOBTRIGGERREQUEST, + output_type=_JOBTRIGGER, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002(2#/v2/{name=projects/*/jobTriggers/*}:\001*"), + ), + ), + _descriptor.MethodDescriptor( + name="GetJobTrigger", + full_name="google.privacy.dlp.v2.DlpService.GetJobTrigger", + index=17, + containing_service=None, + input_type=_GETJOBTRIGGERREQUEST, + output_type=_JOBTRIGGER, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002%\022#/v2/{name=projects/*/jobTriggers/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListJobTriggers", + full_name="google.privacy.dlp.v2.DlpService.ListJobTriggers", + index=18, + containing_service=None, + input_type=_LISTJOBTRIGGERSREQUEST, + output_type=_LISTJOBTRIGGERSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002%\022#/v2/{parent=projects/*}/jobTriggers"), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteJobTrigger", + full_name="google.privacy.dlp.v2.DlpService.DeleteJobTrigger", + index=19, + containing_service=None, + input_type=_DELETEJOBTRIGGERREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002%*#/v2/{name=projects/*/jobTriggers/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateDlpJob", + full_name="google.privacy.dlp.v2.DlpService.CreateDlpJob", + index=20, + containing_service=None, + input_type=_CREATEDLPJOBREQUEST, + output_type=_DLPJOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002$"\037/v2/{parent=projects/*}/dlpJobs:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="ListDlpJobs", + full_name="google.privacy.dlp.v2.DlpService.ListDlpJobs", + index=21, + containing_service=None, + input_type=_LISTDLPJOBSREQUEST, + output_type=_LISTDLPJOBSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002!\022\037/v2/{parent=projects/*}/dlpJobs"), + ), + ), + _descriptor.MethodDescriptor( + name="GetDlpJob", + full_name="google.privacy.dlp.v2.DlpService.GetDlpJob", + index=22, + containing_service=None, + input_type=_GETDLPJOBREQUEST, + output_type=_DLPJOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002!\022\037/v2/{name=projects/*/dlpJobs/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteDlpJob", + full_name="google.privacy.dlp.v2.DlpService.DeleteDlpJob", + index=23, + containing_service=None, + input_type=_DELETEDLPJOBREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002!*\037/v2/{name=projects/*/dlpJobs/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CancelDlpJob", + full_name="google.privacy.dlp.v2.DlpService.CancelDlpJob", + index=24, + containing_service=None, + input_type=_CANCELDLPJOBREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002+"&/v2/{name=projects/*/dlpJobs/*}:cancel:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateStoredInfoType", + full_name="google.privacy.dlp.v2.DlpService.CreateStoredInfoType", + index=25, + containing_service=None, + input_type=_CREATESTOREDINFOTYPEREQUEST, + output_type=_STOREDINFOTYPE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002_",/v2/{parent=organizations/*}/storedInfoTypes:\001*Z,"\'/v2/{parent=projects/*}/storedInfoTypes:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateStoredInfoType", + full_name="google.privacy.dlp.v2.DlpService.UpdateStoredInfoType", + index=26, + containing_service=None, + input_type=_UPDATESTOREDINFOTYPEREQUEST, + output_type=_STOREDINFOTYPE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002_2,/v2/{name=organizations/*/storedInfoTypes/*}:\001*Z,2'/v2/{name=projects/*/storedInfoTypes/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetStoredInfoType", + full_name="google.privacy.dlp.v2.DlpService.GetStoredInfoType", + index=27, + containing_service=None, + input_type=_GETSTOREDINFOTYPEREQUEST, + output_type=_STOREDINFOTYPE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Y\022,/v2/{name=organizations/*/storedInfoTypes/*}Z)\022'/v2/{name=projects/*/storedInfoTypes/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListStoredInfoTypes", + full_name="google.privacy.dlp.v2.DlpService.ListStoredInfoTypes", + index=28, + containing_service=None, + input_type=_LISTSTOREDINFOTYPESREQUEST, + output_type=_LISTSTOREDINFOTYPESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Y\022,/v2/{parent=organizations/*}/storedInfoTypesZ)\022'/v2/{parent=projects/*}/storedInfoTypes" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteStoredInfoType", + full_name="google.privacy.dlp.v2.DlpService.DeleteStoredInfoType", + index=29, + containing_service=None, + input_type=_DELETESTOREDINFOTYPEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Y*,/v2/{name=organizations/*/storedInfoTypes/*}Z)*'/v2/{name=projects/*/storedInfoTypes/*}" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_DLPSERVICE) -DESCRIPTOR.services_by_name['DlpService'] = _DLPSERVICE +DESCRIPTOR.services_by_name["DlpService"] = _DLPSERVICE # @@protoc_insertion_point(module_scope) diff --git a/dlp/google/cloud/dlp_v2/proto/dlp_pb2_grpc.py b/dlp/google/cloud/dlp_v2/proto/dlp_pb2_grpc.py index f5b94196b160f..7f8c675d1c8c7 100644 --- a/dlp/google/cloud/dlp_v2/proto/dlp_pb2_grpc.py +++ b/dlp/google/cloud/dlp_v2/proto/dlp_pb2_grpc.py @@ -1,12 +1,14 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.dlp_v2.proto import dlp_pb2 as google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2 +from google.cloud.dlp_v2.proto import ( + dlp_pb2 as google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class DlpServiceStub(object): - """The Cloud Data Loss Prevention (DLP) API is a service that allows clients + """The Cloud Data Loss Prevention (DLP) API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. @@ -17,166 +19,166 @@ class DlpServiceStub(object): https://cloud.google.com/dlp/docs/. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.InspectContent = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/InspectContent', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentResponse.FromString, + self.InspectContent = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/InspectContent", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentResponse.FromString, ) - self.RedactImage = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/RedactImage', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageResponse.FromString, + self.RedactImage = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/RedactImage", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageResponse.FromString, ) - self.DeidentifyContent = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/DeidentifyContent', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentResponse.FromString, + self.DeidentifyContent = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/DeidentifyContent", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentResponse.FromString, ) - self.ReidentifyContent = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/ReidentifyContent', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentResponse.FromString, + self.ReidentifyContent = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/ReidentifyContent", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentResponse.FromString, ) - self.ListInfoTypes = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/ListInfoTypes', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesResponse.FromString, + self.ListInfoTypes = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/ListInfoTypes", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesResponse.FromString, ) - self.CreateInspectTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/CreateInspectTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateInspectTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.FromString, + self.CreateInspectTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/CreateInspectTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateInspectTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.FromString, ) - self.UpdateInspectTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/UpdateInspectTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateInspectTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.FromString, + self.UpdateInspectTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/UpdateInspectTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateInspectTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.FromString, ) - self.GetInspectTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/GetInspectTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetInspectTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.FromString, + self.GetInspectTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/GetInspectTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetInspectTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.FromString, ) - self.ListInspectTemplates = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/ListInspectTemplates', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesResponse.FromString, + self.ListInspectTemplates = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/ListInspectTemplates", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesResponse.FromString, ) - self.DeleteInspectTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/DeleteInspectTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteInspectTemplateRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteInspectTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/DeleteInspectTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteInspectTemplateRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateDeidentifyTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/CreateDeidentifyTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDeidentifyTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.FromString, + self.CreateDeidentifyTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/CreateDeidentifyTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDeidentifyTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.FromString, ) - self.UpdateDeidentifyTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/UpdateDeidentifyTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateDeidentifyTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.FromString, + self.UpdateDeidentifyTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/UpdateDeidentifyTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateDeidentifyTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.FromString, ) - self.GetDeidentifyTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/GetDeidentifyTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDeidentifyTemplateRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.FromString, + self.GetDeidentifyTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/GetDeidentifyTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDeidentifyTemplateRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.FromString, ) - self.ListDeidentifyTemplates = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/ListDeidentifyTemplates', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesResponse.FromString, + self.ListDeidentifyTemplates = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/ListDeidentifyTemplates", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesResponse.FromString, ) - self.DeleteDeidentifyTemplate = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/DeleteDeidentifyTemplate', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDeidentifyTemplateRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteDeidentifyTemplate = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/DeleteDeidentifyTemplate", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDeidentifyTemplateRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateJobTrigger = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/CreateJobTrigger', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateJobTriggerRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.FromString, + self.CreateJobTrigger = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/CreateJobTrigger", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateJobTriggerRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.FromString, ) - self.UpdateJobTrigger = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/UpdateJobTrigger', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateJobTriggerRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.FromString, + self.UpdateJobTrigger = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/UpdateJobTrigger", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateJobTriggerRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.FromString, ) - self.GetJobTrigger = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/GetJobTrigger', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetJobTriggerRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.FromString, + self.GetJobTrigger = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/GetJobTrigger", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetJobTriggerRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.FromString, ) - self.ListJobTriggers = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/ListJobTriggers', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersResponse.FromString, + self.ListJobTriggers = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/ListJobTriggers", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersResponse.FromString, ) - self.DeleteJobTrigger = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/DeleteJobTrigger', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteJobTriggerRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteJobTrigger = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/DeleteJobTrigger", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteJobTriggerRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateDlpJob = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/CreateDlpJob', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDlpJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.FromString, + self.CreateDlpJob = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/CreateDlpJob", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDlpJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.FromString, ) - self.ListDlpJobs = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/ListDlpJobs', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsResponse.FromString, + self.ListDlpJobs = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/ListDlpJobs", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsResponse.FromString, ) - self.GetDlpJob = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/GetDlpJob', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDlpJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.FromString, + self.GetDlpJob = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/GetDlpJob", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDlpJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.FromString, ) - self.DeleteDlpJob = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/DeleteDlpJob', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDlpJobRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteDlpJob = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/DeleteDlpJob", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDlpJobRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CancelDlpJob = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/CancelDlpJob', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CancelDlpJobRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.CancelDlpJob = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/CancelDlpJob", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CancelDlpJobRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateStoredInfoType = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/CreateStoredInfoType', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateStoredInfoTypeRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.FromString, + self.CreateStoredInfoType = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/CreateStoredInfoType", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateStoredInfoTypeRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.FromString, ) - self.UpdateStoredInfoType = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/UpdateStoredInfoType', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateStoredInfoTypeRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.FromString, + self.UpdateStoredInfoType = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/UpdateStoredInfoType", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateStoredInfoTypeRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.FromString, ) - self.GetStoredInfoType = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/GetStoredInfoType', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetStoredInfoTypeRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.FromString, + self.GetStoredInfoType = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/GetStoredInfoType", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetStoredInfoTypeRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.FromString, ) - self.ListStoredInfoTypes = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/ListStoredInfoTypes', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesResponse.FromString, + self.ListStoredInfoTypes = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/ListStoredInfoTypes", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesResponse.FromString, ) - self.DeleteStoredInfoType = channel.unary_unary( - '/google.privacy.dlp.v2.DlpService/DeleteStoredInfoType', - request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteStoredInfoTypeRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteStoredInfoType = channel.unary_unary( + "/google.privacy.dlp.v2.DlpService/DeleteStoredInfoType", + request_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteStoredInfoTypeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class DlpServiceServicer(object): - """The Cloud Data Loss Prevention (DLP) API is a service that allows clients + """The Cloud Data Loss Prevention (DLP) API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. @@ -187,8 +189,8 @@ class DlpServiceServicer(object): https://cloud.google.com/dlp/docs/. """ - def InspectContent(self, request, context): - """Finds potentially sensitive info in content. + def InspectContent(self, request, context): + """Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the @@ -198,12 +200,12 @@ def InspectContent(self, request, context): For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RedactImage(self, request, context): - """Redacts potentially sensitive info from an image. + def RedactImage(self, request, context): + """Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. @@ -212,12 +214,12 @@ def RedactImage(self, request, context): system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeidentifyContent(self, request, context): - """De-identifies potentially sensitive info from a ContentItem. + def DeidentifyContent(self, request, context): + """De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. @@ -226,159 +228,159 @@ def DeidentifyContent(self, request, context): system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ReidentifyContent(self, request, context): - """Re-identifies content that has been de-identified. + def ReidentifyContent(self, request, context): + """Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListInfoTypes(self, request, context): - """Returns a list of the sensitive information types that the DLP API + def ListInfoTypes(self, request, context): + """Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateInspectTemplate(self, request, context): - """Creates an InspectTemplate for re-using frequently used configuration + def CreateInspectTemplate(self, request, context): + """Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateInspectTemplate(self, request, context): - """Updates the InspectTemplate. + def UpdateInspectTemplate(self, request, context): + """Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetInspectTemplate(self, request, context): - """Gets an InspectTemplate. + def GetInspectTemplate(self, request, context): + """Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListInspectTemplates(self, request, context): - """Lists InspectTemplates. + def ListInspectTemplates(self, request, context): + """Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteInspectTemplate(self, request, context): - """Deletes an InspectTemplate. + def DeleteInspectTemplate(self, request, context): + """Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateDeidentifyTemplate(self, request, context): - """Creates a DeidentifyTemplate for re-using frequently used configuration + def CreateDeidentifyTemplate(self, request, context): + """Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateDeidentifyTemplate(self, request, context): - """Updates the DeidentifyTemplate. + def UpdateDeidentifyTemplate(self, request, context): + """Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetDeidentifyTemplate(self, request, context): - """Gets a DeidentifyTemplate. + def GetDeidentifyTemplate(self, request, context): + """Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListDeidentifyTemplates(self, request, context): - """Lists DeidentifyTemplates. + def ListDeidentifyTemplates(self, request, context): + """Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteDeidentifyTemplate(self, request, context): - """Deletes a DeidentifyTemplate. + def DeleteDeidentifyTemplate(self, request, context): + """Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateJobTrigger(self, request, context): - """Creates a job trigger to run DLP actions such as scanning storage for + def CreateJobTrigger(self, request, context): + """Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateJobTrigger(self, request, context): - """Updates a job trigger. + def UpdateJobTrigger(self, request, context): + """Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetJobTrigger(self, request, context): - """Gets a job trigger. + def GetJobTrigger(self, request, context): + """Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListJobTriggers(self, request, context): - """Lists job triggers. + def ListJobTriggers(self, request, context): + """Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteJobTrigger(self, request, context): - """Deletes a job trigger. + def DeleteJobTrigger(self, request, context): + """Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateDlpJob(self, request, context): - """Creates a new job to inspect storage or calculate risk metrics. + def CreateDlpJob(self, request, context): + """Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. @@ -386,250 +388,251 @@ def CreateDlpJob(self, request, context): system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListDlpJobs(self, request, context): - """Lists DlpJobs that match the specified filter in the request. + def ListDlpJobs(self, request, context): + """Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetDlpJob(self, request, context): - """Gets the latest state of a long-running DlpJob. + def GetDlpJob(self, request, context): + """Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteDlpJob(self, request, context): - """Deletes a long-running DlpJob. This method indicates that the client is + def DeleteDlpJob(self, request, context): + """Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be cancelled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CancelDlpJob(self, request, context): - """Starts asynchronous cancellation on a long-running DlpJob. The server + def CancelDlpJob(self, request, context): + """Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateStoredInfoType(self, request, context): - """Creates a pre-built stored infoType to be used for inspection. + def CreateStoredInfoType(self, request, context): + """Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateStoredInfoType(self, request, context): - """Updates the stored infoType by creating a new version. The existing version + def UpdateStoredInfoType(self, request, context): + """Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetStoredInfoType(self, request, context): - """Gets a stored infoType. + def GetStoredInfoType(self, request, context): + """Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListStoredInfoTypes(self, request, context): - """Lists stored infoTypes. + def ListStoredInfoTypes(self, request, context): + """Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteStoredInfoType(self, request, context): - """Deletes a stored infoType. + def DeleteStoredInfoType(self, request, context): + """Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_DlpServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'InspectContent': grpc.unary_unary_rpc_method_handler( - servicer.InspectContent, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentResponse.SerializeToString, - ), - 'RedactImage': grpc.unary_unary_rpc_method_handler( - servicer.RedactImage, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageResponse.SerializeToString, - ), - 'DeidentifyContent': grpc.unary_unary_rpc_method_handler( - servicer.DeidentifyContent, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentResponse.SerializeToString, - ), - 'ReidentifyContent': grpc.unary_unary_rpc_method_handler( - servicer.ReidentifyContent, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentResponse.SerializeToString, - ), - 'ListInfoTypes': grpc.unary_unary_rpc_method_handler( - servicer.ListInfoTypes, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesResponse.SerializeToString, - ), - 'CreateInspectTemplate': grpc.unary_unary_rpc_method_handler( - servicer.CreateInspectTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateInspectTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.SerializeToString, - ), - 'UpdateInspectTemplate': grpc.unary_unary_rpc_method_handler( - servicer.UpdateInspectTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateInspectTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.SerializeToString, - ), - 'GetInspectTemplate': grpc.unary_unary_rpc_method_handler( - servicer.GetInspectTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetInspectTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.SerializeToString, - ), - 'ListInspectTemplates': grpc.unary_unary_rpc_method_handler( - servicer.ListInspectTemplates, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesResponse.SerializeToString, - ), - 'DeleteInspectTemplate': grpc.unary_unary_rpc_method_handler( - servicer.DeleteInspectTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteInspectTemplateRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateDeidentifyTemplate': grpc.unary_unary_rpc_method_handler( - servicer.CreateDeidentifyTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDeidentifyTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.SerializeToString, - ), - 'UpdateDeidentifyTemplate': grpc.unary_unary_rpc_method_handler( - servicer.UpdateDeidentifyTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateDeidentifyTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.SerializeToString, - ), - 'GetDeidentifyTemplate': grpc.unary_unary_rpc_method_handler( - servicer.GetDeidentifyTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDeidentifyTemplateRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.SerializeToString, - ), - 'ListDeidentifyTemplates': grpc.unary_unary_rpc_method_handler( - servicer.ListDeidentifyTemplates, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesResponse.SerializeToString, - ), - 'DeleteDeidentifyTemplate': grpc.unary_unary_rpc_method_handler( - servicer.DeleteDeidentifyTemplate, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDeidentifyTemplateRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateJobTrigger': grpc.unary_unary_rpc_method_handler( - servicer.CreateJobTrigger, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateJobTriggerRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.SerializeToString, - ), - 'UpdateJobTrigger': grpc.unary_unary_rpc_method_handler( - servicer.UpdateJobTrigger, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateJobTriggerRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.SerializeToString, - ), - 'GetJobTrigger': grpc.unary_unary_rpc_method_handler( - servicer.GetJobTrigger, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetJobTriggerRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.SerializeToString, - ), - 'ListJobTriggers': grpc.unary_unary_rpc_method_handler( - servicer.ListJobTriggers, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersResponse.SerializeToString, - ), - 'DeleteJobTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DeleteJobTrigger, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteJobTriggerRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateDlpJob': grpc.unary_unary_rpc_method_handler( - servicer.CreateDlpJob, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDlpJobRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.SerializeToString, - ), - 'ListDlpJobs': grpc.unary_unary_rpc_method_handler( - servicer.ListDlpJobs, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsResponse.SerializeToString, - ), - 'GetDlpJob': grpc.unary_unary_rpc_method_handler( - servicer.GetDlpJob, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDlpJobRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.SerializeToString, - ), - 'DeleteDlpJob': grpc.unary_unary_rpc_method_handler( - servicer.DeleteDlpJob, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDlpJobRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CancelDlpJob': grpc.unary_unary_rpc_method_handler( - servicer.CancelDlpJob, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CancelDlpJobRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateStoredInfoType': grpc.unary_unary_rpc_method_handler( - servicer.CreateStoredInfoType, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateStoredInfoTypeRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.SerializeToString, - ), - 'UpdateStoredInfoType': grpc.unary_unary_rpc_method_handler( - servicer.UpdateStoredInfoType, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateStoredInfoTypeRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.SerializeToString, - ), - 'GetStoredInfoType': grpc.unary_unary_rpc_method_handler( - servicer.GetStoredInfoType, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetStoredInfoTypeRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.SerializeToString, - ), - 'ListStoredInfoTypes': grpc.unary_unary_rpc_method_handler( - servicer.ListStoredInfoTypes, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesRequest.FromString, - response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesResponse.SerializeToString, - ), - 'DeleteStoredInfoType': grpc.unary_unary_rpc_method_handler( - servicer.DeleteStoredInfoType, - request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteStoredInfoTypeRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.privacy.dlp.v2.DlpService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "InspectContent": grpc.unary_unary_rpc_method_handler( + servicer.InspectContent, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectContentResponse.SerializeToString, + ), + "RedactImage": grpc.unary_unary_rpc_method_handler( + servicer.RedactImage, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.RedactImageResponse.SerializeToString, + ), + "DeidentifyContent": grpc.unary_unary_rpc_method_handler( + servicer.DeidentifyContent, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyContentResponse.SerializeToString, + ), + "ReidentifyContent": grpc.unary_unary_rpc_method_handler( + servicer.ReidentifyContent, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ReidentifyContentResponse.SerializeToString, + ), + "ListInfoTypes": grpc.unary_unary_rpc_method_handler( + servicer.ListInfoTypes, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInfoTypesResponse.SerializeToString, + ), + "CreateInspectTemplate": grpc.unary_unary_rpc_method_handler( + servicer.CreateInspectTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateInspectTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.SerializeToString, + ), + "UpdateInspectTemplate": grpc.unary_unary_rpc_method_handler( + servicer.UpdateInspectTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateInspectTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.SerializeToString, + ), + "GetInspectTemplate": grpc.unary_unary_rpc_method_handler( + servicer.GetInspectTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetInspectTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.InspectTemplate.SerializeToString, + ), + "ListInspectTemplates": grpc.unary_unary_rpc_method_handler( + servicer.ListInspectTemplates, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListInspectTemplatesResponse.SerializeToString, + ), + "DeleteInspectTemplate": grpc.unary_unary_rpc_method_handler( + servicer.DeleteInspectTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteInspectTemplateRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateDeidentifyTemplate": grpc.unary_unary_rpc_method_handler( + servicer.CreateDeidentifyTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDeidentifyTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.SerializeToString, + ), + "UpdateDeidentifyTemplate": grpc.unary_unary_rpc_method_handler( + servicer.UpdateDeidentifyTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateDeidentifyTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.SerializeToString, + ), + "GetDeidentifyTemplate": grpc.unary_unary_rpc_method_handler( + servicer.GetDeidentifyTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDeidentifyTemplateRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeidentifyTemplate.SerializeToString, + ), + "ListDeidentifyTemplates": grpc.unary_unary_rpc_method_handler( + servicer.ListDeidentifyTemplates, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDeidentifyTemplatesResponse.SerializeToString, + ), + "DeleteDeidentifyTemplate": grpc.unary_unary_rpc_method_handler( + servicer.DeleteDeidentifyTemplate, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDeidentifyTemplateRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateJobTrigger": grpc.unary_unary_rpc_method_handler( + servicer.CreateJobTrigger, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateJobTriggerRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.SerializeToString, + ), + "UpdateJobTrigger": grpc.unary_unary_rpc_method_handler( + servicer.UpdateJobTrigger, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateJobTriggerRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.SerializeToString, + ), + "GetJobTrigger": grpc.unary_unary_rpc_method_handler( + servicer.GetJobTrigger, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetJobTriggerRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.JobTrigger.SerializeToString, + ), + "ListJobTriggers": grpc.unary_unary_rpc_method_handler( + servicer.ListJobTriggers, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListJobTriggersResponse.SerializeToString, + ), + "DeleteJobTrigger": grpc.unary_unary_rpc_method_handler( + servicer.DeleteJobTrigger, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteJobTriggerRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateDlpJob": grpc.unary_unary_rpc_method_handler( + servicer.CreateDlpJob, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateDlpJobRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.SerializeToString, + ), + "ListDlpJobs": grpc.unary_unary_rpc_method_handler( + servicer.ListDlpJobs, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListDlpJobsResponse.SerializeToString, + ), + "GetDlpJob": grpc.unary_unary_rpc_method_handler( + servicer.GetDlpJob, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetDlpJobRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DlpJob.SerializeToString, + ), + "DeleteDlpJob": grpc.unary_unary_rpc_method_handler( + servicer.DeleteDlpJob, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteDlpJobRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CancelDlpJob": grpc.unary_unary_rpc_method_handler( + servicer.CancelDlpJob, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CancelDlpJobRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateStoredInfoType": grpc.unary_unary_rpc_method_handler( + servicer.CreateStoredInfoType, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.CreateStoredInfoTypeRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.SerializeToString, + ), + "UpdateStoredInfoType": grpc.unary_unary_rpc_method_handler( + servicer.UpdateStoredInfoType, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.UpdateStoredInfoTypeRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.SerializeToString, + ), + "GetStoredInfoType": grpc.unary_unary_rpc_method_handler( + servicer.GetStoredInfoType, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.GetStoredInfoTypeRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.StoredInfoType.SerializeToString, + ), + "ListStoredInfoTypes": grpc.unary_unary_rpc_method_handler( + servicer.ListStoredInfoTypes, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesRequest.FromString, + response_serializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.ListStoredInfoTypesResponse.SerializeToString, + ), + "DeleteStoredInfoType": grpc.unary_unary_rpc_method_handler( + servicer.DeleteStoredInfoType, + request_deserializer=google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2.DeleteStoredInfoTypeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.privacy.dlp.v2.DlpService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/dlp/google/cloud/dlp_v2/proto/storage_pb2.py b/dlp/google/cloud/dlp_v2/proto/storage_pb2.py index 2669296d10c03..5e0735fb0b97a 100644 --- a/dlp/google/cloud/dlp_v2/proto/storage_pb2.py +++ b/dlp/google/cloud/dlp_v2/proto/storage_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/privacy/dlp_v2/proto/storage.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,75 +21,71 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/privacy/dlp_v2/proto/storage.proto', - package='google.privacy.dlp.v2', - syntax='proto3', - serialized_pb=_b('\n/google/cloud/privacy/dlp_v2/proto/storage.proto\x12\x15google.privacy.dlp.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x18\n\x08InfoType\x12\x0c\n\x04name\x18\x01 \x01(\t\"K\n\nStoredType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb1\x0b\n\x0e\x43ustomInfoType\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x35\n\nlikelihood\x18\x06 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x46\n\ndictionary\x18\x02 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\n\x05regex\x18\x03 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12M\n\x0esurrogate_type\x18\x04 \x01(\x0b\x32\x33.google.privacy.dlp.v2.CustomInfoType.SurrogateTypeH\x00\x12\x38\n\x0bstored_type\x18\x05 \x01(\x0b\x32!.google.privacy.dlp.v2.StoredTypeH\x00\x12L\n\x0f\x64\x65tection_rules\x18\x07 \x03(\x0b\x32\x33.google.privacy.dlp.v2.CustomInfoType.DetectionRule\x12K\n\x0e\x65xclusion_type\x18\x08 \x01(\x0e\x32\x33.google.privacy.dlp.v2.CustomInfoType.ExclusionType\x1a\xc8\x01\n\nDictionary\x12N\n\tword_list\x18\x01 \x01(\x0b\x32\x39.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00\x12\x45\n\x12\x63loud_storage_path\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.CloudStoragePathH\x00\x1a\x19\n\x08WordList\x12\r\n\x05words\x18\x01 \x03(\tB\x08\n\x06source\x1a\x18\n\x05Regex\x12\x0f\n\x07pattern\x18\x01 \x01(\t\x1a\x0f\n\rSurrogateType\x1a\xbe\x04\n\rDetectionRule\x12W\n\x0chotword_rule\x18\x01 \x01(\x0b\x32?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x1a\x38\n\tProximity\x12\x15\n\rwindow_before\x18\x01 \x01(\x05\x12\x14\n\x0cwindow_after\x18\x02 \x01(\x05\x1a\x82\x01\n\x14LikelihoodAdjustment\x12=\n\x10\x66ixed_likelihood\x18\x01 \x01(\x0e\x32!.google.privacy.dlp.v2.LikelihoodH\x00\x12\x1d\n\x13relative_likelihood\x18\x02 \x01(\x05H\x00\x42\x0c\n\nadjustment\x1a\x8c\x02\n\x0bHotwordRule\x12\x42\n\rhotword_regex\x18\x01 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\n\tproximity\x18\x02 \x01(\x0b\x32=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\x12g\n\x15likelihood_adjustment\x18\x03 \x01(\x0b\x32H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x06\n\x04type\"K\n\rExclusionType\x12\x1e\n\x1a\x45XCLUSION_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x45XCLUSION_TYPE_EXCLUDE\x10\x01\x42\x06\n\x04type\"\x17\n\x07\x46ieldId\x12\x0c\n\x04name\x18\x01 \x01(\t\"7\n\x0bPartitionId\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\"\x1e\n\x0eKindExpression\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x81\x01\n\x10\x44\x61tastoreOptions\x12\x38\n\x0cpartition_id\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.PartitionId\x12\x33\n\x04kind\x18\x02 \x01(\x0b\x32%.google.privacy.dlp.v2.KindExpression\"]\n\x18\x43loudStorageRegexFileSet\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x15\n\rinclude_regex\x18\x02 \x03(\t\x12\x15\n\rexclude_regex\x18\x03 \x03(\t\"\xec\x03\n\x13\x43loudStorageOptions\x12\x44\n\x08\x66ile_set\x18\x01 \x01(\x0b\x32\x32.google.privacy.dlp.v2.CloudStorageOptions.FileSet\x12\x1c\n\x14\x62ytes_limit_per_file\x18\x04 \x01(\x03\x12$\n\x1c\x62ytes_limit_per_file_percent\x18\x08 \x01(\x05\x12\x33\n\nfile_types\x18\x05 \x03(\x0e\x32\x1f.google.privacy.dlp.v2.FileType\x12N\n\rsample_method\x18\x06 \x01(\x0e\x32\x37.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod\x12\x1b\n\x13\x66iles_limit_percent\x18\x07 \x01(\x05\x1a_\n\x07\x46ileSet\x12\x0b\n\x03url\x18\x01 \x01(\t\x12G\n\x0eregex_file_set\x18\x02 \x01(\x0b\x32/.google.privacy.dlp.v2.CloudStorageRegexFileSet\"H\n\x0cSampleMethod\x12\x1d\n\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\x10\n\x0cRANDOM_START\x10\x02\"\"\n\x13\x43loudStorageFileSet\x12\x0b\n\x03url\x18\x01 \x01(\t\" \n\x10\x43loudStoragePath\x12\x0c\n\x04path\x18\x01 \x01(\t\"\x8b\x03\n\x0f\x42igQueryOptions\x12=\n\x0ftable_reference\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12:\n\x12identifying_fields\x18\x02 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\nrows_limit\x18\x03 \x01(\x03\x12\x1a\n\x12rows_limit_percent\x18\x06 \x01(\x05\x12J\n\rsample_method\x18\x04 \x01(\x0e\x32\x33.google.privacy.dlp.v2.BigQueryOptions.SampleMethod\x12\x37\n\x0f\x65xcluded_fields\x18\x05 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\"H\n\x0cSampleMethod\x12\x1d\n\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\x10\n\x0cRANDOM_START\x10\x02\"\x9a\x04\n\rStorageConfig\x12\x44\n\x11\x64\x61tastore_options\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DatastoreOptionsH\x00\x12K\n\x15\x63loud_storage_options\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.CloudStorageOptionsH\x00\x12\x43\n\x11\x62ig_query_options\x18\x04 \x01(\x0b\x32&.google.privacy.dlp.v2.BigQueryOptionsH\x00\x12L\n\x0ftimespan_config\x18\x06 \x01(\x0b\x32\x33.google.privacy.dlp.v2.StorageConfig.TimespanConfig\x1a\xda\x01\n\x0eTimespanConfig\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x0ftimestamp_field\x18\x03 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x31\n)enable_auto_population_of_timespan_config\x18\x04 \x01(\x08\x42\x06\n\x04type\"`\n\x0b\x42igQueryKey\x12=\n\x0ftable_reference\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12\x12\n\nrow_number\x18\x02 \x01(\x03\">\n\x0c\x44\x61tastoreKey\x12.\n\nentity_key\x18\x01 \x01(\x0b\x32\x1a.google.privacy.dlp.v2.Key\"\xbb\x01\n\x03Key\x12\x38\n\x0cpartition_id\x18\x01 \x01(\x0b\x32\".google.privacy.dlp.v2.PartitionId\x12\x34\n\x04path\x18\x02 \x03(\x0b\x32&.google.privacy.dlp.v2.Key.PathElement\x1a\x44\n\x0bPathElement\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x02id\x18\x02 \x01(\x03H\x00\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x42\t\n\x07id_type\"\x8e\x01\n\tRecordKey\x12<\n\rdatastore_key\x18\x02 \x01(\x0b\x32#.google.privacy.dlp.v2.DatastoreKeyH\x00\x12;\n\rbig_query_key\x18\x03 \x01(\x0b\x32\".google.privacy.dlp.v2.BigQueryKeyH\x00\x42\x06\n\x04type\"I\n\rBigQueryTable\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\ndataset_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"s\n\rBigQueryField\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12-\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\"9\n\x08\x45ntityId\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05*E\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x42INARY_FILE\x10\x01\x12\r\n\tTEXT_FILE\x10\x02\x42\x8f\x01\n\x19\x63om.google.privacy.dlp.v2B\nDlpStorageP\x01Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\xaa\x02\x13Google.Cloud.Dlp.V2\xca\x02\x13Google\\Cloud\\Dlp\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/privacy/dlp_v2/proto/storage.proto", + package="google.privacy.dlp.v2", + syntax="proto3", + serialized_pb=_b( + '\n/google/cloud/privacy/dlp_v2/proto/storage.proto\x12\x15google.privacy.dlp.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x18\n\x08InfoType\x12\x0c\n\x04name\x18\x01 \x01(\t"K\n\nStoredType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb1\x0b\n\x0e\x43ustomInfoType\x12\x32\n\tinfo_type\x18\x01 \x01(\x0b\x32\x1f.google.privacy.dlp.v2.InfoType\x12\x35\n\nlikelihood\x18\x06 \x01(\x0e\x32!.google.privacy.dlp.v2.Likelihood\x12\x46\n\ndictionary\x18\x02 \x01(\x0b\x32\x30.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\n\x05regex\x18\x03 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12M\n\x0esurrogate_type\x18\x04 \x01(\x0b\x32\x33.google.privacy.dlp.v2.CustomInfoType.SurrogateTypeH\x00\x12\x38\n\x0bstored_type\x18\x05 \x01(\x0b\x32!.google.privacy.dlp.v2.StoredTypeH\x00\x12L\n\x0f\x64\x65tection_rules\x18\x07 \x03(\x0b\x32\x33.google.privacy.dlp.v2.CustomInfoType.DetectionRule\x12K\n\x0e\x65xclusion_type\x18\x08 \x01(\x0e\x32\x33.google.privacy.dlp.v2.CustomInfoType.ExclusionType\x1a\xc8\x01\n\nDictionary\x12N\n\tword_list\x18\x01 \x01(\x0b\x32\x39.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00\x12\x45\n\x12\x63loud_storage_path\x18\x03 \x01(\x0b\x32\'.google.privacy.dlp.v2.CloudStoragePathH\x00\x1a\x19\n\x08WordList\x12\r\n\x05words\x18\x01 \x03(\tB\x08\n\x06source\x1a\x18\n\x05Regex\x12\x0f\n\x07pattern\x18\x01 \x01(\t\x1a\x0f\n\rSurrogateType\x1a\xbe\x04\n\rDetectionRule\x12W\n\x0chotword_rule\x18\x01 \x01(\x0b\x32?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x1a\x38\n\tProximity\x12\x15\n\rwindow_before\x18\x01 \x01(\x05\x12\x14\n\x0cwindow_after\x18\x02 \x01(\x05\x1a\x82\x01\n\x14LikelihoodAdjustment\x12=\n\x10\x66ixed_likelihood\x18\x01 \x01(\x0e\x32!.google.privacy.dlp.v2.LikelihoodH\x00\x12\x1d\n\x13relative_likelihood\x18\x02 \x01(\x05H\x00\x42\x0c\n\nadjustment\x1a\x8c\x02\n\x0bHotwordRule\x12\x42\n\rhotword_regex\x18\x01 \x01(\x0b\x32+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\n\tproximity\x18\x02 \x01(\x0b\x32=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\x12g\n\x15likelihood_adjustment\x18\x03 \x01(\x0b\x32H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x06\n\x04type"K\n\rExclusionType\x12\x1e\n\x1a\x45XCLUSION_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x45XCLUSION_TYPE_EXCLUDE\x10\x01\x42\x06\n\x04type"\x17\n\x07\x46ieldId\x12\x0c\n\x04name\x18\x01 \x01(\t"7\n\x0bPartitionId\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t"\x1e\n\x0eKindExpression\x12\x0c\n\x04name\x18\x01 \x01(\t"\x81\x01\n\x10\x44\x61tastoreOptions\x12\x38\n\x0cpartition_id\x18\x01 \x01(\x0b\x32".google.privacy.dlp.v2.PartitionId\x12\x33\n\x04kind\x18\x02 \x01(\x0b\x32%.google.privacy.dlp.v2.KindExpression"]\n\x18\x43loudStorageRegexFileSet\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x15\n\rinclude_regex\x18\x02 \x03(\t\x12\x15\n\rexclude_regex\x18\x03 \x03(\t"\xec\x03\n\x13\x43loudStorageOptions\x12\x44\n\x08\x66ile_set\x18\x01 \x01(\x0b\x32\x32.google.privacy.dlp.v2.CloudStorageOptions.FileSet\x12\x1c\n\x14\x62ytes_limit_per_file\x18\x04 \x01(\x03\x12$\n\x1c\x62ytes_limit_per_file_percent\x18\x08 \x01(\x05\x12\x33\n\nfile_types\x18\x05 \x03(\x0e\x32\x1f.google.privacy.dlp.v2.FileType\x12N\n\rsample_method\x18\x06 \x01(\x0e\x32\x37.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod\x12\x1b\n\x13\x66iles_limit_percent\x18\x07 \x01(\x05\x1a_\n\x07\x46ileSet\x12\x0b\n\x03url\x18\x01 \x01(\t\x12G\n\x0eregex_file_set\x18\x02 \x01(\x0b\x32/.google.privacy.dlp.v2.CloudStorageRegexFileSet"H\n\x0cSampleMethod\x12\x1d\n\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\x10\n\x0cRANDOM_START\x10\x02""\n\x13\x43loudStorageFileSet\x12\x0b\n\x03url\x18\x01 \x01(\t" \n\x10\x43loudStoragePath\x12\x0c\n\x04path\x18\x01 \x01(\t"\x8b\x03\n\x0f\x42igQueryOptions\x12=\n\x0ftable_reference\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12:\n\x12identifying_fields\x18\x02 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x12\n\nrows_limit\x18\x03 \x01(\x03\x12\x1a\n\x12rows_limit_percent\x18\x06 \x01(\x05\x12J\n\rsample_method\x18\x04 \x01(\x0e\x32\x33.google.privacy.dlp.v2.BigQueryOptions.SampleMethod\x12\x37\n\x0f\x65xcluded_fields\x18\x05 \x03(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId"H\n\x0cSampleMethod\x12\x1d\n\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\x10\n\x0cRANDOM_START\x10\x02"\x9a\x04\n\rStorageConfig\x12\x44\n\x11\x64\x61tastore_options\x18\x02 \x01(\x0b\x32\'.google.privacy.dlp.v2.DatastoreOptionsH\x00\x12K\n\x15\x63loud_storage_options\x18\x03 \x01(\x0b\x32*.google.privacy.dlp.v2.CloudStorageOptionsH\x00\x12\x43\n\x11\x62ig_query_options\x18\x04 \x01(\x0b\x32&.google.privacy.dlp.v2.BigQueryOptionsH\x00\x12L\n\x0ftimespan_config\x18\x06 \x01(\x0b\x32\x33.google.privacy.dlp.v2.StorageConfig.TimespanConfig\x1a\xda\x01\n\x0eTimespanConfig\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x0ftimestamp_field\x18\x03 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId\x12\x31\n)enable_auto_population_of_timespan_config\x18\x04 \x01(\x08\x42\x06\n\x04type"`\n\x0b\x42igQueryKey\x12=\n\x0ftable_reference\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12\x12\n\nrow_number\x18\x02 \x01(\x03">\n\x0c\x44\x61tastoreKey\x12.\n\nentity_key\x18\x01 \x01(\x0b\x32\x1a.google.privacy.dlp.v2.Key"\xbb\x01\n\x03Key\x12\x38\n\x0cpartition_id\x18\x01 \x01(\x0b\x32".google.privacy.dlp.v2.PartitionId\x12\x34\n\x04path\x18\x02 \x03(\x0b\x32&.google.privacy.dlp.v2.Key.PathElement\x1a\x44\n\x0bPathElement\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x02id\x18\x02 \x01(\x03H\x00\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x42\t\n\x07id_type"\x8e\x01\n\tRecordKey\x12<\n\rdatastore_key\x18\x02 \x01(\x0b\x32#.google.privacy.dlp.v2.DatastoreKeyH\x00\x12;\n\rbig_query_key\x18\x03 \x01(\x0b\x32".google.privacy.dlp.v2.BigQueryKeyH\x00\x42\x06\n\x04type"I\n\rBigQueryTable\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\ndataset_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t"s\n\rBigQueryField\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32$.google.privacy.dlp.v2.BigQueryTable\x12-\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId"9\n\x08\x45ntityId\x12-\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x1e.google.privacy.dlp.v2.FieldId*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05*E\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x42INARY_FILE\x10\x01\x12\r\n\tTEXT_FILE\x10\x02\x42\x8f\x01\n\x19\x63om.google.privacy.dlp.v2B\nDlpStorageP\x01Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\xaa\x02\x13Google.Cloud.Dlp.V2\xca\x02\x13Google\\Cloud\\Dlp\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.privacy.dlp.v2.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LIKELIHOOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4293, - serialized_end=4409, + name="Likelihood", + full_name="google.privacy.dlp.v2.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LIKELIHOOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4293, + serialized_end=4409, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) Likelihood = enum_type_wrapper.EnumTypeWrapper(_LIKELIHOOD) _FILETYPE = _descriptor.EnumDescriptor( - name='FileType', - full_name='google.privacy.dlp.v2.FileType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FILE_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BINARY_FILE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT_FILE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4411, - serialized_end=4480, + name="FileType", + full_name="google.privacy.dlp.v2.FileType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FILE_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BINARY_FILE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT_FILE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4411, + serialized_end=4480, ) _sym_db.RegisterEnumDescriptor(_FILETYPE) @@ -104,1473 +102,2312 @@ _CUSTOMINFOTYPE_EXCLUSIONTYPE = _descriptor.EnumDescriptor( - name='ExclusionType', - full_name='google.privacy.dlp.v2.CustomInfoType.ExclusionType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='EXCLUSION_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXCLUSION_TYPE_EXCLUDE', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1615, - serialized_end=1690, + name="ExclusionType", + full_name="google.privacy.dlp.v2.CustomInfoType.ExclusionType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="EXCLUSION_TYPE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="EXCLUSION_TYPE_EXCLUDE", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1615, + serialized_end=1690, ) _sym_db.RegisterEnumDescriptor(_CUSTOMINFOTYPE_EXCLUSIONTYPE) _CLOUDSTORAGEOPTIONS_SAMPLEMETHOD = _descriptor.EnumDescriptor( - name='SampleMethod', - full_name='google.privacy.dlp.v2.CloudStorageOptions.SampleMethod', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SAMPLE_METHOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOP', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RANDOM_START', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2462, - serialized_end=2534, + name="SampleMethod", + full_name="google.privacy.dlp.v2.CloudStorageOptions.SampleMethod", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SAMPLE_METHOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TOP", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RANDOM_START", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2462, + serialized_end=2534, ) _sym_db.RegisterEnumDescriptor(_CLOUDSTORAGEOPTIONS_SAMPLEMETHOD) _BIGQUERYOPTIONS_SAMPLEMETHOD = _descriptor.EnumDescriptor( - name='SampleMethod', - full_name='google.privacy.dlp.v2.BigQueryOptions.SampleMethod', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SAMPLE_METHOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOP', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RANDOM_START', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2462, - serialized_end=2534, + name="SampleMethod", + full_name="google.privacy.dlp.v2.BigQueryOptions.SampleMethod", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SAMPLE_METHOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TOP", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RANDOM_START", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2462, + serialized_end=2534, ) _sym_db.RegisterEnumDescriptor(_BIGQUERYOPTIONS_SAMPLEMETHOD) _INFOTYPE = _descriptor.Descriptor( - name='InfoType', - full_name='google.privacy.dlp.v2.InfoType', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.InfoType.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=137, - serialized_end=161, + name="InfoType", + full_name="google.privacy.dlp.v2.InfoType", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.InfoType.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=137, + serialized_end=161, ) _STOREDTYPE = _descriptor.Descriptor( - name='StoredType', - full_name='google.privacy.dlp.v2.StoredType', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.StoredType.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.privacy.dlp.v2.StoredType.create_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=163, - serialized_end=238, + name="StoredType", + full_name="google.privacy.dlp.v2.StoredType", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.StoredType.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.privacy.dlp.v2.StoredType.create_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=163, + serialized_end=238, ) _CUSTOMINFOTYPE_DICTIONARY_WORDLIST = _descriptor.Descriptor( - name='WordList', - full_name='google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='words', full_name='google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.words', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=958, - serialized_end=983, + name="WordList", + full_name="google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="words", + full_name="google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.words", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=958, + serialized_end=983, ) _CUSTOMINFOTYPE_DICTIONARY = _descriptor.Descriptor( - name='Dictionary', - full_name='google.privacy.dlp.v2.CustomInfoType.Dictionary', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='word_list', full_name='google.privacy.dlp.v2.CustomInfoType.Dictionary.word_list', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cloud_storage_path', full_name='google.privacy.dlp.v2.CustomInfoType.Dictionary.cloud_storage_path', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CUSTOMINFOTYPE_DICTIONARY_WORDLIST, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='source', full_name='google.privacy.dlp.v2.CustomInfoType.Dictionary.source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=793, - serialized_end=993, + name="Dictionary", + full_name="google.privacy.dlp.v2.CustomInfoType.Dictionary", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="word_list", + full_name="google.privacy.dlp.v2.CustomInfoType.Dictionary.word_list", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cloud_storage_path", + full_name="google.privacy.dlp.v2.CustomInfoType.Dictionary.cloud_storage_path", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CUSTOMINFOTYPE_DICTIONARY_WORDLIST], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.privacy.dlp.v2.CustomInfoType.Dictionary.source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=793, + serialized_end=993, ) _CUSTOMINFOTYPE_REGEX = _descriptor.Descriptor( - name='Regex', - full_name='google.privacy.dlp.v2.CustomInfoType.Regex', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pattern', full_name='google.privacy.dlp.v2.CustomInfoType.Regex.pattern', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=995, - serialized_end=1019, + name="Regex", + full_name="google.privacy.dlp.v2.CustomInfoType.Regex", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="pattern", + full_name="google.privacy.dlp.v2.CustomInfoType.Regex.pattern", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=995, + serialized_end=1019, ) _CUSTOMINFOTYPE_SURROGATETYPE = _descriptor.Descriptor( - name='SurrogateType', - full_name='google.privacy.dlp.v2.CustomInfoType.SurrogateType', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1021, - serialized_end=1036, + name="SurrogateType", + full_name="google.privacy.dlp.v2.CustomInfoType.SurrogateType", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1021, + serialized_end=1036, ) _CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY = _descriptor.Descriptor( - name='Proximity', - full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='window_before', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity.window_before', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='window_after', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity.window_after', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1145, - serialized_end=1201, + name="Proximity", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="window_before", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity.window_before", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="window_after", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity.window_after", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1145, + serialized_end=1201, ) _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT = _descriptor.Descriptor( - name='LikelihoodAdjustment', - full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='fixed_likelihood', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment.fixed_likelihood', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relative_likelihood', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment.relative_likelihood', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='adjustment', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment.adjustment', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1204, - serialized_end=1334, + name="LikelihoodAdjustment", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="fixed_likelihood", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment.fixed_likelihood", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="relative_likelihood", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment.relative_likelihood", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="adjustment", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment.adjustment", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1204, + serialized_end=1334, ) _CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE = _descriptor.Descriptor( - name='HotwordRule', - full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hotword_regex', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.hotword_regex', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proximity', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.proximity', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='likelihood_adjustment', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.likelihood_adjustment', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1337, - serialized_end=1605, + name="HotwordRule", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="hotword_regex", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.hotword_regex", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="proximity", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.proximity", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="likelihood_adjustment", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.likelihood_adjustment", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1337, + serialized_end=1605, ) _CUSTOMINFOTYPE_DETECTIONRULE = _descriptor.Descriptor( - name='DetectionRule', - full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hotword_rule', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.hotword_rule', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY, _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT, _CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.CustomInfoType.DetectionRule.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1039, - serialized_end=1613, + name="DetectionRule", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="hotword_rule", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.hotword_rule", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[ + _CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY, + _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT, + _CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.CustomInfoType.DetectionRule.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1039, + serialized_end=1613, ) _CUSTOMINFOTYPE = _descriptor.Descriptor( - name='CustomInfoType', - full_name='google.privacy.dlp.v2.CustomInfoType', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='info_type', full_name='google.privacy.dlp.v2.CustomInfoType.info_type', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='likelihood', full_name='google.privacy.dlp.v2.CustomInfoType.likelihood', index=1, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dictionary', full_name='google.privacy.dlp.v2.CustomInfoType.dictionary', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='regex', full_name='google.privacy.dlp.v2.CustomInfoType.regex', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='surrogate_type', full_name='google.privacy.dlp.v2.CustomInfoType.surrogate_type', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stored_type', full_name='google.privacy.dlp.v2.CustomInfoType.stored_type', index=5, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detection_rules', full_name='google.privacy.dlp.v2.CustomInfoType.detection_rules', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exclusion_type', full_name='google.privacy.dlp.v2.CustomInfoType.exclusion_type', index=7, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CUSTOMINFOTYPE_DICTIONARY, _CUSTOMINFOTYPE_REGEX, _CUSTOMINFOTYPE_SURROGATETYPE, _CUSTOMINFOTYPE_DETECTIONRULE, ], - enum_types=[ - _CUSTOMINFOTYPE_EXCLUSIONTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.CustomInfoType.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=241, - serialized_end=1698, + name="CustomInfoType", + full_name="google.privacy.dlp.v2.CustomInfoType", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="info_type", + full_name="google.privacy.dlp.v2.CustomInfoType.info_type", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="likelihood", + full_name="google.privacy.dlp.v2.CustomInfoType.likelihood", + index=1, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dictionary", + full_name="google.privacy.dlp.v2.CustomInfoType.dictionary", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="regex", + full_name="google.privacy.dlp.v2.CustomInfoType.regex", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="surrogate_type", + full_name="google.privacy.dlp.v2.CustomInfoType.surrogate_type", + index=4, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stored_type", + full_name="google.privacy.dlp.v2.CustomInfoType.stored_type", + index=5, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detection_rules", + full_name="google.privacy.dlp.v2.CustomInfoType.detection_rules", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="exclusion_type", + full_name="google.privacy.dlp.v2.CustomInfoType.exclusion_type", + index=7, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _CUSTOMINFOTYPE_DICTIONARY, + _CUSTOMINFOTYPE_REGEX, + _CUSTOMINFOTYPE_SURROGATETYPE, + _CUSTOMINFOTYPE_DETECTIONRULE, + ], + enum_types=[_CUSTOMINFOTYPE_EXCLUSIONTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.CustomInfoType.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=241, + serialized_end=1698, ) _FIELDID = _descriptor.Descriptor( - name='FieldId', - full_name='google.privacy.dlp.v2.FieldId', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.FieldId.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1700, - serialized_end=1723, + name="FieldId", + full_name="google.privacy.dlp.v2.FieldId", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.FieldId.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1700, + serialized_end=1723, ) _PARTITIONID = _descriptor.Descriptor( - name='PartitionId', - full_name='google.privacy.dlp.v2.PartitionId', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.privacy.dlp.v2.PartitionId.project_id', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='namespace_id', full_name='google.privacy.dlp.v2.PartitionId.namespace_id', index=1, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1725, - serialized_end=1780, + name="PartitionId", + full_name="google.privacy.dlp.v2.PartitionId", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.privacy.dlp.v2.PartitionId.project_id", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="namespace_id", + full_name="google.privacy.dlp.v2.PartitionId.namespace_id", + index=1, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1725, + serialized_end=1780, ) _KINDEXPRESSION = _descriptor.Descriptor( - name='KindExpression', - full_name='google.privacy.dlp.v2.KindExpression', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.KindExpression.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1782, - serialized_end=1812, + name="KindExpression", + full_name="google.privacy.dlp.v2.KindExpression", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.KindExpression.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1782, + serialized_end=1812, ) _DATASTOREOPTIONS = _descriptor.Descriptor( - name='DatastoreOptions', - full_name='google.privacy.dlp.v2.DatastoreOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition_id', full_name='google.privacy.dlp.v2.DatastoreOptions.partition_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='kind', full_name='google.privacy.dlp.v2.DatastoreOptions.kind', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1815, - serialized_end=1944, + name="DatastoreOptions", + full_name="google.privacy.dlp.v2.DatastoreOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="partition_id", + full_name="google.privacy.dlp.v2.DatastoreOptions.partition_id", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="kind", + full_name="google.privacy.dlp.v2.DatastoreOptions.kind", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1815, + serialized_end=1944, ) _CLOUDSTORAGEREGEXFILESET = _descriptor.Descriptor( - name='CloudStorageRegexFileSet', - full_name='google.privacy.dlp.v2.CloudStorageRegexFileSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bucket_name', full_name='google.privacy.dlp.v2.CloudStorageRegexFileSet.bucket_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='include_regex', full_name='google.privacy.dlp.v2.CloudStorageRegexFileSet.include_regex', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exclude_regex', full_name='google.privacy.dlp.v2.CloudStorageRegexFileSet.exclude_regex', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1946, - serialized_end=2039, + name="CloudStorageRegexFileSet", + full_name="google.privacy.dlp.v2.CloudStorageRegexFileSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bucket_name", + full_name="google.privacy.dlp.v2.CloudStorageRegexFileSet.bucket_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="include_regex", + full_name="google.privacy.dlp.v2.CloudStorageRegexFileSet.include_regex", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="exclude_regex", + full_name="google.privacy.dlp.v2.CloudStorageRegexFileSet.exclude_regex", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1946, + serialized_end=2039, ) _CLOUDSTORAGEOPTIONS_FILESET = _descriptor.Descriptor( - name='FileSet', - full_name='google.privacy.dlp.v2.CloudStorageOptions.FileSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.privacy.dlp.v2.CloudStorageOptions.FileSet.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='regex_file_set', full_name='google.privacy.dlp.v2.CloudStorageOptions.FileSet.regex_file_set', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2365, - serialized_end=2460, + name="FileSet", + full_name="google.privacy.dlp.v2.CloudStorageOptions.FileSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.privacy.dlp.v2.CloudStorageOptions.FileSet.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="regex_file_set", + full_name="google.privacy.dlp.v2.CloudStorageOptions.FileSet.regex_file_set", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2365, + serialized_end=2460, ) _CLOUDSTORAGEOPTIONS = _descriptor.Descriptor( - name='CloudStorageOptions', - full_name='google.privacy.dlp.v2.CloudStorageOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='file_set', full_name='google.privacy.dlp.v2.CloudStorageOptions.file_set', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bytes_limit_per_file', full_name='google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file', index=1, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bytes_limit_per_file_percent', full_name='google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file_percent', index=2, - number=8, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_types', full_name='google.privacy.dlp.v2.CloudStorageOptions.file_types', index=3, - number=5, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sample_method', full_name='google.privacy.dlp.v2.CloudStorageOptions.sample_method', index=4, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='files_limit_percent', full_name='google.privacy.dlp.v2.CloudStorageOptions.files_limit_percent', index=5, - number=7, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CLOUDSTORAGEOPTIONS_FILESET, ], - enum_types=[ - _CLOUDSTORAGEOPTIONS_SAMPLEMETHOD, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2042, - serialized_end=2534, + name="CloudStorageOptions", + full_name="google.privacy.dlp.v2.CloudStorageOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="file_set", + full_name="google.privacy.dlp.v2.CloudStorageOptions.file_set", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bytes_limit_per_file", + full_name="google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file", + index=1, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bytes_limit_per_file_percent", + full_name="google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file_percent", + index=2, + number=8, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_types", + full_name="google.privacy.dlp.v2.CloudStorageOptions.file_types", + index=3, + number=5, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sample_method", + full_name="google.privacy.dlp.v2.CloudStorageOptions.sample_method", + index=4, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="files_limit_percent", + full_name="google.privacy.dlp.v2.CloudStorageOptions.files_limit_percent", + index=5, + number=7, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CLOUDSTORAGEOPTIONS_FILESET], + enum_types=[_CLOUDSTORAGEOPTIONS_SAMPLEMETHOD], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2042, + serialized_end=2534, ) _CLOUDSTORAGEFILESET = _descriptor.Descriptor( - name='CloudStorageFileSet', - full_name='google.privacy.dlp.v2.CloudStorageFileSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.privacy.dlp.v2.CloudStorageFileSet.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2536, - serialized_end=2570, + name="CloudStorageFileSet", + full_name="google.privacy.dlp.v2.CloudStorageFileSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.privacy.dlp.v2.CloudStorageFileSet.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2536, + serialized_end=2570, ) _CLOUDSTORAGEPATH = _descriptor.Descriptor( - name='CloudStoragePath', - full_name='google.privacy.dlp.v2.CloudStoragePath', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='path', full_name='google.privacy.dlp.v2.CloudStoragePath.path', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2572, - serialized_end=2604, + name="CloudStoragePath", + full_name="google.privacy.dlp.v2.CloudStoragePath", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="path", + full_name="google.privacy.dlp.v2.CloudStoragePath.path", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2572, + serialized_end=2604, ) _BIGQUERYOPTIONS = _descriptor.Descriptor( - name='BigQueryOptions', - full_name='google.privacy.dlp.v2.BigQueryOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_reference', full_name='google.privacy.dlp.v2.BigQueryOptions.table_reference', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='identifying_fields', full_name='google.privacy.dlp.v2.BigQueryOptions.identifying_fields', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rows_limit', full_name='google.privacy.dlp.v2.BigQueryOptions.rows_limit', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rows_limit_percent', full_name='google.privacy.dlp.v2.BigQueryOptions.rows_limit_percent', index=3, - number=6, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sample_method', full_name='google.privacy.dlp.v2.BigQueryOptions.sample_method', index=4, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='excluded_fields', full_name='google.privacy.dlp.v2.BigQueryOptions.excluded_fields', index=5, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _BIGQUERYOPTIONS_SAMPLEMETHOD, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2607, - serialized_end=3002, + name="BigQueryOptions", + full_name="google.privacy.dlp.v2.BigQueryOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_reference", + full_name="google.privacy.dlp.v2.BigQueryOptions.table_reference", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="identifying_fields", + full_name="google.privacy.dlp.v2.BigQueryOptions.identifying_fields", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rows_limit", + full_name="google.privacy.dlp.v2.BigQueryOptions.rows_limit", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rows_limit_percent", + full_name="google.privacy.dlp.v2.BigQueryOptions.rows_limit_percent", + index=3, + number=6, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sample_method", + full_name="google.privacy.dlp.v2.BigQueryOptions.sample_method", + index=4, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="excluded_fields", + full_name="google.privacy.dlp.v2.BigQueryOptions.excluded_fields", + index=5, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_BIGQUERYOPTIONS_SAMPLEMETHOD], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2607, + serialized_end=3002, ) _STORAGECONFIG_TIMESPANCONFIG = _descriptor.Descriptor( - name='TimespanConfig', - full_name='google.privacy.dlp.v2.StorageConfig.TimespanConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time', full_name='google.privacy.dlp.v2.StorageConfig.TimespanConfig.start_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.privacy.dlp.v2.StorageConfig.TimespanConfig.end_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp_field', full_name='google.privacy.dlp.v2.StorageConfig.TimespanConfig.timestamp_field', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_auto_population_of_timespan_config', full_name='google.privacy.dlp.v2.StorageConfig.TimespanConfig.enable_auto_population_of_timespan_config', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3317, - serialized_end=3535, + name="TimespanConfig", + full_name="google.privacy.dlp.v2.StorageConfig.TimespanConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.privacy.dlp.v2.StorageConfig.TimespanConfig.start_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.privacy.dlp.v2.StorageConfig.TimespanConfig.end_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timestamp_field", + full_name="google.privacy.dlp.v2.StorageConfig.TimespanConfig.timestamp_field", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_auto_population_of_timespan_config", + full_name="google.privacy.dlp.v2.StorageConfig.TimespanConfig.enable_auto_population_of_timespan_config", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3317, + serialized_end=3535, ) _STORAGECONFIG = _descriptor.Descriptor( - name='StorageConfig', - full_name='google.privacy.dlp.v2.StorageConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='datastore_options', full_name='google.privacy.dlp.v2.StorageConfig.datastore_options', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cloud_storage_options', full_name='google.privacy.dlp.v2.StorageConfig.cloud_storage_options', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='big_query_options', full_name='google.privacy.dlp.v2.StorageConfig.big_query_options', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timespan_config', full_name='google.privacy.dlp.v2.StorageConfig.timespan_config', index=3, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_STORAGECONFIG_TIMESPANCONFIG, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.StorageConfig.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=3005, - serialized_end=3543, + name="StorageConfig", + full_name="google.privacy.dlp.v2.StorageConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="datastore_options", + full_name="google.privacy.dlp.v2.StorageConfig.datastore_options", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cloud_storage_options", + full_name="google.privacy.dlp.v2.StorageConfig.cloud_storage_options", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="big_query_options", + full_name="google.privacy.dlp.v2.StorageConfig.big_query_options", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timespan_config", + full_name="google.privacy.dlp.v2.StorageConfig.timespan_config", + index=3, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_STORAGECONFIG_TIMESPANCONFIG], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.StorageConfig.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=3005, + serialized_end=3543, ) _BIGQUERYKEY = _descriptor.Descriptor( - name='BigQueryKey', - full_name='google.privacy.dlp.v2.BigQueryKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table_reference', full_name='google.privacy.dlp.v2.BigQueryKey.table_reference', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_number', full_name='google.privacy.dlp.v2.BigQueryKey.row_number', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3545, - serialized_end=3641, + name="BigQueryKey", + full_name="google.privacy.dlp.v2.BigQueryKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table_reference", + full_name="google.privacy.dlp.v2.BigQueryKey.table_reference", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_number", + full_name="google.privacy.dlp.v2.BigQueryKey.row_number", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3545, + serialized_end=3641, ) _DATASTOREKEY = _descriptor.Descriptor( - name='DatastoreKey', - full_name='google.privacy.dlp.v2.DatastoreKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_key', full_name='google.privacy.dlp.v2.DatastoreKey.entity_key', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3643, - serialized_end=3705, + name="DatastoreKey", + full_name="google.privacy.dlp.v2.DatastoreKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_key", + full_name="google.privacy.dlp.v2.DatastoreKey.entity_key", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3643, + serialized_end=3705, ) _KEY_PATHELEMENT = _descriptor.Descriptor( - name='PathElement', - full_name='google.privacy.dlp.v2.Key.PathElement', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='kind', full_name='google.privacy.dlp.v2.Key.PathElement.kind', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.privacy.dlp.v2.Key.PathElement.id', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.privacy.dlp.v2.Key.PathElement.name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='id_type', full_name='google.privacy.dlp.v2.Key.PathElement.id_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=3827, - serialized_end=3895, + name="PathElement", + full_name="google.privacy.dlp.v2.Key.PathElement", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="kind", + full_name="google.privacy.dlp.v2.Key.PathElement.kind", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="id", + full_name="google.privacy.dlp.v2.Key.PathElement.id", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.privacy.dlp.v2.Key.PathElement.name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="id_type", + full_name="google.privacy.dlp.v2.Key.PathElement.id_type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=3827, + serialized_end=3895, ) _KEY = _descriptor.Descriptor( - name='Key', - full_name='google.privacy.dlp.v2.Key', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition_id', full_name='google.privacy.dlp.v2.Key.partition_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path', full_name='google.privacy.dlp.v2.Key.path', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_KEY_PATHELEMENT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3708, - serialized_end=3895, + name="Key", + full_name="google.privacy.dlp.v2.Key", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="partition_id", + full_name="google.privacy.dlp.v2.Key.partition_id", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="path", + full_name="google.privacy.dlp.v2.Key.path", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_KEY_PATHELEMENT], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3708, + serialized_end=3895, ) _RECORDKEY = _descriptor.Descriptor( - name='RecordKey', - full_name='google.privacy.dlp.v2.RecordKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='datastore_key', full_name='google.privacy.dlp.v2.RecordKey.datastore_key', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='big_query_key', full_name='google.privacy.dlp.v2.RecordKey.big_query_key', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.privacy.dlp.v2.RecordKey.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=3898, - serialized_end=4040, + name="RecordKey", + full_name="google.privacy.dlp.v2.RecordKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="datastore_key", + full_name="google.privacy.dlp.v2.RecordKey.datastore_key", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="big_query_key", + full_name="google.privacy.dlp.v2.RecordKey.big_query_key", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.privacy.dlp.v2.RecordKey.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=3898, + serialized_end=4040, ) _BIGQUERYTABLE = _descriptor.Descriptor( - name='BigQueryTable', - full_name='google.privacy.dlp.v2.BigQueryTable', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.privacy.dlp.v2.BigQueryTable.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataset_id', full_name='google.privacy.dlp.v2.BigQueryTable.dataset_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table_id', full_name='google.privacy.dlp.v2.BigQueryTable.table_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4042, - serialized_end=4115, + name="BigQueryTable", + full_name="google.privacy.dlp.v2.BigQueryTable", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.privacy.dlp.v2.BigQueryTable.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dataset_id", + full_name="google.privacy.dlp.v2.BigQueryTable.dataset_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table_id", + full_name="google.privacy.dlp.v2.BigQueryTable.table_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4042, + serialized_end=4115, ) _BIGQUERYFIELD = _descriptor.Descriptor( - name='BigQueryField', - full_name='google.privacy.dlp.v2.BigQueryField', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table', full_name='google.privacy.dlp.v2.BigQueryField.table', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.BigQueryField.field', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4117, - serialized_end=4232, + name="BigQueryField", + full_name="google.privacy.dlp.v2.BigQueryField", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table", + full_name="google.privacy.dlp.v2.BigQueryField.table", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.BigQueryField.field", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4117, + serialized_end=4232, ) _ENTITYID = _descriptor.Descriptor( - name='EntityId', - full_name='google.privacy.dlp.v2.EntityId', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='google.privacy.dlp.v2.EntityId.field', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4234, - serialized_end=4291, -) - -_STOREDTYPE.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP + name="EntityId", + full_name="google.privacy.dlp.v2.EntityId", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="field", + full_name="google.privacy.dlp.v2.EntityId.field", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4234, + serialized_end=4291, +) + +_STOREDTYPE.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _CUSTOMINFOTYPE_DICTIONARY_WORDLIST.containing_type = _CUSTOMINFOTYPE_DICTIONARY -_CUSTOMINFOTYPE_DICTIONARY.fields_by_name['word_list'].message_type = _CUSTOMINFOTYPE_DICTIONARY_WORDLIST -_CUSTOMINFOTYPE_DICTIONARY.fields_by_name['cloud_storage_path'].message_type = _CLOUDSTORAGEPATH +_CUSTOMINFOTYPE_DICTIONARY.fields_by_name[ + "word_list" +].message_type = _CUSTOMINFOTYPE_DICTIONARY_WORDLIST +_CUSTOMINFOTYPE_DICTIONARY.fields_by_name[ + "cloud_storage_path" +].message_type = _CLOUDSTORAGEPATH _CUSTOMINFOTYPE_DICTIONARY.containing_type = _CUSTOMINFOTYPE -_CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name['source'].fields.append( - _CUSTOMINFOTYPE_DICTIONARY.fields_by_name['word_list']) -_CUSTOMINFOTYPE_DICTIONARY.fields_by_name['word_list'].containing_oneof = _CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name['source'] -_CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name['source'].fields.append( - _CUSTOMINFOTYPE_DICTIONARY.fields_by_name['cloud_storage_path']) -_CUSTOMINFOTYPE_DICTIONARY.fields_by_name['cloud_storage_path'].containing_oneof = _CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name['source'] +_CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name["source"].fields.append( + _CUSTOMINFOTYPE_DICTIONARY.fields_by_name["word_list"] +) +_CUSTOMINFOTYPE_DICTIONARY.fields_by_name[ + "word_list" +].containing_oneof = _CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name["source"] +_CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name["source"].fields.append( + _CUSTOMINFOTYPE_DICTIONARY.fields_by_name["cloud_storage_path"] +) +_CUSTOMINFOTYPE_DICTIONARY.fields_by_name[ + "cloud_storage_path" +].containing_oneof = _CUSTOMINFOTYPE_DICTIONARY.oneofs_by_name["source"] _CUSTOMINFOTYPE_REGEX.containing_type = _CUSTOMINFOTYPE _CUSTOMINFOTYPE_SURROGATETYPE.containing_type = _CUSTOMINFOTYPE _CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY.containing_type = _CUSTOMINFOTYPE_DETECTIONRULE -_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name['fixed_likelihood'].enum_type = _LIKELIHOOD -_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.containing_type = _CUSTOMINFOTYPE_DETECTIONRULE -_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name['adjustment'].fields.append( - _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name['fixed_likelihood']) -_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name['fixed_likelihood'].containing_oneof = _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name['adjustment'] -_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name['adjustment'].fields.append( - _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name['relative_likelihood']) -_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name['relative_likelihood'].containing_oneof = _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name['adjustment'] -_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.fields_by_name['hotword_regex'].message_type = _CUSTOMINFOTYPE_REGEX -_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.fields_by_name['proximity'].message_type = _CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY -_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.fields_by_name['likelihood_adjustment'].message_type = _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT -_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.containing_type = _CUSTOMINFOTYPE_DETECTIONRULE -_CUSTOMINFOTYPE_DETECTIONRULE.fields_by_name['hotword_rule'].message_type = _CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE +_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name[ + "fixed_likelihood" +].enum_type = _LIKELIHOOD +_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.containing_type = ( + _CUSTOMINFOTYPE_DETECTIONRULE +) +_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name[ + "adjustment" +].fields.append( + _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name[ + "fixed_likelihood" + ] +) +_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name[ + "fixed_likelihood" +].containing_oneof = _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name[ + "adjustment" +] +_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name[ + "adjustment" +].fields.append( + _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name[ + "relative_likelihood" + ] +) +_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.fields_by_name[ + "relative_likelihood" +].containing_oneof = _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT.oneofs_by_name[ + "adjustment" +] +_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.fields_by_name[ + "hotword_regex" +].message_type = _CUSTOMINFOTYPE_REGEX +_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.fields_by_name[ + "proximity" +].message_type = _CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY +_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.fields_by_name[ + "likelihood_adjustment" +].message_type = _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT +_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE.containing_type = ( + _CUSTOMINFOTYPE_DETECTIONRULE +) +_CUSTOMINFOTYPE_DETECTIONRULE.fields_by_name[ + "hotword_rule" +].message_type = _CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE _CUSTOMINFOTYPE_DETECTIONRULE.containing_type = _CUSTOMINFOTYPE -_CUSTOMINFOTYPE_DETECTIONRULE.oneofs_by_name['type'].fields.append( - _CUSTOMINFOTYPE_DETECTIONRULE.fields_by_name['hotword_rule']) -_CUSTOMINFOTYPE_DETECTIONRULE.fields_by_name['hotword_rule'].containing_oneof = _CUSTOMINFOTYPE_DETECTIONRULE.oneofs_by_name['type'] -_CUSTOMINFOTYPE.fields_by_name['info_type'].message_type = _INFOTYPE -_CUSTOMINFOTYPE.fields_by_name['likelihood'].enum_type = _LIKELIHOOD -_CUSTOMINFOTYPE.fields_by_name['dictionary'].message_type = _CUSTOMINFOTYPE_DICTIONARY -_CUSTOMINFOTYPE.fields_by_name['regex'].message_type = _CUSTOMINFOTYPE_REGEX -_CUSTOMINFOTYPE.fields_by_name['surrogate_type'].message_type = _CUSTOMINFOTYPE_SURROGATETYPE -_CUSTOMINFOTYPE.fields_by_name['stored_type'].message_type = _STOREDTYPE -_CUSTOMINFOTYPE.fields_by_name['detection_rules'].message_type = _CUSTOMINFOTYPE_DETECTIONRULE -_CUSTOMINFOTYPE.fields_by_name['exclusion_type'].enum_type = _CUSTOMINFOTYPE_EXCLUSIONTYPE +_CUSTOMINFOTYPE_DETECTIONRULE.oneofs_by_name["type"].fields.append( + _CUSTOMINFOTYPE_DETECTIONRULE.fields_by_name["hotword_rule"] +) +_CUSTOMINFOTYPE_DETECTIONRULE.fields_by_name[ + "hotword_rule" +].containing_oneof = _CUSTOMINFOTYPE_DETECTIONRULE.oneofs_by_name["type"] +_CUSTOMINFOTYPE.fields_by_name["info_type"].message_type = _INFOTYPE +_CUSTOMINFOTYPE.fields_by_name["likelihood"].enum_type = _LIKELIHOOD +_CUSTOMINFOTYPE.fields_by_name["dictionary"].message_type = _CUSTOMINFOTYPE_DICTIONARY +_CUSTOMINFOTYPE.fields_by_name["regex"].message_type = _CUSTOMINFOTYPE_REGEX +_CUSTOMINFOTYPE.fields_by_name[ + "surrogate_type" +].message_type = _CUSTOMINFOTYPE_SURROGATETYPE +_CUSTOMINFOTYPE.fields_by_name["stored_type"].message_type = _STOREDTYPE +_CUSTOMINFOTYPE.fields_by_name[ + "detection_rules" +].message_type = _CUSTOMINFOTYPE_DETECTIONRULE +_CUSTOMINFOTYPE.fields_by_name[ + "exclusion_type" +].enum_type = _CUSTOMINFOTYPE_EXCLUSIONTYPE _CUSTOMINFOTYPE_EXCLUSIONTYPE.containing_type = _CUSTOMINFOTYPE -_CUSTOMINFOTYPE.oneofs_by_name['type'].fields.append( - _CUSTOMINFOTYPE.fields_by_name['dictionary']) -_CUSTOMINFOTYPE.fields_by_name['dictionary'].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name['type'] -_CUSTOMINFOTYPE.oneofs_by_name['type'].fields.append( - _CUSTOMINFOTYPE.fields_by_name['regex']) -_CUSTOMINFOTYPE.fields_by_name['regex'].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name['type'] -_CUSTOMINFOTYPE.oneofs_by_name['type'].fields.append( - _CUSTOMINFOTYPE.fields_by_name['surrogate_type']) -_CUSTOMINFOTYPE.fields_by_name['surrogate_type'].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name['type'] -_CUSTOMINFOTYPE.oneofs_by_name['type'].fields.append( - _CUSTOMINFOTYPE.fields_by_name['stored_type']) -_CUSTOMINFOTYPE.fields_by_name['stored_type'].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name['type'] -_DATASTOREOPTIONS.fields_by_name['partition_id'].message_type = _PARTITIONID -_DATASTOREOPTIONS.fields_by_name['kind'].message_type = _KINDEXPRESSION -_CLOUDSTORAGEOPTIONS_FILESET.fields_by_name['regex_file_set'].message_type = _CLOUDSTORAGEREGEXFILESET +_CUSTOMINFOTYPE.oneofs_by_name["type"].fields.append( + _CUSTOMINFOTYPE.fields_by_name["dictionary"] +) +_CUSTOMINFOTYPE.fields_by_name[ + "dictionary" +].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name["type"] +_CUSTOMINFOTYPE.oneofs_by_name["type"].fields.append( + _CUSTOMINFOTYPE.fields_by_name["regex"] +) +_CUSTOMINFOTYPE.fields_by_name[ + "regex" +].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name["type"] +_CUSTOMINFOTYPE.oneofs_by_name["type"].fields.append( + _CUSTOMINFOTYPE.fields_by_name["surrogate_type"] +) +_CUSTOMINFOTYPE.fields_by_name[ + "surrogate_type" +].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name["type"] +_CUSTOMINFOTYPE.oneofs_by_name["type"].fields.append( + _CUSTOMINFOTYPE.fields_by_name["stored_type"] +) +_CUSTOMINFOTYPE.fields_by_name[ + "stored_type" +].containing_oneof = _CUSTOMINFOTYPE.oneofs_by_name["type"] +_DATASTOREOPTIONS.fields_by_name["partition_id"].message_type = _PARTITIONID +_DATASTOREOPTIONS.fields_by_name["kind"].message_type = _KINDEXPRESSION +_CLOUDSTORAGEOPTIONS_FILESET.fields_by_name[ + "regex_file_set" +].message_type = _CLOUDSTORAGEREGEXFILESET _CLOUDSTORAGEOPTIONS_FILESET.containing_type = _CLOUDSTORAGEOPTIONS -_CLOUDSTORAGEOPTIONS.fields_by_name['file_set'].message_type = _CLOUDSTORAGEOPTIONS_FILESET -_CLOUDSTORAGEOPTIONS.fields_by_name['file_types'].enum_type = _FILETYPE -_CLOUDSTORAGEOPTIONS.fields_by_name['sample_method'].enum_type = _CLOUDSTORAGEOPTIONS_SAMPLEMETHOD +_CLOUDSTORAGEOPTIONS.fields_by_name[ + "file_set" +].message_type = _CLOUDSTORAGEOPTIONS_FILESET +_CLOUDSTORAGEOPTIONS.fields_by_name["file_types"].enum_type = _FILETYPE +_CLOUDSTORAGEOPTIONS.fields_by_name[ + "sample_method" +].enum_type = _CLOUDSTORAGEOPTIONS_SAMPLEMETHOD _CLOUDSTORAGEOPTIONS_SAMPLEMETHOD.containing_type = _CLOUDSTORAGEOPTIONS -_BIGQUERYOPTIONS.fields_by_name['table_reference'].message_type = _BIGQUERYTABLE -_BIGQUERYOPTIONS.fields_by_name['identifying_fields'].message_type = _FIELDID -_BIGQUERYOPTIONS.fields_by_name['sample_method'].enum_type = _BIGQUERYOPTIONS_SAMPLEMETHOD -_BIGQUERYOPTIONS.fields_by_name['excluded_fields'].message_type = _FIELDID +_BIGQUERYOPTIONS.fields_by_name["table_reference"].message_type = _BIGQUERYTABLE +_BIGQUERYOPTIONS.fields_by_name["identifying_fields"].message_type = _FIELDID +_BIGQUERYOPTIONS.fields_by_name[ + "sample_method" +].enum_type = _BIGQUERYOPTIONS_SAMPLEMETHOD +_BIGQUERYOPTIONS.fields_by_name["excluded_fields"].message_type = _FIELDID _BIGQUERYOPTIONS_SAMPLEMETHOD.containing_type = _BIGQUERYOPTIONS -_STORAGECONFIG_TIMESPANCONFIG.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_STORAGECONFIG_TIMESPANCONFIG.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_STORAGECONFIG_TIMESPANCONFIG.fields_by_name['timestamp_field'].message_type = _FIELDID +_STORAGECONFIG_TIMESPANCONFIG.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_STORAGECONFIG_TIMESPANCONFIG.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_STORAGECONFIG_TIMESPANCONFIG.fields_by_name["timestamp_field"].message_type = _FIELDID _STORAGECONFIG_TIMESPANCONFIG.containing_type = _STORAGECONFIG -_STORAGECONFIG.fields_by_name['datastore_options'].message_type = _DATASTOREOPTIONS -_STORAGECONFIG.fields_by_name['cloud_storage_options'].message_type = _CLOUDSTORAGEOPTIONS -_STORAGECONFIG.fields_by_name['big_query_options'].message_type = _BIGQUERYOPTIONS -_STORAGECONFIG.fields_by_name['timespan_config'].message_type = _STORAGECONFIG_TIMESPANCONFIG -_STORAGECONFIG.oneofs_by_name['type'].fields.append( - _STORAGECONFIG.fields_by_name['datastore_options']) -_STORAGECONFIG.fields_by_name['datastore_options'].containing_oneof = _STORAGECONFIG.oneofs_by_name['type'] -_STORAGECONFIG.oneofs_by_name['type'].fields.append( - _STORAGECONFIG.fields_by_name['cloud_storage_options']) -_STORAGECONFIG.fields_by_name['cloud_storage_options'].containing_oneof = _STORAGECONFIG.oneofs_by_name['type'] -_STORAGECONFIG.oneofs_by_name['type'].fields.append( - _STORAGECONFIG.fields_by_name['big_query_options']) -_STORAGECONFIG.fields_by_name['big_query_options'].containing_oneof = _STORAGECONFIG.oneofs_by_name['type'] -_BIGQUERYKEY.fields_by_name['table_reference'].message_type = _BIGQUERYTABLE -_DATASTOREKEY.fields_by_name['entity_key'].message_type = _KEY +_STORAGECONFIG.fields_by_name["datastore_options"].message_type = _DATASTOREOPTIONS +_STORAGECONFIG.fields_by_name[ + "cloud_storage_options" +].message_type = _CLOUDSTORAGEOPTIONS +_STORAGECONFIG.fields_by_name["big_query_options"].message_type = _BIGQUERYOPTIONS +_STORAGECONFIG.fields_by_name[ + "timespan_config" +].message_type = _STORAGECONFIG_TIMESPANCONFIG +_STORAGECONFIG.oneofs_by_name["type"].fields.append( + _STORAGECONFIG.fields_by_name["datastore_options"] +) +_STORAGECONFIG.fields_by_name[ + "datastore_options" +].containing_oneof = _STORAGECONFIG.oneofs_by_name["type"] +_STORAGECONFIG.oneofs_by_name["type"].fields.append( + _STORAGECONFIG.fields_by_name["cloud_storage_options"] +) +_STORAGECONFIG.fields_by_name[ + "cloud_storage_options" +].containing_oneof = _STORAGECONFIG.oneofs_by_name["type"] +_STORAGECONFIG.oneofs_by_name["type"].fields.append( + _STORAGECONFIG.fields_by_name["big_query_options"] +) +_STORAGECONFIG.fields_by_name[ + "big_query_options" +].containing_oneof = _STORAGECONFIG.oneofs_by_name["type"] +_BIGQUERYKEY.fields_by_name["table_reference"].message_type = _BIGQUERYTABLE +_DATASTOREKEY.fields_by_name["entity_key"].message_type = _KEY _KEY_PATHELEMENT.containing_type = _KEY -_KEY_PATHELEMENT.oneofs_by_name['id_type'].fields.append( - _KEY_PATHELEMENT.fields_by_name['id']) -_KEY_PATHELEMENT.fields_by_name['id'].containing_oneof = _KEY_PATHELEMENT.oneofs_by_name['id_type'] -_KEY_PATHELEMENT.oneofs_by_name['id_type'].fields.append( - _KEY_PATHELEMENT.fields_by_name['name']) -_KEY_PATHELEMENT.fields_by_name['name'].containing_oneof = _KEY_PATHELEMENT.oneofs_by_name['id_type'] -_KEY.fields_by_name['partition_id'].message_type = _PARTITIONID -_KEY.fields_by_name['path'].message_type = _KEY_PATHELEMENT -_RECORDKEY.fields_by_name['datastore_key'].message_type = _DATASTOREKEY -_RECORDKEY.fields_by_name['big_query_key'].message_type = _BIGQUERYKEY -_RECORDKEY.oneofs_by_name['type'].fields.append( - _RECORDKEY.fields_by_name['datastore_key']) -_RECORDKEY.fields_by_name['datastore_key'].containing_oneof = _RECORDKEY.oneofs_by_name['type'] -_RECORDKEY.oneofs_by_name['type'].fields.append( - _RECORDKEY.fields_by_name['big_query_key']) -_RECORDKEY.fields_by_name['big_query_key'].containing_oneof = _RECORDKEY.oneofs_by_name['type'] -_BIGQUERYFIELD.fields_by_name['table'].message_type = _BIGQUERYTABLE -_BIGQUERYFIELD.fields_by_name['field'].message_type = _FIELDID -_ENTITYID.fields_by_name['field'].message_type = _FIELDID -DESCRIPTOR.message_types_by_name['InfoType'] = _INFOTYPE -DESCRIPTOR.message_types_by_name['StoredType'] = _STOREDTYPE -DESCRIPTOR.message_types_by_name['CustomInfoType'] = _CUSTOMINFOTYPE -DESCRIPTOR.message_types_by_name['FieldId'] = _FIELDID -DESCRIPTOR.message_types_by_name['PartitionId'] = _PARTITIONID -DESCRIPTOR.message_types_by_name['KindExpression'] = _KINDEXPRESSION -DESCRIPTOR.message_types_by_name['DatastoreOptions'] = _DATASTOREOPTIONS -DESCRIPTOR.message_types_by_name['CloudStorageRegexFileSet'] = _CLOUDSTORAGEREGEXFILESET -DESCRIPTOR.message_types_by_name['CloudStorageOptions'] = _CLOUDSTORAGEOPTIONS -DESCRIPTOR.message_types_by_name['CloudStorageFileSet'] = _CLOUDSTORAGEFILESET -DESCRIPTOR.message_types_by_name['CloudStoragePath'] = _CLOUDSTORAGEPATH -DESCRIPTOR.message_types_by_name['BigQueryOptions'] = _BIGQUERYOPTIONS -DESCRIPTOR.message_types_by_name['StorageConfig'] = _STORAGECONFIG -DESCRIPTOR.message_types_by_name['BigQueryKey'] = _BIGQUERYKEY -DESCRIPTOR.message_types_by_name['DatastoreKey'] = _DATASTOREKEY -DESCRIPTOR.message_types_by_name['Key'] = _KEY -DESCRIPTOR.message_types_by_name['RecordKey'] = _RECORDKEY -DESCRIPTOR.message_types_by_name['BigQueryTable'] = _BIGQUERYTABLE -DESCRIPTOR.message_types_by_name['BigQueryField'] = _BIGQUERYFIELD -DESCRIPTOR.message_types_by_name['EntityId'] = _ENTITYID -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD -DESCRIPTOR.enum_types_by_name['FileType'] = _FILETYPE +_KEY_PATHELEMENT.oneofs_by_name["id_type"].fields.append( + _KEY_PATHELEMENT.fields_by_name["id"] +) +_KEY_PATHELEMENT.fields_by_name[ + "id" +].containing_oneof = _KEY_PATHELEMENT.oneofs_by_name["id_type"] +_KEY_PATHELEMENT.oneofs_by_name["id_type"].fields.append( + _KEY_PATHELEMENT.fields_by_name["name"] +) +_KEY_PATHELEMENT.fields_by_name[ + "name" +].containing_oneof = _KEY_PATHELEMENT.oneofs_by_name["id_type"] +_KEY.fields_by_name["partition_id"].message_type = _PARTITIONID +_KEY.fields_by_name["path"].message_type = _KEY_PATHELEMENT +_RECORDKEY.fields_by_name["datastore_key"].message_type = _DATASTOREKEY +_RECORDKEY.fields_by_name["big_query_key"].message_type = _BIGQUERYKEY +_RECORDKEY.oneofs_by_name["type"].fields.append( + _RECORDKEY.fields_by_name["datastore_key"] +) +_RECORDKEY.fields_by_name["datastore_key"].containing_oneof = _RECORDKEY.oneofs_by_name[ + "type" +] +_RECORDKEY.oneofs_by_name["type"].fields.append( + _RECORDKEY.fields_by_name["big_query_key"] +) +_RECORDKEY.fields_by_name["big_query_key"].containing_oneof = _RECORDKEY.oneofs_by_name[ + "type" +] +_BIGQUERYFIELD.fields_by_name["table"].message_type = _BIGQUERYTABLE +_BIGQUERYFIELD.fields_by_name["field"].message_type = _FIELDID +_ENTITYID.fields_by_name["field"].message_type = _FIELDID +DESCRIPTOR.message_types_by_name["InfoType"] = _INFOTYPE +DESCRIPTOR.message_types_by_name["StoredType"] = _STOREDTYPE +DESCRIPTOR.message_types_by_name["CustomInfoType"] = _CUSTOMINFOTYPE +DESCRIPTOR.message_types_by_name["FieldId"] = _FIELDID +DESCRIPTOR.message_types_by_name["PartitionId"] = _PARTITIONID +DESCRIPTOR.message_types_by_name["KindExpression"] = _KINDEXPRESSION +DESCRIPTOR.message_types_by_name["DatastoreOptions"] = _DATASTOREOPTIONS +DESCRIPTOR.message_types_by_name["CloudStorageRegexFileSet"] = _CLOUDSTORAGEREGEXFILESET +DESCRIPTOR.message_types_by_name["CloudStorageOptions"] = _CLOUDSTORAGEOPTIONS +DESCRIPTOR.message_types_by_name["CloudStorageFileSet"] = _CLOUDSTORAGEFILESET +DESCRIPTOR.message_types_by_name["CloudStoragePath"] = _CLOUDSTORAGEPATH +DESCRIPTOR.message_types_by_name["BigQueryOptions"] = _BIGQUERYOPTIONS +DESCRIPTOR.message_types_by_name["StorageConfig"] = _STORAGECONFIG +DESCRIPTOR.message_types_by_name["BigQueryKey"] = _BIGQUERYKEY +DESCRIPTOR.message_types_by_name["DatastoreKey"] = _DATASTOREKEY +DESCRIPTOR.message_types_by_name["Key"] = _KEY +DESCRIPTOR.message_types_by_name["RecordKey"] = _RECORDKEY +DESCRIPTOR.message_types_by_name["BigQueryTable"] = _BIGQUERYTABLE +DESCRIPTOR.message_types_by_name["BigQueryField"] = _BIGQUERYFIELD +DESCRIPTOR.message_types_by_name["EntityId"] = _ENTITYID +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD +DESCRIPTOR.enum_types_by_name["FileType"] = _FILETYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -InfoType = _reflection.GeneratedProtocolMessageType('InfoType', (_message.Message,), dict( - DESCRIPTOR = _INFOTYPE, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Type of information detected by the API. +InfoType = _reflection.GeneratedProtocolMessageType( + "InfoType", + (_message.Message,), + dict( + DESCRIPTOR=_INFOTYPE, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Type of information detected by the API. Attributes: @@ -1581,15 +2418,18 @@ specifying a built-in type. InfoType names should conform to the pattern [a-zA-Z0-9\_]{1,64}. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoType) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoType) + ), +) _sym_db.RegisterMessage(InfoType) -StoredType = _reflection.GeneratedProtocolMessageType('StoredType', (_message.Message,), dict( - DESCRIPTOR = _STOREDTYPE, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """A reference to a StoredInfoType to use with scanning. +StoredType = _reflection.GeneratedProtocolMessageType( + "StoredType", + (_message.Message,), + dict( + DESCRIPTOR=_STOREDTYPE, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""A reference to a StoredInfoType to use with scanning. Attributes: @@ -1602,19 +2442,26 @@ ``StoredInfoType`` used for inspection was created. Output- only field, populated by the system. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredType) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StoredType) + ), +) _sym_db.RegisterMessage(StoredType) -CustomInfoType = _reflection.GeneratedProtocolMessageType('CustomInfoType', (_message.Message,), dict( - - Dictionary = _reflection.GeneratedProtocolMessageType('Dictionary', (_message.Message,), dict( - - WordList = _reflection.GeneratedProtocolMessageType('WordList', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINFOTYPE_DICTIONARY_WORDLIST, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message defining a list of words or phrases to search for in the data. +CustomInfoType = _reflection.GeneratedProtocolMessageType( + "CustomInfoType", + (_message.Message,), + dict( + Dictionary=_reflection.GeneratedProtocolMessageType( + "Dictionary", + (_message.Message,), + dict( + WordList=_reflection.GeneratedProtocolMessageType( + "WordList", + (_message.Message,), + dict( + DESCRIPTOR=_CUSTOMINFOTYPE_DICTIONARY_WORDLIST, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message defining a list of words or phrases to search for in the data. Attributes: @@ -1623,13 +2470,12 @@ contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required] """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList) - )) - , - DESCRIPTOR = _CUSTOMINFOTYPE_DICTIONARY, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Custom information type based on a dictionary of words or phrases. This + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList) + ), + ), + DESCRIPTOR=_CUSTOMINFOTYPE_DICTIONARY, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Custom information type based on a dictionary of words or phrases. This can be used to match sensitive information specific to the data, such as a list of employee IDs or job titles. @@ -1661,15 +2507,16 @@ Newline-delimited file of words in Cloud Storage. Only a single file is accepted. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.Dictionary) - )) - , - - Regex = _reflection.GeneratedProtocolMessageType('Regex', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINFOTYPE_REGEX, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message defining a custom regular expression. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.Dictionary) + ), + ), + Regex=_reflection.GeneratedProtocolMessageType( + "Regex", + (_message.Message,), + dict( + DESCRIPTOR=_CUSTOMINFOTYPE_REGEX, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message defining a custom regular expression. Attributes: @@ -1678,15 +2525,16 @@ (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.Regex) - )) - , - - SurrogateType = _reflection.GeneratedProtocolMessageType('SurrogateType', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINFOTYPE_SURROGATETYPE, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message for detecting output from deidentification transformations such + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.Regex) + ), + ), + SurrogateType=_reflection.GeneratedProtocolMessageType( + "SurrogateType", + (_message.Message,), + dict( + DESCRIPTOR=_CUSTOMINFOTYPE_SURROGATETYPE, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message for detecting output from deidentification transformations such as ```CryptoReplaceFfxFpeConfig`` `__. These types of transformations are those that perform pseudonymization, @@ -1695,17 +2543,20 @@ ``surrogate_info_type``. This CustomInfoType does not support the use of ``detection_rules``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.SurrogateType) - )) - , - - DetectionRule = _reflection.GeneratedProtocolMessageType('DetectionRule', (_message.Message,), dict( - - Proximity = _reflection.GeneratedProtocolMessageType('Proximity', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message for specifying a window around a finding to apply a detection + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.SurrogateType) + ), + ), + DetectionRule=_reflection.GeneratedProtocolMessageType( + "DetectionRule", + (_message.Message,), + dict( + Proximity=_reflection.GeneratedProtocolMessageType( + "Proximity", + (_message.Message,), + dict( + DESCRIPTOR=_CUSTOMINFOTYPE_DETECTIONRULE_PROXIMITY, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message for specifying a window around a finding to apply a detection rule. @@ -1715,15 +2566,16 @@ window_after: Number of characters after the finding to consider. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity) - )) - , - - LikelihoodAdjustment = _reflection.GeneratedProtocolMessageType('LikelihoodAdjustment', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message for specifying an adjustment to the likelihood of a finding as + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity) + ), + ), + LikelihoodAdjustment=_reflection.GeneratedProtocolMessageType( + "LikelihoodAdjustment", + (_message.Message,), + dict( + DESCRIPTOR=_CUSTOMINFOTYPE_DETECTIONRULE_LIKELIHOODADJUSTMENT, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message for specifying an adjustment to the likelihood of a finding as part of a detection rule. @@ -1741,15 +2593,16 @@ likelihood is ``VERY_LIKELY`` will result in a final likelihood of ``LIKELY``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment) - )) - , - - HotwordRule = _reflection.GeneratedProtocolMessageType('HotwordRule', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """The rule that adjusts the likelihood of findings within a certain + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment) + ), + ), + HotwordRule=_reflection.GeneratedProtocolMessageType( + "HotwordRule", + (_message.Message,), + dict( + DESCRIPTOR=_CUSTOMINFOTYPE_DETECTIONRULE_HOTWORDRULE, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""The rule that adjusts the likelihood of findings within a certain proximity of hotwords. @@ -1771,13 +2624,12 @@ likelihood_adjustment: \ Likelihood adjustment to apply to all matching findings. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) - )) - , - DESCRIPTOR = _CUSTOMINFOTYPE_DETECTIONRULE, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Rule for modifying a CustomInfoType to alter behavior under certain + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) + ), + ), + DESCRIPTOR=_CUSTOMINFOTYPE_DETECTIONRULE, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Rule for modifying a CustomInfoType to alter behavior under certain circumstances, depending on the specific details of the rule. Not supported for the ``surrogate_type`` custom info type. @@ -1786,13 +2638,12 @@ hotword_rule: Hotword-based detection rule. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule) - )) - , - DESCRIPTOR = _CUSTOMINFOTYPE, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Custom information type provided by the user. Used to find + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType.DetectionRule) + ), + ), + DESCRIPTOR=_CUSTOMINFOTYPE, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question. @@ -1832,8 +2683,9 @@ cause a finding to be returned. It still can be used for rules matching. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CustomInfoType) + ), +) _sym_db.RegisterMessage(CustomInfoType) _sym_db.RegisterMessage(CustomInfoType.Dictionary) _sym_db.RegisterMessage(CustomInfoType.Dictionary.WordList) @@ -1844,26 +2696,31 @@ _sym_db.RegisterMessage(CustomInfoType.DetectionRule.LikelihoodAdjustment) _sym_db.RegisterMessage(CustomInfoType.DetectionRule.HotwordRule) -FieldId = _reflection.GeneratedProtocolMessageType('FieldId', (_message.Message,), dict( - DESCRIPTOR = _FIELDID, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """General identifier of a data field in a storage service. +FieldId = _reflection.GeneratedProtocolMessageType( + "FieldId", + (_message.Message,), + dict( + DESCRIPTOR=_FIELDID, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""General identifier of a data field in a storage service. Attributes: name: Name describing the field. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FieldId) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FieldId) + ), +) _sym_db.RegisterMessage(FieldId) -PartitionId = _reflection.GeneratedProtocolMessageType('PartitionId', (_message.Message,), dict( - DESCRIPTOR = _PARTITIONID, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Datastore partition ID. A partition ID identifies a grouping of +PartitionId = _reflection.GeneratedProtocolMessageType( + "PartitionId", + (_message.Message,), + dict( + DESCRIPTOR=_PARTITIONID, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. @@ -1877,30 +2734,36 @@ If not empty, the ID of the namespace to which the entities belong. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PartitionId) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.PartitionId) + ), +) _sym_db.RegisterMessage(PartitionId) -KindExpression = _reflection.GeneratedProtocolMessageType('KindExpression', (_message.Message,), dict( - DESCRIPTOR = _KINDEXPRESSION, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """A representation of a Datastore kind. +KindExpression = _reflection.GeneratedProtocolMessageType( + "KindExpression", + (_message.Message,), + dict( + DESCRIPTOR=_KINDEXPRESSION, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""A representation of a Datastore kind. Attributes: name: The name of the kind. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.KindExpression) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.KindExpression) + ), +) _sym_db.RegisterMessage(KindExpression) -DatastoreOptions = _reflection.GeneratedProtocolMessageType('DatastoreOptions', (_message.Message,), dict( - DESCRIPTOR = _DATASTOREOPTIONS, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Options defining a data set within Google Cloud Datastore. +DatastoreOptions = _reflection.GeneratedProtocolMessageType( + "DatastoreOptions", + (_message.Message,), + dict( + DESCRIPTOR=_DATASTOREOPTIONS, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Options defining a data set within Google Cloud Datastore. Attributes: @@ -1911,15 +2774,18 @@ kind: The kind to process. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DatastoreOptions) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DatastoreOptions) + ), +) _sym_db.RegisterMessage(DatastoreOptions) -CloudStorageRegexFileSet = _reflection.GeneratedProtocolMessageType('CloudStorageRegexFileSet', (_message.Message,), dict( - DESCRIPTOR = _CLOUDSTORAGEREGEXFILESET, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message representing a set of files in a Cloud Storage bucket. Regular +CloudStorageRegexFileSet = _reflection.GeneratedProtocolMessageType( + "CloudStorageRegexFileSet", + (_message.Message,), + dict( + DESCRIPTOR=_CLOUDSTORAGEREGEXFILESET, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message representing a set of files in a Cloud Storage bucket. Regular expressions are used to allow fine-grained control over which files in the bucket to include. @@ -1973,17 +2839,22 @@ `__; a guide can be found under the google/re2 repository on GitHub. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageRegexFileSet) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageRegexFileSet) + ), +) _sym_db.RegisterMessage(CloudStorageRegexFileSet) -CloudStorageOptions = _reflection.GeneratedProtocolMessageType('CloudStorageOptions', (_message.Message,), dict( - - FileSet = _reflection.GeneratedProtocolMessageType('FileSet', (_message.Message,), dict( - DESCRIPTOR = _CLOUDSTORAGEOPTIONS_FILESET, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Set of files to scan. +CloudStorageOptions = _reflection.GeneratedProtocolMessageType( + "CloudStorageOptions", + (_message.Message,), + dict( + FileSet=_reflection.GeneratedProtocolMessageType( + "FileSet", + (_message.Message,), + dict( + DESCRIPTOR=_CLOUDSTORAGEOPTIONS_FILESET, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Set of files to scan. Attributes: @@ -1996,13 +2867,12 @@ The regex-filtered set of files to scan. Exactly one of ``url`` or ``regex_file_set`` must be set. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageOptions.FileSet) - )) - , - DESCRIPTOR = _CLOUDSTORAGEOPTIONS, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Options defining a file or a set of files within a Google Cloud Storage + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageOptions.FileSet) + ), + ), + DESCRIPTOR=_CLOUDSTORAGEOPTIONS, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Options defining a file or a set of files within a Google Cloud Storage bucket. @@ -2031,16 +2901,19 @@ be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageOptions) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageOptions) + ), +) _sym_db.RegisterMessage(CloudStorageOptions) _sym_db.RegisterMessage(CloudStorageOptions.FileSet) -CloudStorageFileSet = _reflection.GeneratedProtocolMessageType('CloudStorageFileSet', (_message.Message,), dict( - DESCRIPTOR = _CLOUDSTORAGEFILESET, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message representing a set of files in Cloud Storage. +CloudStorageFileSet = _reflection.GeneratedProtocolMessageType( + "CloudStorageFileSet", + (_message.Message,), + dict( + DESCRIPTOR=_CLOUDSTORAGEFILESET, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message representing a set of files in Cloud Storage. Attributes: @@ -2048,15 +2921,18 @@ The url, in the format ``gs:///``. Trailing wildcard in the path is allowed. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageFileSet) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageFileSet) + ), +) _sym_db.RegisterMessage(CloudStorageFileSet) -CloudStoragePath = _reflection.GeneratedProtocolMessageType('CloudStoragePath', (_message.Message,), dict( - DESCRIPTOR = _CLOUDSTORAGEPATH, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message representing a single file or path in Cloud Storage. +CloudStoragePath = _reflection.GeneratedProtocolMessageType( + "CloudStoragePath", + (_message.Message,), + dict( + DESCRIPTOR=_CLOUDSTORAGEPATH, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message representing a single file or path in Cloud Storage. Attributes: @@ -2064,15 +2940,18 @@ A url representing a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET\_NAME]/dictionary.txt """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStoragePath) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStoragePath) + ), +) _sym_db.RegisterMessage(CloudStoragePath) -BigQueryOptions = _reflection.GeneratedProtocolMessageType('BigQueryOptions', (_message.Message,), dict( - DESCRIPTOR = _BIGQUERYOPTIONS, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Options defining BigQuery table and row identifiers. +BigQueryOptions = _reflection.GeneratedProtocolMessageType( + "BigQueryOptions", + (_message.Message,), + dict( + DESCRIPTOR=_BIGQUERYOPTIONS, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Options defining BigQuery table and row identifiers. Attributes: @@ -2099,17 +2978,22 @@ to skip inspection of entire columns which you know have no findings. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryOptions) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryOptions) + ), +) _sym_db.RegisterMessage(BigQueryOptions) -StorageConfig = _reflection.GeneratedProtocolMessageType('StorageConfig', (_message.Message,), dict( - - TimespanConfig = _reflection.GeneratedProtocolMessageType('TimespanConfig', (_message.Message,), dict( - DESCRIPTOR = _STORAGECONFIG_TIMESPANCONFIG, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Configuration of the timespan of the items to include in scanning. +StorageConfig = _reflection.GeneratedProtocolMessageType( + "StorageConfig", + (_message.Message,), + dict( + TimespanConfig=_reflection.GeneratedProtocolMessageType( + "TimespanConfig", + (_message.Message,), + dict( + DESCRIPTOR=_STORAGECONFIG_TIMESPANCONFIG, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Configuration of the timespan of the items to include in scanning. Currently only supported when inspecting Google Cloud Storage and BigQuery. @@ -2136,13 +3020,12 @@ executed. This will be based on the time of the execution of the last run of the JobTrigger. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StorageConfig.TimespanConfig) - )) - , - DESCRIPTOR = _STORAGECONFIG, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Shared message indicating Cloud storage type. + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StorageConfig.TimespanConfig) + ), + ), + DESCRIPTOR=_STORAGECONFIG, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Shared message indicating Cloud storage type. Attributes: @@ -2153,16 +3036,19 @@ big_query_options: BigQuery options specification. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StorageConfig) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.StorageConfig) + ), +) _sym_db.RegisterMessage(StorageConfig) _sym_db.RegisterMessage(StorageConfig.TimespanConfig) -BigQueryKey = _reflection.GeneratedProtocolMessageType('BigQueryKey', (_message.Message,), dict( - DESCRIPTOR = _BIGQUERYKEY, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Row key for identifying a record in BigQuery table. +BigQueryKey = _reflection.GeneratedProtocolMessageType( + "BigQueryKey", + (_message.Message,), + dict( + DESCRIPTOR=_BIGQUERYKEY, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Row key for identifying a record in BigQuery table. Attributes: @@ -2172,32 +3058,40 @@ Absolute number of the row from the beginning of the table at the time of scanning. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryKey) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryKey) + ), +) _sym_db.RegisterMessage(BigQueryKey) -DatastoreKey = _reflection.GeneratedProtocolMessageType('DatastoreKey', (_message.Message,), dict( - DESCRIPTOR = _DATASTOREKEY, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Record key for a finding in Cloud Datastore. +DatastoreKey = _reflection.GeneratedProtocolMessageType( + "DatastoreKey", + (_message.Message,), + dict( + DESCRIPTOR=_DATASTOREKEY, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Record key for a finding in Cloud Datastore. Attributes: entity_key: Datastore entity key. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DatastoreKey) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DatastoreKey) + ), +) _sym_db.RegisterMessage(DatastoreKey) -Key = _reflection.GeneratedProtocolMessageType('Key', (_message.Message,), dict( - - PathElement = _reflection.GeneratedProtocolMessageType('PathElement', (_message.Message,), dict( - DESCRIPTOR = _KEY_PATHELEMENT, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """A (kind, ID/name) pair used to construct a key path. +Key = _reflection.GeneratedProtocolMessageType( + "Key", + (_message.Message,), + dict( + PathElement=_reflection.GeneratedProtocolMessageType( + "PathElement", + (_message.Message,), + dict( + DESCRIPTOR=_KEY_PATHELEMENT, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete. @@ -2219,13 +3113,12 @@ reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be ``""``. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Key.PathElement) - )) - , - DESCRIPTOR = _KEY, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """A unique identifier for a Datastore entity. If a key's partition ID or + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Key.PathElement) + ), + ), + DESCRIPTOR=_KEY, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""A unique identifier for a Datastore entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. @@ -2247,26 +3140,32 @@ element's *ancestors*. A path can never be empty, and a path can have at most 100 elements. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Key) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Key) + ), +) _sym_db.RegisterMessage(Key) _sym_db.RegisterMessage(Key.PathElement) -RecordKey = _reflection.GeneratedProtocolMessageType('RecordKey', (_message.Message,), dict( - DESCRIPTOR = _RECORDKEY, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message for a unique key indicating a record that contains a finding. +RecordKey = _reflection.GeneratedProtocolMessageType( + "RecordKey", + (_message.Message,), + dict( + DESCRIPTOR=_RECORDKEY, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message for a unique key indicating a record that contains a finding. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordKey) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordKey) + ), +) _sym_db.RegisterMessage(RecordKey) -BigQueryTable = _reflection.GeneratedProtocolMessageType('BigQueryTable', (_message.Message,), dict( - DESCRIPTOR = _BIGQUERYTABLE, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message defining the location of a BigQuery table. A table is uniquely +BigQueryTable = _reflection.GeneratedProtocolMessageType( + "BigQueryTable", + (_message.Message,), + dict( + DESCRIPTOR=_BIGQUERYTABLE, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message defining the location of a BigQuery table. A table is uniquely identified by its project\_id, dataset\_id, and table\_name. Within a query a table is often referenced with a string in the format of: ``:.`` or @@ -2283,15 +3182,18 @@ table_id: Name of the table. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryTable) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryTable) + ), +) _sym_db.RegisterMessage(BigQueryTable) -BigQueryField = _reflection.GeneratedProtocolMessageType('BigQueryField', (_message.Message,), dict( - DESCRIPTOR = _BIGQUERYFIELD, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """Message defining a field of a BigQuery table. +BigQueryField = _reflection.GeneratedProtocolMessageType( + "BigQueryField", + (_message.Message,), + dict( + DESCRIPTOR=_BIGQUERYFIELD, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""Message defining a field of a BigQuery table. Attributes: @@ -2300,15 +3202,18 @@ field: Designated field in the BigQuery table. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryField) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.BigQueryField) + ), +) _sym_db.RegisterMessage(BigQueryField) -EntityId = _reflection.GeneratedProtocolMessageType('EntityId', (_message.Message,), dict( - DESCRIPTOR = _ENTITYID, - __module__ = 'google.cloud.dlp_v2.proto.storage_pb2' - , - __doc__ = """An entity in a dataset is a field or set of fields that correspond to a +EntityId = _reflection.GeneratedProtocolMessageType( + "EntityId", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITYID, + __module__="google.cloud.dlp_v2.proto.storage_pb2", + __doc__="""An entity in a dataset is a field or set of fields that correspond to a single person. For example, in medical records the ``EntityId`` might be a patient identifier, or for financial records it might be an account identifier. This message is used when generalizations or analysis must @@ -2320,11 +3225,17 @@ Composite key indicating which field contains the entity identifier. """, - # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.EntityId) - )) + # @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.EntityId) + ), +) _sym_db.RegisterMessage(EntityId) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\031com.google.privacy.dlp.v2B\nDlpStorageP\001Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\031com.google.privacy.dlp.v2B\nDlpStorageP\001Z8google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/dlp/google/cloud/dlp_v2/proto/storage_pb2_grpc.py b/dlp/google/cloud/dlp_v2/proto/storage_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/dlp/google/cloud/dlp_v2/proto/storage_pb2_grpc.py +++ b/dlp/google/cloud/dlp_v2/proto/storage_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2.py index 3b4dd43acd8b0..1fe8f9099b689 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2.py @@ -2,381 +2,625 @@ # source: google/devtools/clouderrorreporting_v1beta1/proto/common.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/clouderrorreporting_v1beta1/proto/common.proto', - package='google.devtools.clouderrorreporting.v1beta1', - syntax='proto3', - serialized_pb=_b('\n>google/devtools/clouderrorreporting_v1beta1/proto/common.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/api/monitored_resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x81\x01\n\nErrorGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12S\n\x0ftracking_issues\x18\x03 \x03(\x0b\x32:.google.devtools.clouderrorreporting.v1beta1.TrackingIssue\"\x1c\n\rTrackingIssue\x12\x0b\n\x03url\x18\x01 \x01(\t\"\xef\x01\n\nErrorEvent\x12.\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x0f\n\x07message\x18\x03 \x01(\t\x12J\n\x07\x63ontext\x18\x05 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContext\"I\n\x0eServiceContext\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\"\xc9\x01\n\x0c\x45rrorContext\x12U\n\x0chttp_request\x18\x01 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext\x12\x0c\n\x04user\x18\x02 \x01(\t\x12T\n\x0freport_location\x18\x03 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.SourceLocation\"\x88\x01\n\x12HttpRequestContext\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x12\n\nuser_agent\x18\x03 \x01(\t\x12\x10\n\x08referrer\x18\x04 \x01(\t\x12\x1c\n\x14response_status_code\x18\x05 \x01(\x05\x12\x11\n\tremote_ip\x18\x06 \x01(\t\"O\n\x0eSourceLocation\x12\x11\n\tfile_path\x18\x01 \x01(\t\x12\x13\n\x0bline_number\x18\x02 \x01(\x05\x12\x15\n\rfunction_name\x18\x04 \x01(\tB\xec\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x0b\x43ommonProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/devtools/clouderrorreporting_v1beta1/proto/common.proto", + package="google.devtools.clouderrorreporting.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n>google/devtools/clouderrorreporting_v1beta1/proto/common.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/api/monitored_resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x81\x01\n\nErrorGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12S\n\x0ftracking_issues\x18\x03 \x03(\x0b\x32:.google.devtools.clouderrorreporting.v1beta1.TrackingIssue"\x1c\n\rTrackingIssue\x12\x0b\n\x03url\x18\x01 \x01(\t"\xef\x01\n\nErrorEvent\x12.\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x0f\n\x07message\x18\x03 \x01(\t\x12J\n\x07\x63ontext\x18\x05 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContext"I\n\x0eServiceContext\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t"\xc9\x01\n\x0c\x45rrorContext\x12U\n\x0chttp_request\x18\x01 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext\x12\x0c\n\x04user\x18\x02 \x01(\t\x12T\n\x0freport_location\x18\x03 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.SourceLocation"\x88\x01\n\x12HttpRequestContext\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x12\n\nuser_agent\x18\x03 \x01(\t\x12\x10\n\x08referrer\x18\x04 \x01(\t\x12\x1c\n\x14response_status_code\x18\x05 \x01(\x05\x12\x11\n\tremote_ip\x18\x06 \x01(\t"O\n\x0eSourceLocation\x12\x11\n\tfile_path\x18\x01 \x01(\t\x12\x13\n\x0bline_number\x18\x02 \x01(\x05\x12\x15\n\rfunction_name\x18\x04 \x01(\tB\xec\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x0b\x43ommonProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _ERRORGROUP = _descriptor.Descriptor( - name='ErrorGroup', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroup', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroup.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group_id', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroup.group_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_issues', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroup.tracking_issues', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=212, - serialized_end=341, + name="ErrorGroup", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroup", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroup.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="group_id", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroup.group_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tracking_issues", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroup.tracking_issues", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=212, + serialized_end=341, ) _TRACKINGISSUE = _descriptor.Descriptor( - name='TrackingIssue', - full_name='google.devtools.clouderrorreporting.v1beta1.TrackingIssue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.devtools.clouderrorreporting.v1beta1.TrackingIssue.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=343, - serialized_end=371, + name="TrackingIssue", + full_name="google.devtools.clouderrorreporting.v1beta1.TrackingIssue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.devtools.clouderrorreporting.v1beta1.TrackingIssue.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=343, + serialized_end=371, ) _ERROREVENT = _descriptor.Descriptor( - name='ErrorEvent', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorEvent', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='event_time', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorEvent.event_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_context', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorEvent.service_context', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorEvent.message', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='context', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorEvent.context', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=374, - serialized_end=613, + name="ErrorEvent", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="event_time", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorEvent.event_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_context", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorEvent.service_context", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorEvent.message", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="context", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorEvent.context", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=374, + serialized_end=613, ) _SERVICECONTEXT = _descriptor.Descriptor( - name='ServiceContext', - full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='service', full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContext.service', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContext.version', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_type', full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContext.resource_type', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=615, - serialized_end=688, + name="ServiceContext", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="service", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContext.service", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContext.version", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_type", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContext.resource_type", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=615, + serialized_end=688, ) _ERRORCONTEXT = _descriptor.Descriptor( - name='ErrorContext', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_request', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorContext.http_request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorContext.user', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='report_location', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorContext.report_location', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=691, - serialized_end=892, + name="ErrorContext", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="http_request", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorContext.http_request", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorContext.user", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="report_location", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorContext.report_location", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=691, + serialized_end=892, ) _HTTPREQUESTCONTEXT = _descriptor.Descriptor( - name='HttpRequestContext', - full_name='google.devtools.clouderrorreporting.v1beta1.HttpRequestContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='method', full_name='google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.method', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url', full_name='google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.url', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_agent', full_name='google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.user_agent', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='referrer', full_name='google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.referrer', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_status_code', full_name='google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.response_status_code', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remote_ip', full_name='google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.remote_ip', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=895, - serialized_end=1031, + name="HttpRequestContext", + full_name="google.devtools.clouderrorreporting.v1beta1.HttpRequestContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="method", + full_name="google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.method", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="url", + full_name="google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.url", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_agent", + full_name="google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.user_agent", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="referrer", + full_name="google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.referrer", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_status_code", + full_name="google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.response_status_code", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="remote_ip", + full_name="google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.remote_ip", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=895, + serialized_end=1031, ) _SOURCELOCATION = _descriptor.Descriptor( - name='SourceLocation', - full_name='google.devtools.clouderrorreporting.v1beta1.SourceLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='file_path', full_name='google.devtools.clouderrorreporting.v1beta1.SourceLocation.file_path', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='line_number', full_name='google.devtools.clouderrorreporting.v1beta1.SourceLocation.line_number', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='function_name', full_name='google.devtools.clouderrorreporting.v1beta1.SourceLocation.function_name', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1033, - serialized_end=1112, + name="SourceLocation", + full_name="google.devtools.clouderrorreporting.v1beta1.SourceLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="file_path", + full_name="google.devtools.clouderrorreporting.v1beta1.SourceLocation.file_path", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="line_number", + full_name="google.devtools.clouderrorreporting.v1beta1.SourceLocation.line_number", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="function_name", + full_name="google.devtools.clouderrorreporting.v1beta1.SourceLocation.function_name", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1033, + serialized_end=1112, ) -_ERRORGROUP.fields_by_name['tracking_issues'].message_type = _TRACKINGISSUE -_ERROREVENT.fields_by_name['event_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ERROREVENT.fields_by_name['service_context'].message_type = _SERVICECONTEXT -_ERROREVENT.fields_by_name['context'].message_type = _ERRORCONTEXT -_ERRORCONTEXT.fields_by_name['http_request'].message_type = _HTTPREQUESTCONTEXT -_ERRORCONTEXT.fields_by_name['report_location'].message_type = _SOURCELOCATION -DESCRIPTOR.message_types_by_name['ErrorGroup'] = _ERRORGROUP -DESCRIPTOR.message_types_by_name['TrackingIssue'] = _TRACKINGISSUE -DESCRIPTOR.message_types_by_name['ErrorEvent'] = _ERROREVENT -DESCRIPTOR.message_types_by_name['ServiceContext'] = _SERVICECONTEXT -DESCRIPTOR.message_types_by_name['ErrorContext'] = _ERRORCONTEXT -DESCRIPTOR.message_types_by_name['HttpRequestContext'] = _HTTPREQUESTCONTEXT -DESCRIPTOR.message_types_by_name['SourceLocation'] = _SOURCELOCATION +_ERRORGROUP.fields_by_name["tracking_issues"].message_type = _TRACKINGISSUE +_ERROREVENT.fields_by_name[ + "event_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ERROREVENT.fields_by_name["service_context"].message_type = _SERVICECONTEXT +_ERROREVENT.fields_by_name["context"].message_type = _ERRORCONTEXT +_ERRORCONTEXT.fields_by_name["http_request"].message_type = _HTTPREQUESTCONTEXT +_ERRORCONTEXT.fields_by_name["report_location"].message_type = _SOURCELOCATION +DESCRIPTOR.message_types_by_name["ErrorGroup"] = _ERRORGROUP +DESCRIPTOR.message_types_by_name["TrackingIssue"] = _TRACKINGISSUE +DESCRIPTOR.message_types_by_name["ErrorEvent"] = _ERROREVENT +DESCRIPTOR.message_types_by_name["ServiceContext"] = _SERVICECONTEXT +DESCRIPTOR.message_types_by_name["ErrorContext"] = _ERRORCONTEXT +DESCRIPTOR.message_types_by_name["HttpRequestContext"] = _HTTPREQUESTCONTEXT +DESCRIPTOR.message_types_by_name["SourceLocation"] = _SOURCELOCATION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ErrorGroup = _reflection.GeneratedProtocolMessageType('ErrorGroup', (_message.Message,), dict( - DESCRIPTOR = _ERRORGROUP, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.common_pb2' - , - __doc__ = """Description of a group of similar error events. +ErrorGroup = _reflection.GeneratedProtocolMessageType( + "ErrorGroup", + (_message.Message,), + dict( + DESCRIPTOR=_ERRORGROUP, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.common_pb2", + __doc__="""Description of a group of similar error events. Attributes: @@ -390,15 +634,18 @@ tracking_issues: Associated tracking issues. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorGroup) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorGroup) + ), +) _sym_db.RegisterMessage(ErrorGroup) -TrackingIssue = _reflection.GeneratedProtocolMessageType('TrackingIssue', (_message.Message,), dict( - DESCRIPTOR = _TRACKINGISSUE, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.common_pb2' - , - __doc__ = """Information related to tracking the progress on resolving the error. +TrackingIssue = _reflection.GeneratedProtocolMessageType( + "TrackingIssue", + (_message.Message,), + dict( + DESCRIPTOR=_TRACKINGISSUE, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.common_pb2", + __doc__="""Information related to tracking the progress on resolving the error. Attributes: @@ -406,15 +653,18 @@ A URL pointing to a related entry in an issue tracking system. Example: https://github.com/user/project/issues/4 """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.TrackingIssue) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.TrackingIssue) + ), +) _sym_db.RegisterMessage(TrackingIssue) -ErrorEvent = _reflection.GeneratedProtocolMessageType('ErrorEvent', (_message.Message,), dict( - DESCRIPTOR = _ERROREVENT, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.common_pb2' - , - __doc__ = """An error event which is returned by the Error Reporting system. +ErrorEvent = _reflection.GeneratedProtocolMessageType( + "ErrorEvent", + (_message.Message,), + dict( + DESCRIPTOR=_ERROREVENT, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.common_pb2", + __doc__="""An error event which is returned by the Error Reporting system. Attributes: @@ -429,15 +679,18 @@ context: Data about the context in which the error occurred. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorEvent) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorEvent) + ), +) _sym_db.RegisterMessage(ErrorEvent) -ServiceContext = _reflection.GeneratedProtocolMessageType('ServiceContext', (_message.Message,), dict( - DESCRIPTOR = _SERVICECONTEXT, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.common_pb2' - , - __doc__ = """Describes a running service that sends errors. Its version changes over +ServiceContext = _reflection.GeneratedProtocolMessageType( + "ServiceContext", + (_message.Message,), + dict( + DESCRIPTOR=_SERVICECONTEXT, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.common_pb2", + __doc__="""Describes a running service that sends errors. Its version changes over time and multiple versions can run in parallel. @@ -460,15 +713,18 @@ set automatically for incoming errors and must not be set when reporting errors. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ServiceContext) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ServiceContext) + ), +) _sym_db.RegisterMessage(ServiceContext) -ErrorContext = _reflection.GeneratedProtocolMessageType('ErrorContext', (_message.Message,), dict( - DESCRIPTOR = _ERRORCONTEXT, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.common_pb2' - , - __doc__ = """A description of the context in which an error occurred. This data +ErrorContext = _reflection.GeneratedProtocolMessageType( + "ErrorContext", + (_message.Message,), + dict( + DESCRIPTOR=_ERRORCONTEXT, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.common_pb2", + __doc__="""A description of the context in which an error occurred. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs. @@ -495,15 +751,18 @@ ``Exception.cause_location``, which describes the source line where the exception was thrown. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorContext) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorContext) + ), +) _sym_db.RegisterMessage(ErrorContext) -HttpRequestContext = _reflection.GeneratedProtocolMessageType('HttpRequestContext', (_message.Message,), dict( - DESCRIPTOR = _HTTPREQUESTCONTEXT, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.common_pb2' - , - __doc__ = """HTTP request data that is related to a reported error. This data should +HttpRequestContext = _reflection.GeneratedProtocolMessageType( + "HttpRequestContext", + (_message.Message,), + dict( + DESCRIPTOR=_HTTPREQUESTCONTEXT, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.common_pb2", + __doc__="""HTTP request data that is related to a reported error. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs. @@ -525,15 +784,18 @@ depending on the data that has been provided in the error report. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.HttpRequestContext) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.HttpRequestContext) + ), +) _sym_db.RegisterMessage(HttpRequestContext) -SourceLocation = _reflection.GeneratedProtocolMessageType('SourceLocation', (_message.Message,), dict( - DESCRIPTOR = _SOURCELOCATION, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.common_pb2' - , - __doc__ = """Indicates a location in the source code of the service for which errors +SourceLocation = _reflection.GeneratedProtocolMessageType( + "SourceLocation", + (_message.Message,), + dict( + DESCRIPTOR=_SOURCELOCATION, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.common_pb2", + __doc__="""Indicates a location in the source code of the service for which errors are reported. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs. All fields are optional. @@ -550,11 +812,17 @@ include optional context like the class or package name. For example, ``my.package.MyClass.method`` in case of Java. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.SourceLocation) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.SourceLocation) + ), +) _sym_db.RegisterMessage(SourceLocation) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n/com.google.devtools.clouderrorreporting.v1beta1B\013CommonProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n/com.google.devtools.clouderrorreporting.v1beta1B\013CommonProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2_grpc.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2_grpc.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/common_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2.py index 7e1d729036cbf..8df5d10ebcd52 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2.py @@ -2,103 +2,132 @@ # source: google/devtools/clouderrorreporting_v1beta1/proto/error_group_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.errorreporting_v1beta1.proto import common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2 +from google.cloud.errorreporting_v1beta1.proto import ( + common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/clouderrorreporting_v1beta1/proto/error_group_service.proto', - package='google.devtools.clouderrorreporting.v1beta1', - syntax='proto3', - serialized_pb=_b('\nKgoogle/devtools/clouderrorreporting_v1beta1/proto/error_group_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/devtools/clouderrorreporting_v1beta1/proto/common.proto\"%\n\x0fGetGroupRequest\x12\x12\n\ngroup_name\x18\x01 \x01(\t\"\\\n\x12UpdateGroupRequest\x12\x46\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup2\x8e\x03\n\x11\x45rrorGroupService\x12\xb4\x01\n\x08GetGroup\x12<.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{group_name=projects/*/groups/*}\x12\xc1\x01\n\x0bUpdateGroup\x12?.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\"8\x82\xd3\xe4\x93\x02\x32\x1a)/v1beta1/{group.name=projects/*/groups/*}:\x05groupB\xf7\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorGroupServiceProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR,]) - - + name="google/devtools/clouderrorreporting_v1beta1/proto/error_group_service.proto", + package="google.devtools.clouderrorreporting.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\nKgoogle/devtools/clouderrorreporting_v1beta1/proto/error_group_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/devtools/clouderrorreporting_v1beta1/proto/common.proto"%\n\x0fGetGroupRequest\x12\x12\n\ngroup_name\x18\x01 \x01(\t"\\\n\x12UpdateGroupRequest\x12\x46\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup2\x8e\x03\n\x11\x45rrorGroupService\x12\xb4\x01\n\x08GetGroup\x12<.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{group_name=projects/*/groups/*}\x12\xc1\x01\n\x0bUpdateGroup\x12?.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup"8\x82\xd3\xe4\x93\x02\x32\x1a)/v1beta1/{group.name=projects/*/groups/*}:\x05groupB\xf7\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorGroupServiceProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR, + ], +) _GETGROUPREQUEST = _descriptor.Descriptor( - name='GetGroupRequest', - full_name='google.devtools.clouderrorreporting.v1beta1.GetGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group_name', full_name='google.devtools.clouderrorreporting.v1beta1.GetGroupRequest.group_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=218, - serialized_end=255, + name="GetGroupRequest", + full_name="google.devtools.clouderrorreporting.v1beta1.GetGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group_name", + full_name="google.devtools.clouderrorreporting.v1beta1.GetGroupRequest.group_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=218, + serialized_end=255, ) _UPDATEGROUPREQUEST = _descriptor.Descriptor( - name='UpdateGroupRequest', - full_name='google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group', full_name='google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest.group', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=257, - serialized_end=349, + name="UpdateGroupRequest", + full_name="google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group", + full_name="google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest.group", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=257, + serialized_end=349, ) -_UPDATEGROUPREQUEST.fields_by_name['group'].message_type = google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP -DESCRIPTOR.message_types_by_name['GetGroupRequest'] = _GETGROUPREQUEST -DESCRIPTOR.message_types_by_name['UpdateGroupRequest'] = _UPDATEGROUPREQUEST +_UPDATEGROUPREQUEST.fields_by_name[ + "group" +].message_type = ( + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP +) +DESCRIPTOR.message_types_by_name["GetGroupRequest"] = _GETGROUPREQUEST +DESCRIPTOR.message_types_by_name["UpdateGroupRequest"] = _UPDATEGROUPREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -GetGroupRequest = _reflection.GeneratedProtocolMessageType('GetGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGROUPREQUEST, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_group_service_pb2' - , - __doc__ = """A request to return an individual group. +GetGroupRequest = _reflection.GeneratedProtocolMessageType( + "GetGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETGROUPREQUEST, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_group_service_pb2", + __doc__="""A request to return an individual group. Attributes: @@ -108,15 +137,18 @@ return a list of groups belonging to this project. Example: projects/my-project-123/groups/my-group """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.GetGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.GetGroupRequest) + ), +) _sym_db.RegisterMessage(GetGroupRequest) -UpdateGroupRequest = _reflection.GeneratedProtocolMessageType('UpdateGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEGROUPREQUEST, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_group_service_pb2' - , - __doc__ = """A request to replace the existing data for the given group. +UpdateGroupRequest = _reflection.GeneratedProtocolMessageType( + "UpdateGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEGROUPREQUEST, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_group_service_pb2", + __doc__="""A request to replace the existing data for the given group. Attributes: @@ -124,44 +156,61 @@ [Required] The group which replaces the resource on the server. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest) + ), +) _sym_db.RegisterMessage(UpdateGroupRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n/com.google.devtools.clouderrorreporting.v1beta1B\026ErrorGroupServiceProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n/com.google.devtools.clouderrorreporting.v1beta1B\026ErrorGroupServiceProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1" + ), +) _ERRORGROUPSERVICE = _descriptor.ServiceDescriptor( - name='ErrorGroupService', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=352, - serialized_end=750, - methods=[ - _descriptor.MethodDescriptor( - name='GetGroup', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.GetGroup', + name="ErrorGroupService", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_GETGROUPREQUEST, - output_type=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+\022)/v1beta1/{group_name=projects/*/groups/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateGroup', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.UpdateGroup', - index=1, - containing_service=None, - input_type=_UPDATEGROUPREQUEST, - output_type=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0022\032)/v1beta1/{group.name=projects/*/groups/*}:\005group')), - ), -]) + options=None, + serialized_start=352, + serialized_end=750, + methods=[ + _descriptor.MethodDescriptor( + name="GetGroup", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.GetGroup", + index=0, + containing_service=None, + input_type=_GETGROUPREQUEST, + output_type=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002+\022)/v1beta1/{group_name=projects/*/groups/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateGroup", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.UpdateGroup", + index=1, + containing_service=None, + input_type=_UPDATEGROUPREQUEST, + output_type=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0022\032)/v1beta1/{group.name=projects/*/groups/*}:\005group" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_ERRORGROUPSERVICE) -DESCRIPTOR.services_by_name['ErrorGroupService'] = _ERRORGROUPSERVICE +DESCRIPTOR.services_by_name["ErrorGroupService"] = _ERRORGROUPSERVICE # @@protoc_insertion_point(module_scope) diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2_grpc.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2_grpc.py index 3efb75e49df76..3849772ff67de 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2_grpc.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_group_service_pb2_grpc.py @@ -1,65 +1,71 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.errorreporting_v1beta1.proto import common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2 -from google.cloud.errorreporting_v1beta1.proto import error_group_service_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2 +from google.cloud.errorreporting_v1beta1.proto import ( + common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2, +) +from google.cloud.errorreporting_v1beta1.proto import ( + error_group_service_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2, +) class ErrorGroupServiceStub(object): - """Service for retrieving and updating individual error groups. + """Service for retrieving and updating individual error groups. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.GetGroup = channel.unary_unary( - '/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup', - request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.GetGroupRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.FromString, + self.GetGroup = channel.unary_unary( + "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", + request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.GetGroupRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.FromString, ) - self.UpdateGroup = channel.unary_unary( - '/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup', - request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.UpdateGroupRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.FromString, + self.UpdateGroup = channel.unary_unary( + "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", + request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.UpdateGroupRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.FromString, ) class ErrorGroupServiceServicer(object): - """Service for retrieving and updating individual error groups. + """Service for retrieving and updating individual error groups. """ - def GetGroup(self, request, context): - """Get the specified group. + def GetGroup(self, request, context): + """Get the specified group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateGroup(self, request, context): - """Replace the data for the specified group. + def UpdateGroup(self, request, context): + """Replace the data for the specified group. Fails if the group does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ErrorGroupServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetGroup': grpc.unary_unary_rpc_method_handler( - servicer.GetGroup, - request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.GetGroupRequest.FromString, - response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.SerializeToString, - ), - 'UpdateGroup': grpc.unary_unary_rpc_method_handler( - servicer.UpdateGroup, - request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.UpdateGroupRequest.FromString, - response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.devtools.clouderrorreporting.v1beta1.ErrorGroupService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "GetGroup": grpc.unary_unary_rpc_method_handler( + servicer.GetGroup, + request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.GetGroupRequest.FromString, + response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.SerializeToString, + ), + "UpdateGroup": grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroup, + request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__group__service__pb2.UpdateGroupRequest.FromString, + response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.ErrorGroup.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.devtools.clouderrorreporting.v1beta1.ErrorGroupService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2.py index b4a827bd4f653..1369272ee6a9a 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2.py @@ -2,90 +2,97 @@ # source: google/devtools/clouderrorreporting_v1beta1/proto/error_stats_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.errorreporting_v1beta1.proto import common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2 +from google.cloud.errorreporting_v1beta1.proto import ( + common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/clouderrorreporting_v1beta1/proto/error_stats_service.proto', - package='google.devtools.clouderrorreporting.v1beta1', - syntax='proto3', - serialized_pb=_b('\nKgoogle/devtools/clouderrorreporting_v1beta1/proto/error_stats_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/devtools/clouderrorreporting_v1beta1/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\x04\n\x15ListGroupStatsRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x03(\t\x12Y\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter\x12O\n\ntime_range\x18\x05 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange\x12\x37\n\x14timed_count_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12S\n\talignment\x18\x07 \x01(\x0e\x32@.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment\x12\x32\n\x0e\x61lignment_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x05order\x18\t \x01(\x0e\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder\x12\x11\n\tpage_size\x18\x0b \x01(\x05\x12\x12\n\npage_token\x18\x0c \x01(\t\"\xc0\x01\n\x16ListGroupStatsResponse\x12W\n\x11\x65rror_group_stats\x18\x01 \x03(\x0b\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x86\x04\n\x0f\x45rrorGroupStats\x12\x46\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x1c\n\x14\x61\x66\x66\x65\x63ted_users_count\x18\x03 \x01(\x03\x12M\n\x0ctimed_counts\x18\x04 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.TimedCount\x12\x33\n\x0f\x66irst_seen_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0elast_seen_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x11\x61\x66\x66\x65\x63ted_services\x18\x07 \x03(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x1d\n\x15num_affected_services\x18\x08 \x01(\x05\x12O\n\x0erepresentative\x18\t \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent\"y\n\nTimedCount\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8e\x02\n\x11ListEventsRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12Y\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter\x12O\n\ntime_range\x18\x04 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange\x12\x11\n\tpage_size\x18\x06 \x01(\x05\x12\x12\n\npage_token\x18\x07 \x01(\t\"\xb2\x01\n\x12ListEventsResponse\x12M\n\x0c\x65rror_events\x18\x01 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe7\x01\n\x0eQueryTimeRange\x12R\n\x06period\x18\x01 \x01(\x0e\x32\x42.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period\"\x80\x01\n\x06Period\x12\x16\n\x12PERIOD_UNSPECIFIED\x10\x00\x12\x11\n\rPERIOD_1_HOUR\x10\x01\x12\x12\n\x0ePERIOD_6_HOURS\x10\x02\x12\x10\n\x0cPERIOD_1_DAY\x10\x03\x12\x11\n\rPERIOD_1_WEEK\x10\x04\x12\x12\n\x0ePERIOD_30_DAYS\x10\x05\"O\n\x14ServiceContextFilter\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\"+\n\x13\x44\x65leteEventsRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteEventsResponse*u\n\x13TimedCountAlignment\x12%\n!ERROR_COUNT_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x41LIGNMENT_EQUAL_ROUNDED\x10\x01\x12\x1a\n\x16\x41LIGNMENT_EQUAL_AT_END\x10\x02*}\n\x0f\x45rrorGroupOrder\x12\x1b\n\x17GROUP_ORDER_UNSPECIFIED\x10\x00\x12\x0e\n\nCOUNT_DESC\x10\x01\x12\x12\n\x0eLAST_SEEN_DESC\x10\x02\x12\x10\n\x0c\x43REATED_DESC\x10\x03\x12\x17\n\x13\x41\x46\x46\x45\x43TED_USERS_DESC\x10\x04\x32\xf2\x04\n\x11\x45rrorStatsService\x12\xd0\x01\n\x0eListGroupStats\x12\x42.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest\x1a\x43.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{project_name=projects/*}/groupStats\x12\xc0\x01\n\nListEvents\x12>.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest\x1a?.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse\"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{project_name=projects/*}/events\x12\xc6\x01\n\x0c\x44\x65leteEvents\x12@.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest\x1a\x41.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse\"1\x82\xd3\xe4\x93\x02+*)/v1beta1/{project_name=projects/*}/eventsB\xf7\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorStatsServiceProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/devtools/clouderrorreporting_v1beta1/proto/error_stats_service.proto", + package="google.devtools.clouderrorreporting.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\nKgoogle/devtools/clouderrorreporting_v1beta1/proto/error_stats_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/devtools/clouderrorreporting_v1beta1/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa1\x04\n\x15ListGroupStatsRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x03(\t\x12Y\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter\x12O\n\ntime_range\x18\x05 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange\x12\x37\n\x14timed_count_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12S\n\talignment\x18\x07 \x01(\x0e\x32@.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment\x12\x32\n\x0e\x61lignment_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x05order\x18\t \x01(\x0e\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder\x12\x11\n\tpage_size\x18\x0b \x01(\x05\x12\x12\n\npage_token\x18\x0c \x01(\t"\xc0\x01\n\x16ListGroupStatsResponse\x12W\n\x11\x65rror_group_stats\x18\x01 \x03(\x0b\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x86\x04\n\x0f\x45rrorGroupStats\x12\x46\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x1c\n\x14\x61\x66\x66\x65\x63ted_users_count\x18\x03 \x01(\x03\x12M\n\x0ctimed_counts\x18\x04 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.TimedCount\x12\x33\n\x0f\x66irst_seen_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0elast_seen_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x11\x61\x66\x66\x65\x63ted_services\x18\x07 \x03(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x1d\n\x15num_affected_services\x18\x08 \x01(\x05\x12O\n\x0erepresentative\x18\t \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent"y\n\nTimedCount\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x8e\x02\n\x11ListEventsRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12Y\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter\x12O\n\ntime_range\x18\x04 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange\x12\x11\n\tpage_size\x18\x06 \x01(\x05\x12\x12\n\npage_token\x18\x07 \x01(\t"\xb2\x01\n\x12ListEventsResponse\x12M\n\x0c\x65rror_events\x18\x01 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xe7\x01\n\x0eQueryTimeRange\x12R\n\x06period\x18\x01 \x01(\x0e\x32\x42.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period"\x80\x01\n\x06Period\x12\x16\n\x12PERIOD_UNSPECIFIED\x10\x00\x12\x11\n\rPERIOD_1_HOUR\x10\x01\x12\x12\n\x0ePERIOD_6_HOURS\x10\x02\x12\x10\n\x0cPERIOD_1_DAY\x10\x03\x12\x11\n\rPERIOD_1_WEEK\x10\x04\x12\x12\n\x0ePERIOD_30_DAYS\x10\x05"O\n\x14ServiceContextFilter\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t"+\n\x13\x44\x65leteEventsRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t"\x16\n\x14\x44\x65leteEventsResponse*u\n\x13TimedCountAlignment\x12%\n!ERROR_COUNT_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x41LIGNMENT_EQUAL_ROUNDED\x10\x01\x12\x1a\n\x16\x41LIGNMENT_EQUAL_AT_END\x10\x02*}\n\x0f\x45rrorGroupOrder\x12\x1b\n\x17GROUP_ORDER_UNSPECIFIED\x10\x00\x12\x0e\n\nCOUNT_DESC\x10\x01\x12\x12\n\x0eLAST_SEEN_DESC\x10\x02\x12\x10\n\x0c\x43REATED_DESC\x10\x03\x12\x17\n\x13\x41\x46\x46\x45\x43TED_USERS_DESC\x10\x04\x32\xf2\x04\n\x11\x45rrorStatsService\x12\xd0\x01\n\x0eListGroupStats\x12\x42.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest\x1a\x43.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{project_name=projects/*}/groupStats\x12\xc0\x01\n\nListEvents\x12>.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest\x1a?.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{project_name=projects/*}/events\x12\xc6\x01\n\x0c\x44\x65leteEvents\x12@.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest\x1a\x41.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse"1\x82\xd3\xe4\x93\x02+*)/v1beta1/{project_name=projects/*}/eventsB\xf7\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorStatsServiceProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _TIMEDCOUNTALIGNMENT = _descriptor.EnumDescriptor( - name='TimedCountAlignment', - full_name='google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ERROR_COUNT_ALIGNMENT_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGNMENT_EQUAL_ROUNDED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGNMENT_EQUAL_AT_END', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2508, - serialized_end=2625, + name="TimedCountAlignment", + full_name="google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ERROR_COUNT_ALIGNMENT_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="ALIGNMENT_EQUAL_ROUNDED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGNMENT_EQUAL_AT_END", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2508, + serialized_end=2625, ) _sym_db.RegisterEnumDescriptor(_TIMEDCOUNTALIGNMENT) TimedCountAlignment = enum_type_wrapper.EnumTypeWrapper(_TIMEDCOUNTALIGNMENT) _ERRORGROUPORDER = _descriptor.EnumDescriptor( - name='ErrorGroupOrder', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='GROUP_ORDER_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COUNT_DESC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LAST_SEEN_DESC', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATED_DESC', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AFFECTED_USERS_DESC', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2627, - serialized_end=2752, + name="ErrorGroupOrder", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="GROUP_ORDER_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COUNT_DESC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LAST_SEEN_DESC", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATED_DESC", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AFFECTED_USERS_DESC", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2627, + serialized_end=2752, ) _sym_db.RegisterEnumDescriptor(_ERRORGROUPORDER) @@ -101,598 +108,1027 @@ _QUERYTIMERANGE_PERIOD = _descriptor.EnumDescriptor( - name='Period', - full_name='google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='PERIOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERIOD_1_HOUR', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERIOD_6_HOURS', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERIOD_1_DAY', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERIOD_1_WEEK', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERIOD_30_DAYS', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2228, - serialized_end=2356, + name="Period", + full_name="google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="PERIOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERIOD_1_HOUR", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERIOD_6_HOURS", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERIOD_1_DAY", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERIOD_1_WEEK", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERIOD_30_DAYS", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2228, + serialized_end=2356, ) _sym_db.RegisterEnumDescriptor(_QUERYTIMERANGE_PERIOD) _LISTGROUPSTATSREQUEST = _descriptor.Descriptor( - name='ListGroupStatsRequest', - full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_name', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.project_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group_id', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_filter', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.service_filter', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_range', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.time_range', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timed_count_duration', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.timed_count_duration', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alignment', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment', index=5, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alignment_time', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time', index=6, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.order', index=7, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.page_size', index=8, - number=11, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.page_token', index=9, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=284, - serialized_end=829, + name="ListGroupStatsRequest", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_name", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.project_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="group_id", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_filter", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.service_filter", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_range", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.time_range", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timed_count_duration", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.timed_count_duration", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alignment", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment", + index=5, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alignment_time", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time", + index=6, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.order", + index=7, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.page_size", + index=8, + number=11, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.page_token", + index=9, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=284, + serialized_end=829, ) _LISTGROUPSTATSRESPONSE = _descriptor.Descriptor( - name='ListGroupStatsResponse', - full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='error_group_stats', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.error_group_stats', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_range_begin', full_name='google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=832, - serialized_end=1024, + name="ListGroupStatsResponse", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="error_group_stats", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.error_group_stats", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_range_begin", + full_name="google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=832, + serialized_end=1024, ) _ERRORGROUPSTATS = _descriptor.Descriptor( - name='ErrorGroupStats', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.group', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='count', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.count', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='affected_users_count', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.affected_users_count', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timed_counts', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.timed_counts', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='first_seen_time', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.first_seen_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_seen_time', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.last_seen_time', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='affected_services', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.affected_services', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='num_affected_services', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.num_affected_services', index=7, - number=8, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='representative', full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.representative', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1027, - serialized_end=1545, + name="ErrorGroupStats", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.group", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="count", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.count", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="affected_users_count", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.affected_users_count", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timed_counts", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.timed_counts", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="first_seen_time", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.first_seen_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_seen_time", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.last_seen_time", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="affected_services", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.affected_services", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="num_affected_services", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.num_affected_services", + index=7, + number=8, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="representative", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.representative", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1027, + serialized_end=1545, ) _TIMEDCOUNT = _descriptor.Descriptor( - name='TimedCount', - full_name='google.devtools.clouderrorreporting.v1beta1.TimedCount', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='count', full_name='google.devtools.clouderrorreporting.v1beta1.TimedCount.count', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.devtools.clouderrorreporting.v1beta1.TimedCount.start_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.devtools.clouderrorreporting.v1beta1.TimedCount.end_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1547, - serialized_end=1668, + name="TimedCount", + full_name="google.devtools.clouderrorreporting.v1beta1.TimedCount", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="count", + full_name="google.devtools.clouderrorreporting.v1beta1.TimedCount.count", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.devtools.clouderrorreporting.v1beta1.TimedCount.start_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.devtools.clouderrorreporting.v1beta1.TimedCount.end_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1547, + serialized_end=1668, ) _LISTEVENTSREQUEST = _descriptor.Descriptor( - name='ListEventsRequest', - full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_name', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.project_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group_id', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.group_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_filter', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.service_filter', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_range', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.time_range', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.page_size', index=4, - number=6, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.page_token', index=5, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1671, - serialized_end=1941, + name="ListEventsRequest", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_name", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.project_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="group_id", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.group_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_filter", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.service_filter", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_range", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.time_range", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.page_size", + index=4, + number=6, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.page_token", + index=5, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1671, + serialized_end=1941, ) _LISTEVENTSRESPONSE = _descriptor.Descriptor( - name='ListEventsResponse', - full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='error_events', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.error_events', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_range_begin', full_name='google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.time_range_begin', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1944, - serialized_end=2122, + name="ListEventsResponse", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="error_events", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.error_events", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_range_begin", + full_name="google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.time_range_begin", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1944, + serialized_end=2122, ) _QUERYTIMERANGE = _descriptor.Descriptor( - name='QueryTimeRange', - full_name='google.devtools.clouderrorreporting.v1beta1.QueryTimeRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='period', full_name='google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.period', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _QUERYTIMERANGE_PERIOD, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2125, - serialized_end=2356, + name="QueryTimeRange", + full_name="google.devtools.clouderrorreporting.v1beta1.QueryTimeRange", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="period", + full_name="google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.period", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[_QUERYTIMERANGE_PERIOD], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2125, + serialized_end=2356, ) _SERVICECONTEXTFILTER = _descriptor.Descriptor( - name='ServiceContextFilter', - full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='service', full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.service', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.version', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_type', full_name='google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.resource_type', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2358, - serialized_end=2437, + name="ServiceContextFilter", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="service", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.service", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.version", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_type", + full_name="google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.resource_type", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2358, + serialized_end=2437, ) _DELETEEVENTSREQUEST = _descriptor.Descriptor( - name='DeleteEventsRequest', - full_name='google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_name', full_name='google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest.project_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2439, - serialized_end=2482, + name="DeleteEventsRequest", + full_name="google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_name", + full_name="google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest.project_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2439, + serialized_end=2482, ) _DELETEEVENTSRESPONSE = _descriptor.Descriptor( - name='DeleteEventsResponse', - full_name='google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2484, - serialized_end=2506, + name="DeleteEventsResponse", + full_name="google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2484, + serialized_end=2506, ) -_LISTGROUPSTATSREQUEST.fields_by_name['service_filter'].message_type = _SERVICECONTEXTFILTER -_LISTGROUPSTATSREQUEST.fields_by_name['time_range'].message_type = _QUERYTIMERANGE -_LISTGROUPSTATSREQUEST.fields_by_name['timed_count_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LISTGROUPSTATSREQUEST.fields_by_name['alignment'].enum_type = _TIMEDCOUNTALIGNMENT -_LISTGROUPSTATSREQUEST.fields_by_name['alignment_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LISTGROUPSTATSREQUEST.fields_by_name['order'].enum_type = _ERRORGROUPORDER -_LISTGROUPSTATSRESPONSE.fields_by_name['error_group_stats'].message_type = _ERRORGROUPSTATS -_LISTGROUPSTATSRESPONSE.fields_by_name['time_range_begin'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ERRORGROUPSTATS.fields_by_name['group'].message_type = google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP -_ERRORGROUPSTATS.fields_by_name['timed_counts'].message_type = _TIMEDCOUNT -_ERRORGROUPSTATS.fields_by_name['first_seen_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ERRORGROUPSTATS.fields_by_name['last_seen_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ERRORGROUPSTATS.fields_by_name['affected_services'].message_type = google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._SERVICECONTEXT -_ERRORGROUPSTATS.fields_by_name['representative'].message_type = google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERROREVENT -_TIMEDCOUNT.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TIMEDCOUNT.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LISTEVENTSREQUEST.fields_by_name['service_filter'].message_type = _SERVICECONTEXTFILTER -_LISTEVENTSREQUEST.fields_by_name['time_range'].message_type = _QUERYTIMERANGE -_LISTEVENTSRESPONSE.fields_by_name['error_events'].message_type = google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERROREVENT -_LISTEVENTSRESPONSE.fields_by_name['time_range_begin'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_QUERYTIMERANGE.fields_by_name['period'].enum_type = _QUERYTIMERANGE_PERIOD +_LISTGROUPSTATSREQUEST.fields_by_name[ + "service_filter" +].message_type = _SERVICECONTEXTFILTER +_LISTGROUPSTATSREQUEST.fields_by_name["time_range"].message_type = _QUERYTIMERANGE +_LISTGROUPSTATSREQUEST.fields_by_name[ + "timed_count_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LISTGROUPSTATSREQUEST.fields_by_name["alignment"].enum_type = _TIMEDCOUNTALIGNMENT +_LISTGROUPSTATSREQUEST.fields_by_name[ + "alignment_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTGROUPSTATSREQUEST.fields_by_name["order"].enum_type = _ERRORGROUPORDER +_LISTGROUPSTATSRESPONSE.fields_by_name[ + "error_group_stats" +].message_type = _ERRORGROUPSTATS +_LISTGROUPSTATSRESPONSE.fields_by_name[ + "time_range_begin" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ERRORGROUPSTATS.fields_by_name[ + "group" +].message_type = ( + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORGROUP +) +_ERRORGROUPSTATS.fields_by_name["timed_counts"].message_type = _TIMEDCOUNT +_ERRORGROUPSTATS.fields_by_name[ + "first_seen_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ERRORGROUPSTATS.fields_by_name[ + "last_seen_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ERRORGROUPSTATS.fields_by_name[ + "affected_services" +].message_type = ( + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._SERVICECONTEXT +) +_ERRORGROUPSTATS.fields_by_name[ + "representative" +].message_type = ( + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERROREVENT +) +_TIMEDCOUNT.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMEDCOUNT.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTEVENTSREQUEST.fields_by_name["service_filter"].message_type = _SERVICECONTEXTFILTER +_LISTEVENTSREQUEST.fields_by_name["time_range"].message_type = _QUERYTIMERANGE +_LISTEVENTSRESPONSE.fields_by_name[ + "error_events" +].message_type = ( + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERROREVENT +) +_LISTEVENTSRESPONSE.fields_by_name[ + "time_range_begin" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_QUERYTIMERANGE.fields_by_name["period"].enum_type = _QUERYTIMERANGE_PERIOD _QUERYTIMERANGE_PERIOD.containing_type = _QUERYTIMERANGE -DESCRIPTOR.message_types_by_name['ListGroupStatsRequest'] = _LISTGROUPSTATSREQUEST -DESCRIPTOR.message_types_by_name['ListGroupStatsResponse'] = _LISTGROUPSTATSRESPONSE -DESCRIPTOR.message_types_by_name['ErrorGroupStats'] = _ERRORGROUPSTATS -DESCRIPTOR.message_types_by_name['TimedCount'] = _TIMEDCOUNT -DESCRIPTOR.message_types_by_name['ListEventsRequest'] = _LISTEVENTSREQUEST -DESCRIPTOR.message_types_by_name['ListEventsResponse'] = _LISTEVENTSRESPONSE -DESCRIPTOR.message_types_by_name['QueryTimeRange'] = _QUERYTIMERANGE -DESCRIPTOR.message_types_by_name['ServiceContextFilter'] = _SERVICECONTEXTFILTER -DESCRIPTOR.message_types_by_name['DeleteEventsRequest'] = _DELETEEVENTSREQUEST -DESCRIPTOR.message_types_by_name['DeleteEventsResponse'] = _DELETEEVENTSRESPONSE -DESCRIPTOR.enum_types_by_name['TimedCountAlignment'] = _TIMEDCOUNTALIGNMENT -DESCRIPTOR.enum_types_by_name['ErrorGroupOrder'] = _ERRORGROUPORDER +DESCRIPTOR.message_types_by_name["ListGroupStatsRequest"] = _LISTGROUPSTATSREQUEST +DESCRIPTOR.message_types_by_name["ListGroupStatsResponse"] = _LISTGROUPSTATSRESPONSE +DESCRIPTOR.message_types_by_name["ErrorGroupStats"] = _ERRORGROUPSTATS +DESCRIPTOR.message_types_by_name["TimedCount"] = _TIMEDCOUNT +DESCRIPTOR.message_types_by_name["ListEventsRequest"] = _LISTEVENTSREQUEST +DESCRIPTOR.message_types_by_name["ListEventsResponse"] = _LISTEVENTSRESPONSE +DESCRIPTOR.message_types_by_name["QueryTimeRange"] = _QUERYTIMERANGE +DESCRIPTOR.message_types_by_name["ServiceContextFilter"] = _SERVICECONTEXTFILTER +DESCRIPTOR.message_types_by_name["DeleteEventsRequest"] = _DELETEEVENTSREQUEST +DESCRIPTOR.message_types_by_name["DeleteEventsResponse"] = _DELETEEVENTSRESPONSE +DESCRIPTOR.enum_types_by_name["TimedCountAlignment"] = _TIMEDCOUNTALIGNMENT +DESCRIPTOR.enum_types_by_name["ErrorGroupOrder"] = _ERRORGROUPORDER _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListGroupStatsRequest = _reflection.GeneratedProtocolMessageType('ListGroupStatsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPSTATSREQUEST, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Specifies a set of ``ErrorGroupStats`` to return. +ListGroupStatsRequest = _reflection.GeneratedProtocolMessageType( + "ListGroupStatsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPSTATSREQUEST, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Specifies a set of ``ErrorGroupStats`` to return. Attributes: @@ -734,15 +1170,18 @@ response. To view additional results, pass this token along with the identical query parameters as the first request. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest) + ), +) _sym_db.RegisterMessage(ListGroupStatsRequest) -ListGroupStatsResponse = _reflection.GeneratedProtocolMessageType('ListGroupStatsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPSTATSRESPONSE, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Contains a set of requested error group stats. +ListGroupStatsResponse = _reflection.GeneratedProtocolMessageType( + "ListGroupStatsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPSTATSRESPONSE, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Contains a set of requested error group stats. Attributes: @@ -759,15 +1198,18 @@ has exceeded the storage quota and older data has been deleted. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse) + ), +) _sym_db.RegisterMessage(ListGroupStatsResponse) -ErrorGroupStats = _reflection.GeneratedProtocolMessageType('ErrorGroupStats', (_message.Message,), dict( - DESCRIPTOR = _ERRORGROUPSTATS, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Data extracted for a specific group based on certain filter criteria, +ErrorGroupStats = _reflection.GeneratedProtocolMessageType( + "ErrorGroupStats", + (_message.Message,), + dict( + DESCRIPTOR=_ERRORGROUPSTATS, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Data extracted for a specific group based on certain filter criteria, such as a given time period and/or service filter. @@ -818,15 +1260,18 @@ showing an arbitrary representative provides insight into the characteristics of the group as a whole. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats) + ), +) _sym_db.RegisterMessage(ErrorGroupStats) -TimedCount = _reflection.GeneratedProtocolMessageType('TimedCount', (_message.Message,), dict( - DESCRIPTOR = _TIMEDCOUNT, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """The number of errors in a given time period. All numbers are approximate +TimedCount = _reflection.GeneratedProtocolMessageType( + "TimedCount", + (_message.Message,), + dict( + DESCRIPTOR=_TIMEDCOUNT, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""The number of errors in a given time period. All numbers are approximate since the error events are sampled before counting them. @@ -838,15 +1283,18 @@ end_time: End of the time period to which ``count`` refers (excluded). """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.TimedCount) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.TimedCount) + ), +) _sym_db.RegisterMessage(TimedCount) -ListEventsRequest = _reflection.GeneratedProtocolMessageType('ListEventsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTEVENTSREQUEST, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Specifies a set of error events to return. +ListEventsRequest = _reflection.GeneratedProtocolMessageType( + "ListEventsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTEVENTSREQUEST, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Specifies a set of error events to return. Attributes: @@ -873,15 +1321,18 @@ [Optional] A ``next_page_token`` provided by a previous response. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListEventsRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListEventsRequest) + ), +) _sym_db.RegisterMessage(ListEventsRequest) -ListEventsResponse = _reflection.GeneratedProtocolMessageType('ListEventsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTEVENTSRESPONSE, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Contains a set of requested error events. +ListEventsResponse = _reflection.GeneratedProtocolMessageType( + "ListEventsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTEVENTSRESPONSE, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Contains a set of requested error events. Attributes: @@ -895,15 +1346,18 @@ The timestamp specifies the start time to which the request was restricted. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListEventsResponse) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListEventsResponse) + ), +) _sym_db.RegisterMessage(ListEventsResponse) -QueryTimeRange = _reflection.GeneratedProtocolMessageType('QueryTimeRange', (_message.Message,), dict( - DESCRIPTOR = _QUERYTIMERANGE, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Requests might be rejected or the resulting timed count durations might +QueryTimeRange = _reflection.GeneratedProtocolMessageType( + "QueryTimeRange", + (_message.Message,), + dict( + DESCRIPTOR=_QUERYTIMERANGE, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Requests might be rejected or the resulting timed count durations might be adjusted for lower durations. @@ -911,15 +1365,18 @@ period: Restricts the query to the specified time range. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.QueryTimeRange) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.QueryTimeRange) + ), +) _sym_db.RegisterMessage(QueryTimeRange) -ServiceContextFilter = _reflection.GeneratedProtocolMessageType('ServiceContextFilter', (_message.Message,), dict( - DESCRIPTOR = _SERVICECONTEXTFILTER, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Specifies criteria for filtering a subset of service contexts. The +ServiceContextFilter = _reflection.GeneratedProtocolMessageType( + "ServiceContextFilter", + (_message.Message,), + dict( + DESCRIPTOR=_SERVICECONTEXTFILTER, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Specifies criteria for filtering a subset of service contexts. The fields in the filter correspond to the fields in ``ServiceContext``. Only exact, case-sensitive matches are supported. If a field is unset or empty, it matches arbitrary values. @@ -939,15 +1396,18 @@ ```ServiceContext.resource_type`` `__. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter) + ), +) _sym_db.RegisterMessage(ServiceContextFilter) -DeleteEventsRequest = _reflection.GeneratedProtocolMessageType('DeleteEventsRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEEVENTSREQUEST, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Deletes all events in the project. +DeleteEventsRequest = _reflection.GeneratedProtocolMessageType( + "DeleteEventsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEEVENTSREQUEST, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Deletes all events in the project. Attributes: @@ -958,63 +1418,86 @@ `__. Example: ``projects/my-project-123``. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest) + ), +) _sym_db.RegisterMessage(DeleteEventsRequest) -DeleteEventsResponse = _reflection.GeneratedProtocolMessageType('DeleteEventsResponse', (_message.Message,), dict( - DESCRIPTOR = _DELETEEVENTSRESPONSE, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2' - , - __doc__ = """Response message for deleting error events. +DeleteEventsResponse = _reflection.GeneratedProtocolMessageType( + "DeleteEventsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEEVENTSRESPONSE, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.error_stats_service_pb2", + __doc__="""Response message for deleting error events. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse) + ), +) _sym_db.RegisterMessage(DeleteEventsResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n/com.google.devtools.clouderrorreporting.v1beta1B\026ErrorStatsServiceProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n/com.google.devtools.clouderrorreporting.v1beta1B\026ErrorStatsServiceProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1" + ), +) _ERRORSTATSSERVICE = _descriptor.ServiceDescriptor( - name='ErrorStatsService', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2755, - serialized_end=3381, - methods=[ - _descriptor.MethodDescriptor( - name='ListGroupStats', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats', + name="ErrorStatsService", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorStatsService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTGROUPSTATSREQUEST, - output_type=_LISTGROUPSTATSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1beta1/{project_name=projects/*}/groupStats')), - ), - _descriptor.MethodDescriptor( - name='ListEvents', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListEvents', - index=1, - containing_service=None, - input_type=_LISTEVENTSREQUEST, - output_type=_LISTEVENTSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+\022)/v1beta1/{project_name=projects/*}/events')), - ), - _descriptor.MethodDescriptor( - name='DeleteEvents', - full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.DeleteEvents', - index=2, - containing_service=None, - input_type=_DELETEEVENTSREQUEST, - output_type=_DELETEEVENTSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+*)/v1beta1/{project_name=projects/*}/events')), - ), -]) + options=None, + serialized_start=2755, + serialized_end=3381, + methods=[ + _descriptor.MethodDescriptor( + name="ListGroupStats", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats", + index=0, + containing_service=None, + input_type=_LISTGROUPSTATSREQUEST, + output_type=_LISTGROUPSTATSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1beta1/{project_name=projects/*}/groupStats" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListEvents", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListEvents", + index=1, + containing_service=None, + input_type=_LISTEVENTSREQUEST, + output_type=_LISTEVENTSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002+\022)/v1beta1/{project_name=projects/*}/events" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteEvents", + full_name="google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.DeleteEvents", + index=2, + containing_service=None, + input_type=_DELETEEVENTSREQUEST, + output_type=_DELETEEVENTSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002+*)/v1beta1/{project_name=projects/*}/events"), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_ERRORSTATSSERVICE) -DESCRIPTOR.services_by_name['ErrorStatsService'] = _ERRORSTATSSERVICE +DESCRIPTOR.services_by_name["ErrorStatsService"] = _ERRORSTATSSERVICE # @@protoc_insertion_point(module_scope) diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2_grpc.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2_grpc.py index 6148a05a166ad..06944055deb16 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2_grpc.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/error_stats_service_pb2_grpc.py @@ -1,82 +1,86 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.errorreporting_v1beta1.proto import error_stats_service_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2 +from google.cloud.errorreporting_v1beta1.proto import ( + error_stats_service_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2, +) class ErrorStatsServiceStub(object): - """An API for retrieving and managing error statistics as well as data for + """An API for retrieving and managing error statistics as well as data for individual events. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListGroupStats = channel.unary_unary( - '/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListGroupStats', - request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsResponse.FromString, + self.ListGroupStats = channel.unary_unary( + "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListGroupStats", + request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsResponse.FromString, ) - self.ListEvents = channel.unary_unary( - '/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListEvents', - request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsResponse.FromString, + self.ListEvents = channel.unary_unary( + "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListEvents", + request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsResponse.FromString, ) - self.DeleteEvents = channel.unary_unary( - '/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents', - request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsResponse.FromString, + self.DeleteEvents = channel.unary_unary( + "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents", + request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsResponse.FromString, ) class ErrorStatsServiceServicer(object): - """An API for retrieving and managing error statistics as well as data for + """An API for retrieving and managing error statistics as well as data for individual events. """ - def ListGroupStats(self, request, context): - """Lists the specified groups. + def ListGroupStats(self, request, context): + """Lists the specified groups. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListEvents(self, request, context): - """Lists the specified events. + def ListEvents(self, request, context): + """Lists the specified events. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteEvents(self, request, context): - """Deletes all error events of a given project. + def DeleteEvents(self, request, context): + """Deletes all error events of a given project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ErrorStatsServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListGroupStats': grpc.unary_unary_rpc_method_handler( - servicer.ListGroupStats, - request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsRequest.FromString, - response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsResponse.SerializeToString, - ), - 'ListEvents': grpc.unary_unary_rpc_method_handler( - servicer.ListEvents, - request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsRequest.FromString, - response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsResponse.SerializeToString, - ), - 'DeleteEvents': grpc.unary_unary_rpc_method_handler( - servicer.DeleteEvents, - request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsRequest.FromString, - response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.devtools.clouderrorreporting.v1beta1.ErrorStatsService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListGroupStats": grpc.unary_unary_rpc_method_handler( + servicer.ListGroupStats, + request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsRequest.FromString, + response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListGroupStatsResponse.SerializeToString, + ), + "ListEvents": grpc.unary_unary_rpc_method_handler( + servicer.ListEvents, + request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsRequest.FromString, + response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.ListEventsResponse.SerializeToString, + ), + "DeleteEvents": grpc.unary_unary_rpc_method_handler( + servicer.DeleteEvents, + request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsRequest.FromString, + response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_error__stats__service__pb2.DeleteEventsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.devtools.clouderrorreporting.v1beta1.ErrorStatsService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2.py index c8499c5f4cfd7..2c5b50c14f159 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2.py @@ -2,160 +2,236 @@ # source: google/devtools/clouderrorreporting_v1beta1/proto/report_errors_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.errorreporting_v1beta1.proto import common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2 +from google.cloud.errorreporting_v1beta1.proto import ( + common_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/clouderrorreporting_v1beta1/proto/report_errors_service.proto', - package='google.devtools.clouderrorreporting.v1beta1', - syntax='proto3', - serialized_pb=_b('\nMgoogle/devtools/clouderrorreporting_v1beta1/proto/report_errors_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/devtools/clouderrorreporting_v1beta1/proto/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x7f\n\x17ReportErrorEventRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t\x12N\n\x05\x65vent\x18\x02 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent\"\x1a\n\x18ReportErrorEventResponse\"\xf7\x01\n\x12ReportedErrorEvent\x12.\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x0f\n\x07message\x18\x03 \x01(\t\x12J\n\x07\x63ontext\x18\x04 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContext2\xf8\x01\n\x13ReportErrorsService\x12\xe0\x01\n\x10ReportErrorEvent\x12\x44.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest\x1a\x45.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse\"?\x82\xd3\xe4\x93\x02\x39\"0/v1beta1/{project_name=projects/*}/events:report:\x05\x65ventB\xf9\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x18ReportErrorsServiceProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/devtools/clouderrorreporting_v1beta1/proto/report_errors_service.proto", + package="google.devtools.clouderrorreporting.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\nMgoogle/devtools/clouderrorreporting_v1beta1/proto/report_errors_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/devtools/clouderrorreporting_v1beta1/proto/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x7f\n\x17ReportErrorEventRequest\x12\x14\n\x0cproject_name\x18\x01 \x01(\t\x12N\n\x05\x65vent\x18\x02 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent"\x1a\n\x18ReportErrorEventResponse"\xf7\x01\n\x12ReportedErrorEvent\x12.\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x0f\n\x07message\x18\x03 \x01(\t\x12J\n\x07\x63ontext\x18\x04 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContext2\xf8\x01\n\x13ReportErrorsService\x12\xe0\x01\n\x10ReportErrorEvent\x12\x44.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest\x1a\x45.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse"?\x82\xd3\xe4\x93\x02\x39"0/v1beta1/{project_name=projects/*}/events:report:\x05\x65ventB\xf9\x01\n/com.google.devtools.clouderrorreporting.v1beta1B\x18ReportErrorsServiceProtoP\x01Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _REPORTERROREVENTREQUEST = _descriptor.Descriptor( - name='ReportErrorEventRequest', - full_name='google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_name', full_name='google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.project_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='event', full_name='google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.event', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=253, - serialized_end=380, + name="ReportErrorEventRequest", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_name", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.project_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="event", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.event", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=253, + serialized_end=380, ) _REPORTERROREVENTRESPONSE = _descriptor.Descriptor( - name='ReportErrorEventResponse', - full_name='google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=382, - serialized_end=408, + name="ReportErrorEventResponse", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=382, + serialized_end=408, ) _REPORTEDERROREVENT = _descriptor.Descriptor( - name='ReportedErrorEvent', - full_name='google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='event_time', full_name='google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.event_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='service_context', full_name='google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.service_context', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.message', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='context', full_name='google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.context', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=411, - serialized_end=658, + name="ReportedErrorEvent", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="event_time", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.event_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="service_context", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.service_context", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.message", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="context", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.context", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=411, + serialized_end=658, ) -_REPORTERROREVENTREQUEST.fields_by_name['event'].message_type = _REPORTEDERROREVENT -_REPORTEDERROREVENT.fields_by_name['event_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_REPORTEDERROREVENT.fields_by_name['service_context'].message_type = google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._SERVICECONTEXT -_REPORTEDERROREVENT.fields_by_name['context'].message_type = google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORCONTEXT -DESCRIPTOR.message_types_by_name['ReportErrorEventRequest'] = _REPORTERROREVENTREQUEST -DESCRIPTOR.message_types_by_name['ReportErrorEventResponse'] = _REPORTERROREVENTRESPONSE -DESCRIPTOR.message_types_by_name['ReportedErrorEvent'] = _REPORTEDERROREVENT +_REPORTERROREVENTREQUEST.fields_by_name["event"].message_type = _REPORTEDERROREVENT +_REPORTEDERROREVENT.fields_by_name[ + "event_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_REPORTEDERROREVENT.fields_by_name[ + "service_context" +].message_type = ( + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._SERVICECONTEXT +) +_REPORTEDERROREVENT.fields_by_name[ + "context" +].message_type = ( + google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_common__pb2._ERRORCONTEXT +) +DESCRIPTOR.message_types_by_name["ReportErrorEventRequest"] = _REPORTERROREVENTREQUEST +DESCRIPTOR.message_types_by_name["ReportErrorEventResponse"] = _REPORTERROREVENTRESPONSE +DESCRIPTOR.message_types_by_name["ReportedErrorEvent"] = _REPORTEDERROREVENT _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ReportErrorEventRequest = _reflection.GeneratedProtocolMessageType('ReportErrorEventRequest', (_message.Message,), dict( - DESCRIPTOR = _REPORTERROREVENTREQUEST, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.report_errors_service_pb2' - , - __doc__ = """A request for reporting an individual error event. +ReportErrorEventRequest = _reflection.GeneratedProtocolMessageType( + "ReportErrorEventRequest", + (_message.Message,), + dict( + DESCRIPTOR=_REPORTERROREVENTREQUEST, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.report_errors_service_pb2", + __doc__="""A request for reporting an individual error event. Attributes: @@ -168,26 +244,32 @@ event: [Required] The error event to be reported. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest) + ), +) _sym_db.RegisterMessage(ReportErrorEventRequest) -ReportErrorEventResponse = _reflection.GeneratedProtocolMessageType('ReportErrorEventResponse', (_message.Message,), dict( - DESCRIPTOR = _REPORTERROREVENTRESPONSE, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.report_errors_service_pb2' - , - __doc__ = """Response for reporting an individual error event. Data may be added to +ReportErrorEventResponse = _reflection.GeneratedProtocolMessageType( + "ReportErrorEventResponse", + (_message.Message,), + dict( + DESCRIPTOR=_REPORTERROREVENTRESPONSE, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.report_errors_service_pb2", + __doc__="""Response for reporting an individual error event. Data may be added to this message in the future. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse) + ), +) _sym_db.RegisterMessage(ReportErrorEventResponse) -ReportedErrorEvent = _reflection.GeneratedProtocolMessageType('ReportedErrorEvent', (_message.Message,), dict( - DESCRIPTOR = _REPORTEDERROREVENT, - __module__ = 'google.devtools.clouderrorreporting_v1beta1.proto.report_errors_service_pb2' - , - __doc__ = """An error event which is reported to the Error Reporting system. +ReportedErrorEvent = _reflection.GeneratedProtocolMessageType( + "ReportedErrorEvent", + (_message.Message,), + dict( + DESCRIPTOR=_REPORTEDERROREVENT, + __module__="google.devtools.clouderrorreporting_v1beta1.proto.report_errors_service_pb2", + __doc__="""An error event which is reported to the Error Reporting system. Attributes: @@ -208,35 +290,47 @@ [Optional] A description of the context in which the error occurred. """, - # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent) - )) + # @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent) + ), +) _sym_db.RegisterMessage(ReportedErrorEvent) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n/com.google.devtools.clouderrorreporting.v1beta1B\030ReportErrorsServiceProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n/com.google.devtools.clouderrorreporting.v1beta1B\030ReportErrorsServiceProtoP\001Z^google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting\252\002#Google.Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cloud\\ErrorReporting\\V1beta1" + ), +) _REPORTERRORSSERVICE = _descriptor.ServiceDescriptor( - name='ReportErrorsService', - full_name='google.devtools.clouderrorreporting.v1beta1.ReportErrorsService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=661, - serialized_end=909, - methods=[ - _descriptor.MethodDescriptor( - name='ReportErrorEvent', - full_name='google.devtools.clouderrorreporting.v1beta1.ReportErrorsService.ReportErrorEvent', + name="ReportErrorsService", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportErrorsService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_REPORTERROREVENTREQUEST, - output_type=_REPORTERROREVENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\"0/v1beta1/{project_name=projects/*}/events:report:\005event')), - ), -]) + options=None, + serialized_start=661, + serialized_end=909, + methods=[ + _descriptor.MethodDescriptor( + name="ReportErrorEvent", + full_name="google.devtools.clouderrorreporting.v1beta1.ReportErrorsService.ReportErrorEvent", + index=0, + containing_service=None, + input_type=_REPORTERROREVENTREQUEST, + output_type=_REPORTERROREVENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0029"0/v1beta1/{project_name=projects/*}/events:report:\005event' + ), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_REPORTERRORSSERVICE) -DESCRIPTOR.services_by_name['ReportErrorsService'] = _REPORTERRORSSERVICE +DESCRIPTOR.services_by_name["ReportErrorsService"] = _REPORTERRORSSERVICE # @@protoc_insertion_point(module_scope) diff --git a/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2_grpc.py b/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2_grpc.py index f2a8a011b2c0d..e3e8507da26ec 100644 --- a/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2_grpc.py +++ b/error_reporting/google/cloud/errorreporting_v1beta1/proto/report_errors_service_pb2_grpc.py @@ -1,32 +1,34 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.errorreporting_v1beta1.proto import report_errors_service_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2 +from google.cloud.errorreporting_v1beta1.proto import ( + report_errors_service_pb2 as google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2, +) class ReportErrorsServiceStub(object): - """An API for reporting error events. + """An API for reporting error events. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ReportErrorEvent = channel.unary_unary( - '/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent', - request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventResponse.FromString, + self.ReportErrorEvent = channel.unary_unary( + "/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent", + request_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventResponse.FromString, ) class ReportErrorsServiceServicer(object): - """An API for reporting error events. + """An API for reporting error events. """ - def ReportErrorEvent(self, request, context): - """Report an individual error event. + def ReportErrorEvent(self, request, context): + """Report an individual error event. This endpoint accepts either an OAuth token, or an @@ -35,19 +37,21 @@ def ReportErrorEvent(self, request, context): a `key` parameter. For example:
POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456
""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ReportErrorsServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ReportErrorEvent': grpc.unary_unary_rpc_method_handler( - servicer.ReportErrorEvent, - request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventRequest.FromString, - response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.devtools.clouderrorreporting.v1beta1.ReportErrorsService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ReportErrorEvent": grpc.unary_unary_rpc_method_handler( + servicer.ReportErrorEvent, + request_deserializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventRequest.FromString, + response_serializer=google_dot_devtools_dot_clouderrorreporting__v1beta1_dot_proto_dot_report__errors__service__pb2.ReportErrorEventResponse.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.devtools.clouderrorreporting.v1beta1.ReportErrorsService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/iot/google/cloud/iot_v1/proto/device_manager_pb2.py b/iot/google/cloud/iot_v1/proto/device_manager_pb2.py index 6c684e21ddcb6..af788f86f7420 100644 --- a/iot/google/cloud/iot_v1/proto/device_manager_pb2.py +++ b/iot/google/cloud/iot_v1/proto/device_manager_pb2.py @@ -2,19 +2,23 @@ # source: google/cloud/iot_v1/proto/device_manager.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.iot_v1.proto import resources_pb2 as google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2 +from google.cloud.iot_v1.proto import ( + resources_pb2 as google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 @@ -25,984 +29,1525 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/iot_v1/proto/device_manager.proto', - package='google.cloud.iot.v1', - syntax='proto3', - serialized_pb=_b('\n.google/cloud/iot_v1/proto/device_manager.proto\x12\x13google.cloud.iot.v1\x1a\x1cgoogle/api/annotations.proto\x1a)google/cloud/iot_v1/proto/resources.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"k\n\x1b\x43reateDeviceRegistryRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0f\x64\x65vice_registry\x18\x02 \x01(\x0b\x32#.google.cloud.iot.v1.DeviceRegistry\"(\n\x18GetDeviceRegistryRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"+\n\x1b\x44\x65leteDeviceRegistryRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x8c\x01\n\x1bUpdateDeviceRegistryRequest\x12<\n\x0f\x64\x65vice_registry\x18\x01 \x01(\x0b\x32#.google.cloud.iot.v1.DeviceRegistry\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"T\n\x1bListDeviceRegistriesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"w\n\x1cListDeviceRegistriesResponse\x12>\n\x11\x64\x65vice_registries\x18\x01 \x03(\x0b\x32#.google.cloud.iot.v1.DeviceRegistry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x13\x43reateDeviceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12+\n\x06\x64\x65vice\x18\x02 \x01(\x0b\x32\x1b.google.cloud.iot.v1.Device\"P\n\x10GetDeviceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"s\n\x13UpdateDeviceRequest\x12+\n\x06\x64\x65vice\x18\x02 \x01(\x0b\x32\x1b.google.cloud.iot.v1.Device\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"#\n\x13\x44\x65leteDeviceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xee\x01\n\x12ListDevicesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65vice_num_ids\x18\x02 \x03(\x04\x12\x12\n\ndevice_ids\x18\x03 \x03(\t\x12.\n\nfield_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x45\n\x14gateway_list_options\x18\x06 \x01(\x0b\x32\'.google.cloud.iot.v1.GatewayListOptions\x12\x11\n\tpage_size\x18\x64 \x01(\x05\x12\x12\n\npage_token\x18\x65 \x01(\t\"\x9d\x01\n\x12GatewayListOptions\x12\x38\n\x0cgateway_type\x18\x01 \x01(\x0e\x32 .google.cloud.iot.v1.GatewayTypeH\x00\x12!\n\x17\x61ssociations_gateway_id\x18\x02 \x01(\tH\x00\x12 \n\x16\x61ssociations_device_id\x18\x03 \x01(\tH\x00\x42\x08\n\x06\x66ilter\"\\\n\x13ListDevicesResponse\x12,\n\x07\x64\x65vices\x18\x01 \x03(\x0b\x32\x1b.google.cloud.iot.v1.Device\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"`\n ModifyCloudToDeviceConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11version_to_update\x18\x02 \x01(\x03\x12\x13\n\x0b\x62inary_data\x18\x03 \x01(\x0c\"E\n\x1fListDeviceConfigVersionsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0cnum_versions\x18\x02 \x01(\x05\"]\n ListDeviceConfigVersionsResponse\x12\x39\n\x0e\x64\x65vice_configs\x18\x01 \x03(\x0b\x32!.google.cloud.iot.v1.DeviceConfig\";\n\x17ListDeviceStatesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nnum_states\x18\x02 \x01(\x05\"S\n\x18ListDeviceStatesResponse\x12\x37\n\rdevice_states\x18\x01 \x03(\x0b\x32 .google.cloud.iot.v1.DeviceState\"R\n\x1aSendCommandToDeviceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x62inary_data\x18\x02 \x01(\x0c\x12\x11\n\tsubfolder\x18\x03 \x01(\t\"\x1d\n\x1bSendCommandToDeviceResponse\"S\n\x1a\x42indDeviceToGatewayRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\ngateway_id\x18\x02 \x01(\t\x12\x11\n\tdevice_id\x18\x03 \x01(\t\"\x1d\n\x1b\x42indDeviceToGatewayResponse\"W\n\x1eUnbindDeviceFromGatewayRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\ngateway_id\x18\x02 \x01(\t\x12\x11\n\tdevice_id\x18\x03 \x01(\t\"!\n\x1fUnbindDeviceFromGatewayResponse2\xe5\"\n\rDeviceManager\x12\xb6\x01\n\x14\x43reateDeviceRegistry\x12\x30.google.cloud.iot.v1.CreateDeviceRegistryRequest\x1a#.google.cloud.iot.v1.DeviceRegistry\"G\x82\xd3\xe4\x93\x02\x41\"./v1/{parent=projects/*/locations/*}/registries:\x0f\x64\x65vice_registry\x12\x9f\x01\n\x11GetDeviceRegistry\x12-.google.cloud.iot.v1.GetDeviceRegistryRequest\x1a#.google.cloud.iot.v1.DeviceRegistry\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/registries/*}\x12\xc6\x01\n\x14UpdateDeviceRegistry\x12\x30.google.cloud.iot.v1.UpdateDeviceRegistryRequest\x1a#.google.cloud.iot.v1.DeviceRegistry\"W\x82\xd3\xe4\x93\x02Q2>/v1/{device_registry.name=projects/*/locations/*/registries/*}:\x0f\x64\x65vice_registry\x12\x98\x01\n\x14\x44\x65leteDeviceRegistry\x12\x30.google.cloud.iot.v1.DeleteDeviceRegistryRequest\x1a\x16.google.protobuf.Empty\"6\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/registries/*}\x12\xb3\x01\n\x14ListDeviceRegistries\x12\x30.google.cloud.iot.v1.ListDeviceRegistriesRequest\x1a\x31.google.cloud.iot.v1.ListDeviceRegistriesResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/registries\x12\x9f\x01\n\x0c\x43reateDevice\x12(.google.cloud.iot.v1.CreateDeviceRequest\x1a\x1b.google.cloud.iot.v1.Device\"H\x82\xd3\xe4\x93\x02\x42\"8/v1/{parent=projects/*/locations/*/registries/*}/devices:\x06\x64\x65vice\x12\xd7\x01\n\tGetDevice\x12%.google.cloud.iot.v1.GetDeviceRequest\x1a\x1b.google.cloud.iot.v1.Device\"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12\x38/v1/{name=projects/*/locations/*/registries/*/devices/*}ZC\x12\x41/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}\x12\xfc\x01\n\x0cUpdateDevice\x12(.google.cloud.iot.v1.UpdateDeviceRequest\x1a\x1b.google.cloud.iot.v1.Device\"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\x32?/v1/{device.name=projects/*/locations/*/registries/*/devices/*}:\x06\x64\x65viceZR2H/v1/{device.name=projects/*/locations/*/registries/*/groups/*/devices/*}:\x06\x64\x65vice\x12\x92\x01\n\x0c\x44\x65leteDevice\x12(.google.cloud.iot.v1.DeleteDeviceRequest\x1a\x16.google.protobuf.Empty\"@\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/registries/*/devices/*}\x12\xe8\x01\n\x0bListDevices\x12\'.google.cloud.iot.v1.ListDevicesRequest\x1a(.google.cloud.iot.v1.ListDevicesResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12\x38/v1/{parent=projects/*/locations/*/registries/*}/devicesZC\x12\x41/v1/{parent=projects/*/locations/*/registries/*/groups/*}/devices\x12\xb8\x02\n\x19ModifyCloudToDeviceConfig\x12\x35.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest\x1a!.google.cloud.iot.v1.DeviceConfig\"\xc0\x01\x82\xd3\xe4\x93\x02\xb9\x01\"R/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig:\x01*Z`\"[/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:modifyCloudToDeviceConfig:\x01*\x12\xae\x02\n\x18ListDeviceConfigVersions\x12\x34.google.cloud.iot.v1.ListDeviceConfigVersionsRequest\x1a\x35.google.cloud.iot.v1.ListDeviceConfigVersionsResponse\"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\x12G/v1/{name=projects/*/locations/*/registries/*/devices/*}/configVersionsZR\x12P/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/configVersions\x12\x86\x02\n\x10ListDeviceStates\x12,.google.cloud.iot.v1.ListDeviceStatesRequest\x1a-.google.cloud.iot.v1.ListDeviceStatesResponse\"\x94\x01\x82\xd3\xe4\x93\x02\x8d\x01\x12?/v1/{name=projects/*/locations/*/registries/*/devices/*}/statesZJ\x12H/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/states\x12\xe6\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9a\x01\x82\xd3\xe4\x93\x02\x93\x01\"?/v1/{resource=projects/*/locations/*/registries/*}:setIamPolicy:\x01*ZM\"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:setIamPolicy:\x01*\x12\xe6\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9a\x01\x82\xd3\xe4\x93\x02\x93\x01\"?/v1/{resource=projects/*/locations/*/registries/*}:getIamPolicy:\x01*ZM\"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:getIamPolicy:\x01*\x12\x92\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01\"E/v1/{resource=projects/*/locations/*/registries/*}:testIamPermissions:\x01*ZS\"N/v1/{resource=projects/*/locations/*/registries/*/groups/*}:testIamPermissions:\x01*\x12\xaf\x02\n\x13SendCommandToDevice\x12/.google.cloud.iot.v1.SendCommandToDeviceRequest\x1a\x30.google.cloud.iot.v1.SendCommandToDeviceResponse\"\xb4\x01\x82\xd3\xe4\x93\x02\xad\x01\"L/v1/{name=projects/*/locations/*/registries/*/devices/*}:sendCommandToDevice:\x01*ZZ\"U/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:sendCommandToDevice:\x01*\x12\x9f\x02\n\x13\x42indDeviceToGateway\x12/.google.cloud.iot.v1.BindDeviceToGatewayRequest\x1a\x30.google.cloud.iot.v1.BindDeviceToGatewayResponse\"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\"D/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway:\x01*ZR\"M/v1/{parent=projects/*/locations/*/registries/*/groups/*}:bindDeviceToGateway:\x01*\x12\xb3\x02\n\x17UnbindDeviceFromGateway\x12\x33.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest\x1a\x34.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse\"\xac\x01\x82\xd3\xe4\x93\x02\xa5\x01\"H/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway:\x01*ZV\"Q/v1/{parent=projects/*/locations/*/registries/*/groups/*}:unbindDeviceFromGateway:\x01*Bj\n\x17\x63om.google.cloud.iot.v1B\x12\x44\x65viceManagerProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - + name="google/cloud/iot_v1/proto/device_manager.proto", + package="google.cloud.iot.v1", + syntax="proto3", + serialized_pb=_b( + '\n.google/cloud/iot_v1/proto/device_manager.proto\x12\x13google.cloud.iot.v1\x1a\x1cgoogle/api/annotations.proto\x1a)google/cloud/iot_v1/proto/resources.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"k\n\x1b\x43reateDeviceRegistryRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0f\x64\x65vice_registry\x18\x02 \x01(\x0b\x32#.google.cloud.iot.v1.DeviceRegistry"(\n\x18GetDeviceRegistryRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"+\n\x1b\x44\x65leteDeviceRegistryRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x8c\x01\n\x1bUpdateDeviceRegistryRequest\x12<\n\x0f\x64\x65vice_registry\x18\x01 \x01(\x0b\x32#.google.cloud.iot.v1.DeviceRegistry\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"T\n\x1bListDeviceRegistriesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"w\n\x1cListDeviceRegistriesResponse\x12>\n\x11\x64\x65vice_registries\x18\x01 \x03(\x0b\x32#.google.cloud.iot.v1.DeviceRegistry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"R\n\x13\x43reateDeviceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12+\n\x06\x64\x65vice\x18\x02 \x01(\x0b\x32\x1b.google.cloud.iot.v1.Device"P\n\x10GetDeviceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"s\n\x13UpdateDeviceRequest\x12+\n\x06\x64\x65vice\x18\x02 \x01(\x0b\x32\x1b.google.cloud.iot.v1.Device\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"#\n\x13\x44\x65leteDeviceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xee\x01\n\x12ListDevicesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65vice_num_ids\x18\x02 \x03(\x04\x12\x12\n\ndevice_ids\x18\x03 \x03(\t\x12.\n\nfield_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x45\n\x14gateway_list_options\x18\x06 \x01(\x0b\x32\'.google.cloud.iot.v1.GatewayListOptions\x12\x11\n\tpage_size\x18\x64 \x01(\x05\x12\x12\n\npage_token\x18\x65 \x01(\t"\x9d\x01\n\x12GatewayListOptions\x12\x38\n\x0cgateway_type\x18\x01 \x01(\x0e\x32 .google.cloud.iot.v1.GatewayTypeH\x00\x12!\n\x17\x61ssociations_gateway_id\x18\x02 \x01(\tH\x00\x12 \n\x16\x61ssociations_device_id\x18\x03 \x01(\tH\x00\x42\x08\n\x06\x66ilter"\\\n\x13ListDevicesResponse\x12,\n\x07\x64\x65vices\x18\x01 \x03(\x0b\x32\x1b.google.cloud.iot.v1.Device\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"`\n ModifyCloudToDeviceConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11version_to_update\x18\x02 \x01(\x03\x12\x13\n\x0b\x62inary_data\x18\x03 \x01(\x0c"E\n\x1fListDeviceConfigVersionsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0cnum_versions\x18\x02 \x01(\x05"]\n ListDeviceConfigVersionsResponse\x12\x39\n\x0e\x64\x65vice_configs\x18\x01 \x03(\x0b\x32!.google.cloud.iot.v1.DeviceConfig";\n\x17ListDeviceStatesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nnum_states\x18\x02 \x01(\x05"S\n\x18ListDeviceStatesResponse\x12\x37\n\rdevice_states\x18\x01 \x03(\x0b\x32 .google.cloud.iot.v1.DeviceState"R\n\x1aSendCommandToDeviceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x62inary_data\x18\x02 \x01(\x0c\x12\x11\n\tsubfolder\x18\x03 \x01(\t"\x1d\n\x1bSendCommandToDeviceResponse"S\n\x1a\x42indDeviceToGatewayRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\ngateway_id\x18\x02 \x01(\t\x12\x11\n\tdevice_id\x18\x03 \x01(\t"\x1d\n\x1b\x42indDeviceToGatewayResponse"W\n\x1eUnbindDeviceFromGatewayRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\ngateway_id\x18\x02 \x01(\t\x12\x11\n\tdevice_id\x18\x03 \x01(\t"!\n\x1fUnbindDeviceFromGatewayResponse2\xe5"\n\rDeviceManager\x12\xb6\x01\n\x14\x43reateDeviceRegistry\x12\x30.google.cloud.iot.v1.CreateDeviceRegistryRequest\x1a#.google.cloud.iot.v1.DeviceRegistry"G\x82\xd3\xe4\x93\x02\x41"./v1/{parent=projects/*/locations/*}/registries:\x0f\x64\x65vice_registry\x12\x9f\x01\n\x11GetDeviceRegistry\x12-.google.cloud.iot.v1.GetDeviceRegistryRequest\x1a#.google.cloud.iot.v1.DeviceRegistry"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/registries/*}\x12\xc6\x01\n\x14UpdateDeviceRegistry\x12\x30.google.cloud.iot.v1.UpdateDeviceRegistryRequest\x1a#.google.cloud.iot.v1.DeviceRegistry"W\x82\xd3\xe4\x93\x02Q2>/v1/{device_registry.name=projects/*/locations/*/registries/*}:\x0f\x64\x65vice_registry\x12\x98\x01\n\x14\x44\x65leteDeviceRegistry\x12\x30.google.cloud.iot.v1.DeleteDeviceRegistryRequest\x1a\x16.google.protobuf.Empty"6\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/registries/*}\x12\xb3\x01\n\x14ListDeviceRegistries\x12\x30.google.cloud.iot.v1.ListDeviceRegistriesRequest\x1a\x31.google.cloud.iot.v1.ListDeviceRegistriesResponse"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/registries\x12\x9f\x01\n\x0c\x43reateDevice\x12(.google.cloud.iot.v1.CreateDeviceRequest\x1a\x1b.google.cloud.iot.v1.Device"H\x82\xd3\xe4\x93\x02\x42"8/v1/{parent=projects/*/locations/*/registries/*}/devices:\x06\x64\x65vice\x12\xd7\x01\n\tGetDevice\x12%.google.cloud.iot.v1.GetDeviceRequest\x1a\x1b.google.cloud.iot.v1.Device"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12\x38/v1/{name=projects/*/locations/*/registries/*/devices/*}ZC\x12\x41/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}\x12\xfc\x01\n\x0cUpdateDevice\x12(.google.cloud.iot.v1.UpdateDeviceRequest\x1a\x1b.google.cloud.iot.v1.Device"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\x32?/v1/{device.name=projects/*/locations/*/registries/*/devices/*}:\x06\x64\x65viceZR2H/v1/{device.name=projects/*/locations/*/registries/*/groups/*/devices/*}:\x06\x64\x65vice\x12\x92\x01\n\x0c\x44\x65leteDevice\x12(.google.cloud.iot.v1.DeleteDeviceRequest\x1a\x16.google.protobuf.Empty"@\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/registries/*/devices/*}\x12\xe8\x01\n\x0bListDevices\x12\'.google.cloud.iot.v1.ListDevicesRequest\x1a(.google.cloud.iot.v1.ListDevicesResponse"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12\x38/v1/{parent=projects/*/locations/*/registries/*}/devicesZC\x12\x41/v1/{parent=projects/*/locations/*/registries/*/groups/*}/devices\x12\xb8\x02\n\x19ModifyCloudToDeviceConfig\x12\x35.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest\x1a!.google.cloud.iot.v1.DeviceConfig"\xc0\x01\x82\xd3\xe4\x93\x02\xb9\x01"R/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig:\x01*Z`"[/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:modifyCloudToDeviceConfig:\x01*\x12\xae\x02\n\x18ListDeviceConfigVersions\x12\x34.google.cloud.iot.v1.ListDeviceConfigVersionsRequest\x1a\x35.google.cloud.iot.v1.ListDeviceConfigVersionsResponse"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\x12G/v1/{name=projects/*/locations/*/registries/*/devices/*}/configVersionsZR\x12P/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/configVersions\x12\x86\x02\n\x10ListDeviceStates\x12,.google.cloud.iot.v1.ListDeviceStatesRequest\x1a-.google.cloud.iot.v1.ListDeviceStatesResponse"\x94\x01\x82\xd3\xe4\x93\x02\x8d\x01\x12?/v1/{name=projects/*/locations/*/registries/*/devices/*}/statesZJ\x12H/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/states\x12\xe6\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"\x9a\x01\x82\xd3\xe4\x93\x02\x93\x01"?/v1/{resource=projects/*/locations/*/registries/*}:setIamPolicy:\x01*ZM"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:setIamPolicy:\x01*\x12\xe6\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"\x9a\x01\x82\xd3\xe4\x93\x02\x93\x01"?/v1/{resource=projects/*/locations/*/registries/*}:getIamPolicy:\x01*ZM"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:getIamPolicy:\x01*\x12\x92\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01"E/v1/{resource=projects/*/locations/*/registries/*}:testIamPermissions:\x01*ZS"N/v1/{resource=projects/*/locations/*/registries/*/groups/*}:testIamPermissions:\x01*\x12\xaf\x02\n\x13SendCommandToDevice\x12/.google.cloud.iot.v1.SendCommandToDeviceRequest\x1a\x30.google.cloud.iot.v1.SendCommandToDeviceResponse"\xb4\x01\x82\xd3\xe4\x93\x02\xad\x01"L/v1/{name=projects/*/locations/*/registries/*/devices/*}:sendCommandToDevice:\x01*ZZ"U/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:sendCommandToDevice:\x01*\x12\x9f\x02\n\x13\x42indDeviceToGateway\x12/.google.cloud.iot.v1.BindDeviceToGatewayRequest\x1a\x30.google.cloud.iot.v1.BindDeviceToGatewayResponse"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01"D/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway:\x01*ZR"M/v1/{parent=projects/*/locations/*/registries/*/groups/*}:bindDeviceToGateway:\x01*\x12\xb3\x02\n\x17UnbindDeviceFromGateway\x12\x33.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest\x1a\x34.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse"\xac\x01\x82\xd3\xe4\x93\x02\xa5\x01"H/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway:\x01*ZV"Q/v1/{parent=projects/*/locations/*/registries/*/groups/*}:unbindDeviceFromGateway:\x01*Bj\n\x17\x63om.google.cloud.iot.v1B\x12\x44\x65viceManagerProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _CREATEDEVICEREGISTRYREQUEST = _descriptor.Descriptor( - name='CreateDeviceRegistryRequest', - full_name='google.cloud.iot.v1.CreateDeviceRegistryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.iot.v1.CreateDeviceRegistryRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device_registry', full_name='google.cloud.iot.v1.CreateDeviceRegistryRequest.device_registry', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=357, - serialized_end=464, + name="CreateDeviceRegistryRequest", + full_name="google.cloud.iot.v1.CreateDeviceRegistryRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.iot.v1.CreateDeviceRegistryRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="device_registry", + full_name="google.cloud.iot.v1.CreateDeviceRegistryRequest.device_registry", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=357, + serialized_end=464, ) _GETDEVICEREGISTRYREQUEST = _descriptor.Descriptor( - name='GetDeviceRegistryRequest', - full_name='google.cloud.iot.v1.GetDeviceRegistryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.GetDeviceRegistryRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=466, - serialized_end=506, + name="GetDeviceRegistryRequest", + full_name="google.cloud.iot.v1.GetDeviceRegistryRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.GetDeviceRegistryRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=466, + serialized_end=506, ) _DELETEDEVICEREGISTRYREQUEST = _descriptor.Descriptor( - name='DeleteDeviceRegistryRequest', - full_name='google.cloud.iot.v1.DeleteDeviceRegistryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.DeleteDeviceRegistryRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=508, - serialized_end=551, + name="DeleteDeviceRegistryRequest", + full_name="google.cloud.iot.v1.DeleteDeviceRegistryRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.DeleteDeviceRegistryRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=508, + serialized_end=551, ) _UPDATEDEVICEREGISTRYREQUEST = _descriptor.Descriptor( - name='UpdateDeviceRegistryRequest', - full_name='google.cloud.iot.v1.UpdateDeviceRegistryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='device_registry', full_name='google.cloud.iot.v1.UpdateDeviceRegistryRequest.device_registry', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.iot.v1.UpdateDeviceRegistryRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=554, - serialized_end=694, + name="UpdateDeviceRegistryRequest", + full_name="google.cloud.iot.v1.UpdateDeviceRegistryRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="device_registry", + full_name="google.cloud.iot.v1.UpdateDeviceRegistryRequest.device_registry", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.iot.v1.UpdateDeviceRegistryRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=554, + serialized_end=694, ) _LISTDEVICEREGISTRIESREQUEST = _descriptor.Descriptor( - name='ListDeviceRegistriesRequest', - full_name='google.cloud.iot.v1.ListDeviceRegistriesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.iot.v1.ListDeviceRegistriesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.iot.v1.ListDeviceRegistriesRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.iot.v1.ListDeviceRegistriesRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=696, - serialized_end=780, + name="ListDeviceRegistriesRequest", + full_name="google.cloud.iot.v1.ListDeviceRegistriesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.iot.v1.ListDeviceRegistriesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.iot.v1.ListDeviceRegistriesRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.iot.v1.ListDeviceRegistriesRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=696, + serialized_end=780, ) _LISTDEVICEREGISTRIESRESPONSE = _descriptor.Descriptor( - name='ListDeviceRegistriesResponse', - full_name='google.cloud.iot.v1.ListDeviceRegistriesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='device_registries', full_name='google.cloud.iot.v1.ListDeviceRegistriesResponse.device_registries', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.iot.v1.ListDeviceRegistriesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=782, - serialized_end=901, + name="ListDeviceRegistriesResponse", + full_name="google.cloud.iot.v1.ListDeviceRegistriesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="device_registries", + full_name="google.cloud.iot.v1.ListDeviceRegistriesResponse.device_registries", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.iot.v1.ListDeviceRegistriesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=782, + serialized_end=901, ) _CREATEDEVICEREQUEST = _descriptor.Descriptor( - name='CreateDeviceRequest', - full_name='google.cloud.iot.v1.CreateDeviceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.iot.v1.CreateDeviceRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.cloud.iot.v1.CreateDeviceRequest.device', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=903, - serialized_end=985, + name="CreateDeviceRequest", + full_name="google.cloud.iot.v1.CreateDeviceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.iot.v1.CreateDeviceRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="device", + full_name="google.cloud.iot.v1.CreateDeviceRequest.device", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=903, + serialized_end=985, ) _GETDEVICEREQUEST = _descriptor.Descriptor( - name='GetDeviceRequest', - full_name='google.cloud.iot.v1.GetDeviceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.GetDeviceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_mask', full_name='google.cloud.iot.v1.GetDeviceRequest.field_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=987, - serialized_end=1067, + name="GetDeviceRequest", + full_name="google.cloud.iot.v1.GetDeviceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.GetDeviceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="field_mask", + full_name="google.cloud.iot.v1.GetDeviceRequest.field_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=987, + serialized_end=1067, ) _UPDATEDEVICEREQUEST = _descriptor.Descriptor( - name='UpdateDeviceRequest', - full_name='google.cloud.iot.v1.UpdateDeviceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='device', full_name='google.cloud.iot.v1.UpdateDeviceRequest.device', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.iot.v1.UpdateDeviceRequest.update_mask', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1069, - serialized_end=1184, + name="UpdateDeviceRequest", + full_name="google.cloud.iot.v1.UpdateDeviceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="device", + full_name="google.cloud.iot.v1.UpdateDeviceRequest.device", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.iot.v1.UpdateDeviceRequest.update_mask", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1069, + serialized_end=1184, ) _DELETEDEVICEREQUEST = _descriptor.Descriptor( - name='DeleteDeviceRequest', - full_name='google.cloud.iot.v1.DeleteDeviceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.DeleteDeviceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1186, - serialized_end=1221, + name="DeleteDeviceRequest", + full_name="google.cloud.iot.v1.DeleteDeviceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.DeleteDeviceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1186, + serialized_end=1221, ) _LISTDEVICESREQUEST = _descriptor.Descriptor( - name='ListDevicesRequest', - full_name='google.cloud.iot.v1.ListDevicesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.iot.v1.ListDevicesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device_num_ids', full_name='google.cloud.iot.v1.ListDevicesRequest.device_num_ids', index=1, - number=2, type=4, cpp_type=4, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device_ids', full_name='google.cloud.iot.v1.ListDevicesRequest.device_ids', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_mask', full_name='google.cloud.iot.v1.ListDevicesRequest.field_mask', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gateway_list_options', full_name='google.cloud.iot.v1.ListDevicesRequest.gateway_list_options', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.iot.v1.ListDevicesRequest.page_size', index=5, - number=100, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.iot.v1.ListDevicesRequest.page_token', index=6, - number=101, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1224, - serialized_end=1462, + name="ListDevicesRequest", + full_name="google.cloud.iot.v1.ListDevicesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.iot.v1.ListDevicesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="device_num_ids", + full_name="google.cloud.iot.v1.ListDevicesRequest.device_num_ids", + index=1, + number=2, + type=4, + cpp_type=4, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="device_ids", + full_name="google.cloud.iot.v1.ListDevicesRequest.device_ids", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="field_mask", + full_name="google.cloud.iot.v1.ListDevicesRequest.field_mask", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gateway_list_options", + full_name="google.cloud.iot.v1.ListDevicesRequest.gateway_list_options", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.iot.v1.ListDevicesRequest.page_size", + index=5, + number=100, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.iot.v1.ListDevicesRequest.page_token", + index=6, + number=101, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1224, + serialized_end=1462, ) _GATEWAYLISTOPTIONS = _descriptor.Descriptor( - name='GatewayListOptions', - full_name='google.cloud.iot.v1.GatewayListOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gateway_type', full_name='google.cloud.iot.v1.GatewayListOptions.gateway_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='associations_gateway_id', full_name='google.cloud.iot.v1.GatewayListOptions.associations_gateway_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='associations_device_id', full_name='google.cloud.iot.v1.GatewayListOptions.associations_device_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='filter', full_name='google.cloud.iot.v1.GatewayListOptions.filter', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1465, - serialized_end=1622, + name="GatewayListOptions", + full_name="google.cloud.iot.v1.GatewayListOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gateway_type", + full_name="google.cloud.iot.v1.GatewayListOptions.gateway_type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="associations_gateway_id", + full_name="google.cloud.iot.v1.GatewayListOptions.associations_gateway_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="associations_device_id", + full_name="google.cloud.iot.v1.GatewayListOptions.associations_device_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="filter", + full_name="google.cloud.iot.v1.GatewayListOptions.filter", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1465, + serialized_end=1622, ) _LISTDEVICESRESPONSE = _descriptor.Descriptor( - name='ListDevicesResponse', - full_name='google.cloud.iot.v1.ListDevicesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='devices', full_name='google.cloud.iot.v1.ListDevicesResponse.devices', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.iot.v1.ListDevicesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1624, - serialized_end=1716, + name="ListDevicesResponse", + full_name="google.cloud.iot.v1.ListDevicesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="devices", + full_name="google.cloud.iot.v1.ListDevicesResponse.devices", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.iot.v1.ListDevicesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1624, + serialized_end=1716, ) _MODIFYCLOUDTODEVICECONFIGREQUEST = _descriptor.Descriptor( - name='ModifyCloudToDeviceConfigRequest', - full_name='google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version_to_update', full_name='google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.version_to_update', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='binary_data', full_name='google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.binary_data', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1718, - serialized_end=1814, + name="ModifyCloudToDeviceConfigRequest", + full_name="google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version_to_update", + full_name="google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.version_to_update", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="binary_data", + full_name="google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.binary_data", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1718, + serialized_end=1814, ) _LISTDEVICECONFIGVERSIONSREQUEST = _descriptor.Descriptor( - name='ListDeviceConfigVersionsRequest', - full_name='google.cloud.iot.v1.ListDeviceConfigVersionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.ListDeviceConfigVersionsRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='num_versions', full_name='google.cloud.iot.v1.ListDeviceConfigVersionsRequest.num_versions', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1816, - serialized_end=1885, + name="ListDeviceConfigVersionsRequest", + full_name="google.cloud.iot.v1.ListDeviceConfigVersionsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.ListDeviceConfigVersionsRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="num_versions", + full_name="google.cloud.iot.v1.ListDeviceConfigVersionsRequest.num_versions", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1816, + serialized_end=1885, ) _LISTDEVICECONFIGVERSIONSRESPONSE = _descriptor.Descriptor( - name='ListDeviceConfigVersionsResponse', - full_name='google.cloud.iot.v1.ListDeviceConfigVersionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='device_configs', full_name='google.cloud.iot.v1.ListDeviceConfigVersionsResponse.device_configs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1887, - serialized_end=1980, + name="ListDeviceConfigVersionsResponse", + full_name="google.cloud.iot.v1.ListDeviceConfigVersionsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="device_configs", + full_name="google.cloud.iot.v1.ListDeviceConfigVersionsResponse.device_configs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1887, + serialized_end=1980, ) _LISTDEVICESTATESREQUEST = _descriptor.Descriptor( - name='ListDeviceStatesRequest', - full_name='google.cloud.iot.v1.ListDeviceStatesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.ListDeviceStatesRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='num_states', full_name='google.cloud.iot.v1.ListDeviceStatesRequest.num_states', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1982, - serialized_end=2041, + name="ListDeviceStatesRequest", + full_name="google.cloud.iot.v1.ListDeviceStatesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.ListDeviceStatesRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="num_states", + full_name="google.cloud.iot.v1.ListDeviceStatesRequest.num_states", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1982, + serialized_end=2041, ) _LISTDEVICESTATESRESPONSE = _descriptor.Descriptor( - name='ListDeviceStatesResponse', - full_name='google.cloud.iot.v1.ListDeviceStatesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='device_states', full_name='google.cloud.iot.v1.ListDeviceStatesResponse.device_states', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2043, - serialized_end=2126, + name="ListDeviceStatesResponse", + full_name="google.cloud.iot.v1.ListDeviceStatesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="device_states", + full_name="google.cloud.iot.v1.ListDeviceStatesResponse.device_states", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2043, + serialized_end=2126, ) _SENDCOMMANDTODEVICEREQUEST = _descriptor.Descriptor( - name='SendCommandToDeviceRequest', - full_name='google.cloud.iot.v1.SendCommandToDeviceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.SendCommandToDeviceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='binary_data', full_name='google.cloud.iot.v1.SendCommandToDeviceRequest.binary_data', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subfolder', full_name='google.cloud.iot.v1.SendCommandToDeviceRequest.subfolder', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2128, - serialized_end=2210, + name="SendCommandToDeviceRequest", + full_name="google.cloud.iot.v1.SendCommandToDeviceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.SendCommandToDeviceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="binary_data", + full_name="google.cloud.iot.v1.SendCommandToDeviceRequest.binary_data", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="subfolder", + full_name="google.cloud.iot.v1.SendCommandToDeviceRequest.subfolder", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2128, + serialized_end=2210, ) _SENDCOMMANDTODEVICERESPONSE = _descriptor.Descriptor( - name='SendCommandToDeviceResponse', - full_name='google.cloud.iot.v1.SendCommandToDeviceResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2212, - serialized_end=2241, + name="SendCommandToDeviceResponse", + full_name="google.cloud.iot.v1.SendCommandToDeviceResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2212, + serialized_end=2241, ) _BINDDEVICETOGATEWAYREQUEST = _descriptor.Descriptor( - name='BindDeviceToGatewayRequest', - full_name='google.cloud.iot.v1.BindDeviceToGatewayRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.iot.v1.BindDeviceToGatewayRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gateway_id', full_name='google.cloud.iot.v1.BindDeviceToGatewayRequest.gateway_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device_id', full_name='google.cloud.iot.v1.BindDeviceToGatewayRequest.device_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2243, - serialized_end=2326, + name="BindDeviceToGatewayRequest", + full_name="google.cloud.iot.v1.BindDeviceToGatewayRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.iot.v1.BindDeviceToGatewayRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gateway_id", + full_name="google.cloud.iot.v1.BindDeviceToGatewayRequest.gateway_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="device_id", + full_name="google.cloud.iot.v1.BindDeviceToGatewayRequest.device_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2243, + serialized_end=2326, ) _BINDDEVICETOGATEWAYRESPONSE = _descriptor.Descriptor( - name='BindDeviceToGatewayResponse', - full_name='google.cloud.iot.v1.BindDeviceToGatewayResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2328, - serialized_end=2357, + name="BindDeviceToGatewayResponse", + full_name="google.cloud.iot.v1.BindDeviceToGatewayResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2328, + serialized_end=2357, ) _UNBINDDEVICEFROMGATEWAYREQUEST = _descriptor.Descriptor( - name='UnbindDeviceFromGatewayRequest', - full_name='google.cloud.iot.v1.UnbindDeviceFromGatewayRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gateway_id', full_name='google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.gateway_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device_id', full_name='google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.device_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2359, - serialized_end=2446, + name="UnbindDeviceFromGatewayRequest", + full_name="google.cloud.iot.v1.UnbindDeviceFromGatewayRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gateway_id", + full_name="google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.gateway_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="device_id", + full_name="google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.device_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2359, + serialized_end=2446, ) _UNBINDDEVICEFROMGATEWAYRESPONSE = _descriptor.Descriptor( - name='UnbindDeviceFromGatewayResponse', - full_name='google.cloud.iot.v1.UnbindDeviceFromGatewayResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2448, - serialized_end=2481, + name="UnbindDeviceFromGatewayResponse", + full_name="google.cloud.iot.v1.UnbindDeviceFromGatewayResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2448, + serialized_end=2481, ) -_CREATEDEVICEREGISTRYREQUEST.fields_by_name['device_registry'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY -_UPDATEDEVICEREGISTRYREQUEST.fields_by_name['device_registry'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY -_UPDATEDEVICEREGISTRYREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTDEVICEREGISTRIESRESPONSE.fields_by_name['device_registries'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY -_CREATEDEVICEREQUEST.fields_by_name['device'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE -_GETDEVICEREQUEST.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATEDEVICEREQUEST.fields_by_name['device'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE -_UPDATEDEVICEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTDEVICESREQUEST.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTDEVICESREQUEST.fields_by_name['gateway_list_options'].message_type = _GATEWAYLISTOPTIONS -_GATEWAYLISTOPTIONS.fields_by_name['gateway_type'].enum_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._GATEWAYTYPE -_GATEWAYLISTOPTIONS.oneofs_by_name['filter'].fields.append( - _GATEWAYLISTOPTIONS.fields_by_name['gateway_type']) -_GATEWAYLISTOPTIONS.fields_by_name['gateway_type'].containing_oneof = _GATEWAYLISTOPTIONS.oneofs_by_name['filter'] -_GATEWAYLISTOPTIONS.oneofs_by_name['filter'].fields.append( - _GATEWAYLISTOPTIONS.fields_by_name['associations_gateway_id']) -_GATEWAYLISTOPTIONS.fields_by_name['associations_gateway_id'].containing_oneof = _GATEWAYLISTOPTIONS.oneofs_by_name['filter'] -_GATEWAYLISTOPTIONS.oneofs_by_name['filter'].fields.append( - _GATEWAYLISTOPTIONS.fields_by_name['associations_device_id']) -_GATEWAYLISTOPTIONS.fields_by_name['associations_device_id'].containing_oneof = _GATEWAYLISTOPTIONS.oneofs_by_name['filter'] -_LISTDEVICESRESPONSE.fields_by_name['devices'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE -_LISTDEVICECONFIGVERSIONSRESPONSE.fields_by_name['device_configs'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICECONFIG -_LISTDEVICESTATESRESPONSE.fields_by_name['device_states'].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICESTATE -DESCRIPTOR.message_types_by_name['CreateDeviceRegistryRequest'] = _CREATEDEVICEREGISTRYREQUEST -DESCRIPTOR.message_types_by_name['GetDeviceRegistryRequest'] = _GETDEVICEREGISTRYREQUEST -DESCRIPTOR.message_types_by_name['DeleteDeviceRegistryRequest'] = _DELETEDEVICEREGISTRYREQUEST -DESCRIPTOR.message_types_by_name['UpdateDeviceRegistryRequest'] = _UPDATEDEVICEREGISTRYREQUEST -DESCRIPTOR.message_types_by_name['ListDeviceRegistriesRequest'] = _LISTDEVICEREGISTRIESREQUEST -DESCRIPTOR.message_types_by_name['ListDeviceRegistriesResponse'] = _LISTDEVICEREGISTRIESRESPONSE -DESCRIPTOR.message_types_by_name['CreateDeviceRequest'] = _CREATEDEVICEREQUEST -DESCRIPTOR.message_types_by_name['GetDeviceRequest'] = _GETDEVICEREQUEST -DESCRIPTOR.message_types_by_name['UpdateDeviceRequest'] = _UPDATEDEVICEREQUEST -DESCRIPTOR.message_types_by_name['DeleteDeviceRequest'] = _DELETEDEVICEREQUEST -DESCRIPTOR.message_types_by_name['ListDevicesRequest'] = _LISTDEVICESREQUEST -DESCRIPTOR.message_types_by_name['GatewayListOptions'] = _GATEWAYLISTOPTIONS -DESCRIPTOR.message_types_by_name['ListDevicesResponse'] = _LISTDEVICESRESPONSE -DESCRIPTOR.message_types_by_name['ModifyCloudToDeviceConfigRequest'] = _MODIFYCLOUDTODEVICECONFIGREQUEST -DESCRIPTOR.message_types_by_name['ListDeviceConfigVersionsRequest'] = _LISTDEVICECONFIGVERSIONSREQUEST -DESCRIPTOR.message_types_by_name['ListDeviceConfigVersionsResponse'] = _LISTDEVICECONFIGVERSIONSRESPONSE -DESCRIPTOR.message_types_by_name['ListDeviceStatesRequest'] = _LISTDEVICESTATESREQUEST -DESCRIPTOR.message_types_by_name['ListDeviceStatesResponse'] = _LISTDEVICESTATESRESPONSE -DESCRIPTOR.message_types_by_name['SendCommandToDeviceRequest'] = _SENDCOMMANDTODEVICEREQUEST -DESCRIPTOR.message_types_by_name['SendCommandToDeviceResponse'] = _SENDCOMMANDTODEVICERESPONSE -DESCRIPTOR.message_types_by_name['BindDeviceToGatewayRequest'] = _BINDDEVICETOGATEWAYREQUEST -DESCRIPTOR.message_types_by_name['BindDeviceToGatewayResponse'] = _BINDDEVICETOGATEWAYRESPONSE -DESCRIPTOR.message_types_by_name['UnbindDeviceFromGatewayRequest'] = _UNBINDDEVICEFROMGATEWAYREQUEST -DESCRIPTOR.message_types_by_name['UnbindDeviceFromGatewayResponse'] = _UNBINDDEVICEFROMGATEWAYRESPONSE +_CREATEDEVICEREGISTRYREQUEST.fields_by_name[ + "device_registry" +].message_type = ( + google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY +) +_UPDATEDEVICEREGISTRYREQUEST.fields_by_name[ + "device_registry" +].message_type = ( + google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY +) +_UPDATEDEVICEREGISTRYREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTDEVICEREGISTRIESRESPONSE.fields_by_name[ + "device_registries" +].message_type = ( + google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY +) +_CREATEDEVICEREQUEST.fields_by_name[ + "device" +].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE +_GETDEVICEREQUEST.fields_by_name[ + "field_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATEDEVICEREQUEST.fields_by_name[ + "device" +].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE +_UPDATEDEVICEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTDEVICESREQUEST.fields_by_name[ + "field_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTDEVICESREQUEST.fields_by_name[ + "gateway_list_options" +].message_type = _GATEWAYLISTOPTIONS +_GATEWAYLISTOPTIONS.fields_by_name[ + "gateway_type" +].enum_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._GATEWAYTYPE +_GATEWAYLISTOPTIONS.oneofs_by_name["filter"].fields.append( + _GATEWAYLISTOPTIONS.fields_by_name["gateway_type"] +) +_GATEWAYLISTOPTIONS.fields_by_name[ + "gateway_type" +].containing_oneof = _GATEWAYLISTOPTIONS.oneofs_by_name["filter"] +_GATEWAYLISTOPTIONS.oneofs_by_name["filter"].fields.append( + _GATEWAYLISTOPTIONS.fields_by_name["associations_gateway_id"] +) +_GATEWAYLISTOPTIONS.fields_by_name[ + "associations_gateway_id" +].containing_oneof = _GATEWAYLISTOPTIONS.oneofs_by_name["filter"] +_GATEWAYLISTOPTIONS.oneofs_by_name["filter"].fields.append( + _GATEWAYLISTOPTIONS.fields_by_name["associations_device_id"] +) +_GATEWAYLISTOPTIONS.fields_by_name[ + "associations_device_id" +].containing_oneof = _GATEWAYLISTOPTIONS.oneofs_by_name["filter"] +_LISTDEVICESRESPONSE.fields_by_name[ + "devices" +].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE +_LISTDEVICECONFIGVERSIONSRESPONSE.fields_by_name[ + "device_configs" +].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICECONFIG +_LISTDEVICESTATESRESPONSE.fields_by_name[ + "device_states" +].message_type = google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICESTATE +DESCRIPTOR.message_types_by_name[ + "CreateDeviceRegistryRequest" +] = _CREATEDEVICEREGISTRYREQUEST +DESCRIPTOR.message_types_by_name["GetDeviceRegistryRequest"] = _GETDEVICEREGISTRYREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteDeviceRegistryRequest" +] = _DELETEDEVICEREGISTRYREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateDeviceRegistryRequest" +] = _UPDATEDEVICEREGISTRYREQUEST +DESCRIPTOR.message_types_by_name[ + "ListDeviceRegistriesRequest" +] = _LISTDEVICEREGISTRIESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListDeviceRegistriesResponse" +] = _LISTDEVICEREGISTRIESRESPONSE +DESCRIPTOR.message_types_by_name["CreateDeviceRequest"] = _CREATEDEVICEREQUEST +DESCRIPTOR.message_types_by_name["GetDeviceRequest"] = _GETDEVICEREQUEST +DESCRIPTOR.message_types_by_name["UpdateDeviceRequest"] = _UPDATEDEVICEREQUEST +DESCRIPTOR.message_types_by_name["DeleteDeviceRequest"] = _DELETEDEVICEREQUEST +DESCRIPTOR.message_types_by_name["ListDevicesRequest"] = _LISTDEVICESREQUEST +DESCRIPTOR.message_types_by_name["GatewayListOptions"] = _GATEWAYLISTOPTIONS +DESCRIPTOR.message_types_by_name["ListDevicesResponse"] = _LISTDEVICESRESPONSE +DESCRIPTOR.message_types_by_name[ + "ModifyCloudToDeviceConfigRequest" +] = _MODIFYCLOUDTODEVICECONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "ListDeviceConfigVersionsRequest" +] = _LISTDEVICECONFIGVERSIONSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListDeviceConfigVersionsResponse" +] = _LISTDEVICECONFIGVERSIONSRESPONSE +DESCRIPTOR.message_types_by_name["ListDeviceStatesRequest"] = _LISTDEVICESTATESREQUEST +DESCRIPTOR.message_types_by_name["ListDeviceStatesResponse"] = _LISTDEVICESTATESRESPONSE +DESCRIPTOR.message_types_by_name[ + "SendCommandToDeviceRequest" +] = _SENDCOMMANDTODEVICEREQUEST +DESCRIPTOR.message_types_by_name[ + "SendCommandToDeviceResponse" +] = _SENDCOMMANDTODEVICERESPONSE +DESCRIPTOR.message_types_by_name[ + "BindDeviceToGatewayRequest" +] = _BINDDEVICETOGATEWAYREQUEST +DESCRIPTOR.message_types_by_name[ + "BindDeviceToGatewayResponse" +] = _BINDDEVICETOGATEWAYRESPONSE +DESCRIPTOR.message_types_by_name[ + "UnbindDeviceFromGatewayRequest" +] = _UNBINDDEVICEFROMGATEWAYREQUEST +DESCRIPTOR.message_types_by_name[ + "UnbindDeviceFromGatewayResponse" +] = _UNBINDDEVICEFROMGATEWAYRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType('CreateDeviceRegistryRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEDEVICEREGISTRYREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``CreateDeviceRegistry``. +CreateDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType( + "CreateDeviceRegistryRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEDEVICEREGISTRYREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``CreateDeviceRegistry``. Attributes: @@ -1015,15 +1560,18 @@ server will generate that field from the device registry ``id`` provided and the ``parent`` field. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRegistryRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRegistryRequest) + ), +) _sym_db.RegisterMessage(CreateDeviceRegistryRequest) -GetDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType('GetDeviceRegistryRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDEVICEREGISTRYREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``GetDeviceRegistry``. +GetDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType( + "GetDeviceRegistryRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDEVICEREGISTRYREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``GetDeviceRegistry``. Attributes: @@ -1032,15 +1580,18 @@ ``projects/example-project/locations/us- central1/registries/my-registry``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRegistryRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRegistryRequest) + ), +) _sym_db.RegisterMessage(GetDeviceRegistryRequest) -DeleteDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType('DeleteDeviceRegistryRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEDEVICEREGISTRYREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``DeleteDeviceRegistry``. +DeleteDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType( + "DeleteDeviceRegistryRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEDEVICEREGISTRYREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``DeleteDeviceRegistry``. Attributes: @@ -1049,15 +1600,18 @@ ``projects/example-project/locations/us- central1/registries/my-registry``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRegistryRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRegistryRequest) + ), +) _sym_db.RegisterMessage(DeleteDeviceRegistryRequest) -UpdateDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType('UpdateDeviceRegistryRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEDEVICEREGISTRYREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``UpdateDeviceRegistry``. +UpdateDeviceRegistryRequest = _reflection.GeneratedProtocolMessageType( + "UpdateDeviceRegistryRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEDEVICEREGISTRYREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``UpdateDeviceRegistry``. Attributes: @@ -1074,15 +1628,18 @@ ``http_config``, ``mqtt_config``, and ``state_notification_config``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRegistryRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRegistryRequest) + ), +) _sym_db.RegisterMessage(UpdateDeviceRegistryRequest) -ListDeviceRegistriesRequest = _reflection.GeneratedProtocolMessageType('ListDeviceRegistriesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICEREGISTRIESREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``ListDeviceRegistries``. +ListDeviceRegistriesRequest = _reflection.GeneratedProtocolMessageType( + "ListDeviceRegistriesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICEREGISTRIESREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``ListDeviceRegistries``. Attributes: @@ -1101,15 +1658,18 @@ continuation of a prior ``ListDeviceRegistries`` call and the system should return the next page of data. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesRequest) + ), +) _sym_db.RegisterMessage(ListDeviceRegistriesRequest) -ListDeviceRegistriesResponse = _reflection.GeneratedProtocolMessageType('ListDeviceRegistriesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICEREGISTRIESRESPONSE, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Response for ``ListDeviceRegistries``. +ListDeviceRegistriesResponse = _reflection.GeneratedProtocolMessageType( + "ListDeviceRegistriesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICEREGISTRIESRESPONSE, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Response for ``ListDeviceRegistries``. Attributes: @@ -1120,15 +1680,18 @@ match the request; this value should be passed in a new ``ListDeviceRegistriesRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesResponse) + ), +) _sym_db.RegisterMessage(ListDeviceRegistriesResponse) -CreateDeviceRequest = _reflection.GeneratedProtocolMessageType('CreateDeviceRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEDEVICEREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``CreateDevice``. +CreateDeviceRequest = _reflection.GeneratedProtocolMessageType( + "CreateDeviceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEDEVICEREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``CreateDevice``. Attributes: @@ -1141,15 +1704,18 @@ empty. The server generates ``name`` from the device registry ``id`` and the ``parent`` field. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRequest) + ), +) _sym_db.RegisterMessage(CreateDeviceRequest) -GetDeviceRequest = _reflection.GeneratedProtocolMessageType('GetDeviceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDEVICEREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``GetDevice``. +GetDeviceRequest = _reflection.GeneratedProtocolMessageType( + "GetDeviceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDEVICEREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``GetDevice``. Attributes: @@ -1164,15 +1730,18 @@ response. If the field mask is unset or empty, all fields are returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRequest) + ), +) _sym_db.RegisterMessage(GetDeviceRequest) -UpdateDeviceRequest = _reflection.GeneratedProtocolMessageType('UpdateDeviceRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEDEVICEREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``UpdateDevice``. +UpdateDeviceRequest = _reflection.GeneratedProtocolMessageType( + "UpdateDeviceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEDEVICEREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``UpdateDevice``. Attributes: @@ -1189,15 +1758,18 @@ that are immutable or only set by the server. Mutable top- level fields: ``credentials``, ``blocked``, and ``metadata`` """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRequest) + ), +) _sym_db.RegisterMessage(UpdateDeviceRequest) -DeleteDeviceRequest = _reflection.GeneratedProtocolMessageType('DeleteDeviceRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEDEVICEREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``DeleteDevice``. +DeleteDeviceRequest = _reflection.GeneratedProtocolMessageType( + "DeleteDeviceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEDEVICEREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``DeleteDevice``. Attributes: @@ -1208,15 +1780,18 @@ ``projects/p0/locations/us- central1/registries/registry0/devices/{num_id}``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRequest) + ), +) _sym_db.RegisterMessage(DeleteDeviceRequest) -ListDevicesRequest = _reflection.GeneratedProtocolMessageType('ListDevicesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICESREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``ListDevices``. +ListDevicesRequest = _reflection.GeneratedProtocolMessageType( + "ListDevicesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICESREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``ListDevices``. Attributes: @@ -1249,15 +1824,18 @@ ``ListDevices`` call and the system should return the next page of data. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesRequest) + ), +) _sym_db.RegisterMessage(ListDevicesRequest) -GatewayListOptions = _reflection.GeneratedProtocolMessageType('GatewayListOptions', (_message.Message,), dict( - DESCRIPTOR = _GATEWAYLISTOPTIONS, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Options for limiting the list based on gateway type and associations. +GatewayListOptions = _reflection.GeneratedProtocolMessageType( + "GatewayListOptions", + (_message.Message,), + dict( + DESCRIPTOR=_GATEWAYLISTOPTIONS, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Options for limiting the list based on gateway type and associations. Attributes: @@ -1282,15 +1860,18 @@ if ``456`` is specified, returns only the gateways to which the device with ``num_id`` 456 is bound. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayListOptions) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayListOptions) + ), +) _sym_db.RegisterMessage(GatewayListOptions) -ListDevicesResponse = _reflection.GeneratedProtocolMessageType('ListDevicesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICESRESPONSE, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Response for ``ListDevices``. +ListDevicesResponse = _reflection.GeneratedProtocolMessageType( + "ListDevicesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICESRESPONSE, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Response for ``ListDevices``. Attributes: @@ -1301,15 +1882,18 @@ match the request; this value should be passed in a new ``ListDevicesRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesResponse) + ), +) _sym_db.RegisterMessage(ListDevicesResponse) -ModifyCloudToDeviceConfigRequest = _reflection.GeneratedProtocolMessageType('ModifyCloudToDeviceConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _MODIFYCLOUDTODEVICECONFIGREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``ModifyCloudToDeviceConfig``. +ModifyCloudToDeviceConfigRequest = _reflection.GeneratedProtocolMessageType( + "ModifyCloudToDeviceConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_MODIFYCLOUDTODEVICECONFIGREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``ModifyCloudToDeviceConfig``. Attributes: @@ -1329,15 +1913,18 @@ binary_data: The configuration data for the device. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) + ), +) _sym_db.RegisterMessage(ModifyCloudToDeviceConfigRequest) -ListDeviceConfigVersionsRequest = _reflection.GeneratedProtocolMessageType('ListDeviceConfigVersionsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICECONFIGVERSIONSREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``ListDeviceConfigVersions``. +ListDeviceConfigVersionsRequest = _reflection.GeneratedProtocolMessageType( + "ListDeviceConfigVersionsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICECONFIGVERSIONSREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``ListDeviceConfigVersions``. Attributes: @@ -1353,15 +1940,18 @@ versions retained is 10. If this value is zero, it will return all the versions available. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) + ), +) _sym_db.RegisterMessage(ListDeviceConfigVersionsRequest) -ListDeviceConfigVersionsResponse = _reflection.GeneratedProtocolMessageType('ListDeviceConfigVersionsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICECONFIGVERSIONSRESPONSE, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Response for ``ListDeviceConfigVersions``. +ListDeviceConfigVersionsResponse = _reflection.GeneratedProtocolMessageType( + "ListDeviceConfigVersionsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICECONFIGVERSIONSRESPONSE, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Response for ``ListDeviceConfigVersions``. Attributes: @@ -1370,15 +1960,18 @@ are listed in decreasing order, starting from the most recent one. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsResponse) + ), +) _sym_db.RegisterMessage(ListDeviceConfigVersionsResponse) -ListDeviceStatesRequest = _reflection.GeneratedProtocolMessageType('ListDeviceStatesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICESTATESREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``ListDeviceStates``. +ListDeviceStatesRequest = _reflection.GeneratedProtocolMessageType( + "ListDeviceStatesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICESTATESREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``ListDeviceStates``. Attributes: @@ -1394,15 +1987,18 @@ 10. If this value is zero, it will return all the states available. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesRequest) + ), +) _sym_db.RegisterMessage(ListDeviceStatesRequest) -ListDeviceStatesResponse = _reflection.GeneratedProtocolMessageType('ListDeviceStatesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDEVICESTATESRESPONSE, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Response for ``ListDeviceStates``. +ListDeviceStatesResponse = _reflection.GeneratedProtocolMessageType( + "ListDeviceStatesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDEVICESTATESRESPONSE, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Response for ``ListDeviceStates``. Attributes: @@ -1411,15 +2007,18 @@ order of server update time, starting from the most recent one. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesResponse) + ), +) _sym_db.RegisterMessage(ListDeviceStatesResponse) -SendCommandToDeviceRequest = _reflection.GeneratedProtocolMessageType('SendCommandToDeviceRequest', (_message.Message,), dict( - DESCRIPTOR = _SENDCOMMANDTODEVICEREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``SendCommandToDevice``. +SendCommandToDeviceRequest = _reflection.GeneratedProtocolMessageType( + "SendCommandToDeviceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SENDCOMMANDTODEVICEREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``SendCommandToDevice``. Attributes: @@ -1440,25 +2039,31 @@ and must not contain any MQTT wildcards ("+" or "#") or null characters. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceRequest) + ), +) _sym_db.RegisterMessage(SendCommandToDeviceRequest) -SendCommandToDeviceResponse = _reflection.GeneratedProtocolMessageType('SendCommandToDeviceResponse', (_message.Message,), dict( - DESCRIPTOR = _SENDCOMMANDTODEVICERESPONSE, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Response for ``SendCommandToDevice``. +SendCommandToDeviceResponse = _reflection.GeneratedProtocolMessageType( + "SendCommandToDeviceResponse", + (_message.Message,), + dict( + DESCRIPTOR=_SENDCOMMANDTODEVICERESPONSE, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Response for ``SendCommandToDevice``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceResponse) + ), +) _sym_db.RegisterMessage(SendCommandToDeviceResponse) -BindDeviceToGatewayRequest = _reflection.GeneratedProtocolMessageType('BindDeviceToGatewayRequest', (_message.Message,), dict( - DESCRIPTOR = _BINDDEVICETOGATEWAYREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``BindDeviceToGateway``. +BindDeviceToGatewayRequest = _reflection.GeneratedProtocolMessageType( + "BindDeviceToGatewayRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BINDDEVICETOGATEWAYREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``BindDeviceToGateway``. Attributes: @@ -1473,25 +2078,31 @@ of ``device_id`` can be either the device numeric ID or the user-defined device identifier. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayRequest) + ), +) _sym_db.RegisterMessage(BindDeviceToGatewayRequest) -BindDeviceToGatewayResponse = _reflection.GeneratedProtocolMessageType('BindDeviceToGatewayResponse', (_message.Message,), dict( - DESCRIPTOR = _BINDDEVICETOGATEWAYRESPONSE, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Response for ``BindDeviceToGateway``. +BindDeviceToGatewayResponse = _reflection.GeneratedProtocolMessageType( + "BindDeviceToGatewayResponse", + (_message.Message,), + dict( + DESCRIPTOR=_BINDDEVICETOGATEWAYRESPONSE, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Response for ``BindDeviceToGateway``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayResponse) + ), +) _sym_db.RegisterMessage(BindDeviceToGatewayResponse) -UnbindDeviceFromGatewayRequest = _reflection.GeneratedProtocolMessageType('UnbindDeviceFromGatewayRequest', (_message.Message,), dict( - DESCRIPTOR = _UNBINDDEVICEFROMGATEWAYREQUEST, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Request for ``UnbindDeviceFromGateway``. +UnbindDeviceFromGatewayRequest = _reflection.GeneratedProtocolMessageType( + "UnbindDeviceFromGatewayRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UNBINDDEVICEFROMGATEWAYREQUEST, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Request for ``UnbindDeviceFromGateway``. Attributes: @@ -1506,207 +2117,312 @@ value of ``device_id`` can be either the device numeric ID or the user-defined device identifier. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) + ), +) _sym_db.RegisterMessage(UnbindDeviceFromGatewayRequest) -UnbindDeviceFromGatewayResponse = _reflection.GeneratedProtocolMessageType('UnbindDeviceFromGatewayResponse', (_message.Message,), dict( - DESCRIPTOR = _UNBINDDEVICEFROMGATEWAYRESPONSE, - __module__ = 'google.cloud.iot_v1.proto.device_manager_pb2' - , - __doc__ = """Response for ``UnbindDeviceFromGateway``. +UnbindDeviceFromGatewayResponse = _reflection.GeneratedProtocolMessageType( + "UnbindDeviceFromGatewayResponse", + (_message.Message,), + dict( + DESCRIPTOR=_UNBINDDEVICEFROMGATEWAYRESPONSE, + __module__="google.cloud.iot_v1.proto.device_manager_pb2", + __doc__="""Response for ``UnbindDeviceFromGateway``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) + ), +) _sym_db.RegisterMessage(UnbindDeviceFromGatewayResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.google.cloud.iot.v1B\022DeviceManagerProtoP\001Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\027com.google.cloud.iot.v1B\022DeviceManagerProtoP\001Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\370\001\001" + ), +) _DEVICEMANAGER = _descriptor.ServiceDescriptor( - name='DeviceManager', - full_name='google.cloud.iot.v1.DeviceManager', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2484, - serialized_end=6937, - methods=[ - _descriptor.MethodDescriptor( - name='CreateDeviceRegistry', - full_name='google.cloud.iot.v1.DeviceManager.CreateDeviceRegistry', + name="DeviceManager", + full_name="google.cloud.iot.v1.DeviceManager", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATEDEVICEREGISTRYREQUEST, - output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002A\"./v1/{parent=projects/*/locations/*}/registries:\017device_registry')), - ), - _descriptor.MethodDescriptor( - name='GetDeviceRegistry', - full_name='google.cloud.iot.v1.DeviceManager.GetDeviceRegistry', - index=1, - containing_service=None, - input_type=_GETDEVICEREGISTRYREQUEST, - output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0020\022./v1/{name=projects/*/locations/*/registries/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateDeviceRegistry', - full_name='google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistry', - index=2, - containing_service=None, - input_type=_UPDATEDEVICEREGISTRYREQUEST, - output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Q2>/v1/{device_registry.name=projects/*/locations/*/registries/*}:\017device_registry')), - ), - _descriptor.MethodDescriptor( - name='DeleteDeviceRegistry', - full_name='google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistry', - index=3, - containing_service=None, - input_type=_DELETEDEVICEREGISTRYREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0020*./v1/{name=projects/*/locations/*/registries/*}')), - ), - _descriptor.MethodDescriptor( - name='ListDeviceRegistries', - full_name='google.cloud.iot.v1.DeviceManager.ListDeviceRegistries', - index=4, - containing_service=None, - input_type=_LISTDEVICEREGISTRIESREQUEST, - output_type=_LISTDEVICEREGISTRIESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/registries')), - ), - _descriptor.MethodDescriptor( - name='CreateDevice', - full_name='google.cloud.iot.v1.DeviceManager.CreateDevice', - index=5, - containing_service=None, - input_type=_CREATEDEVICEREQUEST, - output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B\"8/v1/{parent=projects/*/locations/*/registries/*}/devices:\006device')), - ), - _descriptor.MethodDescriptor( - name='GetDevice', - full_name='google.cloud.iot.v1.DeviceManager.GetDevice', - index=6, - containing_service=None, - input_type=_GETDEVICEREQUEST, - output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\177\0228/v1/{name=projects/*/locations/*/registries/*/devices/*}ZC\022A/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateDevice', - full_name='google.cloud.iot.v1.DeviceManager.UpdateDevice', - index=7, - containing_service=None, - input_type=_UPDATEDEVICEREQUEST, - output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\235\0012?/v1/{device.name=projects/*/locations/*/registries/*/devices/*}:\006deviceZR2H/v1/{device.name=projects/*/locations/*/registries/*/groups/*/devices/*}:\006device')), - ), - _descriptor.MethodDescriptor( - name='DeleteDevice', - full_name='google.cloud.iot.v1.DeviceManager.DeleteDevice', - index=8, - containing_service=None, - input_type=_DELETEDEVICEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:*8/v1/{name=projects/*/locations/*/registries/*/devices/*}')), - ), - _descriptor.MethodDescriptor( - name='ListDevices', - full_name='google.cloud.iot.v1.DeviceManager.ListDevices', - index=9, - containing_service=None, - input_type=_LISTDEVICESREQUEST, - output_type=_LISTDEVICESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\177\0228/v1/{parent=projects/*/locations/*/registries/*}/devicesZC\022A/v1/{parent=projects/*/locations/*/registries/*/groups/*}/devices')), - ), - _descriptor.MethodDescriptor( - name='ModifyCloudToDeviceConfig', - full_name='google.cloud.iot.v1.DeviceManager.ModifyCloudToDeviceConfig', - index=10, - containing_service=None, - input_type=_MODIFYCLOUDTODEVICECONFIGREQUEST, - output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICECONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\271\001\"R/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig:\001*Z`\"[/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:modifyCloudToDeviceConfig:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListDeviceConfigVersions', - full_name='google.cloud.iot.v1.DeviceManager.ListDeviceConfigVersions', - index=11, - containing_service=None, - input_type=_LISTDEVICECONFIGVERSIONSREQUEST, - output_type=_LISTDEVICECONFIGVERSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\235\001\022G/v1/{name=projects/*/locations/*/registries/*/devices/*}/configVersionsZR\022P/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/configVersions')), - ), - _descriptor.MethodDescriptor( - name='ListDeviceStates', - full_name='google.cloud.iot.v1.DeviceManager.ListDeviceStates', - index=12, - containing_service=None, - input_type=_LISTDEVICESTATESREQUEST, - output_type=_LISTDEVICESTATESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\215\001\022?/v1/{name=projects/*/locations/*/registries/*/devices/*}/statesZJ\022H/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/states')), - ), - _descriptor.MethodDescriptor( - name='SetIamPolicy', - full_name='google.cloud.iot.v1.DeviceManager.SetIamPolicy', - index=13, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\223\001\"?/v1/{resource=projects/*/locations/*/registries/*}:setIamPolicy:\001*ZM\"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:setIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetIamPolicy', - full_name='google.cloud.iot.v1.DeviceManager.GetIamPolicy', - index=14, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\223\001\"?/v1/{resource=projects/*/locations/*/registries/*}:getIamPolicy:\001*ZM\"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:getIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='TestIamPermissions', - full_name='google.cloud.iot.v1.DeviceManager.TestIamPermissions', - index=15, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, - output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\237\001\"E/v1/{resource=projects/*/locations/*/registries/*}:testIamPermissions:\001*ZS\"N/v1/{resource=projects/*/locations/*/registries/*/groups/*}:testIamPermissions:\001*')), - ), - _descriptor.MethodDescriptor( - name='SendCommandToDevice', - full_name='google.cloud.iot.v1.DeviceManager.SendCommandToDevice', - index=16, - containing_service=None, - input_type=_SENDCOMMANDTODEVICEREQUEST, - output_type=_SENDCOMMANDTODEVICERESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\255\001\"L/v1/{name=projects/*/locations/*/registries/*/devices/*}:sendCommandToDevice:\001*ZZ\"U/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:sendCommandToDevice:\001*')), - ), - _descriptor.MethodDescriptor( - name='BindDeviceToGateway', - full_name='google.cloud.iot.v1.DeviceManager.BindDeviceToGateway', - index=17, - containing_service=None, - input_type=_BINDDEVICETOGATEWAYREQUEST, - output_type=_BINDDEVICETOGATEWAYRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\235\001\"D/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway:\001*ZR\"M/v1/{parent=projects/*/locations/*/registries/*/groups/*}:bindDeviceToGateway:\001*')), - ), - _descriptor.MethodDescriptor( - name='UnbindDeviceFromGateway', - full_name='google.cloud.iot.v1.DeviceManager.UnbindDeviceFromGateway', - index=18, - containing_service=None, - input_type=_UNBINDDEVICEFROMGATEWAYREQUEST, - output_type=_UNBINDDEVICEFROMGATEWAYRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\245\001\"H/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway:\001*ZV\"Q/v1/{parent=projects/*/locations/*/registries/*/groups/*}:unbindDeviceFromGateway:\001*')), - ), -]) + options=None, + serialized_start=2484, + serialized_end=6937, + methods=[ + _descriptor.MethodDescriptor( + name="CreateDeviceRegistry", + full_name="google.cloud.iot.v1.DeviceManager.CreateDeviceRegistry", + index=0, + containing_service=None, + input_type=_CREATEDEVICEREGISTRYREQUEST, + output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002A"./v1/{parent=projects/*/locations/*}/registries:\017device_registry' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetDeviceRegistry", + full_name="google.cloud.iot.v1.DeviceManager.GetDeviceRegistry", + index=1, + containing_service=None, + input_type=_GETDEVICEREGISTRYREQUEST, + output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0020\022./v1/{name=projects/*/locations/*/registries/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateDeviceRegistry", + full_name="google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistry", + index=2, + containing_service=None, + input_type=_UPDATEDEVICEREGISTRYREQUEST, + output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICEREGISTRY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Q2>/v1/{device_registry.name=projects/*/locations/*/registries/*}:\017device_registry" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteDeviceRegistry", + full_name="google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistry", + index=3, + containing_service=None, + input_type=_DELETEDEVICEREGISTRYREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0020*./v1/{name=projects/*/locations/*/registries/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListDeviceRegistries", + full_name="google.cloud.iot.v1.DeviceManager.ListDeviceRegistries", + index=4, + containing_service=None, + input_type=_LISTDEVICEREGISTRIESREQUEST, + output_type=_LISTDEVICEREGISTRIESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/registries" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateDevice", + full_name="google.cloud.iot.v1.DeviceManager.CreateDevice", + index=5, + containing_service=None, + input_type=_CREATEDEVICEREQUEST, + output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002B"8/v1/{parent=projects/*/locations/*/registries/*}/devices:\006device' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetDevice", + full_name="google.cloud.iot.v1.DeviceManager.GetDevice", + index=6, + containing_service=None, + input_type=_GETDEVICEREQUEST, + output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\177\0228/v1/{name=projects/*/locations/*/registries/*/devices/*}ZC\022A/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateDevice", + full_name="google.cloud.iot.v1.DeviceManager.UpdateDevice", + index=7, + containing_service=None, + input_type=_UPDATEDEVICEREQUEST, + output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\235\0012?/v1/{device.name=projects/*/locations/*/registries/*/devices/*}:\006deviceZR2H/v1/{device.name=projects/*/locations/*/registries/*/groups/*/devices/*}:\006device" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteDevice", + full_name="google.cloud.iot.v1.DeviceManager.DeleteDevice", + index=8, + containing_service=None, + input_type=_DELETEDEVICEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:*8/v1/{name=projects/*/locations/*/registries/*/devices/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListDevices", + full_name="google.cloud.iot.v1.DeviceManager.ListDevices", + index=9, + containing_service=None, + input_type=_LISTDEVICESREQUEST, + output_type=_LISTDEVICESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\177\0228/v1/{parent=projects/*/locations/*/registries/*}/devicesZC\022A/v1/{parent=projects/*/locations/*/registries/*/groups/*}/devices" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ModifyCloudToDeviceConfig", + full_name="google.cloud.iot.v1.DeviceManager.ModifyCloudToDeviceConfig", + index=10, + containing_service=None, + input_type=_MODIFYCLOUDTODEVICECONFIGREQUEST, + output_type=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2._DEVICECONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\271\001"R/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig:\001*Z`"[/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:modifyCloudToDeviceConfig:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListDeviceConfigVersions", + full_name="google.cloud.iot.v1.DeviceManager.ListDeviceConfigVersions", + index=11, + containing_service=None, + input_type=_LISTDEVICECONFIGVERSIONSREQUEST, + output_type=_LISTDEVICECONFIGVERSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\235\001\022G/v1/{name=projects/*/locations/*/registries/*/devices/*}/configVersionsZR\022P/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/configVersions" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListDeviceStates", + full_name="google.cloud.iot.v1.DeviceManager.ListDeviceStates", + index=12, + containing_service=None, + input_type=_LISTDEVICESTATESREQUEST, + output_type=_LISTDEVICESTATESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002\215\001\022?/v1/{name=projects/*/locations/*/registries/*/devices/*}/statesZJ\022H/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/states" + ), + ), + ), + _descriptor.MethodDescriptor( + name="SetIamPolicy", + full_name="google.cloud.iot.v1.DeviceManager.SetIamPolicy", + index=13, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\223\001"?/v1/{resource=projects/*/locations/*/registries/*}:setIamPolicy:\001*ZM"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:setIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetIamPolicy", + full_name="google.cloud.iot.v1.DeviceManager.GetIamPolicy", + index=14, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\223\001"?/v1/{resource=projects/*/locations/*/registries/*}:getIamPolicy:\001*ZM"H/v1/{resource=projects/*/locations/*/registries/*/groups/*}:getIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="TestIamPermissions", + full_name="google.cloud.iot.v1.DeviceManager.TestIamPermissions", + index=15, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, + output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\237\001"E/v1/{resource=projects/*/locations/*/registries/*}:testIamPermissions:\001*ZS"N/v1/{resource=projects/*/locations/*/registries/*/groups/*}:testIamPermissions:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="SendCommandToDevice", + full_name="google.cloud.iot.v1.DeviceManager.SendCommandToDevice", + index=16, + containing_service=None, + input_type=_SENDCOMMANDTODEVICEREQUEST, + output_type=_SENDCOMMANDTODEVICERESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\255\001"L/v1/{name=projects/*/locations/*/registries/*/devices/*}:sendCommandToDevice:\001*ZZ"U/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:sendCommandToDevice:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="BindDeviceToGateway", + full_name="google.cloud.iot.v1.DeviceManager.BindDeviceToGateway", + index=17, + containing_service=None, + input_type=_BINDDEVICETOGATEWAYREQUEST, + output_type=_BINDDEVICETOGATEWAYRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\235\001"D/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway:\001*ZR"M/v1/{parent=projects/*/locations/*/registries/*/groups/*}:bindDeviceToGateway:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UnbindDeviceFromGateway", + full_name="google.cloud.iot.v1.DeviceManager.UnbindDeviceFromGateway", + index=18, + containing_service=None, + input_type=_UNBINDDEVICEFROMGATEWAYREQUEST, + output_type=_UNBINDDEVICEFROMGATEWAYRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002\245\001"H/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway:\001*ZV"Q/v1/{parent=projects/*/locations/*/registries/*/groups/*}:unbindDeviceFromGateway:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_DEVICEMANAGER) -DESCRIPTOR.services_by_name['DeviceManager'] = _DEVICEMANAGER +DESCRIPTOR.services_by_name["DeviceManager"] = _DEVICEMANAGER # @@protoc_insertion_point(module_scope) diff --git a/iot/google/cloud/iot_v1/proto/device_manager_pb2_grpc.py b/iot/google/cloud/iot_v1/proto/device_manager_pb2_grpc.py index 2bbb027ea3480..2b16c3039d6e3 100644 --- a/iot/google/cloud/iot_v1/proto/device_manager_pb2_grpc.py +++ b/iot/google/cloud/iot_v1/proto/device_manager_pb2_grpc.py @@ -1,247 +1,251 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.iot_v1.proto import device_manager_pb2 as google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2 -from google.cloud.iot_v1.proto import resources_pb2 as google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2 +from google.cloud.iot_v1.proto import ( + device_manager_pb2 as google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2, +) +from google.cloud.iot_v1.proto import ( + resources_pb2 as google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class DeviceManagerStub(object): - """Internet of Things (IoT) service. Securely connect and manage IoT devices. + """Internet of Things (IoT) service. Securely connect and manage IoT devices. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateDeviceRegistry = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/CreateDeviceRegistry', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRegistryRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.FromString, + self.CreateDeviceRegistry = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/CreateDeviceRegistry", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRegistryRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.FromString, ) - self.GetDeviceRegistry = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/GetDeviceRegistry', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRegistryRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.FromString, + self.GetDeviceRegistry = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/GetDeviceRegistry", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRegistryRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.FromString, ) - self.UpdateDeviceRegistry = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/UpdateDeviceRegistry', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRegistryRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.FromString, + self.UpdateDeviceRegistry = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/UpdateDeviceRegistry", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRegistryRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.FromString, ) - self.DeleteDeviceRegistry = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/DeleteDeviceRegistry', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRegistryRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteDeviceRegistry = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/DeleteDeviceRegistry", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRegistryRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListDeviceRegistries = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/ListDeviceRegistries', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesResponse.FromString, + self.ListDeviceRegistries = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/ListDeviceRegistries", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesResponse.FromString, ) - self.CreateDevice = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/CreateDevice', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.FromString, + self.CreateDevice = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/CreateDevice", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.FromString, ) - self.GetDevice = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/GetDevice', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.FromString, + self.GetDevice = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/GetDevice", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.FromString, ) - self.UpdateDevice = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/UpdateDevice', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.FromString, + self.UpdateDevice = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/UpdateDevice", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.FromString, ) - self.DeleteDevice = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/DeleteDevice', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteDevice = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/DeleteDevice", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListDevices = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/ListDevices', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesResponse.FromString, + self.ListDevices = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/ListDevices", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesResponse.FromString, ) - self.ModifyCloudToDeviceConfig = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/ModifyCloudToDeviceConfig', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ModifyCloudToDeviceConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceConfig.FromString, + self.ModifyCloudToDeviceConfig = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/ModifyCloudToDeviceConfig", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ModifyCloudToDeviceConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceConfig.FromString, ) - self.ListDeviceConfigVersions = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/ListDeviceConfigVersions', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsResponse.FromString, + self.ListDeviceConfigVersions = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/ListDeviceConfigVersions", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsResponse.FromString, ) - self.ListDeviceStates = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/ListDeviceStates', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesResponse.FromString, + self.ListDeviceStates = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/ListDeviceStates", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesResponse.FromString, ) - self.SetIamPolicy = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/SetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.SetIamPolicy = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/SetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.GetIamPolicy = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/GetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.GetIamPolicy = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/GetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.TestIamPermissions = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/TestIamPermissions', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, + self.TestIamPermissions = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/TestIamPermissions", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, ) - self.SendCommandToDevice = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/SendCommandToDevice', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceResponse.FromString, + self.SendCommandToDevice = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/SendCommandToDevice", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceResponse.FromString, ) - self.BindDeviceToGateway = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/BindDeviceToGateway', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayResponse.FromString, + self.BindDeviceToGateway = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/BindDeviceToGateway", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayResponse.FromString, ) - self.UnbindDeviceFromGateway = channel.unary_unary( - '/google.cloud.iot.v1.DeviceManager/UnbindDeviceFromGateway', - request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayResponse.FromString, + self.UnbindDeviceFromGateway = channel.unary_unary( + "/google.cloud.iot.v1.DeviceManager/UnbindDeviceFromGateway", + request_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayResponse.FromString, ) class DeviceManagerServicer(object): - """Internet of Things (IoT) service. Securely connect and manage IoT devices. + """Internet of Things (IoT) service. Securely connect and manage IoT devices. """ - def CreateDeviceRegistry(self, request, context): - """Creates a device registry that contains devices. + def CreateDeviceRegistry(self, request, context): + """Creates a device registry that contains devices. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetDeviceRegistry(self, request, context): - """Gets a device registry configuration. + def GetDeviceRegistry(self, request, context): + """Gets a device registry configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateDeviceRegistry(self, request, context): - """Updates a device registry configuration. + def UpdateDeviceRegistry(self, request, context): + """Updates a device registry configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteDeviceRegistry(self, request, context): - """Deletes a device registry configuration. + def DeleteDeviceRegistry(self, request, context): + """Deletes a device registry configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListDeviceRegistries(self, request, context): - """Lists device registries. + def ListDeviceRegistries(self, request, context): + """Lists device registries. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateDevice(self, request, context): - """Creates a device in a device registry. + def CreateDevice(self, request, context): + """Creates a device in a device registry. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetDevice(self, request, context): - """Gets details about a device. + def GetDevice(self, request, context): + """Gets details about a device. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateDevice(self, request, context): - """Updates a device. + def UpdateDevice(self, request, context): + """Updates a device. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteDevice(self, request, context): - """Deletes a device. + def DeleteDevice(self, request, context): + """Deletes a device. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListDevices(self, request, context): - """List devices in a device registry. + def ListDevices(self, request, context): + """List devices in a device registry. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ModifyCloudToDeviceConfig(self, request, context): - """Modifies the configuration for the device, which is eventually sent from + def ModifyCloudToDeviceConfig(self, request, context): + """Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListDeviceConfigVersions(self, request, context): - """Lists the last few versions of the device configuration in descending + def ListDeviceConfigVersions(self, request, context): + """Lists the last few versions of the device configuration in descending order (i.e.: newest first). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListDeviceStates(self, request, context): - """Lists the last few versions of the device state in descending order (i.e.: + def ListDeviceStates(self, request, context): + """Lists the last few versions of the device state in descending order (i.e.: newest first). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SetIamPolicy(self, request, context): - """Sets the access control policy on the specified resource. Replaces any + def SetIamPolicy(self, request, context): + """Sets the access control policy on the specified resource. Replaces any existing policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetIamPolicy(self, request, context): - """Gets the access control policy for a resource. + def GetIamPolicy(self, request, context): + """Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def TestIamPermissions(self, request, context): - """Returns permissions that a caller has on the specified resource. + def TestIamPermissions(self, request, context): + """Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SendCommandToDevice(self, request, context): - """Sends a command to the specified device. In order for a device to be able + def SendCommandToDevice(self, request, context): + """Sends a command to the specified device. In order for a device to be able to receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT protocol, and 2) be subscribed to the group of MQTT topics specified by @@ -255,123 +259,124 @@ def SendCommandToDevice(self, request, context): return OK. If the subscription is QoS 1, at least once delivery will be guaranteed; for QoS 0, no acknowledgment will be expected from the device. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def BindDeviceToGateway(self, request, context): - """Associates the device with the gateway. + def BindDeviceToGateway(self, request, context): + """Associates the device with the gateway. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UnbindDeviceFromGateway(self, request, context): - """Deletes the association between the device and the gateway. + def UnbindDeviceFromGateway(self, request, context): + """Deletes the association between the device and the gateway. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_DeviceManagerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateDeviceRegistry': grpc.unary_unary_rpc_method_handler( - servicer.CreateDeviceRegistry, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRegistryRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.SerializeToString, - ), - 'GetDeviceRegistry': grpc.unary_unary_rpc_method_handler( - servicer.GetDeviceRegistry, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRegistryRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.SerializeToString, - ), - 'UpdateDeviceRegistry': grpc.unary_unary_rpc_method_handler( - servicer.UpdateDeviceRegistry, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRegistryRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.SerializeToString, - ), - 'DeleteDeviceRegistry': grpc.unary_unary_rpc_method_handler( - servicer.DeleteDeviceRegistry, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRegistryRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListDeviceRegistries': grpc.unary_unary_rpc_method_handler( - servicer.ListDeviceRegistries, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesResponse.SerializeToString, - ), - 'CreateDevice': grpc.unary_unary_rpc_method_handler( - servicer.CreateDevice, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.SerializeToString, - ), - 'GetDevice': grpc.unary_unary_rpc_method_handler( - servicer.GetDevice, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.SerializeToString, - ), - 'UpdateDevice': grpc.unary_unary_rpc_method_handler( - servicer.UpdateDevice, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.SerializeToString, - ), - 'DeleteDevice': grpc.unary_unary_rpc_method_handler( - servicer.DeleteDevice, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListDevices': grpc.unary_unary_rpc_method_handler( - servicer.ListDevices, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesResponse.SerializeToString, - ), - 'ModifyCloudToDeviceConfig': grpc.unary_unary_rpc_method_handler( - servicer.ModifyCloudToDeviceConfig, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ModifyCloudToDeviceConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceConfig.SerializeToString, - ), - 'ListDeviceConfigVersions': grpc.unary_unary_rpc_method_handler( - servicer.ListDeviceConfigVersions, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsResponse.SerializeToString, - ), - 'ListDeviceStates': grpc.unary_unary_rpc_method_handler( - servicer.ListDeviceStates, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesResponse.SerializeToString, - ), - 'SetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.SetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'GetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'TestIamPermissions': grpc.unary_unary_rpc_method_handler( - servicer.TestIamPermissions, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, - ), - 'SendCommandToDevice': grpc.unary_unary_rpc_method_handler( - servicer.SendCommandToDevice, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceResponse.SerializeToString, - ), - 'BindDeviceToGateway': grpc.unary_unary_rpc_method_handler( - servicer.BindDeviceToGateway, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayResponse.SerializeToString, - ), - 'UnbindDeviceFromGateway': grpc.unary_unary_rpc_method_handler( - servicer.UnbindDeviceFromGateway, - request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayRequest.FromString, - response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.iot.v1.DeviceManager', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateDeviceRegistry": grpc.unary_unary_rpc_method_handler( + servicer.CreateDeviceRegistry, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRegistryRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.SerializeToString, + ), + "GetDeviceRegistry": grpc.unary_unary_rpc_method_handler( + servicer.GetDeviceRegistry, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRegistryRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.SerializeToString, + ), + "UpdateDeviceRegistry": grpc.unary_unary_rpc_method_handler( + servicer.UpdateDeviceRegistry, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRegistryRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceRegistry.SerializeToString, + ), + "DeleteDeviceRegistry": grpc.unary_unary_rpc_method_handler( + servicer.DeleteDeviceRegistry, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRegistryRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListDeviceRegistries": grpc.unary_unary_rpc_method_handler( + servicer.ListDeviceRegistries, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceRegistriesResponse.SerializeToString, + ), + "CreateDevice": grpc.unary_unary_rpc_method_handler( + servicer.CreateDevice, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.CreateDeviceRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.SerializeToString, + ), + "GetDevice": grpc.unary_unary_rpc_method_handler( + servicer.GetDevice, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.GetDeviceRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.SerializeToString, + ), + "UpdateDevice": grpc.unary_unary_rpc_method_handler( + servicer.UpdateDevice, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UpdateDeviceRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.Device.SerializeToString, + ), + "DeleteDevice": grpc.unary_unary_rpc_method_handler( + servicer.DeleteDevice, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.DeleteDeviceRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListDevices": grpc.unary_unary_rpc_method_handler( + servicer.ListDevices, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDevicesResponse.SerializeToString, + ), + "ModifyCloudToDeviceConfig": grpc.unary_unary_rpc_method_handler( + servicer.ModifyCloudToDeviceConfig, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ModifyCloudToDeviceConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_resources__pb2.DeviceConfig.SerializeToString, + ), + "ListDeviceConfigVersions": grpc.unary_unary_rpc_method_handler( + servicer.ListDeviceConfigVersions, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceConfigVersionsResponse.SerializeToString, + ), + "ListDeviceStates": grpc.unary_unary_rpc_method_handler( + servicer.ListDeviceStates, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.ListDeviceStatesResponse.SerializeToString, + ), + "SetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.SetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "GetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "TestIamPermissions": grpc.unary_unary_rpc_method_handler( + servicer.TestIamPermissions, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, + ), + "SendCommandToDevice": grpc.unary_unary_rpc_method_handler( + servicer.SendCommandToDevice, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.SendCommandToDeviceResponse.SerializeToString, + ), + "BindDeviceToGateway": grpc.unary_unary_rpc_method_handler( + servicer.BindDeviceToGateway, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.BindDeviceToGatewayResponse.SerializeToString, + ), + "UnbindDeviceFromGateway": grpc.unary_unary_rpc_method_handler( + servicer.UnbindDeviceFromGateway, + request_deserializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayRequest.FromString, + response_serializer=google_dot_cloud_dot_iot__v1_dot_proto_dot_device__manager__pb2.UnbindDeviceFromGatewayResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.iot.v1.DeviceManager", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/iot/google/cloud/iot_v1/proto/resources_pb2.py b/iot/google/cloud/iot_v1/proto/resources_pb2.py index 5098bbd7c11fb..27d8c669c0645 100644 --- a/iot/google/cloud/iot_v1/proto/resources_pb2.py +++ b/iot/google/cloud/iot_v1/proto/resources_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/iot_v1/proto/resources.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,214 +22,213 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/iot_v1/proto/resources.proto', - package='google.cloud.iot.v1', - syntax='proto3', - serialized_pb=_b('\n)google/cloud/iot_v1/proto/resources.proto\x12\x13google.cloud.iot.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xbb\x06\n\x06\x44\x65vice\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06num_id\x18\x03 \x01(\x04\x12:\n\x0b\x63redentials\x18\x0c \x03(\x0b\x32%.google.cloud.iot.v1.DeviceCredential\x12\x37\n\x13last_heartbeat_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_event_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_state_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14last_config_ack_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15last_config_send_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x62locked\x18\x13 \x01(\x08\x12\x33\n\x0flast_error_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x11last_error_status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x31\n\x06\x63onfig\x18\r \x01(\x0b\x32!.google.cloud.iot.v1.DeviceConfig\x12/\n\x05state\x18\x10 \x01(\x0b\x32 .google.cloud.iot.v1.DeviceState\x12\x30\n\tlog_level\x18\x15 \x01(\x0e\x32\x1d.google.cloud.iot.v1.LogLevel\x12;\n\x08metadata\x18\x11 \x03(\x0b\x32).google.cloud.iot.v1.Device.MetadataEntry\x12:\n\x0egateway_config\x18\x18 \x01(\x0b\x32\".google.cloud.iot.v1.GatewayConfig\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xee\x01\n\rGatewayConfig\x12\x36\n\x0cgateway_type\x18\x01 \x01(\x0e\x32 .google.cloud.iot.v1.GatewayType\x12\x43\n\x13gateway_auth_method\x18\x02 \x01(\x0e\x32&.google.cloud.iot.v1.GatewayAuthMethod\x12 \n\x18last_accessed_gateway_id\x18\x03 \x01(\t\x12>\n\x1alast_accessed_gateway_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa9\x03\n\x0e\x44\x65viceRegistry\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12P\n\x1a\x65vent_notification_configs\x18\n \x03(\x0b\x32,.google.cloud.iot.v1.EventNotificationConfig\x12O\n\x19state_notification_config\x18\x07 \x01(\x0b\x32,.google.cloud.iot.v1.StateNotificationConfig\x12\x34\n\x0bmqtt_config\x18\x04 \x01(\x0b\x32\x1f.google.cloud.iot.v1.MqttConfig\x12\x34\n\x0bhttp_config\x18\t \x01(\x0b\x32\x1f.google.cloud.iot.v1.HttpConfig\x12\x30\n\tlog_level\x18\x0b \x01(\x0e\x32\x1d.google.cloud.iot.v1.LogLevel\x12<\n\x0b\x63redentials\x18\x08 \x03(\x0b\x32\'.google.cloud.iot.v1.RegistryCredential\"H\n\nMqttConfig\x12:\n\x12mqtt_enabled_state\x18\x01 \x01(\x0e\x32\x1e.google.cloud.iot.v1.MqttState\"H\n\nHttpConfig\x12:\n\x12http_enabled_state\x18\x01 \x01(\x0e\x32\x1e.google.cloud.iot.v1.HttpState\"O\n\x17\x45ventNotificationConfig\x12\x19\n\x11subfolder_matches\x18\x02 \x01(\t\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t\"4\n\x17StateNotificationConfig\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t\"o\n\x12RegistryCredential\x12K\n\x16public_key_certificate\x18\x01 \x01(\x0b\x32).google.cloud.iot.v1.PublicKeyCertificateH\x00\x42\x0c\n\ncredential\"\xd0\x01\n\x16X509CertificateDetails\x12\x0e\n\x06issuer\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpiry_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13signature_algorithm\x18\x05 \x01(\t\x12\x17\n\x0fpublic_key_type\x18\x06 \x01(\t\"\xaf\x01\n\x14PublicKeyCertificate\x12?\n\x06\x66ormat\x18\x01 \x01(\x0e\x32/.google.cloud.iot.v1.PublicKeyCertificateFormat\x12\x13\n\x0b\x63\x65rtificate\x18\x02 \x01(\t\x12\x41\n\x0cx509_details\x18\x03 \x01(\x0b\x32+.google.cloud.iot.v1.X509CertificateDetails\"\x95\x01\n\x10\x44\x65viceCredential\x12>\n\npublic_key\x18\x02 \x01(\x0b\x32(.google.cloud.iot.v1.PublicKeyCredentialH\x00\x12\x33\n\x0f\x65xpiration_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0c\n\ncredential\"X\n\x13PublicKeyCredential\x12\x34\n\x06\x66ormat\x18\x01 \x01(\x0e\x32$.google.cloud.iot.v1.PublicKeyFormat\x12\x0b\n\x03key\x18\x02 \x01(\t\"\xa0\x01\n\x0c\x44\x65viceConfig\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x35\n\x11\x63loud_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x64\x65vice_ack_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x04 \x01(\x0c\"S\n\x0b\x44\x65viceState\x12/\n\x0bupdate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x02 \x01(\x0c*L\n\tMqttState\x12\x1a\n\x16MQTT_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMQTT_ENABLED\x10\x01\x12\x11\n\rMQTT_DISABLED\x10\x02*L\n\tHttpState\x12\x1a\n\x16HTTP_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cHTTP_ENABLED\x10\x01\x12\x11\n\rHTTP_DISABLED\x10\x02*O\n\x08LogLevel\x12\x19\n\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\n\x12\t\n\x05\x45RROR\x10\x14\x12\x08\n\x04INFO\x10\x1e\x12\t\n\x05\x44\x45\x42UG\x10(*I\n\x0bGatewayType\x12\x1c\n\x18GATEWAY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GATEWAY\x10\x01\x12\x0f\n\x0bNON_GATEWAY\x10\x02*\x91\x01\n\x11GatewayAuthMethod\x12#\n\x1fGATEWAY_AUTH_METHOD_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41SSOCIATION_ONLY\x10\x01\x12\x1a\n\x16\x44\x45VICE_AUTH_TOKEN_ONLY\x10\x02\x12%\n!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\x10\x03*e\n\x1aPublicKeyCertificateFormat\x12-\n)UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT\x10\x00\x12\x18\n\x14X509_CERTIFICATE_PEM\x10\x01*v\n\x0fPublicKeyFormat\x12!\n\x1dUNSPECIFIED_PUBLIC_KEY_FORMAT\x10\x00\x12\x0b\n\x07RSA_PEM\x10\x03\x12\x10\n\x0cRSA_X509_PEM\x10\x01\x12\r\n\tES256_PEM\x10\x02\x12\x12\n\x0e\x45S256_X509_PEM\x10\x04\x42\x66\n\x17\x63om.google.cloud.iot.v1B\x0eResourcesProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/iot_v1/proto/resources.proto", + package="google.cloud.iot.v1", + syntax="proto3", + serialized_pb=_b( + '\n)google/cloud/iot_v1/proto/resources.proto\x12\x13google.cloud.iot.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xbb\x06\n\x06\x44\x65vice\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06num_id\x18\x03 \x01(\x04\x12:\n\x0b\x63redentials\x18\x0c \x03(\x0b\x32%.google.cloud.iot.v1.DeviceCredential\x12\x37\n\x13last_heartbeat_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_event_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_state_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14last_config_ack_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15last_config_send_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x62locked\x18\x13 \x01(\x08\x12\x33\n\x0flast_error_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x11last_error_status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x31\n\x06\x63onfig\x18\r \x01(\x0b\x32!.google.cloud.iot.v1.DeviceConfig\x12/\n\x05state\x18\x10 \x01(\x0b\x32 .google.cloud.iot.v1.DeviceState\x12\x30\n\tlog_level\x18\x15 \x01(\x0e\x32\x1d.google.cloud.iot.v1.LogLevel\x12;\n\x08metadata\x18\x11 \x03(\x0b\x32).google.cloud.iot.v1.Device.MetadataEntry\x12:\n\x0egateway_config\x18\x18 \x01(\x0b\x32".google.cloud.iot.v1.GatewayConfig\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xee\x01\n\rGatewayConfig\x12\x36\n\x0cgateway_type\x18\x01 \x01(\x0e\x32 .google.cloud.iot.v1.GatewayType\x12\x43\n\x13gateway_auth_method\x18\x02 \x01(\x0e\x32&.google.cloud.iot.v1.GatewayAuthMethod\x12 \n\x18last_accessed_gateway_id\x18\x03 \x01(\t\x12>\n\x1alast_accessed_gateway_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa9\x03\n\x0e\x44\x65viceRegistry\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12P\n\x1a\x65vent_notification_configs\x18\n \x03(\x0b\x32,.google.cloud.iot.v1.EventNotificationConfig\x12O\n\x19state_notification_config\x18\x07 \x01(\x0b\x32,.google.cloud.iot.v1.StateNotificationConfig\x12\x34\n\x0bmqtt_config\x18\x04 \x01(\x0b\x32\x1f.google.cloud.iot.v1.MqttConfig\x12\x34\n\x0bhttp_config\x18\t \x01(\x0b\x32\x1f.google.cloud.iot.v1.HttpConfig\x12\x30\n\tlog_level\x18\x0b \x01(\x0e\x32\x1d.google.cloud.iot.v1.LogLevel\x12<\n\x0b\x63redentials\x18\x08 \x03(\x0b\x32\'.google.cloud.iot.v1.RegistryCredential"H\n\nMqttConfig\x12:\n\x12mqtt_enabled_state\x18\x01 \x01(\x0e\x32\x1e.google.cloud.iot.v1.MqttState"H\n\nHttpConfig\x12:\n\x12http_enabled_state\x18\x01 \x01(\x0e\x32\x1e.google.cloud.iot.v1.HttpState"O\n\x17\x45ventNotificationConfig\x12\x19\n\x11subfolder_matches\x18\x02 \x01(\t\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t"4\n\x17StateNotificationConfig\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t"o\n\x12RegistryCredential\x12K\n\x16public_key_certificate\x18\x01 \x01(\x0b\x32).google.cloud.iot.v1.PublicKeyCertificateH\x00\x42\x0c\n\ncredential"\xd0\x01\n\x16X509CertificateDetails\x12\x0e\n\x06issuer\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpiry_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13signature_algorithm\x18\x05 \x01(\t\x12\x17\n\x0fpublic_key_type\x18\x06 \x01(\t"\xaf\x01\n\x14PublicKeyCertificate\x12?\n\x06\x66ormat\x18\x01 \x01(\x0e\x32/.google.cloud.iot.v1.PublicKeyCertificateFormat\x12\x13\n\x0b\x63\x65rtificate\x18\x02 \x01(\t\x12\x41\n\x0cx509_details\x18\x03 \x01(\x0b\x32+.google.cloud.iot.v1.X509CertificateDetails"\x95\x01\n\x10\x44\x65viceCredential\x12>\n\npublic_key\x18\x02 \x01(\x0b\x32(.google.cloud.iot.v1.PublicKeyCredentialH\x00\x12\x33\n\x0f\x65xpiration_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0c\n\ncredential"X\n\x13PublicKeyCredential\x12\x34\n\x06\x66ormat\x18\x01 \x01(\x0e\x32$.google.cloud.iot.v1.PublicKeyFormat\x12\x0b\n\x03key\x18\x02 \x01(\t"\xa0\x01\n\x0c\x44\x65viceConfig\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x35\n\x11\x63loud_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x64\x65vice_ack_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x04 \x01(\x0c"S\n\x0b\x44\x65viceState\x12/\n\x0bupdate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x02 \x01(\x0c*L\n\tMqttState\x12\x1a\n\x16MQTT_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMQTT_ENABLED\x10\x01\x12\x11\n\rMQTT_DISABLED\x10\x02*L\n\tHttpState\x12\x1a\n\x16HTTP_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cHTTP_ENABLED\x10\x01\x12\x11\n\rHTTP_DISABLED\x10\x02*O\n\x08LogLevel\x12\x19\n\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\n\x12\t\n\x05\x45RROR\x10\x14\x12\x08\n\x04INFO\x10\x1e\x12\t\n\x05\x44\x45\x42UG\x10(*I\n\x0bGatewayType\x12\x1c\n\x18GATEWAY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GATEWAY\x10\x01\x12\x0f\n\x0bNON_GATEWAY\x10\x02*\x91\x01\n\x11GatewayAuthMethod\x12#\n\x1fGATEWAY_AUTH_METHOD_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41SSOCIATION_ONLY\x10\x01\x12\x1a\n\x16\x44\x45VICE_AUTH_TOKEN_ONLY\x10\x02\x12%\n!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\x10\x03*e\n\x1aPublicKeyCertificateFormat\x12-\n)UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT\x10\x00\x12\x18\n\x14X509_CERTIFICATE_PEM\x10\x01*v\n\x0fPublicKeyFormat\x12!\n\x1dUNSPECIFIED_PUBLIC_KEY_FORMAT\x10\x00\x12\x0b\n\x07RSA_PEM\x10\x03\x12\x10\n\x0cRSA_X509_PEM\x10\x01\x12\r\n\tES256_PEM\x10\x02\x12\x12\n\x0e\x45S256_X509_PEM\x10\x04\x42\x66\n\x17\x63om.google.cloud.iot.v1B\x0eResourcesProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _MQTTSTATE = _descriptor.EnumDescriptor( - name='MqttState', - full_name='google.cloud.iot.v1.MqttState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MQTT_STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MQTT_ENABLED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MQTT_DISABLED', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2928, - serialized_end=3004, + name="MqttState", + full_name="google.cloud.iot.v1.MqttState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="MQTT_STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MQTT_ENABLED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MQTT_DISABLED", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2928, + serialized_end=3004, ) _sym_db.RegisterEnumDescriptor(_MQTTSTATE) MqttState = enum_type_wrapper.EnumTypeWrapper(_MQTTSTATE) _HTTPSTATE = _descriptor.EnumDescriptor( - name='HttpState', - full_name='google.cloud.iot.v1.HttpState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='HTTP_STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HTTP_ENABLED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HTTP_DISABLED', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3006, - serialized_end=3082, + name="HttpState", + full_name="google.cloud.iot.v1.HttpState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="HTTP_STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HTTP_ENABLED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HTTP_DISABLED", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3006, + serialized_end=3082, ) _sym_db.RegisterEnumDescriptor(_HTTPSTATE) HttpState = enum_type_wrapper.EnumTypeWrapper(_HTTPSTATE) _LOGLEVEL = _descriptor.EnumDescriptor( - name='LogLevel', - full_name='google.cloud.iot.v1.LogLevel', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LOG_LEVEL_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NONE', index=1, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR', index=2, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INFO', index=3, number=30, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEBUG', index=4, number=40, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3084, - serialized_end=3163, + name="LogLevel", + full_name="google.cloud.iot.v1.LogLevel", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LOG_LEVEL_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NONE", index=1, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=2, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INFO", index=3, number=30, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DEBUG", index=4, number=40, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3084, + serialized_end=3163, ) _sym_db.RegisterEnumDescriptor(_LOGLEVEL) LogLevel = enum_type_wrapper.EnumTypeWrapper(_LOGLEVEL) _GATEWAYTYPE = _descriptor.EnumDescriptor( - name='GatewayType', - full_name='google.cloud.iot.v1.GatewayType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='GATEWAY_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GATEWAY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NON_GATEWAY', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3165, - serialized_end=3238, + name="GatewayType", + full_name="google.cloud.iot.v1.GatewayType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="GATEWAY_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GATEWAY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NON_GATEWAY", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3165, + serialized_end=3238, ) _sym_db.RegisterEnumDescriptor(_GATEWAYTYPE) GatewayType = enum_type_wrapper.EnumTypeWrapper(_GATEWAYTYPE) _GATEWAYAUTHMETHOD = _descriptor.EnumDescriptor( - name='GatewayAuthMethod', - full_name='google.cloud.iot.v1.GatewayAuthMethod', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='GATEWAY_AUTH_METHOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASSOCIATION_ONLY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEVICE_AUTH_TOKEN_ONLY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASSOCIATION_AND_DEVICE_AUTH_TOKEN', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3241, - serialized_end=3386, + name="GatewayAuthMethod", + full_name="google.cloud.iot.v1.GatewayAuthMethod", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="GATEWAY_AUTH_METHOD_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="ASSOCIATION_ONLY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DEVICE_AUTH_TOKEN_ONLY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ASSOCIATION_AND_DEVICE_AUTH_TOKEN", + index=3, + number=3, + options=None, + type=None, + ), + ], + containing_type=None, + options=None, + serialized_start=3241, + serialized_end=3386, ) _sym_db.RegisterEnumDescriptor(_GATEWAYAUTHMETHOD) GatewayAuthMethod = enum_type_wrapper.EnumTypeWrapper(_GATEWAYAUTHMETHOD) _PUBLICKEYCERTIFICATEFORMAT = _descriptor.EnumDescriptor( - name='PublicKeyCertificateFormat', - full_name='google.cloud.iot.v1.PublicKeyCertificateFormat', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='X509_CERTIFICATE_PEM', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3388, - serialized_end=3489, + name="PublicKeyCertificateFormat", + full_name="google.cloud.iot.v1.PublicKeyCertificateFormat", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="X509_CERTIFICATE_PEM", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3388, + serialized_end=3489, ) _sym_db.RegisterEnumDescriptor(_PUBLICKEYCERTIFICATEFORMAT) -PublicKeyCertificateFormat = enum_type_wrapper.EnumTypeWrapper(_PUBLICKEYCERTIFICATEFORMAT) +PublicKeyCertificateFormat = enum_type_wrapper.EnumTypeWrapper( + _PUBLICKEYCERTIFICATEFORMAT +) _PUBLICKEYFORMAT = _descriptor.EnumDescriptor( - name='PublicKeyFormat', - full_name='google.cloud.iot.v1.PublicKeyFormat', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED_PUBLIC_KEY_FORMAT', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_PEM', index=1, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_X509_PEM', index=2, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ES256_PEM', index=3, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ES256_X509_PEM', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3491, - serialized_end=3609, + name="PublicKeyFormat", + full_name="google.cloud.iot.v1.PublicKeyFormat", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNSPECIFIED_PUBLIC_KEY_FORMAT", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RSA_PEM", index=1, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RSA_X509_PEM", index=2, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ES256_PEM", index=3, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ES256_X509_PEM", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3491, + serialized_end=3609, ) _sym_db.RegisterEnumDescriptor(_PUBLICKEYFORMAT) @@ -259,840 +260,1468 @@ ES256_X509_PEM = 4 - _DEVICE_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='google.cloud.iot.v1.Device.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.iot.v1.Device.MetadataEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.iot.v1.Device.MetadataEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=935, - serialized_end=982, + name="MetadataEntry", + full_name="google.cloud.iot.v1.Device.MetadataEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.iot.v1.Device.MetadataEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.iot.v1.Device.MetadataEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=935, + serialized_end=982, ) _DEVICE = _descriptor.Descriptor( - name='Device', - full_name='google.cloud.iot.v1.Device', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='google.cloud.iot.v1.Device.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.Device.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='num_id', full_name='google.cloud.iot.v1.Device.num_id', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='credentials', full_name='google.cloud.iot.v1.Device.credentials', index=3, - number=12, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_heartbeat_time', full_name='google.cloud.iot.v1.Device.last_heartbeat_time', index=4, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_event_time', full_name='google.cloud.iot.v1.Device.last_event_time', index=5, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_state_time', full_name='google.cloud.iot.v1.Device.last_state_time', index=6, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_config_ack_time', full_name='google.cloud.iot.v1.Device.last_config_ack_time', index=7, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_config_send_time', full_name='google.cloud.iot.v1.Device.last_config_send_time', index=8, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blocked', full_name='google.cloud.iot.v1.Device.blocked', index=9, - number=19, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_error_time', full_name='google.cloud.iot.v1.Device.last_error_time', index=10, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_error_status', full_name='google.cloud.iot.v1.Device.last_error_status', index=11, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='config', full_name='google.cloud.iot.v1.Device.config', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.iot.v1.Device.state', index=13, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='log_level', full_name='google.cloud.iot.v1.Device.log_level', index=14, - number=21, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.iot.v1.Device.metadata', index=15, - number=17, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gateway_config', full_name='google.cloud.iot.v1.Device.gateway_config', index=16, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_DEVICE_METADATAENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=155, - serialized_end=982, + name="Device", + full_name="google.cloud.iot.v1.Device", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="google.cloud.iot.v1.Device.id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.Device.name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="num_id", + full_name="google.cloud.iot.v1.Device.num_id", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="credentials", + full_name="google.cloud.iot.v1.Device.credentials", + index=3, + number=12, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_heartbeat_time", + full_name="google.cloud.iot.v1.Device.last_heartbeat_time", + index=4, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_event_time", + full_name="google.cloud.iot.v1.Device.last_event_time", + index=5, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_state_time", + full_name="google.cloud.iot.v1.Device.last_state_time", + index=6, + number=20, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_config_ack_time", + full_name="google.cloud.iot.v1.Device.last_config_ack_time", + index=7, + number=14, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_config_send_time", + full_name="google.cloud.iot.v1.Device.last_config_send_time", + index=8, + number=18, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blocked", + full_name="google.cloud.iot.v1.Device.blocked", + index=9, + number=19, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_error_time", + full_name="google.cloud.iot.v1.Device.last_error_time", + index=10, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_error_status", + full_name="google.cloud.iot.v1.Device.last_error_status", + index=11, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="config", + full_name="google.cloud.iot.v1.Device.config", + index=12, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.iot.v1.Device.state", + index=13, + number=16, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="log_level", + full_name="google.cloud.iot.v1.Device.log_level", + index=14, + number=21, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.cloud.iot.v1.Device.metadata", + index=15, + number=17, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gateway_config", + full_name="google.cloud.iot.v1.Device.gateway_config", + index=16, + number=24, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_DEVICE_METADATAENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=155, + serialized_end=982, ) _GATEWAYCONFIG = _descriptor.Descriptor( - name='GatewayConfig', - full_name='google.cloud.iot.v1.GatewayConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gateway_type', full_name='google.cloud.iot.v1.GatewayConfig.gateway_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gateway_auth_method', full_name='google.cloud.iot.v1.GatewayConfig.gateway_auth_method', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_accessed_gateway_id', full_name='google.cloud.iot.v1.GatewayConfig.last_accessed_gateway_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_accessed_gateway_time', full_name='google.cloud.iot.v1.GatewayConfig.last_accessed_gateway_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=985, - serialized_end=1223, + name="GatewayConfig", + full_name="google.cloud.iot.v1.GatewayConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gateway_type", + full_name="google.cloud.iot.v1.GatewayConfig.gateway_type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gateway_auth_method", + full_name="google.cloud.iot.v1.GatewayConfig.gateway_auth_method", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_accessed_gateway_id", + full_name="google.cloud.iot.v1.GatewayConfig.last_accessed_gateway_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_accessed_gateway_time", + full_name="google.cloud.iot.v1.GatewayConfig.last_accessed_gateway_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=985, + serialized_end=1223, ) _DEVICEREGISTRY = _descriptor.Descriptor( - name='DeviceRegistry', - full_name='google.cloud.iot.v1.DeviceRegistry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='google.cloud.iot.v1.DeviceRegistry.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.iot.v1.DeviceRegistry.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='event_notification_configs', full_name='google.cloud.iot.v1.DeviceRegistry.event_notification_configs', index=2, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state_notification_config', full_name='google.cloud.iot.v1.DeviceRegistry.state_notification_config', index=3, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mqtt_config', full_name='google.cloud.iot.v1.DeviceRegistry.mqtt_config', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_config', full_name='google.cloud.iot.v1.DeviceRegistry.http_config', index=5, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='log_level', full_name='google.cloud.iot.v1.DeviceRegistry.log_level', index=6, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='credentials', full_name='google.cloud.iot.v1.DeviceRegistry.credentials', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1226, - serialized_end=1651, + name="DeviceRegistry", + full_name="google.cloud.iot.v1.DeviceRegistry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="google.cloud.iot.v1.DeviceRegistry.id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.iot.v1.DeviceRegistry.name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="event_notification_configs", + full_name="google.cloud.iot.v1.DeviceRegistry.event_notification_configs", + index=2, + number=10, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state_notification_config", + full_name="google.cloud.iot.v1.DeviceRegistry.state_notification_config", + index=3, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mqtt_config", + full_name="google.cloud.iot.v1.DeviceRegistry.mqtt_config", + index=4, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="http_config", + full_name="google.cloud.iot.v1.DeviceRegistry.http_config", + index=5, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="log_level", + full_name="google.cloud.iot.v1.DeviceRegistry.log_level", + index=6, + number=11, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="credentials", + full_name="google.cloud.iot.v1.DeviceRegistry.credentials", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1226, + serialized_end=1651, ) _MQTTCONFIG = _descriptor.Descriptor( - name='MqttConfig', - full_name='google.cloud.iot.v1.MqttConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mqtt_enabled_state', full_name='google.cloud.iot.v1.MqttConfig.mqtt_enabled_state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1653, - serialized_end=1725, + name="MqttConfig", + full_name="google.cloud.iot.v1.MqttConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="mqtt_enabled_state", + full_name="google.cloud.iot.v1.MqttConfig.mqtt_enabled_state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1653, + serialized_end=1725, ) _HTTPCONFIG = _descriptor.Descriptor( - name='HttpConfig', - full_name='google.cloud.iot.v1.HttpConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_enabled_state', full_name='google.cloud.iot.v1.HttpConfig.http_enabled_state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1727, - serialized_end=1799, + name="HttpConfig", + full_name="google.cloud.iot.v1.HttpConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="http_enabled_state", + full_name="google.cloud.iot.v1.HttpConfig.http_enabled_state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1727, + serialized_end=1799, ) _EVENTNOTIFICATIONCONFIG = _descriptor.Descriptor( - name='EventNotificationConfig', - full_name='google.cloud.iot.v1.EventNotificationConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subfolder_matches', full_name='google.cloud.iot.v1.EventNotificationConfig.subfolder_matches', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pubsub_topic_name', full_name='google.cloud.iot.v1.EventNotificationConfig.pubsub_topic_name', index=1, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1801, - serialized_end=1880, + name="EventNotificationConfig", + full_name="google.cloud.iot.v1.EventNotificationConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subfolder_matches", + full_name="google.cloud.iot.v1.EventNotificationConfig.subfolder_matches", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pubsub_topic_name", + full_name="google.cloud.iot.v1.EventNotificationConfig.pubsub_topic_name", + index=1, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1801, + serialized_end=1880, ) _STATENOTIFICATIONCONFIG = _descriptor.Descriptor( - name='StateNotificationConfig', - full_name='google.cloud.iot.v1.StateNotificationConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pubsub_topic_name', full_name='google.cloud.iot.v1.StateNotificationConfig.pubsub_topic_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1882, - serialized_end=1934, + name="StateNotificationConfig", + full_name="google.cloud.iot.v1.StateNotificationConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="pubsub_topic_name", + full_name="google.cloud.iot.v1.StateNotificationConfig.pubsub_topic_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1882, + serialized_end=1934, ) _REGISTRYCREDENTIAL = _descriptor.Descriptor( - name='RegistryCredential', - full_name='google.cloud.iot.v1.RegistryCredential', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='public_key_certificate', full_name='google.cloud.iot.v1.RegistryCredential.public_key_certificate', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='credential', full_name='google.cloud.iot.v1.RegistryCredential.credential', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1936, - serialized_end=2047, + name="RegistryCredential", + full_name="google.cloud.iot.v1.RegistryCredential", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="public_key_certificate", + full_name="google.cloud.iot.v1.RegistryCredential.public_key_certificate", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="credential", + full_name="google.cloud.iot.v1.RegistryCredential.credential", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1936, + serialized_end=2047, ) _X509CERTIFICATEDETAILS = _descriptor.Descriptor( - name='X509CertificateDetails', - full_name='google.cloud.iot.v1.X509CertificateDetails', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='issuer', full_name='google.cloud.iot.v1.X509CertificateDetails.issuer', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subject', full_name='google.cloud.iot.v1.X509CertificateDetails.subject', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.iot.v1.X509CertificateDetails.start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expiry_time', full_name='google.cloud.iot.v1.X509CertificateDetails.expiry_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='signature_algorithm', full_name='google.cloud.iot.v1.X509CertificateDetails.signature_algorithm', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='public_key_type', full_name='google.cloud.iot.v1.X509CertificateDetails.public_key_type', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2050, - serialized_end=2258, + name="X509CertificateDetails", + full_name="google.cloud.iot.v1.X509CertificateDetails", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="issuer", + full_name="google.cloud.iot.v1.X509CertificateDetails.issuer", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="subject", + full_name="google.cloud.iot.v1.X509CertificateDetails.subject", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.iot.v1.X509CertificateDetails.start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expiry_time", + full_name="google.cloud.iot.v1.X509CertificateDetails.expiry_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="signature_algorithm", + full_name="google.cloud.iot.v1.X509CertificateDetails.signature_algorithm", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="public_key_type", + full_name="google.cloud.iot.v1.X509CertificateDetails.public_key_type", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2050, + serialized_end=2258, ) _PUBLICKEYCERTIFICATE = _descriptor.Descriptor( - name='PublicKeyCertificate', - full_name='google.cloud.iot.v1.PublicKeyCertificate', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='format', full_name='google.cloud.iot.v1.PublicKeyCertificate.format', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='certificate', full_name='google.cloud.iot.v1.PublicKeyCertificate.certificate', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='x509_details', full_name='google.cloud.iot.v1.PublicKeyCertificate.x509_details', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2261, - serialized_end=2436, + name="PublicKeyCertificate", + full_name="google.cloud.iot.v1.PublicKeyCertificate", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="format", + full_name="google.cloud.iot.v1.PublicKeyCertificate.format", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="certificate", + full_name="google.cloud.iot.v1.PublicKeyCertificate.certificate", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="x509_details", + full_name="google.cloud.iot.v1.PublicKeyCertificate.x509_details", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2261, + serialized_end=2436, ) _DEVICECREDENTIAL = _descriptor.Descriptor( - name='DeviceCredential', - full_name='google.cloud.iot.v1.DeviceCredential', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='public_key', full_name='google.cloud.iot.v1.DeviceCredential.public_key', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expiration_time', full_name='google.cloud.iot.v1.DeviceCredential.expiration_time', index=1, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='credential', full_name='google.cloud.iot.v1.DeviceCredential.credential', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2439, - serialized_end=2588, + name="DeviceCredential", + full_name="google.cloud.iot.v1.DeviceCredential", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="public_key", + full_name="google.cloud.iot.v1.DeviceCredential.public_key", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expiration_time", + full_name="google.cloud.iot.v1.DeviceCredential.expiration_time", + index=1, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="credential", + full_name="google.cloud.iot.v1.DeviceCredential.credential", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2439, + serialized_end=2588, ) _PUBLICKEYCREDENTIAL = _descriptor.Descriptor( - name='PublicKeyCredential', - full_name='google.cloud.iot.v1.PublicKeyCredential', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='format', full_name='google.cloud.iot.v1.PublicKeyCredential.format', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.iot.v1.PublicKeyCredential.key', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2590, - serialized_end=2678, + name="PublicKeyCredential", + full_name="google.cloud.iot.v1.PublicKeyCredential", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="format", + full_name="google.cloud.iot.v1.PublicKeyCredential.format", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.iot.v1.PublicKeyCredential.key", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2590, + serialized_end=2678, ) _DEVICECONFIG = _descriptor.Descriptor( - name='DeviceConfig', - full_name='google.cloud.iot.v1.DeviceConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.iot.v1.DeviceConfig.version', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cloud_update_time', full_name='google.cloud.iot.v1.DeviceConfig.cloud_update_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device_ack_time', full_name='google.cloud.iot.v1.DeviceConfig.device_ack_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='binary_data', full_name='google.cloud.iot.v1.DeviceConfig.binary_data', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2681, - serialized_end=2841, + name="DeviceConfig", + full_name="google.cloud.iot.v1.DeviceConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.iot.v1.DeviceConfig.version", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cloud_update_time", + full_name="google.cloud.iot.v1.DeviceConfig.cloud_update_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="device_ack_time", + full_name="google.cloud.iot.v1.DeviceConfig.device_ack_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="binary_data", + full_name="google.cloud.iot.v1.DeviceConfig.binary_data", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2681, + serialized_end=2841, ) _DEVICESTATE = _descriptor.Descriptor( - name='DeviceState', - full_name='google.cloud.iot.v1.DeviceState', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.iot.v1.DeviceState.update_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='binary_data', full_name='google.cloud.iot.v1.DeviceState.binary_data', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2843, - serialized_end=2926, + name="DeviceState", + full_name="google.cloud.iot.v1.DeviceState", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.iot.v1.DeviceState.update_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="binary_data", + full_name="google.cloud.iot.v1.DeviceState.binary_data", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2843, + serialized_end=2926, ) _DEVICE_METADATAENTRY.containing_type = _DEVICE -_DEVICE.fields_by_name['credentials'].message_type = _DEVICECREDENTIAL -_DEVICE.fields_by_name['last_heartbeat_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICE.fields_by_name['last_event_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICE.fields_by_name['last_state_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICE.fields_by_name['last_config_ack_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICE.fields_by_name['last_config_send_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICE.fields_by_name['last_error_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICE.fields_by_name['last_error_status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_DEVICE.fields_by_name['config'].message_type = _DEVICECONFIG -_DEVICE.fields_by_name['state'].message_type = _DEVICESTATE -_DEVICE.fields_by_name['log_level'].enum_type = _LOGLEVEL -_DEVICE.fields_by_name['metadata'].message_type = _DEVICE_METADATAENTRY -_DEVICE.fields_by_name['gateway_config'].message_type = _GATEWAYCONFIG -_GATEWAYCONFIG.fields_by_name['gateway_type'].enum_type = _GATEWAYTYPE -_GATEWAYCONFIG.fields_by_name['gateway_auth_method'].enum_type = _GATEWAYAUTHMETHOD -_GATEWAYCONFIG.fields_by_name['last_accessed_gateway_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICEREGISTRY.fields_by_name['event_notification_configs'].message_type = _EVENTNOTIFICATIONCONFIG -_DEVICEREGISTRY.fields_by_name['state_notification_config'].message_type = _STATENOTIFICATIONCONFIG -_DEVICEREGISTRY.fields_by_name['mqtt_config'].message_type = _MQTTCONFIG -_DEVICEREGISTRY.fields_by_name['http_config'].message_type = _HTTPCONFIG -_DEVICEREGISTRY.fields_by_name['log_level'].enum_type = _LOGLEVEL -_DEVICEREGISTRY.fields_by_name['credentials'].message_type = _REGISTRYCREDENTIAL -_MQTTCONFIG.fields_by_name['mqtt_enabled_state'].enum_type = _MQTTSTATE -_HTTPCONFIG.fields_by_name['http_enabled_state'].enum_type = _HTTPSTATE -_REGISTRYCREDENTIAL.fields_by_name['public_key_certificate'].message_type = _PUBLICKEYCERTIFICATE -_REGISTRYCREDENTIAL.oneofs_by_name['credential'].fields.append( - _REGISTRYCREDENTIAL.fields_by_name['public_key_certificate']) -_REGISTRYCREDENTIAL.fields_by_name['public_key_certificate'].containing_oneof = _REGISTRYCREDENTIAL.oneofs_by_name['credential'] -_X509CERTIFICATEDETAILS.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_X509CERTIFICATEDETAILS.fields_by_name['expiry_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_PUBLICKEYCERTIFICATE.fields_by_name['format'].enum_type = _PUBLICKEYCERTIFICATEFORMAT -_PUBLICKEYCERTIFICATE.fields_by_name['x509_details'].message_type = _X509CERTIFICATEDETAILS -_DEVICECREDENTIAL.fields_by_name['public_key'].message_type = _PUBLICKEYCREDENTIAL -_DEVICECREDENTIAL.fields_by_name['expiration_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICECREDENTIAL.oneofs_by_name['credential'].fields.append( - _DEVICECREDENTIAL.fields_by_name['public_key']) -_DEVICECREDENTIAL.fields_by_name['public_key'].containing_oneof = _DEVICECREDENTIAL.oneofs_by_name['credential'] -_PUBLICKEYCREDENTIAL.fields_by_name['format'].enum_type = _PUBLICKEYFORMAT -_DEVICECONFIG.fields_by_name['cloud_update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICECONFIG.fields_by_name['device_ack_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEVICESTATE.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['Device'] = _DEVICE -DESCRIPTOR.message_types_by_name['GatewayConfig'] = _GATEWAYCONFIG -DESCRIPTOR.message_types_by_name['DeviceRegistry'] = _DEVICEREGISTRY -DESCRIPTOR.message_types_by_name['MqttConfig'] = _MQTTCONFIG -DESCRIPTOR.message_types_by_name['HttpConfig'] = _HTTPCONFIG -DESCRIPTOR.message_types_by_name['EventNotificationConfig'] = _EVENTNOTIFICATIONCONFIG -DESCRIPTOR.message_types_by_name['StateNotificationConfig'] = _STATENOTIFICATIONCONFIG -DESCRIPTOR.message_types_by_name['RegistryCredential'] = _REGISTRYCREDENTIAL -DESCRIPTOR.message_types_by_name['X509CertificateDetails'] = _X509CERTIFICATEDETAILS -DESCRIPTOR.message_types_by_name['PublicKeyCertificate'] = _PUBLICKEYCERTIFICATE -DESCRIPTOR.message_types_by_name['DeviceCredential'] = _DEVICECREDENTIAL -DESCRIPTOR.message_types_by_name['PublicKeyCredential'] = _PUBLICKEYCREDENTIAL -DESCRIPTOR.message_types_by_name['DeviceConfig'] = _DEVICECONFIG -DESCRIPTOR.message_types_by_name['DeviceState'] = _DEVICESTATE -DESCRIPTOR.enum_types_by_name['MqttState'] = _MQTTSTATE -DESCRIPTOR.enum_types_by_name['HttpState'] = _HTTPSTATE -DESCRIPTOR.enum_types_by_name['LogLevel'] = _LOGLEVEL -DESCRIPTOR.enum_types_by_name['GatewayType'] = _GATEWAYTYPE -DESCRIPTOR.enum_types_by_name['GatewayAuthMethod'] = _GATEWAYAUTHMETHOD -DESCRIPTOR.enum_types_by_name['PublicKeyCertificateFormat'] = _PUBLICKEYCERTIFICATEFORMAT -DESCRIPTOR.enum_types_by_name['PublicKeyFormat'] = _PUBLICKEYFORMAT +_DEVICE.fields_by_name["credentials"].message_type = _DEVICECREDENTIAL +_DEVICE.fields_by_name[ + "last_heartbeat_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICE.fields_by_name[ + "last_event_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICE.fields_by_name[ + "last_state_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICE.fields_by_name[ + "last_config_ack_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICE.fields_by_name[ + "last_config_send_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICE.fields_by_name[ + "last_error_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICE.fields_by_name[ + "last_error_status" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_DEVICE.fields_by_name["config"].message_type = _DEVICECONFIG +_DEVICE.fields_by_name["state"].message_type = _DEVICESTATE +_DEVICE.fields_by_name["log_level"].enum_type = _LOGLEVEL +_DEVICE.fields_by_name["metadata"].message_type = _DEVICE_METADATAENTRY +_DEVICE.fields_by_name["gateway_config"].message_type = _GATEWAYCONFIG +_GATEWAYCONFIG.fields_by_name["gateway_type"].enum_type = _GATEWAYTYPE +_GATEWAYCONFIG.fields_by_name["gateway_auth_method"].enum_type = _GATEWAYAUTHMETHOD +_GATEWAYCONFIG.fields_by_name[ + "last_accessed_gateway_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICEREGISTRY.fields_by_name[ + "event_notification_configs" +].message_type = _EVENTNOTIFICATIONCONFIG +_DEVICEREGISTRY.fields_by_name[ + "state_notification_config" +].message_type = _STATENOTIFICATIONCONFIG +_DEVICEREGISTRY.fields_by_name["mqtt_config"].message_type = _MQTTCONFIG +_DEVICEREGISTRY.fields_by_name["http_config"].message_type = _HTTPCONFIG +_DEVICEREGISTRY.fields_by_name["log_level"].enum_type = _LOGLEVEL +_DEVICEREGISTRY.fields_by_name["credentials"].message_type = _REGISTRYCREDENTIAL +_MQTTCONFIG.fields_by_name["mqtt_enabled_state"].enum_type = _MQTTSTATE +_HTTPCONFIG.fields_by_name["http_enabled_state"].enum_type = _HTTPSTATE +_REGISTRYCREDENTIAL.fields_by_name[ + "public_key_certificate" +].message_type = _PUBLICKEYCERTIFICATE +_REGISTRYCREDENTIAL.oneofs_by_name["credential"].fields.append( + _REGISTRYCREDENTIAL.fields_by_name["public_key_certificate"] +) +_REGISTRYCREDENTIAL.fields_by_name[ + "public_key_certificate" +].containing_oneof = _REGISTRYCREDENTIAL.oneofs_by_name["credential"] +_X509CERTIFICATEDETAILS.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_X509CERTIFICATEDETAILS.fields_by_name[ + "expiry_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_PUBLICKEYCERTIFICATE.fields_by_name["format"].enum_type = _PUBLICKEYCERTIFICATEFORMAT +_PUBLICKEYCERTIFICATE.fields_by_name[ + "x509_details" +].message_type = _X509CERTIFICATEDETAILS +_DEVICECREDENTIAL.fields_by_name["public_key"].message_type = _PUBLICKEYCREDENTIAL +_DEVICECREDENTIAL.fields_by_name[ + "expiration_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICECREDENTIAL.oneofs_by_name["credential"].fields.append( + _DEVICECREDENTIAL.fields_by_name["public_key"] +) +_DEVICECREDENTIAL.fields_by_name[ + "public_key" +].containing_oneof = _DEVICECREDENTIAL.oneofs_by_name["credential"] +_PUBLICKEYCREDENTIAL.fields_by_name["format"].enum_type = _PUBLICKEYFORMAT +_DEVICECONFIG.fields_by_name[ + "cloud_update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICECONFIG.fields_by_name[ + "device_ack_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEVICESTATE.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["Device"] = _DEVICE +DESCRIPTOR.message_types_by_name["GatewayConfig"] = _GATEWAYCONFIG +DESCRIPTOR.message_types_by_name["DeviceRegistry"] = _DEVICEREGISTRY +DESCRIPTOR.message_types_by_name["MqttConfig"] = _MQTTCONFIG +DESCRIPTOR.message_types_by_name["HttpConfig"] = _HTTPCONFIG +DESCRIPTOR.message_types_by_name["EventNotificationConfig"] = _EVENTNOTIFICATIONCONFIG +DESCRIPTOR.message_types_by_name["StateNotificationConfig"] = _STATENOTIFICATIONCONFIG +DESCRIPTOR.message_types_by_name["RegistryCredential"] = _REGISTRYCREDENTIAL +DESCRIPTOR.message_types_by_name["X509CertificateDetails"] = _X509CERTIFICATEDETAILS +DESCRIPTOR.message_types_by_name["PublicKeyCertificate"] = _PUBLICKEYCERTIFICATE +DESCRIPTOR.message_types_by_name["DeviceCredential"] = _DEVICECREDENTIAL +DESCRIPTOR.message_types_by_name["PublicKeyCredential"] = _PUBLICKEYCREDENTIAL +DESCRIPTOR.message_types_by_name["DeviceConfig"] = _DEVICECONFIG +DESCRIPTOR.message_types_by_name["DeviceState"] = _DEVICESTATE +DESCRIPTOR.enum_types_by_name["MqttState"] = _MQTTSTATE +DESCRIPTOR.enum_types_by_name["HttpState"] = _HTTPSTATE +DESCRIPTOR.enum_types_by_name["LogLevel"] = _LOGLEVEL +DESCRIPTOR.enum_types_by_name["GatewayType"] = _GATEWAYTYPE +DESCRIPTOR.enum_types_by_name["GatewayAuthMethod"] = _GATEWAYAUTHMETHOD +DESCRIPTOR.enum_types_by_name[ + "PublicKeyCertificateFormat" +] = _PUBLICKEYCERTIFICATEFORMAT +DESCRIPTOR.enum_types_by_name["PublicKeyFormat"] = _PUBLICKEYFORMAT _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Device = _reflection.GeneratedProtocolMessageType('Device', (_message.Message,), dict( - - MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( - DESCRIPTOR = _DEVICE_METADATAENTRY, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.Device.MetadataEntry) - )) - , - DESCRIPTOR = _DEVICE, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """The device resource. +Device = _reflection.GeneratedProtocolMessageType( + "Device", + (_message.Message,), + dict( + MetadataEntry=_reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + dict( + DESCRIPTOR=_DEVICE_METADATAENTRY, + __module__="google.cloud.iot_v1.proto.resources_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.Device.MetadataEntry) + ), + ), + DESCRIPTOR=_DEVICE, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""The device resource. Attributes: @@ -1184,16 +1813,19 @@ gateway_config: Gateway-related configuration and state. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.Device) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.Device) + ), +) _sym_db.RegisterMessage(Device) _sym_db.RegisterMessage(Device.MetadataEntry) -GatewayConfig = _reflection.GeneratedProtocolMessageType('GatewayConfig', (_message.Message,), dict( - DESCRIPTOR = _GATEWAYCONFIG, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """Gateway-related configuration and state. +GatewayConfig = _reflection.GeneratedProtocolMessageType( + "GatewayConfig", + (_message.Message,), + dict( + DESCRIPTOR=_GATEWAYCONFIG, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""Gateway-related configuration and state. Attributes: @@ -1209,15 +1841,18 @@ [Output only] The most recent time at which the device accessed the gateway specified in ``last_accessed_gateway``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayConfig) + ), +) _sym_db.RegisterMessage(GatewayConfig) -DeviceRegistry = _reflection.GeneratedProtocolMessageType('DeviceRegistry', (_message.Message,), dict( - DESCRIPTOR = _DEVICEREGISTRY, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """A container for a group of devices. +DeviceRegistry = _reflection.GeneratedProtocolMessageType( + "DeviceRegistry", + (_message.Message,), + dict( + DESCRIPTOR=_DEVICEREGISTRY, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""A container for a group of devices. Attributes: @@ -1269,15 +1904,18 @@ connect even if its registry credentials are revoked, deleted, or modified. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceRegistry) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceRegistry) + ), +) _sym_db.RegisterMessage(DeviceRegistry) -MqttConfig = _reflection.GeneratedProtocolMessageType('MqttConfig', (_message.Message,), dict( - DESCRIPTOR = _MQTTCONFIG, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """The configuration of MQTT for a device registry. +MqttConfig = _reflection.GeneratedProtocolMessageType( + "MqttConfig", + (_message.Message,), + dict( + DESCRIPTOR=_MQTTCONFIG, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""The configuration of MQTT for a device registry. Attributes: @@ -1285,15 +1923,18 @@ If enabled, allows connections using the MQTT protocol. Otherwise, MQTT connections to this registry will fail. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.MqttConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.MqttConfig) + ), +) _sym_db.RegisterMessage(MqttConfig) -HttpConfig = _reflection.GeneratedProtocolMessageType('HttpConfig', (_message.Message,), dict( - DESCRIPTOR = _HTTPCONFIG, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """The configuration of the HTTP bridge for a device registry. +HttpConfig = _reflection.GeneratedProtocolMessageType( + "HttpConfig", + (_message.Message,), + dict( + DESCRIPTOR=_HTTPCONFIG, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""The configuration of the HTTP bridge for a device registry. Attributes: @@ -1302,15 +1943,18 @@ protocol. Otherwise, any requests to DeviceService will fail for this registry. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.HttpConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.HttpConfig) + ), +) _sym_db.RegisterMessage(HttpConfig) -EventNotificationConfig = _reflection.GeneratedProtocolMessageType('EventNotificationConfig', (_message.Message,), dict( - DESCRIPTOR = _EVENTNOTIFICATIONCONFIG, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """The configuration for forwarding telemetry events. +EventNotificationConfig = _reflection.GeneratedProtocolMessageType( + "EventNotificationConfig", + (_message.Message,), + dict( + DESCRIPTOR=_EVENTNOTIFICATIONCONFIG, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""The configuration for forwarding telemetry events. Attributes: @@ -1324,15 +1968,18 @@ A Cloud Pub/Sub topic name. For example, ``projects/myProject/topics/deviceEvents``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.EventNotificationConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.EventNotificationConfig) + ), +) _sym_db.RegisterMessage(EventNotificationConfig) -StateNotificationConfig = _reflection.GeneratedProtocolMessageType('StateNotificationConfig', (_message.Message,), dict( - DESCRIPTOR = _STATENOTIFICATIONCONFIG, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """The configuration for notification of new states received from the +StateNotificationConfig = _reflection.GeneratedProtocolMessageType( + "StateNotificationConfig", + (_message.Message,), + dict( + DESCRIPTOR=_STATENOTIFICATIONCONFIG, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""The configuration for notification of new states received from the device. @@ -1341,15 +1988,18 @@ A Cloud Pub/Sub topic name. For example, ``projects/myProject/topics/deviceEvents``. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.StateNotificationConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.StateNotificationConfig) + ), +) _sym_db.RegisterMessage(StateNotificationConfig) -RegistryCredential = _reflection.GeneratedProtocolMessageType('RegistryCredential', (_message.Message,), dict( - DESCRIPTOR = _REGISTRYCREDENTIAL, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """A server-stored registry credential used to validate device credentials. +RegistryCredential = _reflection.GeneratedProtocolMessageType( + "RegistryCredential", + (_message.Message,), + dict( + DESCRIPTOR=_REGISTRYCREDENTIAL, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""A server-stored registry credential used to validate device credentials. Attributes: @@ -1359,15 +2009,18 @@ A public key certificate used to verify the device credentials. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.RegistryCredential) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.RegistryCredential) + ), +) _sym_db.RegisterMessage(RegistryCredential) -X509CertificateDetails = _reflection.GeneratedProtocolMessageType('X509CertificateDetails', (_message.Message,), dict( - DESCRIPTOR = _X509CERTIFICATEDETAILS, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """Details of an X.509 certificate. For informational purposes only. +X509CertificateDetails = _reflection.GeneratedProtocolMessageType( + "X509CertificateDetails", + (_message.Message,), + dict( + DESCRIPTOR=_X509CERTIFICATEDETAILS, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""Details of an X.509 certificate. For informational purposes only. Attributes: @@ -1384,15 +2037,18 @@ public_key_type: The type of public key in the certificate. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.X509CertificateDetails) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.X509CertificateDetails) + ), +) _sym_db.RegisterMessage(X509CertificateDetails) -PublicKeyCertificate = _reflection.GeneratedProtocolMessageType('PublicKeyCertificate', (_message.Message,), dict( - DESCRIPTOR = _PUBLICKEYCERTIFICATE, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """A public key certificate format and data. +PublicKeyCertificate = _reflection.GeneratedProtocolMessageType( + "PublicKeyCertificate", + (_message.Message,), + dict( + DESCRIPTOR=_PUBLICKEYCERTIFICATE, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""A public key certificate format and data. Attributes: @@ -1404,15 +2060,18 @@ [Output only] The certificate details. Used only for X.509 certificates. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCertificate) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCertificate) + ), +) _sym_db.RegisterMessage(PublicKeyCertificate) -DeviceCredential = _reflection.GeneratedProtocolMessageType('DeviceCredential', (_message.Message,), dict( - DESCRIPTOR = _DEVICECREDENTIAL, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """A server-stored device credential used for authentication. +DeviceCredential = _reflection.GeneratedProtocolMessageType( + "DeviceCredential", + (_message.Message,), + dict( + DESCRIPTOR=_DEVICECREDENTIAL, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""A server-stored device credential used for authentication. Attributes: @@ -1437,15 +2096,18 @@ requests after this timestamp; however, it will not be automatically deleted. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceCredential) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceCredential) + ), +) _sym_db.RegisterMessage(DeviceCredential) -PublicKeyCredential = _reflection.GeneratedProtocolMessageType('PublicKeyCredential', (_message.Message,), dict( - DESCRIPTOR = _PUBLICKEYCREDENTIAL, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """A public key format and data. +PublicKeyCredential = _reflection.GeneratedProtocolMessageType( + "PublicKeyCredential", + (_message.Message,), + dict( + DESCRIPTOR=_PUBLICKEYCREDENTIAL, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""A public key format and data. Attributes: @@ -1454,15 +2116,18 @@ key: The key data. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCredential) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCredential) + ), +) _sym_db.RegisterMessage(PublicKeyCredential) -DeviceConfig = _reflection.GeneratedProtocolMessageType('DeviceConfig', (_message.Message,), dict( - DESCRIPTOR = _DEVICECONFIG, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """The device configuration. Eventually delivered to devices. +DeviceConfig = _reflection.GeneratedProtocolMessageType( + "DeviceConfig", + (_message.Message,), + dict( + DESCRIPTOR=_DEVICECONFIG, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""The device configuration. Eventually delivered to devices. Attributes: @@ -1490,15 +2155,18 @@ binary_data: The device configuration data. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceConfig) + ), +) _sym_db.RegisterMessage(DeviceConfig) -DeviceState = _reflection.GeneratedProtocolMessageType('DeviceState', (_message.Message,), dict( - DESCRIPTOR = _DEVICESTATE, - __module__ = 'google.cloud.iot_v1.proto.resources_pb2' - , - __doc__ = """The device state, as reported by the device. +DeviceState = _reflection.GeneratedProtocolMessageType( + "DeviceState", + (_message.Message,), + dict( + DESCRIPTOR=_DEVICESTATE, + __module__="google.cloud.iot_v1.proto.resources_pb2", + __doc__="""The device state, as reported by the device. Attributes: @@ -1508,13 +2176,21 @@ binary_data: The device state data. """, - # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceState) - )) + # @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceState) + ), +) _sym_db.RegisterMessage(DeviceState) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.google.cloud.iot.v1B\016ResourcesProtoP\001Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\027com.google.cloud.iot.v1B\016ResourcesProtoP\001Z6google.golang.org/genproto/googleapis/cloud/iot/v1;iot\370\001\001" + ), +) _DEVICE_METADATAENTRY.has_options = True -_DEVICE_METADATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_DEVICE_METADATAENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/iot/google/cloud/iot_v1/proto/resources_pb2_grpc.py b/iot/google/cloud/iot_v1/proto/resources_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/iot/google/cloud/iot_v1/proto/resources_pb2_grpc.py +++ b/iot/google/cloud/iot_v1/proto/resources_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/kms/google/cloud/kms_v1/proto/resources_pb2.py b/kms/google/cloud/kms_v1/proto/resources_pb2.py index 52870a50375d4..f05ba34e25587 100644 --- a/kms/google/cloud/kms_v1/proto/resources_pb2.py +++ b/kms/google/cloud/kms_v1/proto/resources_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/kms_v1/proto/resources.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,36 +22,43 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/kms_v1/proto/resources.proto', - package='google.cloud.kms.v1', - syntax='proto3', - serialized_pb=_b('\n)google/cloud/kms_v1/proto/resources.proto\x12\x13google.cloud.kms.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"H\n\x07KeyRing\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf5\x04\n\tCryptoKey\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x07primary\x18\x02 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion\x12@\n\x07purpose\x18\x03 \x01(\x0e\x32/.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12next_rotation_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x0frotation_period\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12G\n\x10version_template\x18\x0b \x01(\x0b\x32-.google.cloud.kms.v1.CryptoKeyVersionTemplate\x12:\n\x06labels\x18\n \x03(\x0b\x32*.google.cloud.kms.v1.CryptoKey.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"x\n\x10\x43ryptoKeyPurpose\x12\"\n\x1e\x43RYPTO_KEY_PURPOSE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45NCRYPT_DECRYPT\x10\x01\x12\x13\n\x0f\x41SYMMETRIC_SIGN\x10\x05\x12\x16\n\x12\x41SYMMETRIC_DECRYPT\x10\x06\x42\x13\n\x11rotation_schedule\"\xae\x01\n\x18\x43ryptoKeyVersionTemplate\x12>\n\x10protection_level\x18\x01 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel\x12R\n\talgorithm\x18\x03 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm\"\xcd\x01\n\x17KeyOperationAttestation\x12N\n\x06\x66ormat\x18\x04 \x01(\x0e\x32>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat\x12\x0f\n\x07\x63ontent\x18\x05 \x01(\x0c\"Q\n\x11\x41ttestationFormat\x12\"\n\x1e\x41TTESTATION_FORMAT_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43\x41VIUM_V1_COMPRESSED\x10\x03\"\xb8\t\n\x10\x43ryptoKeyVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState\x12>\n\x10protection_level\x18\x07 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel\x12R\n\talgorithm\x18\n \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm\x12\x41\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestation\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rgenerate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x64\x65stroy_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12\x64\x65stroy_event_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xbc\x03\n\x19\x43ryptoKeyVersionAlgorithm\x12,\n(CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED\x10\x00\x12\x1f\n\x1bGOOGLE_SYMMETRIC_ENCRYPTION\x10\x01\x12\x1c\n\x18RSA_SIGN_PSS_2048_SHA256\x10\x02\x12\x1c\n\x18RSA_SIGN_PSS_3072_SHA256\x10\x03\x12\x1c\n\x18RSA_SIGN_PSS_4096_SHA256\x10\x04\x12\x1e\n\x1aRSA_SIGN_PKCS1_2048_SHA256\x10\x05\x12\x1e\n\x1aRSA_SIGN_PKCS1_3072_SHA256\x10\x06\x12\x1e\n\x1aRSA_SIGN_PKCS1_4096_SHA256\x10\x07\x12 \n\x1cRSA_DECRYPT_OAEP_2048_SHA256\x10\x08\x12 \n\x1cRSA_DECRYPT_OAEP_3072_SHA256\x10\t\x12 \n\x1cRSA_DECRYPT_OAEP_4096_SHA256\x10\n\x12\x17\n\x13\x45\x43_SIGN_P256_SHA256\x10\x0c\x12\x17\n\x13\x45\x43_SIGN_P384_SHA384\x10\r\"\x9a\x01\n\x15\x43ryptoKeyVersionState\x12(\n$CRYPTO_KEY_VERSION_STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_GENERATION\x10\x05\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\r\n\tDESTROYED\x10\x03\x12\x15\n\x11\x44\x45STROY_SCHEDULED\x10\x04\"I\n\x14\x43ryptoKeyVersionView\x12\'\n#CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\"l\n\tPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\x12R\n\talgorithm\x18\x02 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm*J\n\x0fProtectionLevel\x12 \n\x1cPROTECTION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08SOFTWARE\x10\x01\x12\x07\n\x03HSM\x10\x02\x42\x95\x01\n\x17\x63om.google.cloud.kms.v1B\x11KmsResourcesProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\xf8\x01\x01\xaa\x02\x13Google.Cloud.Kms.V1\xca\x02\x13Google\\Cloud\\Kms\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/kms_v1/proto/resources.proto", + package="google.cloud.kms.v1", + syntax="proto3", + serialized_pb=_b( + '\n)google/cloud/kms_v1/proto/resources.proto\x12\x13google.cloud.kms.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"H\n\x07KeyRing\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xf5\x04\n\tCryptoKey\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x07primary\x18\x02 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion\x12@\n\x07purpose\x18\x03 \x01(\x0e\x32/.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12next_rotation_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x0frotation_period\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12G\n\x10version_template\x18\x0b \x01(\x0b\x32-.google.cloud.kms.v1.CryptoKeyVersionTemplate\x12:\n\x06labels\x18\n \x03(\x0b\x32*.google.cloud.kms.v1.CryptoKey.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"x\n\x10\x43ryptoKeyPurpose\x12"\n\x1e\x43RYPTO_KEY_PURPOSE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45NCRYPT_DECRYPT\x10\x01\x12\x13\n\x0f\x41SYMMETRIC_SIGN\x10\x05\x12\x16\n\x12\x41SYMMETRIC_DECRYPT\x10\x06\x42\x13\n\x11rotation_schedule"\xae\x01\n\x18\x43ryptoKeyVersionTemplate\x12>\n\x10protection_level\x18\x01 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel\x12R\n\talgorithm\x18\x03 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm"\xcd\x01\n\x17KeyOperationAttestation\x12N\n\x06\x66ormat\x18\x04 \x01(\x0e\x32>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat\x12\x0f\n\x07\x63ontent\x18\x05 \x01(\x0c"Q\n\x11\x41ttestationFormat\x12"\n\x1e\x41TTESTATION_FORMAT_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43\x41VIUM_V1_COMPRESSED\x10\x03"\xb8\t\n\x10\x43ryptoKeyVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState\x12>\n\x10protection_level\x18\x07 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel\x12R\n\talgorithm\x18\n \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm\x12\x41\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestation\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rgenerate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x64\x65stroy_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12\x64\x65stroy_event_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xbc\x03\n\x19\x43ryptoKeyVersionAlgorithm\x12,\n(CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED\x10\x00\x12\x1f\n\x1bGOOGLE_SYMMETRIC_ENCRYPTION\x10\x01\x12\x1c\n\x18RSA_SIGN_PSS_2048_SHA256\x10\x02\x12\x1c\n\x18RSA_SIGN_PSS_3072_SHA256\x10\x03\x12\x1c\n\x18RSA_SIGN_PSS_4096_SHA256\x10\x04\x12\x1e\n\x1aRSA_SIGN_PKCS1_2048_SHA256\x10\x05\x12\x1e\n\x1aRSA_SIGN_PKCS1_3072_SHA256\x10\x06\x12\x1e\n\x1aRSA_SIGN_PKCS1_4096_SHA256\x10\x07\x12 \n\x1cRSA_DECRYPT_OAEP_2048_SHA256\x10\x08\x12 \n\x1cRSA_DECRYPT_OAEP_3072_SHA256\x10\t\x12 \n\x1cRSA_DECRYPT_OAEP_4096_SHA256\x10\n\x12\x17\n\x13\x45\x43_SIGN_P256_SHA256\x10\x0c\x12\x17\n\x13\x45\x43_SIGN_P384_SHA384\x10\r"\x9a\x01\n\x15\x43ryptoKeyVersionState\x12(\n$CRYPTO_KEY_VERSION_STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_GENERATION\x10\x05\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\r\n\tDESTROYED\x10\x03\x12\x15\n\x11\x44\x45STROY_SCHEDULED\x10\x04"I\n\x14\x43ryptoKeyVersionView\x12\'\n#CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01"l\n\tPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\x12R\n\talgorithm\x18\x02 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm*J\n\x0fProtectionLevel\x12 \n\x1cPROTECTION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08SOFTWARE\x10\x01\x12\x07\n\x03HSM\x10\x02\x42\x95\x01\n\x17\x63om.google.cloud.kms.v1B\x11KmsResourcesProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\xf8\x01\x01\xaa\x02\x13Google.Cloud.Kms.V1\xca\x02\x13Google\\Cloud\\Kms\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _PROTECTIONLEVEL = _descriptor.EnumDescriptor( - name='ProtectionLevel', - full_name='google.cloud.kms.v1.ProtectionLevel', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='PROTECTION_LEVEL_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SOFTWARE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HSM', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2573, - serialized_end=2647, + name="ProtectionLevel", + full_name="google.cloud.kms.v1.ProtectionLevel", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="PROTECTION_LEVEL_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SOFTWARE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HSM", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2573, + serialized_end=2647, ) _sym_db.RegisterEnumDescriptor(_PROTECTIONLEVEL) @@ -60,590 +69,924 @@ _CRYPTOKEY_CRYPTOKEYPURPOSE = _descriptor.EnumDescriptor( - name='CryptoKeyPurpose', - full_name='google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CRYPTO_KEY_PURPOSE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENCRYPT_DECRYPT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASYMMETRIC_SIGN', index=2, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASYMMETRIC_DECRYPT', index=3, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=724, - serialized_end=844, + name="CryptoKeyPurpose", + full_name="google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CRYPTO_KEY_PURPOSE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="ENCRYPT_DECRYPT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ASYMMETRIC_SIGN", index=2, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ASYMMETRIC_DECRYPT", index=3, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=724, + serialized_end=844, ) _sym_db.RegisterEnumDescriptor(_CRYPTOKEY_CRYPTOKEYPURPOSE) _KEYOPERATIONATTESTATION_ATTESTATIONFORMAT = _descriptor.EnumDescriptor( - name='AttestationFormat', - full_name='google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ATTESTATION_FORMAT_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CAVIUM_V1_COMPRESSED', index=1, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1169, - serialized_end=1250, + name="AttestationFormat", + full_name="google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ATTESTATION_FORMAT_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="CAVIUM_V1_COMPRESSED", index=1, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1169, + serialized_end=1250, ) _sym_db.RegisterEnumDescriptor(_KEYOPERATIONATTESTATION_ATTESTATIONFORMAT) _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM = _descriptor.EnumDescriptor( - name='CryptoKeyVersionAlgorithm', - full_name='google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOOGLE_SYMMETRIC_ENCRYPTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_SIGN_PSS_2048_SHA256', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_SIGN_PSS_3072_SHA256', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_SIGN_PSS_4096_SHA256', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_SIGN_PKCS1_2048_SHA256', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_SIGN_PKCS1_3072_SHA256', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_SIGN_PKCS1_4096_SHA256', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_DECRYPT_OAEP_2048_SHA256', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_DECRYPT_OAEP_3072_SHA256', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RSA_DECRYPT_OAEP_4096_SHA256', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EC_SIGN_P256_SHA256', index=11, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EC_SIGN_P384_SHA384', index=12, number=13, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1785, - serialized_end=2229, + name="CryptoKeyVersionAlgorithm", + full_name="google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="GOOGLE_SYMMETRIC_ENCRYPTION", + index=1, + number=1, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RSA_SIGN_PSS_2048_SHA256", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RSA_SIGN_PSS_3072_SHA256", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RSA_SIGN_PSS_4096_SHA256", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RSA_SIGN_PKCS1_2048_SHA256", + index=5, + number=5, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RSA_SIGN_PKCS1_3072_SHA256", + index=6, + number=6, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RSA_SIGN_PKCS1_4096_SHA256", + index=7, + number=7, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RSA_DECRYPT_OAEP_2048_SHA256", + index=8, + number=8, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RSA_DECRYPT_OAEP_3072_SHA256", + index=9, + number=9, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RSA_DECRYPT_OAEP_4096_SHA256", + index=10, + number=10, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="EC_SIGN_P256_SHA256", index=11, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EC_SIGN_P384_SHA384", index=12, number=13, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1785, + serialized_end=2229, ) _sym_db.RegisterEnumDescriptor(_CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM) _CRYPTOKEYVERSION_CRYPTOKEYVERSIONSTATE = _descriptor.EnumDescriptor( - name='CryptoKeyVersionState', - full_name='google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CRYPTO_KEY_VERSION_STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PENDING_GENERATION', index=1, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISABLED', index=3, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DESTROYED', index=4, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DESTROY_SCHEDULED', index=5, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2232, - serialized_end=2386, + name="CryptoKeyVersionState", + full_name="google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CRYPTO_KEY_VERSION_STATE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="PENDING_GENERATION", index=1, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ENABLED", index=2, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISABLED", index=3, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DESTROYED", index=4, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DESTROY_SCHEDULED", index=5, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2232, + serialized_end=2386, ) _sym_db.RegisterEnumDescriptor(_CRYPTOKEYVERSION_CRYPTOKEYVERSIONSTATE) _CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW = _descriptor.EnumDescriptor( - name='CryptoKeyVersionView', - full_name='google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FULL', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2388, - serialized_end=2461, + name="CryptoKeyVersionView", + full_name="google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="FULL", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2388, + serialized_end=2461, ) _sym_db.RegisterEnumDescriptor(_CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW) _KEYRING = _descriptor.Descriptor( - name='KeyRing', - full_name='google.cloud.kms.v1.KeyRing', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.KeyRing.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.kms.v1.KeyRing.create_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=161, - serialized_end=233, + name="KeyRing", + full_name="google.cloud.kms.v1.KeyRing", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.KeyRing.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.kms.v1.KeyRing.create_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=161, + serialized_end=233, ) _CRYPTOKEY_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.kms.v1.CryptoKey.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.kms.v1.CryptoKey.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.kms.v1.CryptoKey.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=677, - serialized_end=722, + name="LabelsEntry", + full_name="google.cloud.kms.v1.CryptoKey.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.kms.v1.CryptoKey.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.kms.v1.CryptoKey.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=677, + serialized_end=722, ) _CRYPTOKEY = _descriptor.Descriptor( - name='CryptoKey', - full_name='google.cloud.kms.v1.CryptoKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.CryptoKey.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='primary', full_name='google.cloud.kms.v1.CryptoKey.primary', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='purpose', full_name='google.cloud.kms.v1.CryptoKey.purpose', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.kms.v1.CryptoKey.create_time', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_rotation_time', full_name='google.cloud.kms.v1.CryptoKey.next_rotation_time', index=4, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rotation_period', full_name='google.cloud.kms.v1.CryptoKey.rotation_period', index=5, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version_template', full_name='google.cloud.kms.v1.CryptoKey.version_template', index=6, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.kms.v1.CryptoKey.labels', index=7, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CRYPTOKEY_LABELSENTRY, ], - enum_types=[ - _CRYPTOKEY_CRYPTOKEYPURPOSE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='rotation_schedule', full_name='google.cloud.kms.v1.CryptoKey.rotation_schedule', - index=0, containing_type=None, fields=[]), - ], - serialized_start=236, - serialized_end=865, + name="CryptoKey", + full_name="google.cloud.kms.v1.CryptoKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.CryptoKey.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="primary", + full_name="google.cloud.kms.v1.CryptoKey.primary", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="purpose", + full_name="google.cloud.kms.v1.CryptoKey.purpose", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.kms.v1.CryptoKey.create_time", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_rotation_time", + full_name="google.cloud.kms.v1.CryptoKey.next_rotation_time", + index=4, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rotation_period", + full_name="google.cloud.kms.v1.CryptoKey.rotation_period", + index=5, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version_template", + full_name="google.cloud.kms.v1.CryptoKey.version_template", + index=6, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.kms.v1.CryptoKey.labels", + index=7, + number=10, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CRYPTOKEY_LABELSENTRY], + enum_types=[_CRYPTOKEY_CRYPTOKEYPURPOSE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="rotation_schedule", + full_name="google.cloud.kms.v1.CryptoKey.rotation_schedule", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=236, + serialized_end=865, ) _CRYPTOKEYVERSIONTEMPLATE = _descriptor.Descriptor( - name='CryptoKeyVersionTemplate', - full_name='google.cloud.kms.v1.CryptoKeyVersionTemplate', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='protection_level', full_name='google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='algorithm', full_name='google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm', index=1, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=868, - serialized_end=1042, + name="CryptoKeyVersionTemplate", + full_name="google.cloud.kms.v1.CryptoKeyVersionTemplate", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="protection_level", + full_name="google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="algorithm", + full_name="google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm", + index=1, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=868, + serialized_end=1042, ) _KEYOPERATIONATTESTATION = _descriptor.Descriptor( - name='KeyOperationAttestation', - full_name='google.cloud.kms.v1.KeyOperationAttestation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='format', full_name='google.cloud.kms.v1.KeyOperationAttestation.format', index=0, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.kms.v1.KeyOperationAttestation.content', index=1, - number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _KEYOPERATIONATTESTATION_ATTESTATIONFORMAT, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1045, - serialized_end=1250, + name="KeyOperationAttestation", + full_name="google.cloud.kms.v1.KeyOperationAttestation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="format", + full_name="google.cloud.kms.v1.KeyOperationAttestation.format", + index=0, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.kms.v1.KeyOperationAttestation.content", + index=1, + number=5, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_KEYOPERATIONATTESTATION_ATTESTATIONFORMAT], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1045, + serialized_end=1250, ) _CRYPTOKEYVERSION = _descriptor.Descriptor( - name='CryptoKeyVersion', - full_name='google.cloud.kms.v1.CryptoKeyVersion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.CryptoKeyVersion.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.kms.v1.CryptoKeyVersion.state', index=1, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='protection_level', full_name='google.cloud.kms.v1.CryptoKeyVersion.protection_level', index=2, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='algorithm', full_name='google.cloud.kms.v1.CryptoKeyVersion.algorithm', index=3, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attestation', full_name='google.cloud.kms.v1.CryptoKeyVersion.attestation', index=4, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.kms.v1.CryptoKeyVersion.create_time', index=5, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='generate_time', full_name='google.cloud.kms.v1.CryptoKeyVersion.generate_time', index=6, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='destroy_time', full_name='google.cloud.kms.v1.CryptoKeyVersion.destroy_time', index=7, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='destroy_event_time', full_name='google.cloud.kms.v1.CryptoKeyVersion.destroy_event_time', index=8, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM, - _CRYPTOKEYVERSION_CRYPTOKEYVERSIONSTATE, - _CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1253, - serialized_end=2461, + name="CryptoKeyVersion", + full_name="google.cloud.kms.v1.CryptoKeyVersion", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.CryptoKeyVersion.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.kms.v1.CryptoKeyVersion.state", + index=1, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="protection_level", + full_name="google.cloud.kms.v1.CryptoKeyVersion.protection_level", + index=2, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="algorithm", + full_name="google.cloud.kms.v1.CryptoKeyVersion.algorithm", + index=3, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attestation", + full_name="google.cloud.kms.v1.CryptoKeyVersion.attestation", + index=4, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.kms.v1.CryptoKeyVersion.create_time", + index=5, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="generate_time", + full_name="google.cloud.kms.v1.CryptoKeyVersion.generate_time", + index=6, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="destroy_time", + full_name="google.cloud.kms.v1.CryptoKeyVersion.destroy_time", + index=7, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="destroy_event_time", + full_name="google.cloud.kms.v1.CryptoKeyVersion.destroy_event_time", + index=8, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[ + _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM, + _CRYPTOKEYVERSION_CRYPTOKEYVERSIONSTATE, + _CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW, + ], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1253, + serialized_end=2461, ) _PUBLICKEY = _descriptor.Descriptor( - name='PublicKey', - full_name='google.cloud.kms.v1.PublicKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pem', full_name='google.cloud.kms.v1.PublicKey.pem', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='algorithm', full_name='google.cloud.kms.v1.PublicKey.algorithm', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2463, - serialized_end=2571, + name="PublicKey", + full_name="google.cloud.kms.v1.PublicKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="pem", + full_name="google.cloud.kms.v1.PublicKey.pem", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="algorithm", + full_name="google.cloud.kms.v1.PublicKey.algorithm", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2463, + serialized_end=2571, ) -_KEYRING.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_KEYRING.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _CRYPTOKEY_LABELSENTRY.containing_type = _CRYPTOKEY -_CRYPTOKEY.fields_by_name['primary'].message_type = _CRYPTOKEYVERSION -_CRYPTOKEY.fields_by_name['purpose'].enum_type = _CRYPTOKEY_CRYPTOKEYPURPOSE -_CRYPTOKEY.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CRYPTOKEY.fields_by_name['next_rotation_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CRYPTOKEY.fields_by_name['rotation_period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_CRYPTOKEY.fields_by_name['version_template'].message_type = _CRYPTOKEYVERSIONTEMPLATE -_CRYPTOKEY.fields_by_name['labels'].message_type = _CRYPTOKEY_LABELSENTRY +_CRYPTOKEY.fields_by_name["primary"].message_type = _CRYPTOKEYVERSION +_CRYPTOKEY.fields_by_name["purpose"].enum_type = _CRYPTOKEY_CRYPTOKEYPURPOSE +_CRYPTOKEY.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CRYPTOKEY.fields_by_name[ + "next_rotation_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CRYPTOKEY.fields_by_name[ + "rotation_period" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_CRYPTOKEY.fields_by_name["version_template"].message_type = _CRYPTOKEYVERSIONTEMPLATE +_CRYPTOKEY.fields_by_name["labels"].message_type = _CRYPTOKEY_LABELSENTRY _CRYPTOKEY_CRYPTOKEYPURPOSE.containing_type = _CRYPTOKEY -_CRYPTOKEY.oneofs_by_name['rotation_schedule'].fields.append( - _CRYPTOKEY.fields_by_name['rotation_period']) -_CRYPTOKEY.fields_by_name['rotation_period'].containing_oneof = _CRYPTOKEY.oneofs_by_name['rotation_schedule'] -_CRYPTOKEYVERSIONTEMPLATE.fields_by_name['protection_level'].enum_type = _PROTECTIONLEVEL -_CRYPTOKEYVERSIONTEMPLATE.fields_by_name['algorithm'].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM -_KEYOPERATIONATTESTATION.fields_by_name['format'].enum_type = _KEYOPERATIONATTESTATION_ATTESTATIONFORMAT +_CRYPTOKEY.oneofs_by_name["rotation_schedule"].fields.append( + _CRYPTOKEY.fields_by_name["rotation_period"] +) +_CRYPTOKEY.fields_by_name[ + "rotation_period" +].containing_oneof = _CRYPTOKEY.oneofs_by_name["rotation_schedule"] +_CRYPTOKEYVERSIONTEMPLATE.fields_by_name[ + "protection_level" +].enum_type = _PROTECTIONLEVEL +_CRYPTOKEYVERSIONTEMPLATE.fields_by_name[ + "algorithm" +].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM +_KEYOPERATIONATTESTATION.fields_by_name[ + "format" +].enum_type = _KEYOPERATIONATTESTATION_ATTESTATIONFORMAT _KEYOPERATIONATTESTATION_ATTESTATIONFORMAT.containing_type = _KEYOPERATIONATTESTATION -_CRYPTOKEYVERSION.fields_by_name['state'].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONSTATE -_CRYPTOKEYVERSION.fields_by_name['protection_level'].enum_type = _PROTECTIONLEVEL -_CRYPTOKEYVERSION.fields_by_name['algorithm'].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM -_CRYPTOKEYVERSION.fields_by_name['attestation'].message_type = _KEYOPERATIONATTESTATION -_CRYPTOKEYVERSION.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CRYPTOKEYVERSION.fields_by_name['generate_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CRYPTOKEYVERSION.fields_by_name['destroy_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CRYPTOKEYVERSION.fields_by_name['destroy_event_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CRYPTOKEYVERSION.fields_by_name[ + "state" +].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONSTATE +_CRYPTOKEYVERSION.fields_by_name["protection_level"].enum_type = _PROTECTIONLEVEL +_CRYPTOKEYVERSION.fields_by_name[ + "algorithm" +].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM +_CRYPTOKEYVERSION.fields_by_name["attestation"].message_type = _KEYOPERATIONATTESTATION +_CRYPTOKEYVERSION.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CRYPTOKEYVERSION.fields_by_name[ + "generate_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CRYPTOKEYVERSION.fields_by_name[ + "destroy_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CRYPTOKEYVERSION.fields_by_name[ + "destroy_event_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM.containing_type = _CRYPTOKEYVERSION _CRYPTOKEYVERSION_CRYPTOKEYVERSIONSTATE.containing_type = _CRYPTOKEYVERSION _CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW.containing_type = _CRYPTOKEYVERSION -_PUBLICKEY.fields_by_name['algorithm'].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM -DESCRIPTOR.message_types_by_name['KeyRing'] = _KEYRING -DESCRIPTOR.message_types_by_name['CryptoKey'] = _CRYPTOKEY -DESCRIPTOR.message_types_by_name['CryptoKeyVersionTemplate'] = _CRYPTOKEYVERSIONTEMPLATE -DESCRIPTOR.message_types_by_name['KeyOperationAttestation'] = _KEYOPERATIONATTESTATION -DESCRIPTOR.message_types_by_name['CryptoKeyVersion'] = _CRYPTOKEYVERSION -DESCRIPTOR.message_types_by_name['PublicKey'] = _PUBLICKEY -DESCRIPTOR.enum_types_by_name['ProtectionLevel'] = _PROTECTIONLEVEL +_PUBLICKEY.fields_by_name[ + "algorithm" +].enum_type = _CRYPTOKEYVERSION_CRYPTOKEYVERSIONALGORITHM +DESCRIPTOR.message_types_by_name["KeyRing"] = _KEYRING +DESCRIPTOR.message_types_by_name["CryptoKey"] = _CRYPTOKEY +DESCRIPTOR.message_types_by_name["CryptoKeyVersionTemplate"] = _CRYPTOKEYVERSIONTEMPLATE +DESCRIPTOR.message_types_by_name["KeyOperationAttestation"] = _KEYOPERATIONATTESTATION +DESCRIPTOR.message_types_by_name["CryptoKeyVersion"] = _CRYPTOKEYVERSION +DESCRIPTOR.message_types_by_name["PublicKey"] = _PUBLICKEY +DESCRIPTOR.enum_types_by_name["ProtectionLevel"] = _PROTECTIONLEVEL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -KeyRing = _reflection.GeneratedProtocolMessageType('KeyRing', (_message.Message,), dict( - DESCRIPTOR = _KEYRING, - __module__ = 'google.cloud.kms_v1.proto.resources_pb2' - , - __doc__ = """A [KeyRing][google.cloud.kms.v1.KeyRing] is a toplevel logical grouping +KeyRing = _reflection.GeneratedProtocolMessageType( + "KeyRing", + (_message.Message,), + dict( + DESCRIPTOR=_KEYRING, + __module__="google.cloud.kms_v1.proto.resources_pb2", + __doc__="""A [KeyRing][google.cloud.kms.v1.KeyRing] is a toplevel logical grouping of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. @@ -656,22 +999,27 @@ Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyRing) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyRing) + ), +) _sym_db.RegisterMessage(KeyRing) -CryptoKey = _reflection.GeneratedProtocolMessageType('CryptoKey', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CRYPTOKEY_LABELSENTRY, - __module__ = 'google.cloud.kms_v1.proto.resources_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKey.LabelsEntry) - )) - , - DESCRIPTOR = _CRYPTOKEY, - __module__ = 'google.cloud.kms_v1.proto.resources_pb2' - , - __doc__ = """A [CryptoKey][google.cloud.kms.v1.CryptoKey] represents a logical key +CryptoKey = _reflection.GeneratedProtocolMessageType( + "CryptoKey", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CRYPTOKEY_LABELSENTRY, + __module__="google.cloud.kms_v1.proto.resources_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKey.LabelsEntry) + ), + ), + DESCRIPTOR=_CRYPTOKEY, + __module__="google.cloud.kms_v1.proto.resources_pb2", + __doc__="""A [CryptoKey][google.cloud.kms.v1.CryptoKey] represents a logical key that can be used for cryptographic operations. A [CryptoKey][google.cloud.kms.v1.CryptoKey] is made up of one or more @@ -745,16 +1093,19 @@ Labels with user-defined metadata. For more information, see `Labeling Keys `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKey) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKey) + ), +) _sym_db.RegisterMessage(CryptoKey) _sym_db.RegisterMessage(CryptoKey.LabelsEntry) -CryptoKeyVersionTemplate = _reflection.GeneratedProtocolMessageType('CryptoKeyVersionTemplate', (_message.Message,), dict( - DESCRIPTOR = _CRYPTOKEYVERSIONTEMPLATE, - __module__ = 'google.cloud.kms_v1.proto.resources_pb2' - , - __doc__ = """A +CryptoKeyVersionTemplate = _reflection.GeneratedProtocolMessageType( + "CryptoKeyVersionTemplate", + (_message.Message,), + dict( + DESCRIPTOR=_CRYPTOKEYVERSIONTEMPLATE, + __module__="google.cloud.kms_v1.proto.resources_pb2", + __doc__="""A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate] specifies the properties to use when creating a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], either @@ -781,15 +1132,18 @@ [ENCRYPT\_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurp ose.ENCRYPT\_DECRYPT]. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKeyVersionTemplate) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKeyVersionTemplate) + ), +) _sym_db.RegisterMessage(CryptoKeyVersionTemplate) -KeyOperationAttestation = _reflection.GeneratedProtocolMessageType('KeyOperationAttestation', (_message.Message,), dict( - DESCRIPTOR = _KEYOPERATIONATTESTATION, - __module__ = 'google.cloud.kms_v1.proto.resources_pb2' - , - __doc__ = """Contains an HSM-generated attestation about a key operation. +KeyOperationAttestation = _reflection.GeneratedProtocolMessageType( + "KeyOperationAttestation", + (_message.Message,), + dict( + DESCRIPTOR=_KEYOPERATIONATTESTATION, + __module__="google.cloud.kms_v1.proto.resources_pb2", + __doc__="""Contains an HSM-generated attestation about a key operation. Attributes: @@ -799,15 +1153,18 @@ Output only. The attestation data provided by the HSM when the key operation was performed. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyOperationAttestation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyOperationAttestation) + ), +) _sym_db.RegisterMessage(KeyOperationAttestation) -CryptoKeyVersion = _reflection.GeneratedProtocolMessageType('CryptoKeyVersion', (_message.Message,), dict( - DESCRIPTOR = _CRYPTOKEYVERSION, - __module__ = 'google.cloud.kms_v1.proto.resources_pb2' - , - __doc__ = """A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an +CryptoKeyVersion = _reflection.GeneratedProtocolMessageType( + "CryptoKeyVersion", + (_message.Message,), + dict( + DESCRIPTOR=_CRYPTOKEYVERSION, + __module__="google.cloud.kms_v1.proto.resources_pb2", + __doc__="""A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the associated key material. An @@ -868,15 +1225,18 @@ YED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionStat e.DESTROYED]. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKeyVersion) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKeyVersion) + ), +) _sym_db.RegisterMessage(CryptoKeyVersion) -PublicKey = _reflection.GeneratedProtocolMessageType('PublicKey', (_message.Message,), dict( - DESCRIPTOR = _PUBLICKEY, - __module__ = 'google.cloud.kms_v1.proto.resources_pb2' - , - __doc__ = """The public key for a given +PublicKey = _reflection.GeneratedProtocolMessageType( + "PublicKey", + (_message.Message,), + dict( + DESCRIPTOR=_PUBLICKEY, + __module__="google.cloud.kms_v1.proto.resources_pb2", + __doc__="""The public key for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. @@ -893,13 +1253,21 @@ The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKey VersionAlgorithm] associated with this key. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.PublicKey) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.PublicKey) + ), +) _sym_db.RegisterMessage(PublicKey) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.google.cloud.kms.v1B\021KmsResourcesProtoP\001Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\027com.google.cloud.kms.v1B\021KmsResourcesProtoP\001Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1" + ), +) _CRYPTOKEY_LABELSENTRY.has_options = True -_CRYPTOKEY_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CRYPTOKEY_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/kms/google/cloud/kms_v1/proto/resources_pb2_grpc.py b/kms/google/cloud/kms_v1/proto/resources_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/kms/google/cloud/kms_v1/proto/resources_pb2_grpc.py +++ b/kms/google/cloud/kms_v1/proto/resources_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/kms/google/cloud/kms_v1/proto/service_pb2.py b/kms/google/cloud/kms_v1/proto/service_pb2.py index b2386a1cc1d84..cb16c2ecac063 100644 --- a/kms/google/cloud/kms_v1/proto/service_pb2.py +++ b/kms/google/cloud/kms_v1/proto/service_pb2.py @@ -2,1179 +2,1810 @@ # source: google/cloud/kms_v1/proto/service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.kms_v1.proto import resources_pb2 as google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2 +from google.cloud.kms_v1.proto import ( + resources_pb2 as google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2, +) from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/kms_v1/proto/service.proto', - package='google.cloud.kms.v1', - syntax='proto3', - serialized_pb=_b('\n\'google/cloud/kms_v1/proto/service.proto\x12\x13google.cloud.kms.v1\x1a\x1cgoogle/api/annotations.proto\x1a)google/cloud/kms_v1/proto/resources.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\"L\n\x13ListKeyRingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xa0\x01\n\x15ListCryptoKeysRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12P\n\x0cversion_view\x18\x04 \x01(\x0e\x32:.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView\"\x9f\x01\n\x1cListCryptoKeyVersionsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12H\n\x04view\x18\x04 \x01(\x0e\x32:.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView\"t\n\x14ListKeyRingsResponse\x12/\n\tkey_rings\x18\x01 \x03(\x0b\x32\x1c.google.cloud.kms.v1.KeyRing\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"z\n\x16ListCryptoKeysResponse\x12\x33\n\x0b\x63rypto_keys\x18\x01 \x03(\x0b\x32\x1e.google.cloud.kms.v1.CryptoKey\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\x90\x01\n\x1dListCryptoKeyVersionsResponse\x12\x42\n\x13\x63rypto_key_versions\x18\x01 \x03(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"!\n\x11GetKeyRingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"#\n\x13GetCryptoKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"*\n\x1aGetCryptoKeyVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"#\n\x13GetPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"k\n\x14\x43reateKeyRingRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0bkey_ring_id\x18\x02 \x01(\t\x12.\n\x08key_ring\x18\x03 \x01(\x0b\x32\x1c.google.cloud.kms.v1.KeyRing\"s\n\x16\x43reateCryptoKeyRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x15\n\rcrypto_key_id\x18\x02 \x01(\t\x12\x32\n\ncrypto_key\x18\x03 \x01(\x0b\x32\x1e.google.cloud.kms.v1.CryptoKey\"r\n\x1d\x43reateCryptoKeyVersionRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x12\x63rypto_key_version\x18\x02 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion\"}\n\x16UpdateCryptoKeyRequest\x12\x32\n\ncrypto_key\x18\x01 \x01(\x0b\x32\x1e.google.cloud.kms.v1.CryptoKey\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x93\x01\n\x1dUpdateCryptoKeyVersionRequest\x12\x41\n\x12\x63rypto_key_version\x18\x01 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"X\n\x0e\x45ncryptRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tplaintext\x18\x02 \x01(\x0c\x12%\n\x1d\x61\x64\x64itional_authenticated_data\x18\x03 \x01(\x0c\"Y\n\x0e\x44\x65\x63ryptRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nciphertext\x18\x02 \x01(\x0c\x12%\n\x1d\x61\x64\x64itional_authenticated_data\x18\x03 \x01(\x0c\"R\n\x15\x41symmetricSignRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x06\x64igest\x18\x03 \x01(\x0b\x32\x1b.google.cloud.kms.v1.Digest\"<\n\x18\x41symmetricDecryptRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nciphertext\x18\x03 \x01(\x0c\"$\n\x0f\x44\x65\x63ryptResponse\x12\x11\n\tplaintext\x18\x01 \x01(\x0c\"3\n\x0f\x45ncryptResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nciphertext\x18\x02 \x01(\x0c\"+\n\x16\x41symmetricSignResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\".\n\x19\x41symmetricDecryptResponse\x12\x11\n\tplaintext\x18\x01 \x01(\x0c\"S\n$UpdateCryptoKeyPrimaryVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\x15\x63rypto_key_version_id\x18\x02 \x01(\t\".\n\x1e\x44\x65stroyCryptoKeyVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\".\n\x1eRestoreCryptoKeyVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"H\n\x06\x44igest\x12\x10\n\x06sha256\x18\x01 \x01(\x0cH\x00\x12\x10\n\x06sha384\x18\x02 \x01(\x0cH\x00\x12\x10\n\x06sha512\x18\x03 \x01(\x0cH\x00\x42\x08\n\x06\x64igest\")\n\x10LocationMetadata\x12\x15\n\rhsm_available\x18\x01 \x01(\x08\x32\xcd\x1c\n\x14KeyManagementService\x12\x99\x01\n\x0cListKeyRings\x12(.google.cloud.kms.v1.ListKeyRingsRequest\x1a).google.cloud.kms.v1.ListKeyRingsResponse\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/keyRings\x12\xac\x01\n\x0eListCryptoKeys\x12*.google.cloud.kms.v1.ListCryptoKeysRequest\x1a+.google.cloud.kms.v1.ListCryptoKeysResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys\x12\xd5\x01\n\x15ListCryptoKeyVersions\x12\x31.google.cloud.kms.v1.ListCryptoKeyVersionsRequest\x1a\x32.google.cloud.kms.v1.ListCryptoKeyVersionsResponse\"U\x82\xd3\xe4\x93\x02O\x12M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions\x12\x88\x01\n\nGetKeyRing\x12&.google.cloud.kms.v1.GetKeyRingRequest\x1a\x1c.google.cloud.kms.v1.KeyRing\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/keyRings/*}\x12\x9b\x01\n\x0cGetCryptoKey\x12(.google.cloud.kms.v1.GetCryptoKeyRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}\x12\xc4\x01\n\x13GetCryptoKeyVersion\x12/.google.cloud.kms.v1.GetCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion\"U\x82\xd3\xe4\x93\x02O\x12M/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}\x12\xb9\x01\n\x0cGetPublicKey\x12(.google.cloud.kms.v1.GetPublicKeyRequest\x1a\x1e.google.cloud.kms.v1.PublicKey\"_\x82\xd3\xe4\x93\x02Y\x12W/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey\x12\x98\x01\n\rCreateKeyRing\x12).google.cloud.kms.v1.CreateKeyRingRequest\x1a\x1c.google.cloud.kms.v1.KeyRing\">\x82\xd3\xe4\x93\x02\x38\",/v1/{parent=projects/*/locations/*}/keyRings:\x08key_ring\x12\xad\x01\n\x0f\x43reateCryptoKey\x12+.google.cloud.kms.v1.CreateCryptoKeyRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey\"M\x82\xd3\xe4\x93\x02G\"9/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\ncrypto_key\x12\xde\x01\n\x16\x43reateCryptoKeyVersion\x12\x32.google.cloud.kms.v1.CreateCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion\"i\x82\xd3\xe4\x93\x02\x63\"M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions:\x12\x63rypto_key_version\x12\xb8\x01\n\x0fUpdateCryptoKey\x12+.google.cloud.kms.v1.UpdateCryptoKeyRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey\"X\x82\xd3\xe4\x93\x02R2D/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:\ncrypto_key\x12\xf1\x01\n\x16UpdateCryptoKeyVersion\x12\x32.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion\"|\x82\xd3\xe4\x93\x02v2`/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:\x12\x63rypto_key_version\x12\xa3\x01\n\x07\x45ncrypt\x12#.google.cloud.kms.v1.EncryptRequest\x1a$.google.cloud.kms.v1.EncryptResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt:\x01*\x12\xa2\x01\n\x07\x44\x65\x63rypt\x12#.google.cloud.kms.v1.DecryptRequest\x1a$.google.cloud.kms.v1.DecryptResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt:\x01*\x12\xd2\x01\n\x0e\x41symmetricSign\x12*.google.cloud.kms.v1.AsymmetricSignRequest\x1a+.google.cloud.kms.v1.AsymmetricSignResponse\"g\x82\xd3\xe4\x93\x02\x61\"\\/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricSign:\x01*\x12\xde\x01\n\x11\x41symmetricDecrypt\x12-.google.cloud.kms.v1.AsymmetricDecryptRequest\x1a..google.cloud.kms.v1.AsymmetricDecryptResponse\"j\x82\xd3\xe4\x93\x02\x64\"_/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt:\x01*\x12\xd5\x01\n\x1dUpdateCryptoKeyPrimaryVersion\x12\x39.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion:\x01*\x12\xd7\x01\n\x17\x44\x65stroyCryptoKeyVersion\x12\x33.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\x01*\x12\xd7\x01\n\x17RestoreCryptoKeyVersion\x12\x33.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore:\x01*B\x8c\x01\n\x17\x63om.google.cloud.kms.v1B\x08KmsProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\xf8\x01\x01\xaa\x02\x13Google.Cloud.Kms.V1\xca\x02\x13Google\\Cloud\\Kms\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - + name="google/cloud/kms_v1/proto/service.proto", + package="google.cloud.kms.v1", + syntax="proto3", + serialized_pb=_b( + '\n\'google/cloud/kms_v1/proto/service.proto\x12\x13google.cloud.kms.v1\x1a\x1cgoogle/api/annotations.proto\x1a)google/cloud/kms_v1/proto/resources.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto"L\n\x13ListKeyRingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\xa0\x01\n\x15ListCryptoKeysRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12P\n\x0cversion_view\x18\x04 \x01(\x0e\x32:.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView"\x9f\x01\n\x1cListCryptoKeyVersionsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12H\n\x04view\x18\x04 \x01(\x0e\x32:.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView"t\n\x14ListKeyRingsResponse\x12/\n\tkey_rings\x18\x01 \x03(\x0b\x32\x1c.google.cloud.kms.v1.KeyRing\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05"z\n\x16ListCryptoKeysResponse\x12\x33\n\x0b\x63rypto_keys\x18\x01 \x03(\x0b\x32\x1e.google.cloud.kms.v1.CryptoKey\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05"\x90\x01\n\x1dListCryptoKeyVersionsResponse\x12\x42\n\x13\x63rypto_key_versions\x18\x01 \x03(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05"!\n\x11GetKeyRingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"#\n\x13GetCryptoKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"*\n\x1aGetCryptoKeyVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"#\n\x13GetPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"k\n\x14\x43reateKeyRingRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0bkey_ring_id\x18\x02 \x01(\t\x12.\n\x08key_ring\x18\x03 \x01(\x0b\x32\x1c.google.cloud.kms.v1.KeyRing"s\n\x16\x43reateCryptoKeyRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x15\n\rcrypto_key_id\x18\x02 \x01(\t\x12\x32\n\ncrypto_key\x18\x03 \x01(\x0b\x32\x1e.google.cloud.kms.v1.CryptoKey"r\n\x1d\x43reateCryptoKeyVersionRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x12\x63rypto_key_version\x18\x02 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion"}\n\x16UpdateCryptoKeyRequest\x12\x32\n\ncrypto_key\x18\x01 \x01(\x0b\x32\x1e.google.cloud.kms.v1.CryptoKey\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\x93\x01\n\x1dUpdateCryptoKeyVersionRequest\x12\x41\n\x12\x63rypto_key_version\x18\x01 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersion\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"X\n\x0e\x45ncryptRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tplaintext\x18\x02 \x01(\x0c\x12%\n\x1d\x61\x64\x64itional_authenticated_data\x18\x03 \x01(\x0c"Y\n\x0e\x44\x65\x63ryptRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nciphertext\x18\x02 \x01(\x0c\x12%\n\x1d\x61\x64\x64itional_authenticated_data\x18\x03 \x01(\x0c"R\n\x15\x41symmetricSignRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x06\x64igest\x18\x03 \x01(\x0b\x32\x1b.google.cloud.kms.v1.Digest"<\n\x18\x41symmetricDecryptRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nciphertext\x18\x03 \x01(\x0c"$\n\x0f\x44\x65\x63ryptResponse\x12\x11\n\tplaintext\x18\x01 \x01(\x0c"3\n\x0f\x45ncryptResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nciphertext\x18\x02 \x01(\x0c"+\n\x16\x41symmetricSignResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c".\n\x19\x41symmetricDecryptResponse\x12\x11\n\tplaintext\x18\x01 \x01(\x0c"S\n$UpdateCryptoKeyPrimaryVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\x15\x63rypto_key_version_id\x18\x02 \x01(\t".\n\x1e\x44\x65stroyCryptoKeyVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t".\n\x1eRestoreCryptoKeyVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"H\n\x06\x44igest\x12\x10\n\x06sha256\x18\x01 \x01(\x0cH\x00\x12\x10\n\x06sha384\x18\x02 \x01(\x0cH\x00\x12\x10\n\x06sha512\x18\x03 \x01(\x0cH\x00\x42\x08\n\x06\x64igest")\n\x10LocationMetadata\x12\x15\n\rhsm_available\x18\x01 \x01(\x08\x32\xcd\x1c\n\x14KeyManagementService\x12\x99\x01\n\x0cListKeyRings\x12(.google.cloud.kms.v1.ListKeyRingsRequest\x1a).google.cloud.kms.v1.ListKeyRingsResponse"4\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/keyRings\x12\xac\x01\n\x0eListCryptoKeys\x12*.google.cloud.kms.v1.ListCryptoKeysRequest\x1a+.google.cloud.kms.v1.ListCryptoKeysResponse"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys\x12\xd5\x01\n\x15ListCryptoKeyVersions\x12\x31.google.cloud.kms.v1.ListCryptoKeyVersionsRequest\x1a\x32.google.cloud.kms.v1.ListCryptoKeyVersionsResponse"U\x82\xd3\xe4\x93\x02O\x12M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions\x12\x88\x01\n\nGetKeyRing\x12&.google.cloud.kms.v1.GetKeyRingRequest\x1a\x1c.google.cloud.kms.v1.KeyRing"4\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/keyRings/*}\x12\x9b\x01\n\x0cGetCryptoKey\x12(.google.cloud.kms.v1.GetCryptoKeyRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}\x12\xc4\x01\n\x13GetCryptoKeyVersion\x12/.google.cloud.kms.v1.GetCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion"U\x82\xd3\xe4\x93\x02O\x12M/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}\x12\xb9\x01\n\x0cGetPublicKey\x12(.google.cloud.kms.v1.GetPublicKeyRequest\x1a\x1e.google.cloud.kms.v1.PublicKey"_\x82\xd3\xe4\x93\x02Y\x12W/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey\x12\x98\x01\n\rCreateKeyRing\x12).google.cloud.kms.v1.CreateKeyRingRequest\x1a\x1c.google.cloud.kms.v1.KeyRing">\x82\xd3\xe4\x93\x02\x38",/v1/{parent=projects/*/locations/*}/keyRings:\x08key_ring\x12\xad\x01\n\x0f\x43reateCryptoKey\x12+.google.cloud.kms.v1.CreateCryptoKeyRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey"M\x82\xd3\xe4\x93\x02G"9/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\ncrypto_key\x12\xde\x01\n\x16\x43reateCryptoKeyVersion\x12\x32.google.cloud.kms.v1.CreateCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion"i\x82\xd3\xe4\x93\x02\x63"M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions:\x12\x63rypto_key_version\x12\xb8\x01\n\x0fUpdateCryptoKey\x12+.google.cloud.kms.v1.UpdateCryptoKeyRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey"X\x82\xd3\xe4\x93\x02R2D/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:\ncrypto_key\x12\xf1\x01\n\x16UpdateCryptoKeyVersion\x12\x32.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion"|\x82\xd3\xe4\x93\x02v2`/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:\x12\x63rypto_key_version\x12\xa3\x01\n\x07\x45ncrypt\x12#.google.cloud.kms.v1.EncryptRequest\x1a$.google.cloud.kms.v1.EncryptResponse"M\x82\xd3\xe4\x93\x02G"B/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt:\x01*\x12\xa2\x01\n\x07\x44\x65\x63rypt\x12#.google.cloud.kms.v1.DecryptRequest\x1a$.google.cloud.kms.v1.DecryptResponse"L\x82\xd3\xe4\x93\x02\x46"A/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt:\x01*\x12\xd2\x01\n\x0e\x41symmetricSign\x12*.google.cloud.kms.v1.AsymmetricSignRequest\x1a+.google.cloud.kms.v1.AsymmetricSignResponse"g\x82\xd3\xe4\x93\x02\x61"\\/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricSign:\x01*\x12\xde\x01\n\x11\x41symmetricDecrypt\x12-.google.cloud.kms.v1.AsymmetricDecryptRequest\x1a..google.cloud.kms.v1.AsymmetricDecryptResponse"j\x82\xd3\xe4\x93\x02\x64"_/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt:\x01*\x12\xd5\x01\n\x1dUpdateCryptoKeyPrimaryVersion\x12\x39.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest\x1a\x1e.google.cloud.kms.v1.CryptoKey"Y\x82\xd3\xe4\x93\x02S"N/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion:\x01*\x12\xd7\x01\n\x17\x44\x65stroyCryptoKeyVersion\x12\x33.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion"`\x82\xd3\xe4\x93\x02Z"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\x01*\x12\xd7\x01\n\x17RestoreCryptoKeyVersion\x12\x33.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest\x1a%.google.cloud.kms.v1.CryptoKeyVersion"`\x82\xd3\xe4\x93\x02Z"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore:\x01*B\x8c\x01\n\x17\x63om.google.cloud.kms.v1B\x08KmsProtoP\x01Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\xf8\x01\x01\xaa\x02\x13Google.Cloud.Kms.V1\xca\x02\x13Google\\Cloud\\Kms\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + ], +) _LISTKEYRINGSREQUEST = _descriptor.Descriptor( - name='ListKeyRingsRequest', - full_name='google.cloud.kms.v1.ListKeyRingsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.kms.v1.ListKeyRingsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.kms.v1.ListKeyRingsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.kms.v1.ListKeyRingsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=233, - serialized_end=309, + name="ListKeyRingsRequest", + full_name="google.cloud.kms.v1.ListKeyRingsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.kms.v1.ListKeyRingsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.kms.v1.ListKeyRingsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.kms.v1.ListKeyRingsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=233, + serialized_end=309, ) _LISTCRYPTOKEYSREQUEST = _descriptor.Descriptor( - name='ListCryptoKeysRequest', - full_name='google.cloud.kms.v1.ListCryptoKeysRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.kms.v1.ListCryptoKeysRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.kms.v1.ListCryptoKeysRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.kms.v1.ListCryptoKeysRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version_view', full_name='google.cloud.kms.v1.ListCryptoKeysRequest.version_view', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=312, - serialized_end=472, + name="ListCryptoKeysRequest", + full_name="google.cloud.kms.v1.ListCryptoKeysRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.kms.v1.ListCryptoKeysRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.kms.v1.ListCryptoKeysRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.kms.v1.ListCryptoKeysRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version_view", + full_name="google.cloud.kms.v1.ListCryptoKeysRequest.version_view", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=312, + serialized_end=472, ) _LISTCRYPTOKEYVERSIONSREQUEST = _descriptor.Descriptor( - name='ListCryptoKeyVersionsRequest', - full_name='google.cloud.kms.v1.ListCryptoKeyVersionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.kms.v1.ListCryptoKeyVersionsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.cloud.kms.v1.ListCryptoKeyVersionsRequest.view', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=475, - serialized_end=634, + name="ListCryptoKeyVersionsRequest", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsRequest.view", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=475, + serialized_end=634, ) _LISTKEYRINGSRESPONSE = _descriptor.Descriptor( - name='ListKeyRingsResponse', - full_name='google.cloud.kms.v1.ListKeyRingsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key_rings', full_name='google.cloud.kms.v1.ListKeyRingsResponse.key_rings', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.kms.v1.ListKeyRingsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_size', full_name='google.cloud.kms.v1.ListKeyRingsResponse.total_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=636, - serialized_end=752, + name="ListKeyRingsResponse", + full_name="google.cloud.kms.v1.ListKeyRingsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key_rings", + full_name="google.cloud.kms.v1.ListKeyRingsResponse.key_rings", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.kms.v1.ListKeyRingsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_size", + full_name="google.cloud.kms.v1.ListKeyRingsResponse.total_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=636, + serialized_end=752, ) _LISTCRYPTOKEYSRESPONSE = _descriptor.Descriptor( - name='ListCryptoKeysResponse', - full_name='google.cloud.kms.v1.ListCryptoKeysResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crypto_keys', full_name='google.cloud.kms.v1.ListCryptoKeysResponse.crypto_keys', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_size', full_name='google.cloud.kms.v1.ListCryptoKeysResponse.total_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=754, - serialized_end=876, + name="ListCryptoKeysResponse", + full_name="google.cloud.kms.v1.ListCryptoKeysResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crypto_keys", + full_name="google.cloud.kms.v1.ListCryptoKeysResponse.crypto_keys", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_size", + full_name="google.cloud.kms.v1.ListCryptoKeysResponse.total_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=754, + serialized_end=876, ) _LISTCRYPTOKEYVERSIONSRESPONSE = _descriptor.Descriptor( - name='ListCryptoKeyVersionsResponse', - full_name='google.cloud.kms.v1.ListCryptoKeyVersionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crypto_key_versions', full_name='google.cloud.kms.v1.ListCryptoKeyVersionsResponse.crypto_key_versions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_size', full_name='google.cloud.kms.v1.ListCryptoKeyVersionsResponse.total_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=879, - serialized_end=1023, + name="ListCryptoKeyVersionsResponse", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crypto_key_versions", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsResponse.crypto_key_versions", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_size", + full_name="google.cloud.kms.v1.ListCryptoKeyVersionsResponse.total_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=879, + serialized_end=1023, ) _GETKEYRINGREQUEST = _descriptor.Descriptor( - name='GetKeyRingRequest', - full_name='google.cloud.kms.v1.GetKeyRingRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.GetKeyRingRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1025, - serialized_end=1058, + name="GetKeyRingRequest", + full_name="google.cloud.kms.v1.GetKeyRingRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.GetKeyRingRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1025, + serialized_end=1058, ) _GETCRYPTOKEYREQUEST = _descriptor.Descriptor( - name='GetCryptoKeyRequest', - full_name='google.cloud.kms.v1.GetCryptoKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.GetCryptoKeyRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1060, - serialized_end=1095, + name="GetCryptoKeyRequest", + full_name="google.cloud.kms.v1.GetCryptoKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.GetCryptoKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1060, + serialized_end=1095, ) _GETCRYPTOKEYVERSIONREQUEST = _descriptor.Descriptor( - name='GetCryptoKeyVersionRequest', - full_name='google.cloud.kms.v1.GetCryptoKeyVersionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.GetCryptoKeyVersionRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1097, - serialized_end=1139, + name="GetCryptoKeyVersionRequest", + full_name="google.cloud.kms.v1.GetCryptoKeyVersionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.GetCryptoKeyVersionRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1097, + serialized_end=1139, ) _GETPUBLICKEYREQUEST = _descriptor.Descriptor( - name='GetPublicKeyRequest', - full_name='google.cloud.kms.v1.GetPublicKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.GetPublicKeyRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1141, - serialized_end=1176, + name="GetPublicKeyRequest", + full_name="google.cloud.kms.v1.GetPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.GetPublicKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1141, + serialized_end=1176, ) _CREATEKEYRINGREQUEST = _descriptor.Descriptor( - name='CreateKeyRingRequest', - full_name='google.cloud.kms.v1.CreateKeyRingRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.kms.v1.CreateKeyRingRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key_ring_id', full_name='google.cloud.kms.v1.CreateKeyRingRequest.key_ring_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key_ring', full_name='google.cloud.kms.v1.CreateKeyRingRequest.key_ring', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1178, - serialized_end=1285, + name="CreateKeyRingRequest", + full_name="google.cloud.kms.v1.CreateKeyRingRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.kms.v1.CreateKeyRingRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="key_ring_id", + full_name="google.cloud.kms.v1.CreateKeyRingRequest.key_ring_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="key_ring", + full_name="google.cloud.kms.v1.CreateKeyRingRequest.key_ring", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1178, + serialized_end=1285, ) _CREATECRYPTOKEYREQUEST = _descriptor.Descriptor( - name='CreateCryptoKeyRequest', - full_name='google.cloud.kms.v1.CreateCryptoKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.kms.v1.CreateCryptoKeyRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_key_id', full_name='google.cloud.kms.v1.CreateCryptoKeyRequest.crypto_key_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_key', full_name='google.cloud.kms.v1.CreateCryptoKeyRequest.crypto_key', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1287, - serialized_end=1402, + name="CreateCryptoKeyRequest", + full_name="google.cloud.kms.v1.CreateCryptoKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.kms.v1.CreateCryptoKeyRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_key_id", + full_name="google.cloud.kms.v1.CreateCryptoKeyRequest.crypto_key_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_key", + full_name="google.cloud.kms.v1.CreateCryptoKeyRequest.crypto_key", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1287, + serialized_end=1402, ) _CREATECRYPTOKEYVERSIONREQUEST = _descriptor.Descriptor( - name='CreateCryptoKeyVersionRequest', - full_name='google.cloud.kms.v1.CreateCryptoKeyVersionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.kms.v1.CreateCryptoKeyVersionRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_key_version', full_name='google.cloud.kms.v1.CreateCryptoKeyVersionRequest.crypto_key_version', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1404, - serialized_end=1518, + name="CreateCryptoKeyVersionRequest", + full_name="google.cloud.kms.v1.CreateCryptoKeyVersionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.kms.v1.CreateCryptoKeyVersionRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_key_version", + full_name="google.cloud.kms.v1.CreateCryptoKeyVersionRequest.crypto_key_version", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1404, + serialized_end=1518, ) _UPDATECRYPTOKEYREQUEST = _descriptor.Descriptor( - name='UpdateCryptoKeyRequest', - full_name='google.cloud.kms.v1.UpdateCryptoKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crypto_key', full_name='google.cloud.kms.v1.UpdateCryptoKeyRequest.crypto_key', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.kms.v1.UpdateCryptoKeyRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1520, - serialized_end=1645, + name="UpdateCryptoKeyRequest", + full_name="google.cloud.kms.v1.UpdateCryptoKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crypto_key", + full_name="google.cloud.kms.v1.UpdateCryptoKeyRequest.crypto_key", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.kms.v1.UpdateCryptoKeyRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1520, + serialized_end=1645, ) _UPDATECRYPTOKEYVERSIONREQUEST = _descriptor.Descriptor( - name='UpdateCryptoKeyVersionRequest', - full_name='google.cloud.kms.v1.UpdateCryptoKeyVersionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crypto_key_version', full_name='google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.crypto_key_version', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1648, - serialized_end=1795, + name="UpdateCryptoKeyVersionRequest", + full_name="google.cloud.kms.v1.UpdateCryptoKeyVersionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crypto_key_version", + full_name="google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.crypto_key_version", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1648, + serialized_end=1795, ) _ENCRYPTREQUEST = _descriptor.Descriptor( - name='EncryptRequest', - full_name='google.cloud.kms.v1.EncryptRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.EncryptRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='plaintext', full_name='google.cloud.kms.v1.EncryptRequest.plaintext', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='additional_authenticated_data', full_name='google.cloud.kms.v1.EncryptRequest.additional_authenticated_data', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1797, - serialized_end=1885, + name="EncryptRequest", + full_name="google.cloud.kms.v1.EncryptRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.EncryptRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="plaintext", + full_name="google.cloud.kms.v1.EncryptRequest.plaintext", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="additional_authenticated_data", + full_name="google.cloud.kms.v1.EncryptRequest.additional_authenticated_data", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1797, + serialized_end=1885, ) _DECRYPTREQUEST = _descriptor.Descriptor( - name='DecryptRequest', - full_name='google.cloud.kms.v1.DecryptRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.DecryptRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ciphertext', full_name='google.cloud.kms.v1.DecryptRequest.ciphertext', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='additional_authenticated_data', full_name='google.cloud.kms.v1.DecryptRequest.additional_authenticated_data', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1887, - serialized_end=1976, + name="DecryptRequest", + full_name="google.cloud.kms.v1.DecryptRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.DecryptRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ciphertext", + full_name="google.cloud.kms.v1.DecryptRequest.ciphertext", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="additional_authenticated_data", + full_name="google.cloud.kms.v1.DecryptRequest.additional_authenticated_data", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1887, + serialized_end=1976, ) _ASYMMETRICSIGNREQUEST = _descriptor.Descriptor( - name='AsymmetricSignRequest', - full_name='google.cloud.kms.v1.AsymmetricSignRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.AsymmetricSignRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='digest', full_name='google.cloud.kms.v1.AsymmetricSignRequest.digest', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1978, - serialized_end=2060, + name="AsymmetricSignRequest", + full_name="google.cloud.kms.v1.AsymmetricSignRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.AsymmetricSignRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="digest", + full_name="google.cloud.kms.v1.AsymmetricSignRequest.digest", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1978, + serialized_end=2060, ) _ASYMMETRICDECRYPTREQUEST = _descriptor.Descriptor( - name='AsymmetricDecryptRequest', - full_name='google.cloud.kms.v1.AsymmetricDecryptRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.AsymmetricDecryptRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ciphertext', full_name='google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext', index=1, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2062, - serialized_end=2122, + name="AsymmetricDecryptRequest", + full_name="google.cloud.kms.v1.AsymmetricDecryptRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.AsymmetricDecryptRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ciphertext", + full_name="google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext", + index=1, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2062, + serialized_end=2122, ) _DECRYPTRESPONSE = _descriptor.Descriptor( - name='DecryptResponse', - full_name='google.cloud.kms.v1.DecryptResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='plaintext', full_name='google.cloud.kms.v1.DecryptResponse.plaintext', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2124, - serialized_end=2160, + name="DecryptResponse", + full_name="google.cloud.kms.v1.DecryptResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="plaintext", + full_name="google.cloud.kms.v1.DecryptResponse.plaintext", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2124, + serialized_end=2160, ) _ENCRYPTRESPONSE = _descriptor.Descriptor( - name='EncryptResponse', - full_name='google.cloud.kms.v1.EncryptResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.EncryptResponse.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ciphertext', full_name='google.cloud.kms.v1.EncryptResponse.ciphertext', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2162, - serialized_end=2213, + name="EncryptResponse", + full_name="google.cloud.kms.v1.EncryptResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.EncryptResponse.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ciphertext", + full_name="google.cloud.kms.v1.EncryptResponse.ciphertext", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2162, + serialized_end=2213, ) _ASYMMETRICSIGNRESPONSE = _descriptor.Descriptor( - name='AsymmetricSignResponse', - full_name='google.cloud.kms.v1.AsymmetricSignResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='signature', full_name='google.cloud.kms.v1.AsymmetricSignResponse.signature', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2215, - serialized_end=2258, + name="AsymmetricSignResponse", + full_name="google.cloud.kms.v1.AsymmetricSignResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="signature", + full_name="google.cloud.kms.v1.AsymmetricSignResponse.signature", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2215, + serialized_end=2258, ) _ASYMMETRICDECRYPTRESPONSE = _descriptor.Descriptor( - name='AsymmetricDecryptResponse', - full_name='google.cloud.kms.v1.AsymmetricDecryptResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='plaintext', full_name='google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2260, - serialized_end=2306, + name="AsymmetricDecryptResponse", + full_name="google.cloud.kms.v1.AsymmetricDecryptResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="plaintext", + full_name="google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2260, + serialized_end=2306, ) _UPDATECRYPTOKEYPRIMARYVERSIONREQUEST = _descriptor.Descriptor( - name='UpdateCryptoKeyPrimaryVersionRequest', - full_name='google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crypto_key_version_id', full_name='google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.crypto_key_version_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2308, - serialized_end=2391, + name="UpdateCryptoKeyPrimaryVersionRequest", + full_name="google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crypto_key_version_id", + full_name="google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.crypto_key_version_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2308, + serialized_end=2391, ) _DESTROYCRYPTOKEYVERSIONREQUEST = _descriptor.Descriptor( - name='DestroyCryptoKeyVersionRequest', - full_name='google.cloud.kms.v1.DestroyCryptoKeyVersionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2393, - serialized_end=2439, + name="DestroyCryptoKeyVersionRequest", + full_name="google.cloud.kms.v1.DestroyCryptoKeyVersionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2393, + serialized_end=2439, ) _RESTORECRYPTOKEYVERSIONREQUEST = _descriptor.Descriptor( - name='RestoreCryptoKeyVersionRequest', - full_name='google.cloud.kms.v1.RestoreCryptoKeyVersionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2441, - serialized_end=2487, + name="RestoreCryptoKeyVersionRequest", + full_name="google.cloud.kms.v1.RestoreCryptoKeyVersionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2441, + serialized_end=2487, ) _DIGEST = _descriptor.Descriptor( - name='Digest', - full_name='google.cloud.kms.v1.Digest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sha256', full_name='google.cloud.kms.v1.Digest.sha256', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sha384', full_name='google.cloud.kms.v1.Digest.sha384', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sha512', full_name='google.cloud.kms.v1.Digest.sha512', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='digest', full_name='google.cloud.kms.v1.Digest.digest', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2489, - serialized_end=2561, + name="Digest", + full_name="google.cloud.kms.v1.Digest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sha256", + full_name="google.cloud.kms.v1.Digest.sha256", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sha384", + full_name="google.cloud.kms.v1.Digest.sha384", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sha512", + full_name="google.cloud.kms.v1.Digest.sha512", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="digest", + full_name="google.cloud.kms.v1.Digest.digest", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2489, + serialized_end=2561, ) _LOCATIONMETADATA = _descriptor.Descriptor( - name='LocationMetadata', - full_name='google.cloud.kms.v1.LocationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hsm_available', full_name='google.cloud.kms.v1.LocationMetadata.hsm_available', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2563, - serialized_end=2604, -) - -_LISTCRYPTOKEYSREQUEST.fields_by_name['version_view'].enum_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW -_LISTCRYPTOKEYVERSIONSREQUEST.fields_by_name['view'].enum_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW -_LISTKEYRINGSRESPONSE.fields_by_name['key_rings'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING -_LISTCRYPTOKEYSRESPONSE.fields_by_name['crypto_keys'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY -_LISTCRYPTOKEYVERSIONSRESPONSE.fields_by_name['crypto_key_versions'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION -_CREATEKEYRINGREQUEST.fields_by_name['key_ring'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING -_CREATECRYPTOKEYREQUEST.fields_by_name['crypto_key'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY -_CREATECRYPTOKEYVERSIONREQUEST.fields_by_name['crypto_key_version'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION -_UPDATECRYPTOKEYREQUEST.fields_by_name['crypto_key'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY -_UPDATECRYPTOKEYREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATECRYPTOKEYVERSIONREQUEST.fields_by_name['crypto_key_version'].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION -_UPDATECRYPTOKEYVERSIONREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_ASYMMETRICSIGNREQUEST.fields_by_name['digest'].message_type = _DIGEST -_DIGEST.oneofs_by_name['digest'].fields.append( - _DIGEST.fields_by_name['sha256']) -_DIGEST.fields_by_name['sha256'].containing_oneof = _DIGEST.oneofs_by_name['digest'] -_DIGEST.oneofs_by_name['digest'].fields.append( - _DIGEST.fields_by_name['sha384']) -_DIGEST.fields_by_name['sha384'].containing_oneof = _DIGEST.oneofs_by_name['digest'] -_DIGEST.oneofs_by_name['digest'].fields.append( - _DIGEST.fields_by_name['sha512']) -_DIGEST.fields_by_name['sha512'].containing_oneof = _DIGEST.oneofs_by_name['digest'] -DESCRIPTOR.message_types_by_name['ListKeyRingsRequest'] = _LISTKEYRINGSREQUEST -DESCRIPTOR.message_types_by_name['ListCryptoKeysRequest'] = _LISTCRYPTOKEYSREQUEST -DESCRIPTOR.message_types_by_name['ListCryptoKeyVersionsRequest'] = _LISTCRYPTOKEYVERSIONSREQUEST -DESCRIPTOR.message_types_by_name['ListKeyRingsResponse'] = _LISTKEYRINGSRESPONSE -DESCRIPTOR.message_types_by_name['ListCryptoKeysResponse'] = _LISTCRYPTOKEYSRESPONSE -DESCRIPTOR.message_types_by_name['ListCryptoKeyVersionsResponse'] = _LISTCRYPTOKEYVERSIONSRESPONSE -DESCRIPTOR.message_types_by_name['GetKeyRingRequest'] = _GETKEYRINGREQUEST -DESCRIPTOR.message_types_by_name['GetCryptoKeyRequest'] = _GETCRYPTOKEYREQUEST -DESCRIPTOR.message_types_by_name['GetCryptoKeyVersionRequest'] = _GETCRYPTOKEYVERSIONREQUEST -DESCRIPTOR.message_types_by_name['GetPublicKeyRequest'] = _GETPUBLICKEYREQUEST -DESCRIPTOR.message_types_by_name['CreateKeyRingRequest'] = _CREATEKEYRINGREQUEST -DESCRIPTOR.message_types_by_name['CreateCryptoKeyRequest'] = _CREATECRYPTOKEYREQUEST -DESCRIPTOR.message_types_by_name['CreateCryptoKeyVersionRequest'] = _CREATECRYPTOKEYVERSIONREQUEST -DESCRIPTOR.message_types_by_name['UpdateCryptoKeyRequest'] = _UPDATECRYPTOKEYREQUEST -DESCRIPTOR.message_types_by_name['UpdateCryptoKeyVersionRequest'] = _UPDATECRYPTOKEYVERSIONREQUEST -DESCRIPTOR.message_types_by_name['EncryptRequest'] = _ENCRYPTREQUEST -DESCRIPTOR.message_types_by_name['DecryptRequest'] = _DECRYPTREQUEST -DESCRIPTOR.message_types_by_name['AsymmetricSignRequest'] = _ASYMMETRICSIGNREQUEST -DESCRIPTOR.message_types_by_name['AsymmetricDecryptRequest'] = _ASYMMETRICDECRYPTREQUEST -DESCRIPTOR.message_types_by_name['DecryptResponse'] = _DECRYPTRESPONSE -DESCRIPTOR.message_types_by_name['EncryptResponse'] = _ENCRYPTRESPONSE -DESCRIPTOR.message_types_by_name['AsymmetricSignResponse'] = _ASYMMETRICSIGNRESPONSE -DESCRIPTOR.message_types_by_name['AsymmetricDecryptResponse'] = _ASYMMETRICDECRYPTRESPONSE -DESCRIPTOR.message_types_by_name['UpdateCryptoKeyPrimaryVersionRequest'] = _UPDATECRYPTOKEYPRIMARYVERSIONREQUEST -DESCRIPTOR.message_types_by_name['DestroyCryptoKeyVersionRequest'] = _DESTROYCRYPTOKEYVERSIONREQUEST -DESCRIPTOR.message_types_by_name['RestoreCryptoKeyVersionRequest'] = _RESTORECRYPTOKEYVERSIONREQUEST -DESCRIPTOR.message_types_by_name['Digest'] = _DIGEST -DESCRIPTOR.message_types_by_name['LocationMetadata'] = _LOCATIONMETADATA + name="LocationMetadata", + full_name="google.cloud.kms.v1.LocationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="hsm_available", + full_name="google.cloud.kms.v1.LocationMetadata.hsm_available", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2563, + serialized_end=2604, +) + +_LISTCRYPTOKEYSREQUEST.fields_by_name[ + "version_view" +].enum_type = ( + google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW +) +_LISTCRYPTOKEYVERSIONSREQUEST.fields_by_name[ + "view" +].enum_type = ( + google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION_CRYPTOKEYVERSIONVIEW +) +_LISTKEYRINGSRESPONSE.fields_by_name[ + "key_rings" +].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING +_LISTCRYPTOKEYSRESPONSE.fields_by_name[ + "crypto_keys" +].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY +_LISTCRYPTOKEYVERSIONSRESPONSE.fields_by_name[ + "crypto_key_versions" +].message_type = ( + google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION +) +_CREATEKEYRINGREQUEST.fields_by_name[ + "key_ring" +].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING +_CREATECRYPTOKEYREQUEST.fields_by_name[ + "crypto_key" +].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY +_CREATECRYPTOKEYVERSIONREQUEST.fields_by_name[ + "crypto_key_version" +].message_type = ( + google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION +) +_UPDATECRYPTOKEYREQUEST.fields_by_name[ + "crypto_key" +].message_type = google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY +_UPDATECRYPTOKEYREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATECRYPTOKEYVERSIONREQUEST.fields_by_name[ + "crypto_key_version" +].message_type = ( + google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION +) +_UPDATECRYPTOKEYVERSIONREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ASYMMETRICSIGNREQUEST.fields_by_name["digest"].message_type = _DIGEST +_DIGEST.oneofs_by_name["digest"].fields.append(_DIGEST.fields_by_name["sha256"]) +_DIGEST.fields_by_name["sha256"].containing_oneof = _DIGEST.oneofs_by_name["digest"] +_DIGEST.oneofs_by_name["digest"].fields.append(_DIGEST.fields_by_name["sha384"]) +_DIGEST.fields_by_name["sha384"].containing_oneof = _DIGEST.oneofs_by_name["digest"] +_DIGEST.oneofs_by_name["digest"].fields.append(_DIGEST.fields_by_name["sha512"]) +_DIGEST.fields_by_name["sha512"].containing_oneof = _DIGEST.oneofs_by_name["digest"] +DESCRIPTOR.message_types_by_name["ListKeyRingsRequest"] = _LISTKEYRINGSREQUEST +DESCRIPTOR.message_types_by_name["ListCryptoKeysRequest"] = _LISTCRYPTOKEYSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListCryptoKeyVersionsRequest" +] = _LISTCRYPTOKEYVERSIONSREQUEST +DESCRIPTOR.message_types_by_name["ListKeyRingsResponse"] = _LISTKEYRINGSRESPONSE +DESCRIPTOR.message_types_by_name["ListCryptoKeysResponse"] = _LISTCRYPTOKEYSRESPONSE +DESCRIPTOR.message_types_by_name[ + "ListCryptoKeyVersionsResponse" +] = _LISTCRYPTOKEYVERSIONSRESPONSE +DESCRIPTOR.message_types_by_name["GetKeyRingRequest"] = _GETKEYRINGREQUEST +DESCRIPTOR.message_types_by_name["GetCryptoKeyRequest"] = _GETCRYPTOKEYREQUEST +DESCRIPTOR.message_types_by_name[ + "GetCryptoKeyVersionRequest" +] = _GETCRYPTOKEYVERSIONREQUEST +DESCRIPTOR.message_types_by_name["GetPublicKeyRequest"] = _GETPUBLICKEYREQUEST +DESCRIPTOR.message_types_by_name["CreateKeyRingRequest"] = _CREATEKEYRINGREQUEST +DESCRIPTOR.message_types_by_name["CreateCryptoKeyRequest"] = _CREATECRYPTOKEYREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateCryptoKeyVersionRequest" +] = _CREATECRYPTOKEYVERSIONREQUEST +DESCRIPTOR.message_types_by_name["UpdateCryptoKeyRequest"] = _UPDATECRYPTOKEYREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateCryptoKeyVersionRequest" +] = _UPDATECRYPTOKEYVERSIONREQUEST +DESCRIPTOR.message_types_by_name["EncryptRequest"] = _ENCRYPTREQUEST +DESCRIPTOR.message_types_by_name["DecryptRequest"] = _DECRYPTREQUEST +DESCRIPTOR.message_types_by_name["AsymmetricSignRequest"] = _ASYMMETRICSIGNREQUEST +DESCRIPTOR.message_types_by_name["AsymmetricDecryptRequest"] = _ASYMMETRICDECRYPTREQUEST +DESCRIPTOR.message_types_by_name["DecryptResponse"] = _DECRYPTRESPONSE +DESCRIPTOR.message_types_by_name["EncryptResponse"] = _ENCRYPTRESPONSE +DESCRIPTOR.message_types_by_name["AsymmetricSignResponse"] = _ASYMMETRICSIGNRESPONSE +DESCRIPTOR.message_types_by_name[ + "AsymmetricDecryptResponse" +] = _ASYMMETRICDECRYPTRESPONSE +DESCRIPTOR.message_types_by_name[ + "UpdateCryptoKeyPrimaryVersionRequest" +] = _UPDATECRYPTOKEYPRIMARYVERSIONREQUEST +DESCRIPTOR.message_types_by_name[ + "DestroyCryptoKeyVersionRequest" +] = _DESTROYCRYPTOKEYVERSIONREQUEST +DESCRIPTOR.message_types_by_name[ + "RestoreCryptoKeyVersionRequest" +] = _RESTORECRYPTOKEYVERSIONREQUEST +DESCRIPTOR.message_types_by_name["Digest"] = _DIGEST +DESCRIPTOR.message_types_by_name["LocationMetadata"] = _LOCATIONMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListKeyRingsRequest = _reflection.GeneratedProtocolMessageType('ListKeyRingsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTKEYRINGSREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +ListKeyRingsRequest = _reflection.GeneratedProtocolMessageType( + "ListKeyRingsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTKEYRINGSREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings]. @@ -1196,15 +1827,18 @@ esponse.next\_page\_token][google.cloud.kms.v1.ListKeyRingsRes ponse.next\_page\_token]. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListKeyRingsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListKeyRingsRequest) + ), +) _sym_db.RegisterMessage(ListKeyRingsRequest) -ListCryptoKeysRequest = _reflection.GeneratedProtocolMessageType('ListCryptoKeysRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCRYPTOKEYSREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +ListCryptoKeysRequest = _reflection.GeneratedProtocolMessageType( + "ListCryptoKeysRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCRYPTOKEYSREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys]. @@ -1228,15 +1862,18 @@ version_view: The fields of the primary version to include in the response. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeysRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeysRequest) + ), +) _sym_db.RegisterMessage(ListCryptoKeysRequest) -ListCryptoKeyVersionsRequest = _reflection.GeneratedProtocolMessageType('ListCryptoKeyVersionsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCRYPTOKEYVERSIONSREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +ListCryptoKeyVersionsRequest = _reflection.GeneratedProtocolMessageType( + "ListCryptoKeyVersionsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCRYPTOKEYVERSIONSREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions]. @@ -1261,15 +1898,18 @@ view: The fields to include in the response. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeyVersionsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeyVersionsRequest) + ), +) _sym_db.RegisterMessage(ListCryptoKeyVersionsRequest) -ListKeyRingsResponse = _reflection.GeneratedProtocolMessageType('ListKeyRingsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTKEYRINGSRESPONSE, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Response message for +ListKeyRingsResponse = _reflection.GeneratedProtocolMessageType( + "ListKeyRingsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTKEYRINGSRESPONSE, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Response message for [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings]. @@ -1284,15 +1924,18 @@ The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched the query. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListKeyRingsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListKeyRingsResponse) + ), +) _sym_db.RegisterMessage(ListKeyRingsResponse) -ListCryptoKeysResponse = _reflection.GeneratedProtocolMessageType('ListCryptoKeysResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCRYPTOKEYSRESPONSE, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Response message for +ListCryptoKeysResponse = _reflection.GeneratedProtocolMessageType( + "ListCryptoKeysResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCRYPTOKEYSRESPONSE, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Response message for [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys]. @@ -1309,15 +1952,18 @@ [CryptoKeys][google.cloud.kms.v1.CryptoKey] that matched the query. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeysResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeysResponse) + ), +) _sym_db.RegisterMessage(ListCryptoKeysResponse) -ListCryptoKeyVersionsResponse = _reflection.GeneratedProtocolMessageType('ListCryptoKeyVersionsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCRYPTOKEYVERSIONSRESPONSE, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Response message for +ListCryptoKeyVersionsResponse = _reflection.GeneratedProtocolMessageType( + "ListCryptoKeyVersionsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCRYPTOKEYVERSIONSRESPONSE, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Response message for [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions]. @@ -1335,15 +1981,18 @@ [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the query. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeyVersionsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeyVersionsResponse) + ), +) _sym_db.RegisterMessage(ListCryptoKeyVersionsResponse) -GetKeyRingRequest = _reflection.GeneratedProtocolMessageType('GetKeyRingRequest', (_message.Message,), dict( - DESCRIPTOR = _GETKEYRINGREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +GetKeyRingRequest = _reflection.GeneratedProtocolMessageType( + "GetKeyRingRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETKEYRINGREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.GetKeyRing][google.cloud.kms.v1.KeyManagementService.GetKeyRing]. @@ -1352,15 +2001,18 @@ The [name][google.cloud.kms.v1.KeyRing.name] of the [KeyRing][google.cloud.kms.v1.KeyRing] to get. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetKeyRingRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetKeyRingRequest) + ), +) _sym_db.RegisterMessage(GetKeyRingRequest) -GetCryptoKeyRequest = _reflection.GeneratedProtocolMessageType('GetCryptoKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCRYPTOKEYREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +GetCryptoKeyRequest = _reflection.GeneratedProtocolMessageType( + "GetCryptoKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETCRYPTOKEYREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.GetCryptoKey][google.cloud.kms.v1.KeyManagementService.GetCryptoKey]. @@ -1369,15 +2021,18 @@ The [name][google.cloud.kms.v1.CryptoKey.name] of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to get. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetCryptoKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetCryptoKeyRequest) + ), +) _sym_db.RegisterMessage(GetCryptoKeyRequest) -GetCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType('GetCryptoKeyVersionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCRYPTOKEYVERSIONREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +GetCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType( + "GetCryptoKeyVersionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETCRYPTOKEYVERSIONREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.GetCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion]. @@ -1387,15 +2042,18 @@ [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetCryptoKeyVersionRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetCryptoKeyVersionRequest) + ), +) _sym_db.RegisterMessage(GetCryptoKeyVersionRequest) -GetPublicKeyRequest = _reflection.GeneratedProtocolMessageType('GetPublicKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _GETPUBLICKEYREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +GetPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "GetPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETPUBLICKEYREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. @@ -1405,15 +2063,18 @@ [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetPublicKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetPublicKeyRequest) + ), +) _sym_db.RegisterMessage(GetPublicKeyRequest) -CreateKeyRingRequest = _reflection.GeneratedProtocolMessageType('CreateKeyRingRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEKEYRINGREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +CreateKeyRingRequest = _reflection.GeneratedProtocolMessageType( + "CreateKeyRingRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEKEYRINGREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.CreateKeyRing][google.cloud.kms.v1.KeyManagementService.CreateKeyRing]. @@ -1429,15 +2090,18 @@ A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateKeyRingRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateKeyRingRequest) + ), +) _sym_db.RegisterMessage(CreateKeyRingRequest) -CreateCryptoKeyRequest = _reflection.GeneratedProtocolMessageType('CreateCryptoKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECRYPTOKEYREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +CreateCryptoKeyRequest = _reflection.GeneratedProtocolMessageType( + "CreateCryptoKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATECRYPTOKEYREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey]. @@ -1453,15 +2117,18 @@ A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateCryptoKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateCryptoKeyRequest) + ), +) _sym_db.RegisterMessage(CreateCryptoKeyRequest) -CreateCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType('CreateCryptoKeyVersionRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECRYPTOKEYVERSIONREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +CreateCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType( + "CreateCryptoKeyVersionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATECRYPTOKEYVERSIONREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion]. @@ -1474,15 +2141,18 @@ A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with initial field values. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateCryptoKeyVersionRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateCryptoKeyVersionRequest) + ), +) _sym_db.RegisterMessage(CreateCryptoKeyVersionRequest) -UpdateCryptoKeyRequest = _reflection.GeneratedProtocolMessageType('UpdateCryptoKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATECRYPTOKEYREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +UpdateCryptoKeyRequest = _reflection.GeneratedProtocolMessageType( + "UpdateCryptoKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATECRYPTOKEYREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.UpdateCryptoKey][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey]. @@ -1493,15 +2163,18 @@ update_mask: Required list of fields to be updated in this request. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyRequest) + ), +) _sym_db.RegisterMessage(UpdateCryptoKeyRequest) -UpdateCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType('UpdateCryptoKeyVersionRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATECRYPTOKEYVERSIONREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +UpdateCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType( + "UpdateCryptoKeyVersionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATECRYPTOKEYVERSIONREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.UpdateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion]. @@ -1512,15 +2185,18 @@ update_mask: Required list of fields to be updated in this request. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) + ), +) _sym_db.RegisterMessage(UpdateCryptoKeyVersionRequest) -EncryptRequest = _reflection.GeneratedProtocolMessageType('EncryptRequest', (_message.Message,), dict( - DESCRIPTOR = _ENCRYPTREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +EncryptRequest = _reflection.GeneratedProtocolMessageType( + "EncryptRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ENCRYPTREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. @@ -1558,15 +2234,18 @@ additional\_authenticated\_data fields must be no larger than 8KiB. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EncryptRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EncryptRequest) + ), +) _sym_db.RegisterMessage(EncryptRequest) -DecryptRequest = _reflection.GeneratedProtocolMessageType('DecryptRequest', (_message.Message,), dict( - DESCRIPTOR = _DECRYPTREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +DecryptRequest = _reflection.GeneratedProtocolMessageType( + "DecryptRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DECRYPTREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. @@ -1584,15 +2263,18 @@ [EncryptRequest.additional\_authenticated\_data][google.cloud. kms.v1.EncryptRequest.additional\_authenticated\_data]. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DecryptRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DecryptRequest) + ), +) _sym_db.RegisterMessage(DecryptRequest) -AsymmetricSignRequest = _reflection.GeneratedProtocolMessageType('AsymmetricSignRequest', (_message.Message,), dict( - DESCRIPTOR = _ASYMMETRICSIGNREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +AsymmetricSignRequest = _reflection.GeneratedProtocolMessageType( + "AsymmetricSignRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ASYMMETRICSIGNREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign]. @@ -1607,15 +2289,18 @@ key version's [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm]. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignRequest) + ), +) _sym_db.RegisterMessage(AsymmetricSignRequest) -AsymmetricDecryptRequest = _reflection.GeneratedProtocolMessageType('AsymmetricDecryptRequest', (_message.Message,), dict( - DESCRIPTOR = _ASYMMETRICDECRYPTREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +AsymmetricDecryptRequest = _reflection.GeneratedProtocolMessageType( + "AsymmetricDecryptRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ASYMMETRICDECRYPTREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt]. @@ -1629,15 +2314,18 @@ [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using OAEP. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptRequest) + ), +) _sym_db.RegisterMessage(AsymmetricDecryptRequest) -DecryptResponse = _reflection.GeneratedProtocolMessageType('DecryptResponse', (_message.Message,), dict( - DESCRIPTOR = _DECRYPTRESPONSE, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Response message for +DecryptResponse = _reflection.GeneratedProtocolMessageType( + "DecryptResponse", + (_message.Message,), + dict( + DESCRIPTOR=_DECRYPTRESPONSE, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Response message for [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. @@ -1646,15 +2334,18 @@ The decrypted data originally supplied in [EncryptRequest.plai ntext][google.cloud.kms.v1.EncryptRequest.plaintext]. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DecryptResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DecryptResponse) + ), +) _sym_db.RegisterMessage(DecryptResponse) -EncryptResponse = _reflection.GeneratedProtocolMessageType('EncryptResponse', (_message.Message,), dict( - DESCRIPTOR = _ENCRYPTRESPONSE, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Response message for +EncryptResponse = _reflection.GeneratedProtocolMessageType( + "EncryptResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ENCRYPTRESPONSE, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Response message for [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. @@ -1666,15 +2357,18 @@ ciphertext: The encrypted data. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EncryptResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EncryptResponse) + ), +) _sym_db.RegisterMessage(EncryptResponse) -AsymmetricSignResponse = _reflection.GeneratedProtocolMessageType('AsymmetricSignResponse', (_message.Message,), dict( - DESCRIPTOR = _ASYMMETRICSIGNRESPONSE, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Response message for +AsymmetricSignResponse = _reflection.GeneratedProtocolMessageType( + "AsymmetricSignResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ASYMMETRICSIGNRESPONSE, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Response message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign]. @@ -1682,15 +2376,18 @@ signature: The created signature. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignResponse) + ), +) _sym_db.RegisterMessage(AsymmetricSignResponse) -AsymmetricDecryptResponse = _reflection.GeneratedProtocolMessageType('AsymmetricDecryptResponse', (_message.Message,), dict( - DESCRIPTOR = _ASYMMETRICDECRYPTRESPONSE, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Response message for +AsymmetricDecryptResponse = _reflection.GeneratedProtocolMessageType( + "AsymmetricDecryptResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ASYMMETRICDECRYPTRESPONSE, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Response message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt]. @@ -1699,15 +2396,18 @@ The decrypted data originally encrypted with the matching public key. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptResponse) + ), +) _sym_db.RegisterMessage(AsymmetricDecryptResponse) -UpdateCryptoKeyPrimaryVersionRequest = _reflection.GeneratedProtocolMessageType('UpdateCryptoKeyPrimaryVersionRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATECRYPTOKEYPRIMARYVERSIONREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +UpdateCryptoKeyPrimaryVersionRequest = _reflection.GeneratedProtocolMessageType( + "UpdateCryptoKeyPrimaryVersionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATECRYPTOKEYPRIMARYVERSIONREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. @@ -1720,15 +2420,18 @@ [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) + ), +) _sym_db.RegisterMessage(UpdateCryptoKeyPrimaryVersionRequest) -DestroyCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType('DestroyCryptoKeyVersionRequest', (_message.Message,), dict( - DESCRIPTOR = _DESTROYCRYPTOKEYVERSIONREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +DestroyCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType( + "DestroyCryptoKeyVersionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DESTROYCRYPTOKEYVERSIONREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion]. @@ -1738,15 +2441,18 @@ [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) + ), +) _sym_db.RegisterMessage(DestroyCryptoKeyVersionRequest) -RestoreCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType('RestoreCryptoKeyVersionRequest', (_message.Message,), dict( - DESCRIPTOR = _RESTORECRYPTOKEYVERSIONREQUEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Request message for +RestoreCryptoKeyVersionRequest = _reflection.GeneratedProtocolMessageType( + "RestoreCryptoKeyVersionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RESTORECRYPTOKEYVERSIONREQUEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Request message for [KeyManagementService.RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion]. @@ -1756,15 +2462,18 @@ [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) + ), +) _sym_db.RegisterMessage(RestoreCryptoKeyVersionRequest) -Digest = _reflection.GeneratedProtocolMessageType('Digest', (_message.Message,), dict( - DESCRIPTOR = _DIGEST, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """A [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message +Digest = _reflection.GeneratedProtocolMessageType( + "Digest", + (_message.Message,), + dict( + DESCRIPTOR=_DIGEST, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""A [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message digest. @@ -1778,15 +2487,18 @@ sha512: A message digest produced with the SHA-512 algorithm. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.Digest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.Digest) + ), +) _sym_db.RegisterMessage(Digest) -LocationMetadata = _reflection.GeneratedProtocolMessageType('LocationMetadata', (_message.Message,), dict( - DESCRIPTOR = _LOCATIONMETADATA, - __module__ = 'google.cloud.kms_v1.proto.service_pb2' - , - __doc__ = """Cloud KMS metadata for the given +LocationMetadata = _reflection.GeneratedProtocolMessageType( + "LocationMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_LOCATIONMETADATA, + __module__="google.cloud.kms_v1.proto.service_pb2", + __doc__="""Cloud KMS metadata for the given [google.cloud.location.Location][google.cloud.location.Location]. @@ -1798,197 +2510,299 @@ [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location. """, - # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.LocationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.kms.v1.LocationMetadata) + ), +) _sym_db.RegisterMessage(LocationMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.google.cloud.kms.v1B\010KmsProtoP\001Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\027com.google.cloud.kms.v1B\010KmsProtoP\001Z6google.golang.org/genproto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1" + ), +) _KEYMANAGEMENTSERVICE = _descriptor.ServiceDescriptor( - name='KeyManagementService', - full_name='google.cloud.kms.v1.KeyManagementService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2607, - serialized_end=6268, - methods=[ - _descriptor.MethodDescriptor( - name='ListKeyRings', - full_name='google.cloud.kms.v1.KeyManagementService.ListKeyRings', + name="KeyManagementService", + full_name="google.cloud.kms.v1.KeyManagementService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTKEYRINGSREQUEST, - output_type=_LISTKEYRINGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/keyRings')), - ), - _descriptor.MethodDescriptor( - name='ListCryptoKeys', - full_name='google.cloud.kms.v1.KeyManagementService.ListCryptoKeys', - index=1, - containing_service=None, - input_type=_LISTCRYPTOKEYSREQUEST, - output_type=_LISTCRYPTOKEYSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\0229/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys')), - ), - _descriptor.MethodDescriptor( - name='ListCryptoKeyVersions', - full_name='google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions', - index=2, - containing_service=None, - input_type=_LISTCRYPTOKEYVERSIONSREQUEST, - output_type=_LISTCRYPTOKEYVERSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002O\022M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions')), - ), - _descriptor.MethodDescriptor( - name='GetKeyRing', - full_name='google.cloud.kms.v1.KeyManagementService.GetKeyRing', - index=3, - containing_service=None, - input_type=_GETKEYRINGREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/keyRings/*}')), - ), - _descriptor.MethodDescriptor( - name='GetCryptoKey', - full_name='google.cloud.kms.v1.KeyManagementService.GetCryptoKey', - index=4, - containing_service=None, - input_type=_GETCRYPTOKEYREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\0229/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}')), - ), - _descriptor.MethodDescriptor( - name='GetCryptoKeyVersion', - full_name='google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion', - index=5, - containing_service=None, - input_type=_GETCRYPTOKEYVERSIONREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002O\022M/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}')), - ), - _descriptor.MethodDescriptor( - name='GetPublicKey', - full_name='google.cloud.kms.v1.KeyManagementService.GetPublicKey', - index=6, - containing_service=None, - input_type=_GETPUBLICKEYREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._PUBLICKEY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Y\022W/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey')), - ), - _descriptor.MethodDescriptor( - name='CreateKeyRing', - full_name='google.cloud.kms.v1.KeyManagementService.CreateKeyRing', - index=7, - containing_service=None, - input_type=_CREATEKEYRINGREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\",/v1/{parent=projects/*/locations/*}/keyRings:\010key_ring')), - ), - _descriptor.MethodDescriptor( - name='CreateCryptoKey', - full_name='google.cloud.kms.v1.KeyManagementService.CreateCryptoKey', - index=8, - containing_service=None, - input_type=_CREATECRYPTOKEYREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G\"9/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\ncrypto_key')), - ), - _descriptor.MethodDescriptor( - name='CreateCryptoKeyVersion', - full_name='google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion', - index=9, - containing_service=None, - input_type=_CREATECRYPTOKEYVERSIONREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002c\"M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions:\022crypto_key_version')), - ), - _descriptor.MethodDescriptor( - name='UpdateCryptoKey', - full_name='google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey', - index=10, - containing_service=None, - input_type=_UPDATECRYPTOKEYREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002R2D/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:\ncrypto_key')), - ), - _descriptor.MethodDescriptor( - name='UpdateCryptoKeyVersion', - full_name='google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion', - index=11, - containing_service=None, - input_type=_UPDATECRYPTOKEYVERSIONREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002v2`/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:\022crypto_key_version')), - ), - _descriptor.MethodDescriptor( - name='Encrypt', - full_name='google.cloud.kms.v1.KeyManagementService.Encrypt', - index=12, - containing_service=None, - input_type=_ENCRYPTREQUEST, - output_type=_ENCRYPTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G\"B/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt:\001*')), - ), - _descriptor.MethodDescriptor( - name='Decrypt', - full_name='google.cloud.kms.v1.KeyManagementService.Decrypt', - index=13, - containing_service=None, - input_type=_DECRYPTREQUEST, - output_type=_DECRYPTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002F\"A/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt:\001*')), - ), - _descriptor.MethodDescriptor( - name='AsymmetricSign', - full_name='google.cloud.kms.v1.KeyManagementService.AsymmetricSign', - index=14, - containing_service=None, - input_type=_ASYMMETRICSIGNREQUEST, - output_type=_ASYMMETRICSIGNRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002a\"\\/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricSign:\001*')), - ), - _descriptor.MethodDescriptor( - name='AsymmetricDecrypt', - full_name='google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt', - index=15, - containing_service=None, - input_type=_ASYMMETRICDECRYPTREQUEST, - output_type=_ASYMMETRICDECRYPTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002d\"_/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateCryptoKeyPrimaryVersion', - full_name='google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion', - index=16, - containing_service=None, - input_type=_UPDATECRYPTOKEYPRIMARYVERSIONREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002S\"N/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion:\001*')), - ), - _descriptor.MethodDescriptor( - name='DestroyCryptoKeyVersion', - full_name='google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion', - index=17, - containing_service=None, - input_type=_DESTROYCRYPTOKEYVERSIONREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Z\"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\001*')), - ), - _descriptor.MethodDescriptor( - name='RestoreCryptoKeyVersion', - full_name='google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion', - index=18, - containing_service=None, - input_type=_RESTORECRYPTOKEYVERSIONREQUEST, - output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Z\"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore:\001*')), - ), -]) + options=None, + serialized_start=2607, + serialized_end=6268, + methods=[ + _descriptor.MethodDescriptor( + name="ListKeyRings", + full_name="google.cloud.kms.v1.KeyManagementService.ListKeyRings", + index=0, + containing_service=None, + input_type=_LISTKEYRINGSREQUEST, + output_type=_LISTKEYRINGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/keyRings" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListCryptoKeys", + full_name="google.cloud.kms.v1.KeyManagementService.ListCryptoKeys", + index=1, + containing_service=None, + input_type=_LISTCRYPTOKEYSREQUEST, + output_type=_LISTCRYPTOKEYSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002;\0229/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListCryptoKeyVersions", + full_name="google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions", + index=2, + containing_service=None, + input_type=_LISTCRYPTOKEYVERSIONSREQUEST, + output_type=_LISTCRYPTOKEYVERSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002O\022M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetKeyRing", + full_name="google.cloud.kms.v1.KeyManagementService.GetKeyRing", + index=3, + containing_service=None, + input_type=_GETKEYRINGREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/keyRings/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetCryptoKey", + full_name="google.cloud.kms.v1.KeyManagementService.GetCryptoKey", + index=4, + containing_service=None, + input_type=_GETCRYPTOKEYREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002;\0229/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetCryptoKeyVersion", + full_name="google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion", + index=5, + containing_service=None, + input_type=_GETCRYPTOKEYVERSIONREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002O\022M/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetPublicKey", + full_name="google.cloud.kms.v1.KeyManagementService.GetPublicKey", + index=6, + containing_service=None, + input_type=_GETPUBLICKEYREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._PUBLICKEY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Y\022W/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateKeyRing", + full_name="google.cloud.kms.v1.KeyManagementService.CreateKeyRing", + index=7, + containing_service=None, + input_type=_CREATEKEYRINGREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._KEYRING, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028",/v1/{parent=projects/*/locations/*}/keyRings:\010key_ring' + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateCryptoKey", + full_name="google.cloud.kms.v1.KeyManagementService.CreateCryptoKey", + index=8, + containing_service=None, + input_type=_CREATECRYPTOKEYREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002G"9/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\ncrypto_key' + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateCryptoKeyVersion", + full_name="google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion", + index=9, + containing_service=None, + input_type=_CREATECRYPTOKEYVERSIONREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002c"M/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions:\022crypto_key_version' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateCryptoKey", + full_name="google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey", + index=10, + containing_service=None, + input_type=_UPDATECRYPTOKEYREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002R2D/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:\ncrypto_key" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateCryptoKeyVersion", + full_name="google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion", + index=11, + containing_service=None, + input_type=_UPDATECRYPTOKEYVERSIONREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002v2`/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:\022crypto_key_version" + ), + ), + ), + _descriptor.MethodDescriptor( + name="Encrypt", + full_name="google.cloud.kms.v1.KeyManagementService.Encrypt", + index=12, + containing_service=None, + input_type=_ENCRYPTREQUEST, + output_type=_ENCRYPTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002G"B/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="Decrypt", + full_name="google.cloud.kms.v1.KeyManagementService.Decrypt", + index=13, + containing_service=None, + input_type=_DECRYPTREQUEST, + output_type=_DECRYPTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002F"A/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="AsymmetricSign", + full_name="google.cloud.kms.v1.KeyManagementService.AsymmetricSign", + index=14, + containing_service=None, + input_type=_ASYMMETRICSIGNREQUEST, + output_type=_ASYMMETRICSIGNRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002a"\\/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricSign:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="AsymmetricDecrypt", + full_name="google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt", + index=15, + containing_service=None, + input_type=_ASYMMETRICDECRYPTREQUEST, + output_type=_ASYMMETRICDECRYPTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002d"_/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateCryptoKeyPrimaryVersion", + full_name="google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion", + index=16, + containing_service=None, + input_type=_UPDATECRYPTOKEYPRIMARYVERSIONREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002S"N/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DestroyCryptoKeyVersion", + full_name="google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion", + index=17, + containing_service=None, + input_type=_DESTROYCRYPTOKEYVERSIONREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002Z"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="RestoreCryptoKeyVersion", + full_name="google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion", + index=18, + containing_service=None, + input_type=_RESTORECRYPTOKEYVERSIONREQUEST, + output_type=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2._CRYPTOKEYVERSION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002Z"U/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_KEYMANAGEMENTSERVICE) -DESCRIPTOR.services_by_name['KeyManagementService'] = _KEYMANAGEMENTSERVICE +DESCRIPTOR.services_by_name["KeyManagementService"] = _KEYMANAGEMENTSERVICE # @@protoc_insertion_point(module_scope) diff --git a/kms/google/cloud/kms_v1/proto/service_pb2_grpc.py b/kms/google/cloud/kms_v1/proto/service_pb2_grpc.py index 9912112667971..e2ad4b01608ad 100644 --- a/kms/google/cloud/kms_v1/proto/service_pb2_grpc.py +++ b/kms/google/cloud/kms_v1/proto/service_pb2_grpc.py @@ -1,12 +1,16 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.kms_v1.proto import resources_pb2 as google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2 -from google.cloud.kms_v1.proto import service_pb2 as google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2 +from google.cloud.kms_v1.proto import ( + resources_pb2 as google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2, +) +from google.cloud.kms_v1.proto import ( + service_pb2 as google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2, +) class KeyManagementServiceStub(object): - """Google Cloud Key Management Service + """Google Cloud Key Management Service Manages cryptographic keys and operations using those keys. Implements a REST model with the following objects: @@ -19,111 +23,111 @@ class KeyManagementServiceStub(object): [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListKeyRings = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/ListKeyRings', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsResponse.FromString, + self.ListKeyRings = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/ListKeyRings", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsResponse.FromString, ) - self.ListCryptoKeys = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/ListCryptoKeys', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysResponse.FromString, + self.ListCryptoKeys = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/ListCryptoKeys", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysResponse.FromString, ) - self.ListCryptoKeyVersions = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/ListCryptoKeyVersions', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsResponse.FromString, + self.ListCryptoKeyVersions = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/ListCryptoKeyVersions", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsResponse.FromString, ) - self.GetKeyRing = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/GetKeyRing', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetKeyRingRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.FromString, + self.GetKeyRing = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/GetKeyRing", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetKeyRingRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.FromString, ) - self.GetCryptoKey = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/GetCryptoKey', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, + self.GetCryptoKey = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/GetCryptoKey", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, ) - self.GetCryptoKeyVersion = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/GetCryptoKeyVersion', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyVersionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, + self.GetCryptoKeyVersion = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/GetCryptoKeyVersion", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyVersionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, ) - self.GetPublicKey = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/GetPublicKey', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.PublicKey.FromString, + self.GetPublicKey = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/GetPublicKey", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.PublicKey.FromString, ) - self.CreateKeyRing = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/CreateKeyRing', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateKeyRingRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.FromString, + self.CreateKeyRing = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/CreateKeyRing", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateKeyRingRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.FromString, ) - self.CreateCryptoKey = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/CreateCryptoKey', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, + self.CreateCryptoKey = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/CreateCryptoKey", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, ) - self.CreateCryptoKeyVersion = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/CreateCryptoKeyVersion', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyVersionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, + self.CreateCryptoKeyVersion = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/CreateCryptoKeyVersion", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyVersionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, ) - self.UpdateCryptoKey = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/UpdateCryptoKey', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, + self.UpdateCryptoKey = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/UpdateCryptoKey", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, ) - self.UpdateCryptoKeyVersion = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/UpdateCryptoKeyVersion', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyVersionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, + self.UpdateCryptoKeyVersion = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/UpdateCryptoKeyVersion", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyVersionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, ) - self.Encrypt = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/Encrypt', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptResponse.FromString, + self.Encrypt = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/Encrypt", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptResponse.FromString, ) - self.Decrypt = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/Decrypt', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptResponse.FromString, + self.Decrypt = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/Decrypt", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptResponse.FromString, ) - self.AsymmetricSign = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/AsymmetricSign', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignResponse.FromString, + self.AsymmetricSign = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/AsymmetricSign", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignResponse.FromString, ) - self.AsymmetricDecrypt = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/AsymmetricDecrypt', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptResponse.FromString, + self.AsymmetricDecrypt = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/AsymmetricDecrypt", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptResponse.FromString, ) - self.UpdateCryptoKeyPrimaryVersion = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/UpdateCryptoKeyPrimaryVersion', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyPrimaryVersionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, + self.UpdateCryptoKeyPrimaryVersion = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/UpdateCryptoKeyPrimaryVersion", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyPrimaryVersionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.FromString, ) - self.DestroyCryptoKeyVersion = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/DestroyCryptoKeyVersion', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DestroyCryptoKeyVersionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, + self.DestroyCryptoKeyVersion = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/DestroyCryptoKeyVersion", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DestroyCryptoKeyVersionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, ) - self.RestoreCryptoKeyVersion = channel.unary_unary( - '/google.cloud.kms.v1.KeyManagementService/RestoreCryptoKeyVersion', - request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.RestoreCryptoKeyVersionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, + self.RestoreCryptoKeyVersion = channel.unary_unary( + "/google.cloud.kms.v1.KeyManagementService/RestoreCryptoKeyVersion", + request_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.RestoreCryptoKeyVersionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.FromString, ) class KeyManagementServiceServicer(object): - """Google Cloud Key Management Service + """Google Cloud Key Management Service Manages cryptographic keys and operations using those keys. Implements a REST model with the following objects: @@ -136,97 +140,97 @@ class KeyManagementServiceServicer(object): [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). """ - def ListKeyRings(self, request, context): - """Lists [KeyRings][google.cloud.kms.v1.KeyRing]. + def ListKeyRings(self, request, context): + """Lists [KeyRings][google.cloud.kms.v1.KeyRing]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListCryptoKeys(self, request, context): - """Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey]. + def ListCryptoKeys(self, request, context): + """Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListCryptoKeyVersions(self, request, context): - """Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. + def ListCryptoKeyVersions(self, request, context): + """Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetKeyRing(self, request, context): - """Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing]. + def GetKeyRing(self, request, context): + """Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetCryptoKey(self, request, context): - """Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as well as its + def GetCryptoKey(self, request, context): + """Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as well as its [primary][google.cloud.kms.v1.CryptoKey.primary] [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetCryptoKeyVersion(self, request, context): - """Returns metadata for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. + def GetCryptoKeyVersion(self, request, context): + """Returns metadata for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetPublicKey(self, request, context): - """Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The + def GetPublicKey(self, request, context): + """Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateKeyRing(self, request, context): - """Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + def CreateKeyRing(self, request, context): + """Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateCryptoKey(self, request, context): - """Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing]. + def CreateCryptoKey(self, request, context): + """Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing]. [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] are required. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateCryptoKeyVersion(self, request, context): - """Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a [CryptoKey][google.cloud.kms.v1.CryptoKey]. + def CreateCryptoKeyVersion(self, request, context): + """Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a [CryptoKey][google.cloud.kms.v1.CryptoKey]. The server will assign the next sequential id. If unset, [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateCryptoKey(self, request, context): - """Update a [CryptoKey][google.cloud.kms.v1.CryptoKey]. + def UpdateCryptoKey(self, request, context): + """Update a [CryptoKey][google.cloud.kms.v1.CryptoKey]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateCryptoKeyVersion(self, request, context): - """Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata. + def UpdateCryptoKeyVersion(self, request, context): + """Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata. [state][google.cloud.kms.v1.CryptoKeyVersion.state] may be changed between [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] and @@ -234,56 +238,56 @@ def UpdateCryptoKeyVersion(self, request, context): method. See [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion] and [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to move between other states. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Encrypt(self, request, context): - """Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. + def Encrypt(self, request, context): + """Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Decrypt(self, request, context): - """Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + def Decrypt(self, request, context): + """Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AsymmetricSign(self, request, context): - """Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + def AsymmetricSign(self, request, context): + """Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AsymmetricDecrypt(self, request, context): - """Decrypts data that was encrypted with a public key retrieved from + def AsymmetricDecrypt(self, request, context): + """Decrypts data that was encrypted with a public key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateCryptoKeyPrimaryVersion(self, request, context): - """Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + def UpdateCryptoKeyPrimaryVersion(self, request, context): + """Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. Returns an error if called on an asymmetric key. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DestroyCryptoKeyVersion(self, request, context): - """Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction. + def DestroyCryptoKeyVersion(self, request, context): + """Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction. Upon calling this method, [CryptoKeyVersion.state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] @@ -296,12 +300,12 @@ def DestroyCryptoKeyVersion(self, request, context): Before the [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] is reached, [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] may be called to reverse the process. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RestoreCryptoKeyVersion(self, request, context): - """Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the + def RestoreCryptoKeyVersion(self, request, context): + """Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] state. @@ -309,109 +313,110 @@ def RestoreCryptoKeyVersion(self, request, context): will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED], and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be cleared. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_KeyManagementServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListKeyRings': grpc.unary_unary_rpc_method_handler( - servicer.ListKeyRings, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsResponse.SerializeToString, - ), - 'ListCryptoKeys': grpc.unary_unary_rpc_method_handler( - servicer.ListCryptoKeys, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysResponse.SerializeToString, - ), - 'ListCryptoKeyVersions': grpc.unary_unary_rpc_method_handler( - servicer.ListCryptoKeyVersions, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsResponse.SerializeToString, - ), - 'GetKeyRing': grpc.unary_unary_rpc_method_handler( - servicer.GetKeyRing, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetKeyRingRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.SerializeToString, - ), - 'GetCryptoKey': grpc.unary_unary_rpc_method_handler( - servicer.GetCryptoKey, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, - ), - 'GetCryptoKeyVersion': grpc.unary_unary_rpc_method_handler( - servicer.GetCryptoKeyVersion, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyVersionRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, - ), - 'GetPublicKey': grpc.unary_unary_rpc_method_handler( - servicer.GetPublicKey, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetPublicKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.PublicKey.SerializeToString, - ), - 'CreateKeyRing': grpc.unary_unary_rpc_method_handler( - servicer.CreateKeyRing, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateKeyRingRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.SerializeToString, - ), - 'CreateCryptoKey': grpc.unary_unary_rpc_method_handler( - servicer.CreateCryptoKey, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, - ), - 'CreateCryptoKeyVersion': grpc.unary_unary_rpc_method_handler( - servicer.CreateCryptoKeyVersion, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyVersionRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, - ), - 'UpdateCryptoKey': grpc.unary_unary_rpc_method_handler( - servicer.UpdateCryptoKey, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, - ), - 'UpdateCryptoKeyVersion': grpc.unary_unary_rpc_method_handler( - servicer.UpdateCryptoKeyVersion, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyVersionRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, - ), - 'Encrypt': grpc.unary_unary_rpc_method_handler( - servicer.Encrypt, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptResponse.SerializeToString, - ), - 'Decrypt': grpc.unary_unary_rpc_method_handler( - servicer.Decrypt, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptResponse.SerializeToString, - ), - 'AsymmetricSign': grpc.unary_unary_rpc_method_handler( - servicer.AsymmetricSign, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignResponse.SerializeToString, - ), - 'AsymmetricDecrypt': grpc.unary_unary_rpc_method_handler( - servicer.AsymmetricDecrypt, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptResponse.SerializeToString, - ), - 'UpdateCryptoKeyPrimaryVersion': grpc.unary_unary_rpc_method_handler( - servicer.UpdateCryptoKeyPrimaryVersion, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyPrimaryVersionRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, - ), - 'DestroyCryptoKeyVersion': grpc.unary_unary_rpc_method_handler( - servicer.DestroyCryptoKeyVersion, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DestroyCryptoKeyVersionRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, - ), - 'RestoreCryptoKeyVersion': grpc.unary_unary_rpc_method_handler( - servicer.RestoreCryptoKeyVersion, - request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.RestoreCryptoKeyVersionRequest.FromString, - response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.kms.v1.KeyManagementService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListKeyRings": grpc.unary_unary_rpc_method_handler( + servicer.ListKeyRings, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListKeyRingsResponse.SerializeToString, + ), + "ListCryptoKeys": grpc.unary_unary_rpc_method_handler( + servicer.ListCryptoKeys, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeysResponse.SerializeToString, + ), + "ListCryptoKeyVersions": grpc.unary_unary_rpc_method_handler( + servicer.ListCryptoKeyVersions, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.ListCryptoKeyVersionsResponse.SerializeToString, + ), + "GetKeyRing": grpc.unary_unary_rpc_method_handler( + servicer.GetKeyRing, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetKeyRingRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.SerializeToString, + ), + "GetCryptoKey": grpc.unary_unary_rpc_method_handler( + servicer.GetCryptoKey, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, + ), + "GetCryptoKeyVersion": grpc.unary_unary_rpc_method_handler( + servicer.GetCryptoKeyVersion, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetCryptoKeyVersionRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, + ), + "GetPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.GetPublicKey, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.GetPublicKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.PublicKey.SerializeToString, + ), + "CreateKeyRing": grpc.unary_unary_rpc_method_handler( + servicer.CreateKeyRing, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateKeyRingRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.KeyRing.SerializeToString, + ), + "CreateCryptoKey": grpc.unary_unary_rpc_method_handler( + servicer.CreateCryptoKey, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, + ), + "CreateCryptoKeyVersion": grpc.unary_unary_rpc_method_handler( + servicer.CreateCryptoKeyVersion, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.CreateCryptoKeyVersionRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, + ), + "UpdateCryptoKey": grpc.unary_unary_rpc_method_handler( + servicer.UpdateCryptoKey, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, + ), + "UpdateCryptoKeyVersion": grpc.unary_unary_rpc_method_handler( + servicer.UpdateCryptoKeyVersion, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyVersionRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, + ), + "Encrypt": grpc.unary_unary_rpc_method_handler( + servicer.Encrypt, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.EncryptResponse.SerializeToString, + ), + "Decrypt": grpc.unary_unary_rpc_method_handler( + servicer.Decrypt, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DecryptResponse.SerializeToString, + ), + "AsymmetricSign": grpc.unary_unary_rpc_method_handler( + servicer.AsymmetricSign, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricSignResponse.SerializeToString, + ), + "AsymmetricDecrypt": grpc.unary_unary_rpc_method_handler( + servicer.AsymmetricDecrypt, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.AsymmetricDecryptResponse.SerializeToString, + ), + "UpdateCryptoKeyPrimaryVersion": grpc.unary_unary_rpc_method_handler( + servicer.UpdateCryptoKeyPrimaryVersion, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.UpdateCryptoKeyPrimaryVersionRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKey.SerializeToString, + ), + "DestroyCryptoKeyVersion": grpc.unary_unary_rpc_method_handler( + servicer.DestroyCryptoKeyVersion, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.DestroyCryptoKeyVersionRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, + ), + "RestoreCryptoKeyVersion": grpc.unary_unary_rpc_method_handler( + servicer.RestoreCryptoKeyVersion, + request_deserializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_service__pb2.RestoreCryptoKeyVersionRequest.FromString, + response_serializer=google_dot_cloud_dot_kms__v1_dot_proto_dot_resources__pb2.CryptoKeyVersion.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.kms.v1.KeyManagementService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/language/google/cloud/language_v1/proto/language_service_pb2.py b/language/google/cloud/language_v1/proto/language_service_pb2.py index b98d931582bc8..e687eb3cc0fe5 100644 --- a/language/google/cloud/language_v1/proto/language_service_pb2.py +++ b/language/google/cloud/language_v1/proto/language_service_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/language_v1/proto/language_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,40 +20,38 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/language_v1/proto/language_service.proto', - package='google.cloud.language.v1', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/language_v1/proto/language_service.proto\x12\x18google.cloud.language.v1\x1a\x1cgoogle/api/annotations.proto\"\xc3\x01\n\x08\x44ocument\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32\'.google.cloud.language.v1.Document.Type\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12\x19\n\x0fgcs_content_uri\x18\x03 \x01(\tH\x00\x12\x10\n\x08language\x18\x04 \x01(\t\"6\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPLAIN_TEXT\x10\x01\x12\x08\n\x04HTML\x10\x02\x42\x08\n\x06source\"t\n\x08Sentence\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.TextSpan\x12\x36\n\tsentiment\x18\x02 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\"\xbe\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x04type\x18\x02 \x01(\x0e\x32%.google.cloud.language.v1.Entity.Type\x12@\n\x08metadata\x18\x03 \x03(\x0b\x32..google.cloud.language.v1.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12\x39\n\x08mentions\x18\x05 \x03(\x0b\x32\'.google.cloud.language.v1.EntityMention\x12\x36\n\tsentiment\x18\x06 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\"\xcb\x01\n\x05Token\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.TextSpan\x12>\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32&.google.cloud.language.v1.PartOfSpeech\x12\x41\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1.DependencyEdge\x12\r\n\x05lemma\x18\x04 \x01(\t\"-\n\tSentiment\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x12\r\n\x05score\x18\x03 \x01(\x02\"\xa3\x10\n\x0cPartOfSpeech\x12\x37\n\x03tag\x18\x01 \x01(\x0e\x32*.google.cloud.language.v1.PartOfSpeech.Tag\x12=\n\x06\x61spect\x18\x02 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Aspect\x12\x39\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Case\x12\x39\n\x04\x66orm\x18\x04 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Form\x12=\n\x06gender\x18\x05 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Gender\x12\x39\n\x04mood\x18\x06 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Mood\x12=\n\x06number\x18\x07 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Number\x12=\n\x06person\x18\x08 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Person\x12=\n\x06proper\x18\t \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Proper\x12G\n\x0breciprocity\x18\n \x01(\x0e\x32\x32.google.cloud.language.v1.PartOfSpeech.Reciprocity\x12;\n\x05tense\x18\x0b \x01(\x0e\x32,.google.cloud.language.v1.PartOfSpeech.Tense\x12;\n\x05voice\x18\x0c \x01(\x0e\x32,.google.cloud.language.v1.PartOfSpeech.Voice\"\x8d\x01\n\x03Tag\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44J\x10\x01\x12\x07\n\x03\x41\x44P\x10\x02\x12\x07\n\x03\x41\x44V\x10\x03\x12\x08\n\x04\x43ONJ\x10\x04\x12\x07\n\x03\x44\x45T\x10\x05\x12\x08\n\x04NOUN\x10\x06\x12\x07\n\x03NUM\x10\x07\x12\x08\n\x04PRON\x10\x08\x12\x07\n\x03PRT\x10\t\x12\t\n\x05PUNCT\x10\n\x12\x08\n\x04VERB\x10\x0b\x12\x05\n\x01X\x10\x0c\x12\t\n\x05\x41\x46\x46IX\x10\r\"O\n\x06\x41spect\x12\x12\n\x0e\x41SPECT_UNKNOWN\x10\x00\x12\x0e\n\nPERFECTIVE\x10\x01\x12\x10\n\x0cIMPERFECTIVE\x10\x02\x12\x0f\n\x0bPROGRESSIVE\x10\x03\"\xf8\x01\n\x04\x43\x61se\x12\x10\n\x0c\x43\x41SE_UNKNOWN\x10\x00\x12\x0e\n\nACCUSATIVE\x10\x01\x12\r\n\tADVERBIAL\x10\x02\x12\x11\n\rCOMPLEMENTIVE\x10\x03\x12\n\n\x06\x44\x41TIVE\x10\x04\x12\x0c\n\x08GENITIVE\x10\x05\x12\x10\n\x0cINSTRUMENTAL\x10\x06\x12\x0c\n\x08LOCATIVE\x10\x07\x12\x0e\n\nNOMINATIVE\x10\x08\x12\x0b\n\x07OBLIQUE\x10\t\x12\r\n\tPARTITIVE\x10\n\x12\x11\n\rPREPOSITIONAL\x10\x0b\x12\x12\n\x0eREFLEXIVE_CASE\x10\x0c\x12\x11\n\rRELATIVE_CASE\x10\r\x12\x0c\n\x08VOCATIVE\x10\x0e\"\xaf\x01\n\x04\x46orm\x12\x10\n\x0c\x46ORM_UNKNOWN\x10\x00\x12\x0c\n\x08\x41\x44NOMIAL\x10\x01\x12\r\n\tAUXILIARY\x10\x02\x12\x12\n\x0e\x43OMPLEMENTIZER\x10\x03\x12\x10\n\x0c\x46INAL_ENDING\x10\x04\x12\n\n\x06GERUND\x10\x05\x12\n\n\x06REALIS\x10\x06\x12\x0c\n\x08IRREALIS\x10\x07\x12\t\n\x05SHORT\x10\x08\x12\x08\n\x04LONG\x10\t\x12\t\n\x05ORDER\x10\n\x12\x0c\n\x08SPECIFIC\x10\x0b\"E\n\x06Gender\x12\x12\n\x0eGENDER_UNKNOWN\x10\x00\x12\x0c\n\x08\x46\x45MININE\x10\x01\x12\r\n\tMASCULINE\x10\x02\x12\n\n\x06NEUTER\x10\x03\"\x7f\n\x04Mood\x12\x10\n\x0cMOOD_UNKNOWN\x10\x00\x12\x14\n\x10\x43ONDITIONAL_MOOD\x10\x01\x12\x0e\n\nIMPERATIVE\x10\x02\x12\x0e\n\nINDICATIVE\x10\x03\x12\x11\n\rINTERROGATIVE\x10\x04\x12\x0b\n\x07JUSSIVE\x10\x05\x12\x0f\n\x0bSUBJUNCTIVE\x10\x06\"@\n\x06Number\x12\x12\n\x0eNUMBER_UNKNOWN\x10\x00\x12\x0c\n\x08SINGULAR\x10\x01\x12\n\n\x06PLURAL\x10\x02\x12\x08\n\x04\x44UAL\x10\x03\"T\n\x06Person\x12\x12\n\x0ePERSON_UNKNOWN\x10\x00\x12\t\n\x05\x46IRST\x10\x01\x12\n\n\x06SECOND\x10\x02\x12\t\n\x05THIRD\x10\x03\x12\x14\n\x10REFLEXIVE_PERSON\x10\x04\"8\n\x06Proper\x12\x12\n\x0ePROPER_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\x0e\n\nNOT_PROPER\x10\x02\"J\n\x0bReciprocity\x12\x17\n\x13RECIPROCITY_UNKNOWN\x10\x00\x12\x0e\n\nRECIPROCAL\x10\x01\x12\x12\n\x0eNON_RECIPROCAL\x10\x02\"s\n\x05Tense\x12\x11\n\rTENSE_UNKNOWN\x10\x00\x12\x15\n\x11\x43ONDITIONAL_TENSE\x10\x01\x12\n\n\x06\x46UTURE\x10\x02\x12\x08\n\x04PAST\x10\x03\x12\x0b\n\x07PRESENT\x10\x04\x12\r\n\tIMPERFECT\x10\x05\x12\x0e\n\nPLUPERFECT\x10\x06\"B\n\x05Voice\x12\x11\n\rVOICE_UNKNOWN\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tCAUSATIVE\x10\x02\x12\x0b\n\x07PASSIVE\x10\x03\"\x95\x08\n\x0e\x44\x65pendencyEdge\x12\x18\n\x10head_token_index\x18\x01 \x01(\x05\x12=\n\x05label\x18\x02 \x01(\x0e\x32..google.cloud.language.v1.DependencyEdge.Label\"\xa9\x07\n\x05Label\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x42\x42REV\x10\x01\x12\t\n\x05\x41\x43OMP\x10\x02\x12\t\n\x05\x41\x44VCL\x10\x03\x12\n\n\x06\x41\x44VMOD\x10\x04\x12\x08\n\x04\x41MOD\x10\x05\x12\t\n\x05\x41PPOS\x10\x06\x12\x08\n\x04\x41TTR\x10\x07\x12\x07\n\x03\x41UX\x10\x08\x12\x0b\n\x07\x41UXPASS\x10\t\x12\x06\n\x02\x43\x43\x10\n\x12\t\n\x05\x43\x43OMP\x10\x0b\x12\x08\n\x04\x43ONJ\x10\x0c\x12\t\n\x05\x43SUBJ\x10\r\x12\r\n\tCSUBJPASS\x10\x0e\x12\x07\n\x03\x44\x45P\x10\x0f\x12\x07\n\x03\x44\x45T\x10\x10\x12\r\n\tDISCOURSE\x10\x11\x12\x08\n\x04\x44OBJ\x10\x12\x12\x08\n\x04\x45XPL\x10\x13\x12\x0c\n\x08GOESWITH\x10\x14\x12\x08\n\x04IOBJ\x10\x15\x12\x08\n\x04MARK\x10\x16\x12\x07\n\x03MWE\x10\x17\x12\x07\n\x03MWV\x10\x18\x12\x07\n\x03NEG\x10\x19\x12\x06\n\x02NN\x10\x1a\x12\x0c\n\x08NPADVMOD\x10\x1b\x12\t\n\x05NSUBJ\x10\x1c\x12\r\n\tNSUBJPASS\x10\x1d\x12\x07\n\x03NUM\x10\x1e\x12\n\n\x06NUMBER\x10\x1f\x12\x05\n\x01P\x10 \x12\r\n\tPARATAXIS\x10!\x12\x0b\n\x07PARTMOD\x10\"\x12\t\n\x05PCOMP\x10#\x12\x08\n\x04POBJ\x10$\x12\x08\n\x04POSS\x10%\x12\x0b\n\x07POSTNEG\x10&\x12\x0b\n\x07PRECOMP\x10\'\x12\x0b\n\x07PRECONJ\x10(\x12\n\n\x06PREDET\x10)\x12\x08\n\x04PREF\x10*\x12\x08\n\x04PREP\x10+\x12\t\n\x05PRONL\x10,\x12\x07\n\x03PRT\x10-\x12\x06\n\x02PS\x10.\x12\x0c\n\x08QUANTMOD\x10/\x12\t\n\x05RCMOD\x10\x30\x12\x0c\n\x08RCMODREL\x10\x31\x12\t\n\x05RDROP\x10\x32\x12\x07\n\x03REF\x10\x33\x12\x0b\n\x07REMNANT\x10\x34\x12\x0e\n\nREPARANDUM\x10\x35\x12\x08\n\x04ROOT\x10\x36\x12\x08\n\x04SNUM\x10\x37\x12\x08\n\x04SUFF\x10\x38\x12\x08\n\x04TMOD\x10\x39\x12\t\n\x05TOPIC\x10:\x12\x08\n\x04VMOD\x10;\x12\x0c\n\x08VOCATIVE\x10<\x12\t\n\x05XCOMP\x10=\x12\n\n\x06SUFFIX\x10>\x12\t\n\x05TITLE\x10?\x12\x0c\n\x08\x41\x44VPHMOD\x10@\x12\x0b\n\x07\x41UXCAUS\x10\x41\x12\t\n\x05\x41UXVV\x10\x42\x12\t\n\x05\x44TMOD\x10\x43\x12\x0b\n\x07\x46OREIGN\x10\x44\x12\x06\n\x02KW\x10\x45\x12\x08\n\x04LIST\x10\x46\x12\x08\n\x04NOMC\x10G\x12\x0c\n\x08NOMCSUBJ\x10H\x12\x10\n\x0cNOMCSUBJPASS\x10I\x12\x08\n\x04NUMC\x10J\x12\x07\n\x03\x43OP\x10K\x12\x0e\n\nDISLOCATED\x10L\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R\"\xe7\x01\n\rEntityMention\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.TextSpan\x12:\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.language.v1.EntityMention.Type\x12\x36\n\tsentiment\x18\x03 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02\"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05\":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"\x8e\x01\n\x17\x41nalyzeSentimentRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\"\xa4\x01\n\x18\x41nalyzeSentimentResponse\x12?\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x35\n\tsentences\x18\x03 \x03(\x0b\x32\".google.cloud.language.v1.Sentence\"\x94\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\"f\n\x1e\x41nalyzeEntitySentimentResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t\"\x8d\x01\n\x16\x41nalyzeEntitiesRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\"_\n\x17\x41nalyzeEntitiesResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t\"\x8b\x01\n\x14\x41nalyzeSyntaxRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\"\x91\x01\n\x15\x41nalyzeSyntaxResponse\x12\x35\n\tsentences\x18\x01 \x03(\x0b\x32\".google.cloud.language.v1.Sentence\x12/\n\x06tokens\x18\x02 \x03(\x0b\x32\x1f.google.cloud.language.v1.Token\x12\x10\n\x08language\x18\x03 \x01(\t\"K\n\x13\x43lassifyTextRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\"\\\n\x14\x43lassifyTextResponse\x12\x44\n\ncategories\x18\x01 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory\"\xf0\x02\n\x13\x41nnotateTextRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12H\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32\x36.google.cloud.language.v1.AnnotateTextRequest.Features\x12=\n\rencoding_type\x18\x03 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\x1a\x99\x01\n\x08\x46\x65\x61tures\x12\x16\n\x0e\x65xtract_syntax\x18\x01 \x01(\x08\x12\x18\n\x10\x65xtract_entities\x18\x02 \x01(\x08\x12\"\n\x1a\x65xtract_document_sentiment\x18\x03 \x01(\x08\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08\"\xcb\x02\n\x14\x41nnotateTextResponse\x12\x35\n\tsentences\x18\x01 \x03(\x0b\x32\".google.cloud.language.v1.Sentence\x12/\n\x06tokens\x18\x02 \x03(\x0b\x32\x1f.google.cloud.language.v1.Token\x12\x32\n\x08\x65ntities\x18\x03 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12?\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t\x12\x44\n\ncategories\x18\x06 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xe3\x07\n\x0fLanguageService\x12\xa4\x01\n\x10\x41nalyzeSentiment\x12\x31.google.cloud.language.v1.AnalyzeSentimentRequest\x1a\x32.google.cloud.language.v1.AnalyzeSentimentResponse\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/documents:analyzeSentiment:\x01*\x12\xa0\x01\n\x0f\x41nalyzeEntities\x12\x30.google.cloud.language.v1.AnalyzeEntitiesRequest\x1a\x31.google.cloud.language.v1.AnalyzeEntitiesResponse\"(\x82\xd3\xe4\x93\x02\"\"\x1d/v1/documents:analyzeEntities:\x01*\x12\xbc\x01\n\x16\x41nalyzeEntitySentiment\x12\x37.google.cloud.language.v1.AnalyzeEntitySentimentRequest\x1a\x38.google.cloud.language.v1.AnalyzeEntitySentimentResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/documents:analyzeEntitySentiment:\x01*\x12\x98\x01\n\rAnalyzeSyntax\x12..google.cloud.language.v1.AnalyzeSyntaxRequest\x1a/.google.cloud.language.v1.AnalyzeSyntaxResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1/documents:analyzeSyntax:\x01*\x12\x94\x01\n\x0c\x43lassifyText\x12-.google.cloud.language.v1.ClassifyTextRequest\x1a..google.cloud.language.v1.ClassifyTextResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1/documents:classifyText:\x01*\x12\x94\x01\n\x0c\x41nnotateText\x12-.google.cloud.language.v1.AnnotateTextRequest\x1a..google.cloud.language.v1.AnnotateTextResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1/documents:annotateText:\x01*Bx\n\x1c\x63om.google.cloud.language.v1B\x14LanguageServiceProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/language/v1;languageb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + name="google/cloud/language_v1/proto/language_service.proto", + package="google.cloud.language.v1", + syntax="proto3", + serialized_pb=_b( + '\n5google/cloud/language_v1/proto/language_service.proto\x12\x18google.cloud.language.v1\x1a\x1cgoogle/api/annotations.proto"\xc3\x01\n\x08\x44ocument\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32\'.google.cloud.language.v1.Document.Type\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12\x19\n\x0fgcs_content_uri\x18\x03 \x01(\tH\x00\x12\x10\n\x08language\x18\x04 \x01(\t"6\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPLAIN_TEXT\x10\x01\x12\x08\n\x04HTML\x10\x02\x42\x08\n\x06source"t\n\x08Sentence\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12\x36\n\tsentiment\x18\x02 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"\xbe\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x04type\x18\x02 \x01(\x0e\x32%.google.cloud.language.v1.Entity.Type\x12@\n\x08metadata\x18\x03 \x03(\x0b\x32..google.cloud.language.v1.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12\x39\n\x08mentions\x18\x05 \x03(\x0b\x32\'.google.cloud.language.v1.EntityMention\x12\x36\n\tsentiment\x18\x06 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"y\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07"\xcb\x01\n\x05Token\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12>\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32&.google.cloud.language.v1.PartOfSpeech\x12\x41\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1.DependencyEdge\x12\r\n\x05lemma\x18\x04 \x01(\t"-\n\tSentiment\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x12\r\n\x05score\x18\x03 \x01(\x02"\xa3\x10\n\x0cPartOfSpeech\x12\x37\n\x03tag\x18\x01 \x01(\x0e\x32*.google.cloud.language.v1.PartOfSpeech.Tag\x12=\n\x06\x61spect\x18\x02 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Aspect\x12\x39\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Case\x12\x39\n\x04\x66orm\x18\x04 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Form\x12=\n\x06gender\x18\x05 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Gender\x12\x39\n\x04mood\x18\x06 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Mood\x12=\n\x06number\x18\x07 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Number\x12=\n\x06person\x18\x08 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Person\x12=\n\x06proper\x18\t \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Proper\x12G\n\x0breciprocity\x18\n \x01(\x0e\x32\x32.google.cloud.language.v1.PartOfSpeech.Reciprocity\x12;\n\x05tense\x18\x0b \x01(\x0e\x32,.google.cloud.language.v1.PartOfSpeech.Tense\x12;\n\x05voice\x18\x0c \x01(\x0e\x32,.google.cloud.language.v1.PartOfSpeech.Voice"\x8d\x01\n\x03Tag\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44J\x10\x01\x12\x07\n\x03\x41\x44P\x10\x02\x12\x07\n\x03\x41\x44V\x10\x03\x12\x08\n\x04\x43ONJ\x10\x04\x12\x07\n\x03\x44\x45T\x10\x05\x12\x08\n\x04NOUN\x10\x06\x12\x07\n\x03NUM\x10\x07\x12\x08\n\x04PRON\x10\x08\x12\x07\n\x03PRT\x10\t\x12\t\n\x05PUNCT\x10\n\x12\x08\n\x04VERB\x10\x0b\x12\x05\n\x01X\x10\x0c\x12\t\n\x05\x41\x46\x46IX\x10\r"O\n\x06\x41spect\x12\x12\n\x0e\x41SPECT_UNKNOWN\x10\x00\x12\x0e\n\nPERFECTIVE\x10\x01\x12\x10\n\x0cIMPERFECTIVE\x10\x02\x12\x0f\n\x0bPROGRESSIVE\x10\x03"\xf8\x01\n\x04\x43\x61se\x12\x10\n\x0c\x43\x41SE_UNKNOWN\x10\x00\x12\x0e\n\nACCUSATIVE\x10\x01\x12\r\n\tADVERBIAL\x10\x02\x12\x11\n\rCOMPLEMENTIVE\x10\x03\x12\n\n\x06\x44\x41TIVE\x10\x04\x12\x0c\n\x08GENITIVE\x10\x05\x12\x10\n\x0cINSTRUMENTAL\x10\x06\x12\x0c\n\x08LOCATIVE\x10\x07\x12\x0e\n\nNOMINATIVE\x10\x08\x12\x0b\n\x07OBLIQUE\x10\t\x12\r\n\tPARTITIVE\x10\n\x12\x11\n\rPREPOSITIONAL\x10\x0b\x12\x12\n\x0eREFLEXIVE_CASE\x10\x0c\x12\x11\n\rRELATIVE_CASE\x10\r\x12\x0c\n\x08VOCATIVE\x10\x0e"\xaf\x01\n\x04\x46orm\x12\x10\n\x0c\x46ORM_UNKNOWN\x10\x00\x12\x0c\n\x08\x41\x44NOMIAL\x10\x01\x12\r\n\tAUXILIARY\x10\x02\x12\x12\n\x0e\x43OMPLEMENTIZER\x10\x03\x12\x10\n\x0c\x46INAL_ENDING\x10\x04\x12\n\n\x06GERUND\x10\x05\x12\n\n\x06REALIS\x10\x06\x12\x0c\n\x08IRREALIS\x10\x07\x12\t\n\x05SHORT\x10\x08\x12\x08\n\x04LONG\x10\t\x12\t\n\x05ORDER\x10\n\x12\x0c\n\x08SPECIFIC\x10\x0b"E\n\x06Gender\x12\x12\n\x0eGENDER_UNKNOWN\x10\x00\x12\x0c\n\x08\x46\x45MININE\x10\x01\x12\r\n\tMASCULINE\x10\x02\x12\n\n\x06NEUTER\x10\x03"\x7f\n\x04Mood\x12\x10\n\x0cMOOD_UNKNOWN\x10\x00\x12\x14\n\x10\x43ONDITIONAL_MOOD\x10\x01\x12\x0e\n\nIMPERATIVE\x10\x02\x12\x0e\n\nINDICATIVE\x10\x03\x12\x11\n\rINTERROGATIVE\x10\x04\x12\x0b\n\x07JUSSIVE\x10\x05\x12\x0f\n\x0bSUBJUNCTIVE\x10\x06"@\n\x06Number\x12\x12\n\x0eNUMBER_UNKNOWN\x10\x00\x12\x0c\n\x08SINGULAR\x10\x01\x12\n\n\x06PLURAL\x10\x02\x12\x08\n\x04\x44UAL\x10\x03"T\n\x06Person\x12\x12\n\x0ePERSON_UNKNOWN\x10\x00\x12\t\n\x05\x46IRST\x10\x01\x12\n\n\x06SECOND\x10\x02\x12\t\n\x05THIRD\x10\x03\x12\x14\n\x10REFLEXIVE_PERSON\x10\x04"8\n\x06Proper\x12\x12\n\x0ePROPER_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\x0e\n\nNOT_PROPER\x10\x02"J\n\x0bReciprocity\x12\x17\n\x13RECIPROCITY_UNKNOWN\x10\x00\x12\x0e\n\nRECIPROCAL\x10\x01\x12\x12\n\x0eNON_RECIPROCAL\x10\x02"s\n\x05Tense\x12\x11\n\rTENSE_UNKNOWN\x10\x00\x12\x15\n\x11\x43ONDITIONAL_TENSE\x10\x01\x12\n\n\x06\x46UTURE\x10\x02\x12\x08\n\x04PAST\x10\x03\x12\x0b\n\x07PRESENT\x10\x04\x12\r\n\tIMPERFECT\x10\x05\x12\x0e\n\nPLUPERFECT\x10\x06"B\n\x05Voice\x12\x11\n\rVOICE_UNKNOWN\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tCAUSATIVE\x10\x02\x12\x0b\n\x07PASSIVE\x10\x03"\x95\x08\n\x0e\x44\x65pendencyEdge\x12\x18\n\x10head_token_index\x18\x01 \x01(\x05\x12=\n\x05label\x18\x02 \x01(\x0e\x32..google.cloud.language.v1.DependencyEdge.Label"\xa9\x07\n\x05Label\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x42\x42REV\x10\x01\x12\t\n\x05\x41\x43OMP\x10\x02\x12\t\n\x05\x41\x44VCL\x10\x03\x12\n\n\x06\x41\x44VMOD\x10\x04\x12\x08\n\x04\x41MOD\x10\x05\x12\t\n\x05\x41PPOS\x10\x06\x12\x08\n\x04\x41TTR\x10\x07\x12\x07\n\x03\x41UX\x10\x08\x12\x0b\n\x07\x41UXPASS\x10\t\x12\x06\n\x02\x43\x43\x10\n\x12\t\n\x05\x43\x43OMP\x10\x0b\x12\x08\n\x04\x43ONJ\x10\x0c\x12\t\n\x05\x43SUBJ\x10\r\x12\r\n\tCSUBJPASS\x10\x0e\x12\x07\n\x03\x44\x45P\x10\x0f\x12\x07\n\x03\x44\x45T\x10\x10\x12\r\n\tDISCOURSE\x10\x11\x12\x08\n\x04\x44OBJ\x10\x12\x12\x08\n\x04\x45XPL\x10\x13\x12\x0c\n\x08GOESWITH\x10\x14\x12\x08\n\x04IOBJ\x10\x15\x12\x08\n\x04MARK\x10\x16\x12\x07\n\x03MWE\x10\x17\x12\x07\n\x03MWV\x10\x18\x12\x07\n\x03NEG\x10\x19\x12\x06\n\x02NN\x10\x1a\x12\x0c\n\x08NPADVMOD\x10\x1b\x12\t\n\x05NSUBJ\x10\x1c\x12\r\n\tNSUBJPASS\x10\x1d\x12\x07\n\x03NUM\x10\x1e\x12\n\n\x06NUMBER\x10\x1f\x12\x05\n\x01P\x10 \x12\r\n\tPARATAXIS\x10!\x12\x0b\n\x07PARTMOD\x10"\x12\t\n\x05PCOMP\x10#\x12\x08\n\x04POBJ\x10$\x12\x08\n\x04POSS\x10%\x12\x0b\n\x07POSTNEG\x10&\x12\x0b\n\x07PRECOMP\x10\'\x12\x0b\n\x07PRECONJ\x10(\x12\n\n\x06PREDET\x10)\x12\x08\n\x04PREF\x10*\x12\x08\n\x04PREP\x10+\x12\t\n\x05PRONL\x10,\x12\x07\n\x03PRT\x10-\x12\x06\n\x02PS\x10.\x12\x0c\n\x08QUANTMOD\x10/\x12\t\n\x05RCMOD\x10\x30\x12\x0c\n\x08RCMODREL\x10\x31\x12\t\n\x05RDROP\x10\x32\x12\x07\n\x03REF\x10\x33\x12\x0b\n\x07REMNANT\x10\x34\x12\x0e\n\nREPARANDUM\x10\x35\x12\x08\n\x04ROOT\x10\x36\x12\x08\n\x04SNUM\x10\x37\x12\x08\n\x04SUFF\x10\x38\x12\x08\n\x04TMOD\x10\x39\x12\t\n\x05TOPIC\x10:\x12\x08\n\x04VMOD\x10;\x12\x0c\n\x08VOCATIVE\x10<\x12\t\n\x05XCOMP\x10=\x12\n\n\x06SUFFIX\x10>\x12\t\n\x05TITLE\x10?\x12\x0c\n\x08\x41\x44VPHMOD\x10@\x12\x0b\n\x07\x41UXCAUS\x10\x41\x12\t\n\x05\x41UXVV\x10\x42\x12\t\n\x05\x44TMOD\x10\x43\x12\x0b\n\x07\x46OREIGN\x10\x44\x12\x06\n\x02KW\x10\x45\x12\x08\n\x04LIST\x10\x46\x12\x08\n\x04NOMC\x10G\x12\x0c\n\x08NOMCSUBJ\x10H\x12\x10\n\x0cNOMCSUBJPASS\x10I\x12\x08\n\x04NUMC\x10J\x12\x07\n\x03\x43OP\x10K\x12\x0e\n\nDISLOCATED\x10L\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xe7\x01\n\rEntityMention\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12:\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.language.v1.EntityMention.Type\x12\x36\n\tsentiment\x18\x03 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x8e\x01\n\x17\x41nalyzeSentimentRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType"\xa4\x01\n\x18\x41nalyzeSentimentResponse\x12?\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x35\n\tsentences\x18\x03 \x03(\x0b\x32".google.cloud.language.v1.Sentence"\x94\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType"f\n\x1e\x41nalyzeEntitySentimentResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x8d\x01\n\x16\x41nalyzeEntitiesRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType"_\n\x17\x41nalyzeEntitiesResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x8b\x01\n\x14\x41nalyzeSyntaxRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType"\x91\x01\n\x15\x41nalyzeSyntaxResponse\x12\x35\n\tsentences\x18\x01 \x03(\x0b\x32".google.cloud.language.v1.Sentence\x12/\n\x06tokens\x18\x02 \x03(\x0b\x32\x1f.google.cloud.language.v1.Token\x12\x10\n\x08language\x18\x03 \x01(\t"K\n\x13\x43lassifyTextRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.Document"\\\n\x14\x43lassifyTextResponse\x12\x44\n\ncategories\x18\x01 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory"\xf0\x02\n\x13\x41nnotateTextRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.Document\x12H\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32\x36.google.cloud.language.v1.AnnotateTextRequest.Features\x12=\n\rencoding_type\x18\x03 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\x1a\x99\x01\n\x08\x46\x65\x61tures\x12\x16\n\x0e\x65xtract_syntax\x18\x01 \x01(\x08\x12\x18\n\x10\x65xtract_entities\x18\x02 \x01(\x08\x12"\n\x1a\x65xtract_document_sentiment\x18\x03 \x01(\x08\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xcb\x02\n\x14\x41nnotateTextResponse\x12\x35\n\tsentences\x18\x01 \x03(\x0b\x32".google.cloud.language.v1.Sentence\x12/\n\x06tokens\x18\x02 \x03(\x0b\x32\x1f.google.cloud.language.v1.Token\x12\x32\n\x08\x65ntities\x18\x03 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12?\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t\x12\x44\n\ncategories\x18\x06 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xe3\x07\n\x0fLanguageService\x12\xa4\x01\n\x10\x41nalyzeSentiment\x12\x31.google.cloud.language.v1.AnalyzeSentimentRequest\x1a\x32.google.cloud.language.v1.AnalyzeSentimentResponse")\x82\xd3\xe4\x93\x02#"\x1e/v1/documents:analyzeSentiment:\x01*\x12\xa0\x01\n\x0f\x41nalyzeEntities\x12\x30.google.cloud.language.v1.AnalyzeEntitiesRequest\x1a\x31.google.cloud.language.v1.AnalyzeEntitiesResponse"(\x82\xd3\xe4\x93\x02""\x1d/v1/documents:analyzeEntities:\x01*\x12\xbc\x01\n\x16\x41nalyzeEntitySentiment\x12\x37.google.cloud.language.v1.AnalyzeEntitySentimentRequest\x1a\x38.google.cloud.language.v1.AnalyzeEntitySentimentResponse"/\x82\xd3\xe4\x93\x02)"$/v1/documents:analyzeEntitySentiment:\x01*\x12\x98\x01\n\rAnalyzeSyntax\x12..google.cloud.language.v1.AnalyzeSyntaxRequest\x1a/.google.cloud.language.v1.AnalyzeSyntaxResponse"&\x82\xd3\xe4\x93\x02 "\x1b/v1/documents:analyzeSyntax:\x01*\x12\x94\x01\n\x0c\x43lassifyText\x12-.google.cloud.language.v1.ClassifyTextRequest\x1a..google.cloud.language.v1.ClassifyTextResponse"%\x82\xd3\xe4\x93\x02\x1f"\x1a/v1/documents:classifyText:\x01*\x12\x94\x01\n\x0c\x41nnotateText\x12-.google.cloud.language.v1.AnnotateTextRequest\x1a..google.cloud.language.v1.AnnotateTextResponse"%\x82\xd3\xe4\x93\x02\x1f"\x1a/v1/documents:annotateText:\x01*Bx\n\x1c\x63om.google.cloud.language.v1B\x14LanguageServiceProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/language/v1;languageb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _ENCODINGTYPE = _descriptor.EnumDescriptor( - name='EncodingType', - full_name='google.cloud.language.v1.EncodingType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='NONE', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UTF8', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UTF16', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UTF32', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=6584, - serialized_end=6640, + name="EncodingType", + full_name="google.cloud.language.v1.EncodingType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="NONE", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UTF8", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UTF16", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UTF32", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=6584, + serialized_end=6640, ) _sym_db.RegisterEnumDescriptor(_ENCODINGTYPE) @@ -63,2094 +63,2674 @@ _DOCUMENT_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.language.v1.Document.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLAIN_TEXT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HTML', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=245, - serialized_end=299, + name="Type", + full_name="google.cloud.language.v1.Document.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLAIN_TEXT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HTML", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=245, + serialized_end=299, ) _sym_db.RegisterEnumDescriptor(_DOCUMENT_TYPE) _ENTITY_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.language.v1.Entity.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERSON', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ORGANIZATION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EVENT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WORK_OF_ART', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONSUMER_GOOD', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OTHER', index=7, number=7, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=755, - serialized_end=876, + name="Type", + full_name="google.cloud.language.v1.Entity.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERSON", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOCATION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ORGANIZATION", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EVENT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WORK_OF_ART", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONSUMER_GOOD", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OTHER", index=7, number=7, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=755, + serialized_end=876, ) _sym_db.RegisterEnumDescriptor(_ENTITY_TYPE) _PARTOFSPEECH_TAG = _descriptor.EnumDescriptor( - name='Tag', - full_name='google.cloud.language.v1.PartOfSpeech.Tag', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADJ', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADP', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADV', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONJ', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DET', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOUN', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUM', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRON', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRT', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUNCT', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERB', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='X', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AFFIX', index=13, number=13, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1893, - serialized_end=2034, + name="Tag", + full_name="google.cloud.language.v1.PartOfSpeech.Tag", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADJ", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADP", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADV", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONJ", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DET", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOUN", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUM", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRON", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRT", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PUNCT", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERB", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="X", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AFFIX", index=13, number=13, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1893, + serialized_end=2034, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_TAG) _PARTOFSPEECH_ASPECT = _descriptor.EnumDescriptor( - name='Aspect', - full_name='google.cloud.language.v1.PartOfSpeech.Aspect', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ASPECT_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERFECTIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMPERFECTIVE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROGRESSIVE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2036, - serialized_end=2115, + name="Aspect", + full_name="google.cloud.language.v1.PartOfSpeech.Aspect", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ASPECT_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERFECTIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMPERFECTIVE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROGRESSIVE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2036, + serialized_end=2115, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_ASPECT) _PARTOFSPEECH_CASE = _descriptor.EnumDescriptor( - name='Case', - full_name='google.cloud.language.v1.PartOfSpeech.Case', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CASE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCUSATIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVERBIAL', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPLEMENTIVE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATIVE', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GENITIVE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INSTRUMENTAL', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATIVE', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMINATIVE', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OBLIQUE', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARTITIVE', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREPOSITIONAL', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REFLEXIVE_CASE', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RELATIVE_CASE', index=13, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VOCATIVE', index=14, number=14, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2118, - serialized_end=2366, + name="Case", + full_name="google.cloud.language.v1.PartOfSpeech.Case", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CASE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACCUSATIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVERBIAL", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPLEMENTIVE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DATIVE", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GENITIVE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INSTRUMENTAL", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOCATIVE", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMINATIVE", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OBLIQUE", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARTITIVE", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREPOSITIONAL", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REFLEXIVE_CASE", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RELATIVE_CASE", index=13, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VOCATIVE", index=14, number=14, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2118, + serialized_end=2366, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_CASE) _PARTOFSPEECH_FORM = _descriptor.EnumDescriptor( - name='Form', - full_name='google.cloud.language.v1.PartOfSpeech.Form', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FORM_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADNOMIAL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXILIARY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPLEMENTIZER', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FINAL_ENDING', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GERUND', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REALIS', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IRREALIS', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHORT', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LONG', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ORDER', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPECIFIC', index=11, number=11, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2369, - serialized_end=2544, + name="Form", + full_name="google.cloud.language.v1.PartOfSpeech.Form", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FORM_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADNOMIAL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXILIARY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPLEMENTIZER", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FINAL_ENDING", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GERUND", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REALIS", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IRREALIS", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHORT", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LONG", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ORDER", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SPECIFIC", index=11, number=11, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2369, + serialized_end=2544, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_FORM) _PARTOFSPEECH_GENDER = _descriptor.EnumDescriptor( - name='Gender', - full_name='google.cloud.language.v1.PartOfSpeech.Gender', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='GENDER_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEMININE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MASCULINE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEUTER', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2546, - serialized_end=2615, + name="Gender", + full_name="google.cloud.language.v1.PartOfSpeech.Gender", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="GENDER_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FEMININE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MASCULINE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEUTER", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2546, + serialized_end=2615, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_GENDER) _PARTOFSPEECH_MOOD = _descriptor.EnumDescriptor( - name='Mood', - full_name='google.cloud.language.v1.PartOfSpeech.Mood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MOOD_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONDITIONAL_MOOD', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMPERATIVE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INDICATIVE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INTERROGATIVE', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='JUSSIVE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUBJUNCTIVE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2617, - serialized_end=2744, + name="Mood", + full_name="google.cloud.language.v1.PartOfSpeech.Mood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="MOOD_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONDITIONAL_MOOD", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMPERATIVE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INDICATIVE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INTERROGATIVE", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="JUSSIVE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUBJUNCTIVE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2617, + serialized_end=2744, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_MOOD) _PARTOFSPEECH_NUMBER = _descriptor.EnumDescriptor( - name='Number', - full_name='google.cloud.language.v1.PartOfSpeech.Number', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='NUMBER_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SINGULAR', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLURAL', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUAL', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2746, - serialized_end=2810, + name="Number", + full_name="google.cloud.language.v1.PartOfSpeech.Number", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="NUMBER_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SINGULAR", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLURAL", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DUAL", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2746, + serialized_end=2810, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_NUMBER) _PARTOFSPEECH_PERSON = _descriptor.EnumDescriptor( - name='Person', - full_name='google.cloud.language.v1.PartOfSpeech.Person', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='PERSON_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FIRST', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SECOND', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='THIRD', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REFLEXIVE_PERSON', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2812, - serialized_end=2896, + name="Person", + full_name="google.cloud.language.v1.PartOfSpeech.Person", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="PERSON_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FIRST", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SECOND", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="THIRD", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REFLEXIVE_PERSON", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2812, + serialized_end=2896, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_PERSON) _PARTOFSPEECH_PROPER = _descriptor.EnumDescriptor( - name='Proper', - full_name='google.cloud.language.v1.PartOfSpeech.Proper', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='PROPER_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROPER', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOT_PROPER', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2898, - serialized_end=2954, + name="Proper", + full_name="google.cloud.language.v1.PartOfSpeech.Proper", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="PROPER_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROPER", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOT_PROPER", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2898, + serialized_end=2954, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_PROPER) _PARTOFSPEECH_RECIPROCITY = _descriptor.EnumDescriptor( - name='Reciprocity', - full_name='google.cloud.language.v1.PartOfSpeech.Reciprocity', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='RECIPROCITY_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RECIPROCAL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NON_RECIPROCAL', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2956, - serialized_end=3030, + name="Reciprocity", + full_name="google.cloud.language.v1.PartOfSpeech.Reciprocity", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="RECIPROCITY_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RECIPROCAL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NON_RECIPROCAL", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2956, + serialized_end=3030, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_RECIPROCITY) _PARTOFSPEECH_TENSE = _descriptor.EnumDescriptor( - name='Tense', - full_name='google.cloud.language.v1.PartOfSpeech.Tense', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TENSE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONDITIONAL_TENSE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FUTURE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAST', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRESENT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMPERFECT', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLUPERFECT', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3032, - serialized_end=3147, + name="Tense", + full_name="google.cloud.language.v1.PartOfSpeech.Tense", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TENSE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONDITIONAL_TENSE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FUTURE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PAST", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRESENT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMPERFECT", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLUPERFECT", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3032, + serialized_end=3147, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_TENSE) _PARTOFSPEECH_VOICE = _descriptor.EnumDescriptor( - name='Voice', - full_name='google.cloud.language.v1.PartOfSpeech.Voice', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VOICE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACTIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CAUSATIVE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PASSIVE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3149, - serialized_end=3215, + name="Voice", + full_name="google.cloud.language.v1.PartOfSpeech.Voice", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VOICE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACTIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CAUSATIVE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PASSIVE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3149, + serialized_end=3215, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_VOICE) _DEPENDENCYEDGE_LABEL = _descriptor.EnumDescriptor( - name='Label', - full_name='google.cloud.language.v1.DependencyEdge.Label', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ABBREV', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACOMP', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVCL', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVMOD', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AMOD', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='APPOS', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ATTR', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUX', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXPASS', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CC', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CCOMP', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONJ', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CSUBJ', index=13, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CSUBJPASS', index=14, number=14, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEP', index=15, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DET', index=16, number=16, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISCOURSE', index=17, number=17, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DOBJ', index=18, number=18, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPL', index=19, number=19, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOESWITH', index=20, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IOBJ', index=21, number=21, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MARK', index=22, number=22, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MWE', index=23, number=23, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MWV', index=24, number=24, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEG', index=25, number=25, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NN', index=26, number=26, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NPADVMOD', index=27, number=27, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NSUBJ', index=28, number=28, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NSUBJPASS', index=29, number=29, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUM', index=30, number=30, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUMBER', index=31, number=31, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='P', index=32, number=32, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARATAXIS', index=33, number=33, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARTMOD', index=34, number=34, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PCOMP', index=35, number=35, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POBJ', index=36, number=36, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSS', index=37, number=37, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSTNEG', index=38, number=38, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRECOMP', index=39, number=39, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRECONJ', index=40, number=40, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREDET', index=41, number=41, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREF', index=42, number=42, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREP', index=43, number=43, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRONL', index=44, number=44, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRT', index=45, number=45, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PS', index=46, number=46, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='QUANTMOD', index=47, number=47, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RCMOD', index=48, number=48, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RCMODREL', index=49, number=49, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RDROP', index=50, number=50, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REF', index=51, number=51, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMNANT', index=52, number=52, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REPARANDUM', index=53, number=53, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ROOT', index=54, number=54, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SNUM', index=55, number=55, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUFF', index=56, number=56, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TMOD', index=57, number=57, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOPIC', index=58, number=58, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VMOD', index=59, number=59, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VOCATIVE', index=60, number=60, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='XCOMP', index=61, number=61, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUFFIX', index=62, number=62, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TITLE', index=63, number=63, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVPHMOD', index=64, number=64, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXCAUS', index=65, number=65, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXVV', index=66, number=66, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DTMOD', index=67, number=67, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FOREIGN', index=68, number=68, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KW', index=69, number=69, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIST', index=70, number=70, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMC', index=71, number=71, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMCSUBJ', index=72, number=72, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMCSUBJPASS', index=73, number=73, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUMC', index=74, number=74, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COP', index=75, number=75, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISLOCATED', index=76, number=76, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASP', index=77, number=77, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GMOD', index=78, number=78, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOBJ', index=79, number=79, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INFMOD', index=80, number=80, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MES', index=81, number=81, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NCOMP', index=82, number=82, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3326, - serialized_end=4263, + name="Label", + full_name="google.cloud.language.v1.DependencyEdge.Label", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ABBREV", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACOMP", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVCL", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVMOD", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AMOD", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="APPOS", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ATTR", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUX", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXPASS", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CC", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CCOMP", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONJ", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CSUBJ", index=13, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CSUBJPASS", index=14, number=14, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DEP", index=15, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DET", index=16, number=16, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISCOURSE", index=17, number=17, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DOBJ", index=18, number=18, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXPL", index=19, number=19, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GOESWITH", index=20, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IOBJ", index=21, number=21, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MARK", index=22, number=22, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MWE", index=23, number=23, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MWV", index=24, number=24, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEG", index=25, number=25, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NN", index=26, number=26, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NPADVMOD", index=27, number=27, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NSUBJ", index=28, number=28, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NSUBJPASS", index=29, number=29, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUM", index=30, number=30, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUMBER", index=31, number=31, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="P", index=32, number=32, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARATAXIS", index=33, number=33, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARTMOD", index=34, number=34, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PCOMP", index=35, number=35, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POBJ", index=36, number=36, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSS", index=37, number=37, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSTNEG", index=38, number=38, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRECOMP", index=39, number=39, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRECONJ", index=40, number=40, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREDET", index=41, number=41, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREF", index=42, number=42, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREP", index=43, number=43, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRONL", index=44, number=44, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRT", index=45, number=45, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PS", index=46, number=46, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="QUANTMOD", index=47, number=47, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RCMOD", index=48, number=48, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RCMODREL", index=49, number=49, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RDROP", index=50, number=50, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REF", index=51, number=51, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REMNANT", index=52, number=52, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REPARANDUM", index=53, number=53, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ROOT", index=54, number=54, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SNUM", index=55, number=55, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUFF", index=56, number=56, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TMOD", index=57, number=57, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TOPIC", index=58, number=58, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VMOD", index=59, number=59, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VOCATIVE", index=60, number=60, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="XCOMP", index=61, number=61, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUFFIX", index=62, number=62, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TITLE", index=63, number=63, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVPHMOD", index=64, number=64, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXCAUS", index=65, number=65, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXVV", index=66, number=66, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DTMOD", index=67, number=67, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FOREIGN", index=68, number=68, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="KW", index=69, number=69, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIST", index=70, number=70, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMC", index=71, number=71, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMCSUBJ", index=72, number=72, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMCSUBJPASS", index=73, number=73, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUMC", index=74, number=74, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COP", index=75, number=75, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISLOCATED", index=76, number=76, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ASP", index=77, number=77, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GMOD", index=78, number=78, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GOBJ", index=79, number=79, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INFMOD", index=80, number=80, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MES", index=81, number=81, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NCOMP", index=82, number=82, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3326, + serialized_end=4263, ) _sym_db.RegisterEnumDescriptor(_DEPENDENCYEDGE_LABEL) _ENTITYMENTION_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.language.v1.EntityMention.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROPER', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMMON', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4449, - serialized_end=4497, + name="Type", + full_name="google.cloud.language.v1.EntityMention.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROPER", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMMON", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4449, + serialized_end=4497, ) _sym_db.RegisterEnumDescriptor(_ENTITYMENTION_TYPE) _DOCUMENT = _descriptor.Descriptor( - name='Document', - full_name='google.cloud.language.v1.Document', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1.Document.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.language.v1.Document.content', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gcs_content_uri', full_name='google.cloud.language.v1.Document.gcs_content_uri', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1.Document.language', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DOCUMENT_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='source', full_name='google.cloud.language.v1.Document.source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=114, - serialized_end=309, + name="Document", + full_name="google.cloud.language.v1.Document", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.language.v1.Document.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.language.v1.Document.content", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gcs_content_uri", + full_name="google.cloud.language.v1.Document.gcs_content_uri", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1.Document.language", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DOCUMENT_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.cloud.language.v1.Document.source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=114, + serialized_end=309, ) _SENTENCE = _descriptor.Descriptor( - name='Sentence', - full_name='google.cloud.language.v1.Sentence', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1.Sentence.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentiment', full_name='google.cloud.language.v1.Sentence.sentiment', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=311, - serialized_end=427, + name="Sentence", + full_name="google.cloud.language.v1.Sentence", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.language.v1.Sentence.text", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentiment", + full_name="google.cloud.language.v1.Sentence.sentiment", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=311, + serialized_end=427, ) _ENTITY_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='google.cloud.language.v1.Entity.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.language.v1.Entity.MetadataEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.language.v1.Entity.MetadataEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=706, - serialized_end=753, + name="MetadataEntry", + full_name="google.cloud.language.v1.Entity.MetadataEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.language.v1.Entity.MetadataEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.language.v1.Entity.MetadataEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=706, + serialized_end=753, ) _ENTITY = _descriptor.Descriptor( - name='Entity', - full_name='google.cloud.language.v1.Entity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.language.v1.Entity.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1.Entity.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.language.v1.Entity.metadata', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='salience', full_name='google.cloud.language.v1.Entity.salience', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mentions', full_name='google.cloud.language.v1.Entity.mentions', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentiment', full_name='google.cloud.language.v1.Entity.sentiment', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ENTITY_METADATAENTRY, ], - enum_types=[ - _ENTITY_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=430, - serialized_end=876, + name="Entity", + full_name="google.cloud.language.v1.Entity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.language.v1.Entity.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.language.v1.Entity.type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.cloud.language.v1.Entity.metadata", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="salience", + full_name="google.cloud.language.v1.Entity.salience", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mentions", + full_name="google.cloud.language.v1.Entity.mentions", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentiment", + full_name="google.cloud.language.v1.Entity.sentiment", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ENTITY_METADATAENTRY], + enum_types=[_ENTITY_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=430, + serialized_end=876, ) _TOKEN = _descriptor.Descriptor( - name='Token', - full_name='google.cloud.language.v1.Token', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1.Token.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='part_of_speech', full_name='google.cloud.language.v1.Token.part_of_speech', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dependency_edge', full_name='google.cloud.language.v1.Token.dependency_edge', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='lemma', full_name='google.cloud.language.v1.Token.lemma', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=879, - serialized_end=1082, + name="Token", + full_name="google.cloud.language.v1.Token", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.language.v1.Token.text", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="part_of_speech", + full_name="google.cloud.language.v1.Token.part_of_speech", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dependency_edge", + full_name="google.cloud.language.v1.Token.dependency_edge", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="lemma", + full_name="google.cloud.language.v1.Token.lemma", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=879, + serialized_end=1082, ) _SENTIMENT = _descriptor.Descriptor( - name='Sentiment', - full_name='google.cloud.language.v1.Sentiment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='magnitude', full_name='google.cloud.language.v1.Sentiment.magnitude', index=0, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.language.v1.Sentiment.score', index=1, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1084, - serialized_end=1129, + name="Sentiment", + full_name="google.cloud.language.v1.Sentiment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="magnitude", + full_name="google.cloud.language.v1.Sentiment.magnitude", + index=0, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.language.v1.Sentiment.score", + index=1, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1084, + serialized_end=1129, ) _PARTOFSPEECH = _descriptor.Descriptor( - name='PartOfSpeech', - full_name='google.cloud.language.v1.PartOfSpeech', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tag', full_name='google.cloud.language.v1.PartOfSpeech.tag', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aspect', full_name='google.cloud.language.v1.PartOfSpeech.aspect', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='case', full_name='google.cloud.language.v1.PartOfSpeech.case', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='form', full_name='google.cloud.language.v1.PartOfSpeech.form', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gender', full_name='google.cloud.language.v1.PartOfSpeech.gender', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mood', full_name='google.cloud.language.v1.PartOfSpeech.mood', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='number', full_name='google.cloud.language.v1.PartOfSpeech.number', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='person', full_name='google.cloud.language.v1.PartOfSpeech.person', index=7, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proper', full_name='google.cloud.language.v1.PartOfSpeech.proper', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reciprocity', full_name='google.cloud.language.v1.PartOfSpeech.reciprocity', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tense', full_name='google.cloud.language.v1.PartOfSpeech.tense', index=10, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='voice', full_name='google.cloud.language.v1.PartOfSpeech.voice', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PARTOFSPEECH_TAG, - _PARTOFSPEECH_ASPECT, - _PARTOFSPEECH_CASE, - _PARTOFSPEECH_FORM, - _PARTOFSPEECH_GENDER, - _PARTOFSPEECH_MOOD, - _PARTOFSPEECH_NUMBER, - _PARTOFSPEECH_PERSON, - _PARTOFSPEECH_PROPER, - _PARTOFSPEECH_RECIPROCITY, - _PARTOFSPEECH_TENSE, - _PARTOFSPEECH_VOICE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1132, - serialized_end=3215, + name="PartOfSpeech", + full_name="google.cloud.language.v1.PartOfSpeech", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="tag", + full_name="google.cloud.language.v1.PartOfSpeech.tag", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aspect", + full_name="google.cloud.language.v1.PartOfSpeech.aspect", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="case", + full_name="google.cloud.language.v1.PartOfSpeech.case", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="form", + full_name="google.cloud.language.v1.PartOfSpeech.form", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gender", + full_name="google.cloud.language.v1.PartOfSpeech.gender", + index=4, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mood", + full_name="google.cloud.language.v1.PartOfSpeech.mood", + index=5, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="number", + full_name="google.cloud.language.v1.PartOfSpeech.number", + index=6, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="person", + full_name="google.cloud.language.v1.PartOfSpeech.person", + index=7, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="proper", + full_name="google.cloud.language.v1.PartOfSpeech.proper", + index=8, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reciprocity", + full_name="google.cloud.language.v1.PartOfSpeech.reciprocity", + index=9, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tense", + full_name="google.cloud.language.v1.PartOfSpeech.tense", + index=10, + number=11, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="voice", + full_name="google.cloud.language.v1.PartOfSpeech.voice", + index=11, + number=12, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[ + _PARTOFSPEECH_TAG, + _PARTOFSPEECH_ASPECT, + _PARTOFSPEECH_CASE, + _PARTOFSPEECH_FORM, + _PARTOFSPEECH_GENDER, + _PARTOFSPEECH_MOOD, + _PARTOFSPEECH_NUMBER, + _PARTOFSPEECH_PERSON, + _PARTOFSPEECH_PROPER, + _PARTOFSPEECH_RECIPROCITY, + _PARTOFSPEECH_TENSE, + _PARTOFSPEECH_VOICE, + ], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1132, + serialized_end=3215, ) _DEPENDENCYEDGE = _descriptor.Descriptor( - name='DependencyEdge', - full_name='google.cloud.language.v1.DependencyEdge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='head_token_index', full_name='google.cloud.language.v1.DependencyEdge.head_token_index', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label', full_name='google.cloud.language.v1.DependencyEdge.label', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DEPENDENCYEDGE_LABEL, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3218, - serialized_end=4263, + name="DependencyEdge", + full_name="google.cloud.language.v1.DependencyEdge", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="head_token_index", + full_name="google.cloud.language.v1.DependencyEdge.head_token_index", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label", + full_name="google.cloud.language.v1.DependencyEdge.label", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DEPENDENCYEDGE_LABEL], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3218, + serialized_end=4263, ) _ENTITYMENTION = _descriptor.Descriptor( - name='EntityMention', - full_name='google.cloud.language.v1.EntityMention', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1.EntityMention.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1.EntityMention.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentiment', full_name='google.cloud.language.v1.EntityMention.sentiment', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _ENTITYMENTION_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4266, - serialized_end=4497, + name="EntityMention", + full_name="google.cloud.language.v1.EntityMention", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.language.v1.EntityMention.text", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.language.v1.EntityMention.type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentiment", + full_name="google.cloud.language.v1.EntityMention.sentiment", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_ENTITYMENTION_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4266, + serialized_end=4497, ) _TEXTSPAN = _descriptor.Descriptor( - name='TextSpan', - full_name='google.cloud.language.v1.TextSpan', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.language.v1.TextSpan.content', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='begin_offset', full_name='google.cloud.language.v1.TextSpan.begin_offset', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4499, - serialized_end=4548, + name="TextSpan", + full_name="google.cloud.language.v1.TextSpan", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.language.v1.TextSpan.content", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="begin_offset", + full_name="google.cloud.language.v1.TextSpan.begin_offset", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4499, + serialized_end=4548, ) _CLASSIFICATIONCATEGORY = _descriptor.Descriptor( - name='ClassificationCategory', - full_name='google.cloud.language.v1.ClassificationCategory', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.language.v1.ClassificationCategory.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.language.v1.ClassificationCategory.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4550, - serialized_end=4608, + name="ClassificationCategory", + full_name="google.cloud.language.v1.ClassificationCategory", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.language.v1.ClassificationCategory.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.language.v1.ClassificationCategory.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4550, + serialized_end=4608, ) _ANALYZESENTIMENTREQUEST = _descriptor.Descriptor( - name='AnalyzeSentimentRequest', - full_name='google.cloud.language.v1.AnalyzeSentimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1.AnalyzeSentimentRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1.AnalyzeSentimentRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4611, - serialized_end=4753, + name="AnalyzeSentimentRequest", + full_name="google.cloud.language.v1.AnalyzeSentimentRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1.AnalyzeSentimentRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1.AnalyzeSentimentRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4611, + serialized_end=4753, ) _ANALYZESENTIMENTRESPONSE = _descriptor.Descriptor( - name='AnalyzeSentimentResponse', - full_name='google.cloud.language.v1.AnalyzeSentimentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document_sentiment', full_name='google.cloud.language.v1.AnalyzeSentimentResponse.document_sentiment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1.AnalyzeSentimentResponse.language', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentences', full_name='google.cloud.language.v1.AnalyzeSentimentResponse.sentences', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4756, - serialized_end=4920, + name="AnalyzeSentimentResponse", + full_name="google.cloud.language.v1.AnalyzeSentimentResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document_sentiment", + full_name="google.cloud.language.v1.AnalyzeSentimentResponse.document_sentiment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1.AnalyzeSentimentResponse.language", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentences", + full_name="google.cloud.language.v1.AnalyzeSentimentResponse.sentences", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4756, + serialized_end=4920, ) _ANALYZEENTITYSENTIMENTREQUEST = _descriptor.Descriptor( - name='AnalyzeEntitySentimentRequest', - full_name='google.cloud.language.v1.AnalyzeEntitySentimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1.AnalyzeEntitySentimentRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1.AnalyzeEntitySentimentRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4923, - serialized_end=5071, + name="AnalyzeEntitySentimentRequest", + full_name="google.cloud.language.v1.AnalyzeEntitySentimentRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1.AnalyzeEntitySentimentRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1.AnalyzeEntitySentimentRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4923, + serialized_end=5071, ) _ANALYZEENTITYSENTIMENTRESPONSE = _descriptor.Descriptor( - name='AnalyzeEntitySentimentResponse', - full_name='google.cloud.language.v1.AnalyzeEntitySentimentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1.AnalyzeEntitySentimentResponse.entities', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1.AnalyzeEntitySentimentResponse.language', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5073, - serialized_end=5175, + name="AnalyzeEntitySentimentResponse", + full_name="google.cloud.language.v1.AnalyzeEntitySentimentResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entities", + full_name="google.cloud.language.v1.AnalyzeEntitySentimentResponse.entities", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1.AnalyzeEntitySentimentResponse.language", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5073, + serialized_end=5175, ) _ANALYZEENTITIESREQUEST = _descriptor.Descriptor( - name='AnalyzeEntitiesRequest', - full_name='google.cloud.language.v1.AnalyzeEntitiesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1.AnalyzeEntitiesRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1.AnalyzeEntitiesRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5178, - serialized_end=5319, + name="AnalyzeEntitiesRequest", + full_name="google.cloud.language.v1.AnalyzeEntitiesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1.AnalyzeEntitiesRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1.AnalyzeEntitiesRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5178, + serialized_end=5319, ) _ANALYZEENTITIESRESPONSE = _descriptor.Descriptor( - name='AnalyzeEntitiesResponse', - full_name='google.cloud.language.v1.AnalyzeEntitiesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1.AnalyzeEntitiesResponse.entities', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1.AnalyzeEntitiesResponse.language', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5321, - serialized_end=5416, + name="AnalyzeEntitiesResponse", + full_name="google.cloud.language.v1.AnalyzeEntitiesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entities", + full_name="google.cloud.language.v1.AnalyzeEntitiesResponse.entities", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1.AnalyzeEntitiesResponse.language", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5321, + serialized_end=5416, ) _ANALYZESYNTAXREQUEST = _descriptor.Descriptor( - name='AnalyzeSyntaxRequest', - full_name='google.cloud.language.v1.AnalyzeSyntaxRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1.AnalyzeSyntaxRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1.AnalyzeSyntaxRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5419, - serialized_end=5558, + name="AnalyzeSyntaxRequest", + full_name="google.cloud.language.v1.AnalyzeSyntaxRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1.AnalyzeSyntaxRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1.AnalyzeSyntaxRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5419, + serialized_end=5558, ) _ANALYZESYNTAXRESPONSE = _descriptor.Descriptor( - name='AnalyzeSyntaxResponse', - full_name='google.cloud.language.v1.AnalyzeSyntaxResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sentences', full_name='google.cloud.language.v1.AnalyzeSyntaxResponse.sentences', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tokens', full_name='google.cloud.language.v1.AnalyzeSyntaxResponse.tokens', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1.AnalyzeSyntaxResponse.language', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5561, - serialized_end=5706, + name="AnalyzeSyntaxResponse", + full_name="google.cloud.language.v1.AnalyzeSyntaxResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sentences", + full_name="google.cloud.language.v1.AnalyzeSyntaxResponse.sentences", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tokens", + full_name="google.cloud.language.v1.AnalyzeSyntaxResponse.tokens", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1.AnalyzeSyntaxResponse.language", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5561, + serialized_end=5706, ) _CLASSIFYTEXTREQUEST = _descriptor.Descriptor( - name='ClassifyTextRequest', - full_name='google.cloud.language.v1.ClassifyTextRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1.ClassifyTextRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5708, - serialized_end=5783, + name="ClassifyTextRequest", + full_name="google.cloud.language.v1.ClassifyTextRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1.ClassifyTextRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5708, + serialized_end=5783, ) _CLASSIFYTEXTRESPONSE = _descriptor.Descriptor( - name='ClassifyTextResponse', - full_name='google.cloud.language.v1.ClassifyTextResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='categories', full_name='google.cloud.language.v1.ClassifyTextResponse.categories', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5785, - serialized_end=5877, + name="ClassifyTextResponse", + full_name="google.cloud.language.v1.ClassifyTextResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="categories", + full_name="google.cloud.language.v1.ClassifyTextResponse.categories", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5785, + serialized_end=5877, ) _ANNOTATETEXTREQUEST_FEATURES = _descriptor.Descriptor( - name='Features', - full_name='google.cloud.language.v1.AnnotateTextRequest.Features', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='extract_syntax', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extract_entities', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extract_document_sentiment', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extract_entity_sentiment', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='classify_text', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.classify_text', index=4, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6095, - serialized_end=6248, + name="Features", + full_name="google.cloud.language.v1.AnnotateTextRequest.Features", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="extract_syntax", + full_name="google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extract_entities", + full_name="google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extract_document_sentiment", + full_name="google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extract_entity_sentiment", + full_name="google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="classify_text", + full_name="google.cloud.language.v1.AnnotateTextRequest.Features.classify_text", + index=4, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6095, + serialized_end=6248, ) _ANNOTATETEXTREQUEST = _descriptor.Descriptor( - name='AnnotateTextRequest', - full_name='google.cloud.language.v1.AnnotateTextRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1.AnnotateTextRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.language.v1.AnnotateTextRequest.features', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1.AnnotateTextRequest.encoding_type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANNOTATETEXTREQUEST_FEATURES, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5880, - serialized_end=6248, + name="AnnotateTextRequest", + full_name="google.cloud.language.v1.AnnotateTextRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1.AnnotateTextRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.language.v1.AnnotateTextRequest.features", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1.AnnotateTextRequest.encoding_type", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ANNOTATETEXTREQUEST_FEATURES], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5880, + serialized_end=6248, ) _ANNOTATETEXTRESPONSE = _descriptor.Descriptor( - name='AnnotateTextResponse', - full_name='google.cloud.language.v1.AnnotateTextResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sentences', full_name='google.cloud.language.v1.AnnotateTextResponse.sentences', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tokens', full_name='google.cloud.language.v1.AnnotateTextResponse.tokens', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1.AnnotateTextResponse.entities', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='document_sentiment', full_name='google.cloud.language.v1.AnnotateTextResponse.document_sentiment', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1.AnnotateTextResponse.language', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='categories', full_name='google.cloud.language.v1.AnnotateTextResponse.categories', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6251, - serialized_end=6582, -) - -_DOCUMENT.fields_by_name['type'].enum_type = _DOCUMENT_TYPE + name="AnnotateTextResponse", + full_name="google.cloud.language.v1.AnnotateTextResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sentences", + full_name="google.cloud.language.v1.AnnotateTextResponse.sentences", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tokens", + full_name="google.cloud.language.v1.AnnotateTextResponse.tokens", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="entities", + full_name="google.cloud.language.v1.AnnotateTextResponse.entities", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="document_sentiment", + full_name="google.cloud.language.v1.AnnotateTextResponse.document_sentiment", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1.AnnotateTextResponse.language", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="categories", + full_name="google.cloud.language.v1.AnnotateTextResponse.categories", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6251, + serialized_end=6582, +) + +_DOCUMENT.fields_by_name["type"].enum_type = _DOCUMENT_TYPE _DOCUMENT_TYPE.containing_type = _DOCUMENT -_DOCUMENT.oneofs_by_name['source'].fields.append( - _DOCUMENT.fields_by_name['content']) -_DOCUMENT.fields_by_name['content'].containing_oneof = _DOCUMENT.oneofs_by_name['source'] -_DOCUMENT.oneofs_by_name['source'].fields.append( - _DOCUMENT.fields_by_name['gcs_content_uri']) -_DOCUMENT.fields_by_name['gcs_content_uri'].containing_oneof = _DOCUMENT.oneofs_by_name['source'] -_SENTENCE.fields_by_name['text'].message_type = _TEXTSPAN -_SENTENCE.fields_by_name['sentiment'].message_type = _SENTIMENT +_DOCUMENT.oneofs_by_name["source"].fields.append(_DOCUMENT.fields_by_name["content"]) +_DOCUMENT.fields_by_name["content"].containing_oneof = _DOCUMENT.oneofs_by_name[ + "source" +] +_DOCUMENT.oneofs_by_name["source"].fields.append( + _DOCUMENT.fields_by_name["gcs_content_uri"] +) +_DOCUMENT.fields_by_name["gcs_content_uri"].containing_oneof = _DOCUMENT.oneofs_by_name[ + "source" +] +_SENTENCE.fields_by_name["text"].message_type = _TEXTSPAN +_SENTENCE.fields_by_name["sentiment"].message_type = _SENTIMENT _ENTITY_METADATAENTRY.containing_type = _ENTITY -_ENTITY.fields_by_name['type'].enum_type = _ENTITY_TYPE -_ENTITY.fields_by_name['metadata'].message_type = _ENTITY_METADATAENTRY -_ENTITY.fields_by_name['mentions'].message_type = _ENTITYMENTION -_ENTITY.fields_by_name['sentiment'].message_type = _SENTIMENT +_ENTITY.fields_by_name["type"].enum_type = _ENTITY_TYPE +_ENTITY.fields_by_name["metadata"].message_type = _ENTITY_METADATAENTRY +_ENTITY.fields_by_name["mentions"].message_type = _ENTITYMENTION +_ENTITY.fields_by_name["sentiment"].message_type = _SENTIMENT _ENTITY_TYPE.containing_type = _ENTITY -_TOKEN.fields_by_name['text'].message_type = _TEXTSPAN -_TOKEN.fields_by_name['part_of_speech'].message_type = _PARTOFSPEECH -_TOKEN.fields_by_name['dependency_edge'].message_type = _DEPENDENCYEDGE -_PARTOFSPEECH.fields_by_name['tag'].enum_type = _PARTOFSPEECH_TAG -_PARTOFSPEECH.fields_by_name['aspect'].enum_type = _PARTOFSPEECH_ASPECT -_PARTOFSPEECH.fields_by_name['case'].enum_type = _PARTOFSPEECH_CASE -_PARTOFSPEECH.fields_by_name['form'].enum_type = _PARTOFSPEECH_FORM -_PARTOFSPEECH.fields_by_name['gender'].enum_type = _PARTOFSPEECH_GENDER -_PARTOFSPEECH.fields_by_name['mood'].enum_type = _PARTOFSPEECH_MOOD -_PARTOFSPEECH.fields_by_name['number'].enum_type = _PARTOFSPEECH_NUMBER -_PARTOFSPEECH.fields_by_name['person'].enum_type = _PARTOFSPEECH_PERSON -_PARTOFSPEECH.fields_by_name['proper'].enum_type = _PARTOFSPEECH_PROPER -_PARTOFSPEECH.fields_by_name['reciprocity'].enum_type = _PARTOFSPEECH_RECIPROCITY -_PARTOFSPEECH.fields_by_name['tense'].enum_type = _PARTOFSPEECH_TENSE -_PARTOFSPEECH.fields_by_name['voice'].enum_type = _PARTOFSPEECH_VOICE +_TOKEN.fields_by_name["text"].message_type = _TEXTSPAN +_TOKEN.fields_by_name["part_of_speech"].message_type = _PARTOFSPEECH +_TOKEN.fields_by_name["dependency_edge"].message_type = _DEPENDENCYEDGE +_PARTOFSPEECH.fields_by_name["tag"].enum_type = _PARTOFSPEECH_TAG +_PARTOFSPEECH.fields_by_name["aspect"].enum_type = _PARTOFSPEECH_ASPECT +_PARTOFSPEECH.fields_by_name["case"].enum_type = _PARTOFSPEECH_CASE +_PARTOFSPEECH.fields_by_name["form"].enum_type = _PARTOFSPEECH_FORM +_PARTOFSPEECH.fields_by_name["gender"].enum_type = _PARTOFSPEECH_GENDER +_PARTOFSPEECH.fields_by_name["mood"].enum_type = _PARTOFSPEECH_MOOD +_PARTOFSPEECH.fields_by_name["number"].enum_type = _PARTOFSPEECH_NUMBER +_PARTOFSPEECH.fields_by_name["person"].enum_type = _PARTOFSPEECH_PERSON +_PARTOFSPEECH.fields_by_name["proper"].enum_type = _PARTOFSPEECH_PROPER +_PARTOFSPEECH.fields_by_name["reciprocity"].enum_type = _PARTOFSPEECH_RECIPROCITY +_PARTOFSPEECH.fields_by_name["tense"].enum_type = _PARTOFSPEECH_TENSE +_PARTOFSPEECH.fields_by_name["voice"].enum_type = _PARTOFSPEECH_VOICE _PARTOFSPEECH_TAG.containing_type = _PARTOFSPEECH _PARTOFSPEECH_ASPECT.containing_type = _PARTOFSPEECH _PARTOFSPEECH_CASE.containing_type = _PARTOFSPEECH @@ -2163,67 +2743,79 @@ _PARTOFSPEECH_RECIPROCITY.containing_type = _PARTOFSPEECH _PARTOFSPEECH_TENSE.containing_type = _PARTOFSPEECH _PARTOFSPEECH_VOICE.containing_type = _PARTOFSPEECH -_DEPENDENCYEDGE.fields_by_name['label'].enum_type = _DEPENDENCYEDGE_LABEL +_DEPENDENCYEDGE.fields_by_name["label"].enum_type = _DEPENDENCYEDGE_LABEL _DEPENDENCYEDGE_LABEL.containing_type = _DEPENDENCYEDGE -_ENTITYMENTION.fields_by_name['text'].message_type = _TEXTSPAN -_ENTITYMENTION.fields_by_name['type'].enum_type = _ENTITYMENTION_TYPE -_ENTITYMENTION.fields_by_name['sentiment'].message_type = _SENTIMENT +_ENTITYMENTION.fields_by_name["text"].message_type = _TEXTSPAN +_ENTITYMENTION.fields_by_name["type"].enum_type = _ENTITYMENTION_TYPE +_ENTITYMENTION.fields_by_name["sentiment"].message_type = _SENTIMENT _ENTITYMENTION_TYPE.containing_type = _ENTITYMENTION -_ANALYZESENTIMENTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZESENTIMENTREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZESENTIMENTRESPONSE.fields_by_name['document_sentiment'].message_type = _SENTIMENT -_ANALYZESENTIMENTRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE -_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZEENTITYSENTIMENTRESPONSE.fields_by_name['entities'].message_type = _ENTITY -_ANALYZEENTITIESREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZEENTITIESREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZEENTITIESRESPONSE.fields_by_name['entities'].message_type = _ENTITY -_ANALYZESYNTAXREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZESYNTAXREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZESYNTAXRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE -_ANALYZESYNTAXRESPONSE.fields_by_name['tokens'].message_type = _TOKEN -_CLASSIFYTEXTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_CLASSIFYTEXTRESPONSE.fields_by_name['categories'].message_type = _CLASSIFICATIONCATEGORY +_ANALYZESENTIMENTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZESENTIMENTREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZESENTIMENTRESPONSE.fields_by_name["document_sentiment"].message_type = _SENTIMENT +_ANALYZESENTIMENTRESPONSE.fields_by_name["sentences"].message_type = _SENTENCE +_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZEENTITYSENTIMENTRESPONSE.fields_by_name["entities"].message_type = _ENTITY +_ANALYZEENTITIESREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZEENTITIESREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZEENTITIESRESPONSE.fields_by_name["entities"].message_type = _ENTITY +_ANALYZESYNTAXREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZESYNTAXREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZESYNTAXRESPONSE.fields_by_name["sentences"].message_type = _SENTENCE +_ANALYZESYNTAXRESPONSE.fields_by_name["tokens"].message_type = _TOKEN +_CLASSIFYTEXTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_CLASSIFYTEXTRESPONSE.fields_by_name[ + "categories" +].message_type = _CLASSIFICATIONCATEGORY _ANNOTATETEXTREQUEST_FEATURES.containing_type = _ANNOTATETEXTREQUEST -_ANNOTATETEXTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANNOTATETEXTREQUEST.fields_by_name['features'].message_type = _ANNOTATETEXTREQUEST_FEATURES -_ANNOTATETEXTREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANNOTATETEXTRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE -_ANNOTATETEXTRESPONSE.fields_by_name['tokens'].message_type = _TOKEN -_ANNOTATETEXTRESPONSE.fields_by_name['entities'].message_type = _ENTITY -_ANNOTATETEXTRESPONSE.fields_by_name['document_sentiment'].message_type = _SENTIMENT -_ANNOTATETEXTRESPONSE.fields_by_name['categories'].message_type = _CLASSIFICATIONCATEGORY -DESCRIPTOR.message_types_by_name['Document'] = _DOCUMENT -DESCRIPTOR.message_types_by_name['Sentence'] = _SENTENCE -DESCRIPTOR.message_types_by_name['Entity'] = _ENTITY -DESCRIPTOR.message_types_by_name['Token'] = _TOKEN -DESCRIPTOR.message_types_by_name['Sentiment'] = _SENTIMENT -DESCRIPTOR.message_types_by_name['PartOfSpeech'] = _PARTOFSPEECH -DESCRIPTOR.message_types_by_name['DependencyEdge'] = _DEPENDENCYEDGE -DESCRIPTOR.message_types_by_name['EntityMention'] = _ENTITYMENTION -DESCRIPTOR.message_types_by_name['TextSpan'] = _TEXTSPAN -DESCRIPTOR.message_types_by_name['ClassificationCategory'] = _CLASSIFICATIONCATEGORY -DESCRIPTOR.message_types_by_name['AnalyzeSentimentRequest'] = _ANALYZESENTIMENTREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeSentimentResponse'] = _ANALYZESENTIMENTRESPONSE -DESCRIPTOR.message_types_by_name['AnalyzeEntitySentimentRequest'] = _ANALYZEENTITYSENTIMENTREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeEntitySentimentResponse'] = _ANALYZEENTITYSENTIMENTRESPONSE -DESCRIPTOR.message_types_by_name['AnalyzeEntitiesRequest'] = _ANALYZEENTITIESREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeEntitiesResponse'] = _ANALYZEENTITIESRESPONSE -DESCRIPTOR.message_types_by_name['AnalyzeSyntaxRequest'] = _ANALYZESYNTAXREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeSyntaxResponse'] = _ANALYZESYNTAXRESPONSE -DESCRIPTOR.message_types_by_name['ClassifyTextRequest'] = _CLASSIFYTEXTREQUEST -DESCRIPTOR.message_types_by_name['ClassifyTextResponse'] = _CLASSIFYTEXTRESPONSE -DESCRIPTOR.message_types_by_name['AnnotateTextRequest'] = _ANNOTATETEXTREQUEST -DESCRIPTOR.message_types_by_name['AnnotateTextResponse'] = _ANNOTATETEXTRESPONSE -DESCRIPTOR.enum_types_by_name['EncodingType'] = _ENCODINGTYPE +_ANNOTATETEXTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANNOTATETEXTREQUEST.fields_by_name[ + "features" +].message_type = _ANNOTATETEXTREQUEST_FEATURES +_ANNOTATETEXTREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANNOTATETEXTRESPONSE.fields_by_name["sentences"].message_type = _SENTENCE +_ANNOTATETEXTRESPONSE.fields_by_name["tokens"].message_type = _TOKEN +_ANNOTATETEXTRESPONSE.fields_by_name["entities"].message_type = _ENTITY +_ANNOTATETEXTRESPONSE.fields_by_name["document_sentiment"].message_type = _SENTIMENT +_ANNOTATETEXTRESPONSE.fields_by_name[ + "categories" +].message_type = _CLASSIFICATIONCATEGORY +DESCRIPTOR.message_types_by_name["Document"] = _DOCUMENT +DESCRIPTOR.message_types_by_name["Sentence"] = _SENTENCE +DESCRIPTOR.message_types_by_name["Entity"] = _ENTITY +DESCRIPTOR.message_types_by_name["Token"] = _TOKEN +DESCRIPTOR.message_types_by_name["Sentiment"] = _SENTIMENT +DESCRIPTOR.message_types_by_name["PartOfSpeech"] = _PARTOFSPEECH +DESCRIPTOR.message_types_by_name["DependencyEdge"] = _DEPENDENCYEDGE +DESCRIPTOR.message_types_by_name["EntityMention"] = _ENTITYMENTION +DESCRIPTOR.message_types_by_name["TextSpan"] = _TEXTSPAN +DESCRIPTOR.message_types_by_name["ClassificationCategory"] = _CLASSIFICATIONCATEGORY +DESCRIPTOR.message_types_by_name["AnalyzeSentimentRequest"] = _ANALYZESENTIMENTREQUEST +DESCRIPTOR.message_types_by_name["AnalyzeSentimentResponse"] = _ANALYZESENTIMENTRESPONSE +DESCRIPTOR.message_types_by_name[ + "AnalyzeEntitySentimentRequest" +] = _ANALYZEENTITYSENTIMENTREQUEST +DESCRIPTOR.message_types_by_name[ + "AnalyzeEntitySentimentResponse" +] = _ANALYZEENTITYSENTIMENTRESPONSE +DESCRIPTOR.message_types_by_name["AnalyzeEntitiesRequest"] = _ANALYZEENTITIESREQUEST +DESCRIPTOR.message_types_by_name["AnalyzeEntitiesResponse"] = _ANALYZEENTITIESRESPONSE +DESCRIPTOR.message_types_by_name["AnalyzeSyntaxRequest"] = _ANALYZESYNTAXREQUEST +DESCRIPTOR.message_types_by_name["AnalyzeSyntaxResponse"] = _ANALYZESYNTAXRESPONSE +DESCRIPTOR.message_types_by_name["ClassifyTextRequest"] = _CLASSIFYTEXTREQUEST +DESCRIPTOR.message_types_by_name["ClassifyTextResponse"] = _CLASSIFYTEXTRESPONSE +DESCRIPTOR.message_types_by_name["AnnotateTextRequest"] = _ANNOTATETEXTREQUEST +DESCRIPTOR.message_types_by_name["AnnotateTextResponse"] = _ANNOTATETEXTRESPONSE +DESCRIPTOR.enum_types_by_name["EncodingType"] = _ENCODINGTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Document = _reflection.GeneratedProtocolMessageType('Document', (_message.Message,), dict( - DESCRIPTOR = _DOCUMENT, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents the input to API methods. +Document = _reflection.GeneratedProtocolMessageType( + "Document", + (_message.Message,), + dict( + DESCRIPTOR=_DOCUMENT, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents the input to API methods. Attributes: @@ -2251,15 +2843,18 @@ supported by the called API method, an ``INVALID_ARGUMENT`` error is returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Document) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Document) + ), +) _sym_db.RegisterMessage(Document) -Sentence = _reflection.GeneratedProtocolMessageType('Sentence', (_message.Message,), dict( - DESCRIPTOR = _SENTENCE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents a sentence in the input document. +Sentence = _reflection.GeneratedProtocolMessageType( + "Sentence", + (_message.Message,), + dict( + DESCRIPTOR=_SENTENCE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents a sentence in the input document. Attributes: @@ -2272,22 +2867,27 @@ set to true, this field will contain the sentiment for the sentence. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentence) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentence) + ), +) _sym_db.RegisterMessage(Sentence) -Entity = _reflection.GeneratedProtocolMessageType('Entity', (_message.Message,), dict( - - MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( - DESCRIPTOR = _ENTITY_METADATAENTRY, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity.MetadataEntry) - )) - , - DESCRIPTOR = _ENTITY, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents a phrase in the text that is a known entity, such as a +Entity = _reflection.GeneratedProtocolMessageType( + "Entity", + (_message.Message,), + dict( + MetadataEntry=_reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITY_METADATAENTRY, + __module__="google.cloud.language_v1.proto.language_service_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity.MetadataEntry) + ), + ), + DESCRIPTOR=_ENTITY, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as salience and mentions, with entities. @@ -2317,16 +2917,19 @@ is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity) + ), +) _sym_db.RegisterMessage(Entity) _sym_db.RegisterMessage(Entity.MetadataEntry) -Token = _reflection.GeneratedProtocolMessageType('Token', (_message.Message,), dict( - DESCRIPTOR = _TOKEN, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents the smallest syntactic building block of the text. +Token = _reflection.GeneratedProtocolMessageType( + "Token", + (_message.Message,), + dict( + DESCRIPTOR=_TOKEN, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents the smallest syntactic building block of the text. Attributes: @@ -2341,15 +2944,18 @@ `__ of the token. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Token) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Token) + ), +) _sym_db.RegisterMessage(Token) -Sentiment = _reflection.GeneratedProtocolMessageType('Sentiment', (_message.Message,), dict( - DESCRIPTOR = _SENTIMENT, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents the feeling associated with the entire text or entities in +Sentiment = _reflection.GeneratedProtocolMessageType( + "Sentiment", + (_message.Message,), + dict( + DESCRIPTOR=_SENTIMENT, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents the feeling associated with the entire text or entities in the text. @@ -2362,15 +2968,18 @@ Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentiment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentiment) + ), +) _sym_db.RegisterMessage(Sentiment) -PartOfSpeech = _reflection.GeneratedProtocolMessageType('PartOfSpeech', (_message.Message,), dict( - DESCRIPTOR = _PARTOFSPEECH, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents part of speech information for a token. Parts of speech are +PartOfSpeech = _reflection.GeneratedProtocolMessageType( + "PartOfSpeech", + (_message.Message,), + dict( + DESCRIPTOR=_PARTOFSPEECH, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents part of speech information for a token. Parts of speech are as defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274\_Paper.pdf @@ -2401,15 +3010,18 @@ voice: The grammatical voice. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.PartOfSpeech) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.PartOfSpeech) + ), +) _sym_db.RegisterMessage(PartOfSpeech) -DependencyEdge = _reflection.GeneratedProtocolMessageType('DependencyEdge', (_message.Message,), dict( - DESCRIPTOR = _DEPENDENCYEDGE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents dependency parse tree information for a token. (For more +DependencyEdge = _reflection.GeneratedProtocolMessageType( + "DependencyEdge", + (_message.Message,), + dict( + DESCRIPTOR=_DEPENDENCYEDGE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017 @@ -2424,15 +3036,18 @@ label: The parse label for the token. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.DependencyEdge) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.DependencyEdge) + ), +) _sym_db.RegisterMessage(DependencyEdge) -EntityMention = _reflection.GeneratedProtocolMessageType('EntityMention', (_message.Message,), dict( - DESCRIPTOR = _ENTITYMENTION, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents a mention for an entity in the text. Currently, proper noun +EntityMention = _reflection.GeneratedProtocolMessageType( + "EntityMention", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITYMENTION, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents a mention for an entity in the text. Currently, proper noun mentions are supported. @@ -2449,15 +3064,18 @@ expressed for this mention of the entity in the provided document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.EntityMention) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.EntityMention) + ), +) _sym_db.RegisterMessage(EntityMention) -TextSpan = _reflection.GeneratedProtocolMessageType('TextSpan', (_message.Message,), dict( - DESCRIPTOR = _TEXTSPAN, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents an output piece of text. +TextSpan = _reflection.GeneratedProtocolMessageType( + "TextSpan", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTSPAN, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents an output piece of text. Attributes: @@ -2469,15 +3087,18 @@ [EncodingType][google.cloud.language.v1.EncodingType] specified in the API request. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.TextSpan) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.TextSpan) + ), +) _sym_db.RegisterMessage(TextSpan) -ClassificationCategory = _reflection.GeneratedProtocolMessageType('ClassificationCategory', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFICATIONCATEGORY, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """Represents a category returned from the text classifier. +ClassificationCategory = _reflection.GeneratedProtocolMessageType( + "ClassificationCategory", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFICATIONCATEGORY, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""Represents a category returned from the text classifier. Attributes: @@ -2488,15 +3109,18 @@ how certain the classifier is that this category represents the given text. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassificationCategory) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassificationCategory) + ), +) _sym_db.RegisterMessage(ClassificationCategory) -AnalyzeSentimentRequest = _reflection.GeneratedProtocolMessageType('AnalyzeSentimentRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESENTIMENTREQUEST, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The sentiment analysis request message. +AnalyzeSentimentRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeSentimentRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESENTIMENTREQUEST, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The sentiment analysis request message. Attributes: @@ -2506,15 +3130,18 @@ The encoding type used by the API to calculate sentence offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSentimentRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSentimentRequest) + ), +) _sym_db.RegisterMessage(AnalyzeSentimentRequest) -AnalyzeSentimentResponse = _reflection.GeneratedProtocolMessageType('AnalyzeSentimentResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESENTIMENTRESPONSE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The sentiment analysis response message. +AnalyzeSentimentResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeSentimentResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESENTIMENTRESPONSE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The sentiment analysis response message. Attributes: @@ -2528,15 +3155,18 @@ sentences: The sentiment for all the sentences in the document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSentimentResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSentimentResponse) + ), +) _sym_db.RegisterMessage(AnalyzeSentimentResponse) -AnalyzeEntitySentimentRequest = _reflection.GeneratedProtocolMessageType('AnalyzeEntitySentimentRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITYSENTIMENTREQUEST, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The entity-level sentiment analysis request message. +AnalyzeEntitySentimentRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitySentimentRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITYSENTIMENTREQUEST, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The entity-level sentiment analysis request message. Attributes: @@ -2545,15 +3175,18 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitySentimentRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitySentimentRequest) + ), +) _sym_db.RegisterMessage(AnalyzeEntitySentimentRequest) -AnalyzeEntitySentimentResponse = _reflection.GeneratedProtocolMessageType('AnalyzeEntitySentimentResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITYSENTIMENTRESPONSE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The entity-level sentiment analysis response message. +AnalyzeEntitySentimentResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitySentimentResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITYSENTIMENTRESPONSE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The entity-level sentiment analysis response message. Attributes: @@ -2566,15 +3199,18 @@ automatically-detected language. See [Document.language][googl e.cloud.language.v1.Document.language] field for more details. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitySentimentResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitySentimentResponse) + ), +) _sym_db.RegisterMessage(AnalyzeEntitySentimentResponse) -AnalyzeEntitiesRequest = _reflection.GeneratedProtocolMessageType('AnalyzeEntitiesRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITIESREQUEST, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The entity analysis request message. +AnalyzeEntitiesRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitiesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITIESREQUEST, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The entity analysis request message. Attributes: @@ -2583,15 +3219,18 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitiesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitiesRequest) + ), +) _sym_db.RegisterMessage(AnalyzeEntitiesRequest) -AnalyzeEntitiesResponse = _reflection.GeneratedProtocolMessageType('AnalyzeEntitiesResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITIESRESPONSE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The entity analysis response message. +AnalyzeEntitiesResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitiesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITIESRESPONSE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The entity analysis response message. Attributes: @@ -2603,15 +3242,18 @@ automatically-detected language. See [Document.language][googl e.cloud.language.v1.Document.language] field for more details. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitiesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitiesResponse) + ), +) _sym_db.RegisterMessage(AnalyzeEntitiesResponse) -AnalyzeSyntaxRequest = _reflection.GeneratedProtocolMessageType('AnalyzeSyntaxRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESYNTAXREQUEST, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The syntax analysis request message. +AnalyzeSyntaxRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeSyntaxRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESYNTAXREQUEST, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The syntax analysis request message. Attributes: @@ -2620,15 +3262,18 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSyntaxRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSyntaxRequest) + ), +) _sym_db.RegisterMessage(AnalyzeSyntaxRequest) -AnalyzeSyntaxResponse = _reflection.GeneratedProtocolMessageType('AnalyzeSyntaxResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESYNTAXRESPONSE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The syntax analysis response message. +AnalyzeSyntaxResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeSyntaxResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESYNTAXRESPONSE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The syntax analysis response message. Attributes: @@ -2643,47 +3288,58 @@ automatically-detected language. See [Document.language][googl e.cloud.language.v1.Document.language] field for more details. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSyntaxResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSyntaxResponse) + ), +) _sym_db.RegisterMessage(AnalyzeSyntaxResponse) -ClassifyTextRequest = _reflection.GeneratedProtocolMessageType('ClassifyTextRequest', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFYTEXTREQUEST, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The document classification request message. +ClassifyTextRequest = _reflection.GeneratedProtocolMessageType( + "ClassifyTextRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFYTEXTREQUEST, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The document classification request message. Attributes: document: Input document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassifyTextRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassifyTextRequest) + ), +) _sym_db.RegisterMessage(ClassifyTextRequest) -ClassifyTextResponse = _reflection.GeneratedProtocolMessageType('ClassifyTextResponse', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFYTEXTRESPONSE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The document classification response message. +ClassifyTextResponse = _reflection.GeneratedProtocolMessageType( + "ClassifyTextResponse", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFYTEXTRESPONSE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The document classification response message. Attributes: categories: Categories representing the input document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassifyTextResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassifyTextResponse) + ), +) _sym_db.RegisterMessage(ClassifyTextResponse) -AnnotateTextRequest = _reflection.GeneratedProtocolMessageType('AnnotateTextRequest', (_message.Message,), dict( - - Features = _reflection.GeneratedProtocolMessageType('Features', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATETEXTREQUEST_FEATURES, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """All available features for sentiment, syntax, and semantic analysis. +AnnotateTextRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateTextRequest", + (_message.Message,), + dict( + Features=_reflection.GeneratedProtocolMessageType( + "Features", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATETEXTREQUEST_FEATURES, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. @@ -2700,13 +3356,12 @@ classify_text: Classify the full document into categories. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest.Features) - )) - , - DESCRIPTOR = _ANNOTATETEXTREQUEST, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The request message for the text annotation API, which can perform + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest.Features) + ), + ), + DESCRIPTOR=_ANNOTATETEXTREQUEST, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call. @@ -2718,16 +3373,19 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest) + ), +) _sym_db.RegisterMessage(AnnotateTextRequest) _sym_db.RegisterMessage(AnnotateTextRequest.Features) -AnnotateTextResponse = _reflection.GeneratedProtocolMessageType('AnnotateTextResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATETEXTRESPONSE, - __module__ = 'google.cloud.language_v1.proto.language_service_pb2' - , - __doc__ = """The text annotations response message. +AnnotateTextResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateTextResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATETEXTRESPONSE, + __module__="google.cloud.language_v1.proto.language_service_pb2", + __doc__="""The text annotations response message. Attributes: @@ -2758,82 +3416,109 @@ categories: Categories identified in the input document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextResponse) + ), +) _sym_db.RegisterMessage(AnnotateTextResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.cloud.language.v1B\024LanguageServiceProtoP\001Z@google.golang.org/genproto/googleapis/cloud/language/v1;language')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\034com.google.cloud.language.v1B\024LanguageServiceProtoP\001Z@google.golang.org/genproto/googleapis/cloud/language/v1;language" + ), +) _ENTITY_METADATAENTRY.has_options = True -_ENTITY_METADATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ENTITY_METADATAENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _LANGUAGESERVICE = _descriptor.ServiceDescriptor( - name='LanguageService', - full_name='google.cloud.language.v1.LanguageService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=6643, - serialized_end=7638, - methods=[ - _descriptor.MethodDescriptor( - name='AnalyzeSentiment', - full_name='google.cloud.language.v1.LanguageService.AnalyzeSentiment', + name="LanguageService", + full_name="google.cloud.language.v1.LanguageService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_ANALYZESENTIMENTREQUEST, - output_type=_ANALYZESENTIMENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#\"\036/v1/documents:analyzeSentiment:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnalyzeEntities', - full_name='google.cloud.language.v1.LanguageService.AnalyzeEntities', - index=1, - containing_service=None, - input_type=_ANALYZEENTITIESREQUEST, - output_type=_ANALYZEENTITIESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\"\"\035/v1/documents:analyzeEntities:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnalyzeEntitySentiment', - full_name='google.cloud.language.v1.LanguageService.AnalyzeEntitySentiment', - index=2, - containing_service=None, - input_type=_ANALYZEENTITYSENTIMENTREQUEST, - output_type=_ANALYZEENTITYSENTIMENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\"$/v1/documents:analyzeEntitySentiment:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnalyzeSyntax', - full_name='google.cloud.language.v1.LanguageService.AnalyzeSyntax', - index=3, - containing_service=None, - input_type=_ANALYZESYNTAXREQUEST, - output_type=_ANALYZESYNTAXRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002 \"\033/v1/documents:analyzeSyntax:\001*')), - ), - _descriptor.MethodDescriptor( - name='ClassifyText', - full_name='google.cloud.language.v1.LanguageService.ClassifyText', - index=4, - containing_service=None, - input_type=_CLASSIFYTEXTREQUEST, - output_type=_CLASSIFYTEXTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037\"\032/v1/documents:classifyText:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnnotateText', - full_name='google.cloud.language.v1.LanguageService.AnnotateText', - index=5, - containing_service=None, - input_type=_ANNOTATETEXTREQUEST, - output_type=_ANNOTATETEXTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037\"\032/v1/documents:annotateText:\001*')), - ), -]) + options=None, + serialized_start=6643, + serialized_end=7638, + methods=[ + _descriptor.MethodDescriptor( + name="AnalyzeSentiment", + full_name="google.cloud.language.v1.LanguageService.AnalyzeSentiment", + index=0, + containing_service=None, + input_type=_ANALYZESENTIMENTREQUEST, + output_type=_ANALYZESENTIMENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002#"\036/v1/documents:analyzeSentiment:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AnalyzeEntities", + full_name="google.cloud.language.v1.LanguageService.AnalyzeEntities", + index=1, + containing_service=None, + input_type=_ANALYZEENTITIESREQUEST, + output_type=_ANALYZEENTITIESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002""\035/v1/documents:analyzeEntities:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AnalyzeEntitySentiment", + full_name="google.cloud.language.v1.LanguageService.AnalyzeEntitySentiment", + index=2, + containing_service=None, + input_type=_ANALYZEENTITYSENTIMENTREQUEST, + output_type=_ANALYZEENTITYSENTIMENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002)"$/v1/documents:analyzeEntitySentiment:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AnalyzeSyntax", + full_name="google.cloud.language.v1.LanguageService.AnalyzeSyntax", + index=3, + containing_service=None, + input_type=_ANALYZESYNTAXREQUEST, + output_type=_ANALYZESYNTAXRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002 "\033/v1/documents:analyzeSyntax:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="ClassifyText", + full_name="google.cloud.language.v1.LanguageService.ClassifyText", + index=4, + containing_service=None, + input_type=_CLASSIFYTEXTREQUEST, + output_type=_CLASSIFYTEXTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\037"\032/v1/documents:classifyText:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AnnotateText", + full_name="google.cloud.language.v1.LanguageService.AnnotateText", + index=5, + containing_service=None, + input_type=_ANNOTATETEXTREQUEST, + output_type=_ANNOTATETEXTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\037"\032/v1/documents:annotateText:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_LANGUAGESERVICE) -DESCRIPTOR.services_by_name['LanguageService'] = _LANGUAGESERVICE +DESCRIPTOR.services_by_name["LanguageService"] = _LANGUAGESERVICE # @@protoc_insertion_point(module_scope) diff --git a/language/google/cloud/language_v1/proto/language_service_pb2_grpc.py b/language/google/cloud/language_v1/proto/language_service_pb2_grpc.py index 01f535c2dbcd4..40a7da3057736 100644 --- a/language/google/cloud/language_v1/proto/language_service_pb2_grpc.py +++ b/language/google/cloud/language_v1/proto/language_service_pb2_grpc.py @@ -1,139 +1,142 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.language_v1.proto import language_service_pb2 as google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2 +from google.cloud.language_v1.proto import ( + language_service_pb2 as google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2, +) class LanguageServiceStub(object): - """Provides text analysis operations such as sentiment analysis and entity + """Provides text analysis operations such as sentiment analysis and entity recognition. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.AnalyzeSentiment = channel.unary_unary( - '/google.cloud.language.v1.LanguageService/AnalyzeSentiment', - request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.FromString, + self.AnalyzeSentiment = channel.unary_unary( + "/google.cloud.language.v1.LanguageService/AnalyzeSentiment", + request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.FromString, ) - self.AnalyzeEntities = channel.unary_unary( - '/google.cloud.language.v1.LanguageService/AnalyzeEntities', - request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.FromString, + self.AnalyzeEntities = channel.unary_unary( + "/google.cloud.language.v1.LanguageService/AnalyzeEntities", + request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.FromString, ) - self.AnalyzeEntitySentiment = channel.unary_unary( - '/google.cloud.language.v1.LanguageService/AnalyzeEntitySentiment', - request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.FromString, + self.AnalyzeEntitySentiment = channel.unary_unary( + "/google.cloud.language.v1.LanguageService/AnalyzeEntitySentiment", + request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.FromString, ) - self.AnalyzeSyntax = channel.unary_unary( - '/google.cloud.language.v1.LanguageService/AnalyzeSyntax', - request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.FromString, + self.AnalyzeSyntax = channel.unary_unary( + "/google.cloud.language.v1.LanguageService/AnalyzeSyntax", + request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.FromString, ) - self.ClassifyText = channel.unary_unary( - '/google.cloud.language.v1.LanguageService/ClassifyText', - request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextResponse.FromString, + self.ClassifyText = channel.unary_unary( + "/google.cloud.language.v1.LanguageService/ClassifyText", + request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextResponse.FromString, ) - self.AnnotateText = channel.unary_unary( - '/google.cloud.language.v1.LanguageService/AnnotateText', - request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextResponse.FromString, + self.AnnotateText = channel.unary_unary( + "/google.cloud.language.v1.LanguageService/AnnotateText", + request_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextResponse.FromString, ) class LanguageServiceServicer(object): - """Provides text analysis operations such as sentiment analysis and entity + """Provides text analysis operations such as sentiment analysis and entity recognition. """ - def AnalyzeSentiment(self, request, context): - """Analyzes the sentiment of the provided text. + def AnalyzeSentiment(self, request, context): + """Analyzes the sentiment of the provided text. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnalyzeEntities(self, request, context): - """Finds named entities (currently proper names and common nouns) in the text + def AnalyzeEntities(self, request, context): + """Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnalyzeEntitySentiment(self, request, context): - """Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes + def AnalyzeEntitySentiment(self, request, context): + """Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnalyzeSyntax(self, request, context): - """Analyzes the syntax of the text and provides sentence boundaries and + def AnalyzeSyntax(self, request, context): + """Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ClassifyText(self, request, context): - """Classifies a document into categories. + def ClassifyText(self, request, context): + """Classifies a document into categories. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnnotateText(self, request, context): - """A convenience method that provides all the features that analyzeSentiment, + def AnnotateText(self, request, context): + """A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_LanguageServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'AnalyzeSentiment': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeSentiment, - request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.SerializeToString, - ), - 'AnalyzeEntities': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeEntities, - request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.SerializeToString, - ), - 'AnalyzeEntitySentiment': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeEntitySentiment, - request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.SerializeToString, - ), - 'AnalyzeSyntax': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeSyntax, - request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.SerializeToString, - ), - 'ClassifyText': grpc.unary_unary_rpc_method_handler( - servicer.ClassifyText, - request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextResponse.SerializeToString, - ), - 'AnnotateText': grpc.unary_unary_rpc_method_handler( - servicer.AnnotateText, - request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.language.v1.LanguageService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "AnalyzeSentiment": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeSentiment, + request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.SerializeToString, + ), + "AnalyzeEntities": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeEntities, + request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.SerializeToString, + ), + "AnalyzeEntitySentiment": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeEntitySentiment, + request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.SerializeToString, + ), + "AnalyzeSyntax": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeSyntax, + request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.SerializeToString, + ), + "ClassifyText": grpc.unary_unary_rpc_method_handler( + servicer.ClassifyText, + request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.ClassifyTextResponse.SerializeToString, + ), + "AnnotateText": grpc.unary_unary_rpc_method_handler( + servicer.AnnotateText, + request_deserializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1_dot_proto_dot_language__service__pb2.AnnotateTextResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.language.v1.LanguageService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/language/google/cloud/language_v1beta2/proto/language_service_pb2.py b/language/google/cloud/language_v1beta2/proto/language_service_pb2.py index 50537b192c20f..17f22cbacce63 100644 --- a/language/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/language/google/cloud/language_v1beta2/proto/language_service_pb2.py @@ -2,59 +2,66 @@ # source: google/cloud/language_v1beta2/proto/language_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/language_v1beta2/proto/language_service.proto', - package='google.cloud.language.v1beta2', - syntax='proto3', - serialized_pb=_b('\n:google/cloud/language_v1beta2/proto/language_service.proto\x12\x1dgoogle.cloud.language.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xc8\x01\n\x08\x44ocument\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.cloud.language.v1beta2.Document.Type\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12\x19\n\x0fgcs_content_uri\x18\x03 \x01(\tH\x00\x12\x10\n\x08language\x18\x04 \x01(\t\"6\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPLAIN_TEXT\x10\x01\x12\x08\n\x04HTML\x10\x02\x42\x08\n\x06source\"~\n\x08Sentence\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12;\n\tsentiment\x18\x02 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\"\xd2\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.language.v1beta2.Entity.Type\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.google.cloud.language.v1beta2.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12>\n\x08mentions\x18\x05 \x03(\x0b\x32,.google.cloud.language.v1beta2.EntityMention\x12;\n\tsentiment\x18\x06 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\"\xda\x01\n\x05Token\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12\x43\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32+.google.cloud.language.v1beta2.PartOfSpeech\x12\x46\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32-.google.cloud.language.v1beta2.DependencyEdge\x12\r\n\x05lemma\x18\x04 \x01(\t\"-\n\tSentiment\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x12\r\n\x05score\x18\x03 \x01(\x02\"\xdf\x10\n\x0cPartOfSpeech\x12<\n\x03tag\x18\x01 \x01(\x0e\x32/.google.cloud.language.v1beta2.PartOfSpeech.Tag\x12\x42\n\x06\x61spect\x18\x02 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Aspect\x12>\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Case\x12>\n\x04\x66orm\x18\x04 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Form\x12\x42\n\x06gender\x18\x05 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Gender\x12>\n\x04mood\x18\x06 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Mood\x12\x42\n\x06number\x18\x07 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Number\x12\x42\n\x06person\x18\x08 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Person\x12\x42\n\x06proper\x18\t \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Proper\x12L\n\x0breciprocity\x18\n \x01(\x0e\x32\x37.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity\x12@\n\x05tense\x18\x0b \x01(\x0e\x32\x31.google.cloud.language.v1beta2.PartOfSpeech.Tense\x12@\n\x05voice\x18\x0c \x01(\x0e\x32\x31.google.cloud.language.v1beta2.PartOfSpeech.Voice\"\x8d\x01\n\x03Tag\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44J\x10\x01\x12\x07\n\x03\x41\x44P\x10\x02\x12\x07\n\x03\x41\x44V\x10\x03\x12\x08\n\x04\x43ONJ\x10\x04\x12\x07\n\x03\x44\x45T\x10\x05\x12\x08\n\x04NOUN\x10\x06\x12\x07\n\x03NUM\x10\x07\x12\x08\n\x04PRON\x10\x08\x12\x07\n\x03PRT\x10\t\x12\t\n\x05PUNCT\x10\n\x12\x08\n\x04VERB\x10\x0b\x12\x05\n\x01X\x10\x0c\x12\t\n\x05\x41\x46\x46IX\x10\r\"O\n\x06\x41spect\x12\x12\n\x0e\x41SPECT_UNKNOWN\x10\x00\x12\x0e\n\nPERFECTIVE\x10\x01\x12\x10\n\x0cIMPERFECTIVE\x10\x02\x12\x0f\n\x0bPROGRESSIVE\x10\x03\"\xf8\x01\n\x04\x43\x61se\x12\x10\n\x0c\x43\x41SE_UNKNOWN\x10\x00\x12\x0e\n\nACCUSATIVE\x10\x01\x12\r\n\tADVERBIAL\x10\x02\x12\x11\n\rCOMPLEMENTIVE\x10\x03\x12\n\n\x06\x44\x41TIVE\x10\x04\x12\x0c\n\x08GENITIVE\x10\x05\x12\x10\n\x0cINSTRUMENTAL\x10\x06\x12\x0c\n\x08LOCATIVE\x10\x07\x12\x0e\n\nNOMINATIVE\x10\x08\x12\x0b\n\x07OBLIQUE\x10\t\x12\r\n\tPARTITIVE\x10\n\x12\x11\n\rPREPOSITIONAL\x10\x0b\x12\x12\n\x0eREFLEXIVE_CASE\x10\x0c\x12\x11\n\rRELATIVE_CASE\x10\r\x12\x0c\n\x08VOCATIVE\x10\x0e\"\xaf\x01\n\x04\x46orm\x12\x10\n\x0c\x46ORM_UNKNOWN\x10\x00\x12\x0c\n\x08\x41\x44NOMIAL\x10\x01\x12\r\n\tAUXILIARY\x10\x02\x12\x12\n\x0e\x43OMPLEMENTIZER\x10\x03\x12\x10\n\x0c\x46INAL_ENDING\x10\x04\x12\n\n\x06GERUND\x10\x05\x12\n\n\x06REALIS\x10\x06\x12\x0c\n\x08IRREALIS\x10\x07\x12\t\n\x05SHORT\x10\x08\x12\x08\n\x04LONG\x10\t\x12\t\n\x05ORDER\x10\n\x12\x0c\n\x08SPECIFIC\x10\x0b\"E\n\x06Gender\x12\x12\n\x0eGENDER_UNKNOWN\x10\x00\x12\x0c\n\x08\x46\x45MININE\x10\x01\x12\r\n\tMASCULINE\x10\x02\x12\n\n\x06NEUTER\x10\x03\"\x7f\n\x04Mood\x12\x10\n\x0cMOOD_UNKNOWN\x10\x00\x12\x14\n\x10\x43ONDITIONAL_MOOD\x10\x01\x12\x0e\n\nIMPERATIVE\x10\x02\x12\x0e\n\nINDICATIVE\x10\x03\x12\x11\n\rINTERROGATIVE\x10\x04\x12\x0b\n\x07JUSSIVE\x10\x05\x12\x0f\n\x0bSUBJUNCTIVE\x10\x06\"@\n\x06Number\x12\x12\n\x0eNUMBER_UNKNOWN\x10\x00\x12\x0c\n\x08SINGULAR\x10\x01\x12\n\n\x06PLURAL\x10\x02\x12\x08\n\x04\x44UAL\x10\x03\"T\n\x06Person\x12\x12\n\x0ePERSON_UNKNOWN\x10\x00\x12\t\n\x05\x46IRST\x10\x01\x12\n\n\x06SECOND\x10\x02\x12\t\n\x05THIRD\x10\x03\x12\x14\n\x10REFLEXIVE_PERSON\x10\x04\"8\n\x06Proper\x12\x12\n\x0ePROPER_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\x0e\n\nNOT_PROPER\x10\x02\"J\n\x0bReciprocity\x12\x17\n\x13RECIPROCITY_UNKNOWN\x10\x00\x12\x0e\n\nRECIPROCAL\x10\x01\x12\x12\n\x0eNON_RECIPROCAL\x10\x02\"s\n\x05Tense\x12\x11\n\rTENSE_UNKNOWN\x10\x00\x12\x15\n\x11\x43ONDITIONAL_TENSE\x10\x01\x12\n\n\x06\x46UTURE\x10\x02\x12\x08\n\x04PAST\x10\x03\x12\x0b\n\x07PRESENT\x10\x04\x12\r\n\tIMPERFECT\x10\x05\x12\x0e\n\nPLUPERFECT\x10\x06\"B\n\x05Voice\x12\x11\n\rVOICE_UNKNOWN\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tCAUSATIVE\x10\x02\x12\x0b\n\x07PASSIVE\x10\x03\"\x9a\x08\n\x0e\x44\x65pendencyEdge\x12\x18\n\x10head_token_index\x18\x01 \x01(\x05\x12\x42\n\x05label\x18\x02 \x01(\x0e\x32\x33.google.cloud.language.v1beta2.DependencyEdge.Label\"\xa9\x07\n\x05Label\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x42\x42REV\x10\x01\x12\t\n\x05\x41\x43OMP\x10\x02\x12\t\n\x05\x41\x44VCL\x10\x03\x12\n\n\x06\x41\x44VMOD\x10\x04\x12\x08\n\x04\x41MOD\x10\x05\x12\t\n\x05\x41PPOS\x10\x06\x12\x08\n\x04\x41TTR\x10\x07\x12\x07\n\x03\x41UX\x10\x08\x12\x0b\n\x07\x41UXPASS\x10\t\x12\x06\n\x02\x43\x43\x10\n\x12\t\n\x05\x43\x43OMP\x10\x0b\x12\x08\n\x04\x43ONJ\x10\x0c\x12\t\n\x05\x43SUBJ\x10\r\x12\r\n\tCSUBJPASS\x10\x0e\x12\x07\n\x03\x44\x45P\x10\x0f\x12\x07\n\x03\x44\x45T\x10\x10\x12\r\n\tDISCOURSE\x10\x11\x12\x08\n\x04\x44OBJ\x10\x12\x12\x08\n\x04\x45XPL\x10\x13\x12\x0c\n\x08GOESWITH\x10\x14\x12\x08\n\x04IOBJ\x10\x15\x12\x08\n\x04MARK\x10\x16\x12\x07\n\x03MWE\x10\x17\x12\x07\n\x03MWV\x10\x18\x12\x07\n\x03NEG\x10\x19\x12\x06\n\x02NN\x10\x1a\x12\x0c\n\x08NPADVMOD\x10\x1b\x12\t\n\x05NSUBJ\x10\x1c\x12\r\n\tNSUBJPASS\x10\x1d\x12\x07\n\x03NUM\x10\x1e\x12\n\n\x06NUMBER\x10\x1f\x12\x05\n\x01P\x10 \x12\r\n\tPARATAXIS\x10!\x12\x0b\n\x07PARTMOD\x10\"\x12\t\n\x05PCOMP\x10#\x12\x08\n\x04POBJ\x10$\x12\x08\n\x04POSS\x10%\x12\x0b\n\x07POSTNEG\x10&\x12\x0b\n\x07PRECOMP\x10\'\x12\x0b\n\x07PRECONJ\x10(\x12\n\n\x06PREDET\x10)\x12\x08\n\x04PREF\x10*\x12\x08\n\x04PREP\x10+\x12\t\n\x05PRONL\x10,\x12\x07\n\x03PRT\x10-\x12\x06\n\x02PS\x10.\x12\x0c\n\x08QUANTMOD\x10/\x12\t\n\x05RCMOD\x10\x30\x12\x0c\n\x08RCMODREL\x10\x31\x12\t\n\x05RDROP\x10\x32\x12\x07\n\x03REF\x10\x33\x12\x0b\n\x07REMNANT\x10\x34\x12\x0e\n\nREPARANDUM\x10\x35\x12\x08\n\x04ROOT\x10\x36\x12\x08\n\x04SNUM\x10\x37\x12\x08\n\x04SUFF\x10\x38\x12\x08\n\x04TMOD\x10\x39\x12\t\n\x05TOPIC\x10:\x12\x08\n\x04VMOD\x10;\x12\x0c\n\x08VOCATIVE\x10<\x12\t\n\x05XCOMP\x10=\x12\n\n\x06SUFFIX\x10>\x12\t\n\x05TITLE\x10?\x12\x0c\n\x08\x41\x44VPHMOD\x10@\x12\x0b\n\x07\x41UXCAUS\x10\x41\x12\t\n\x05\x41UXVV\x10\x42\x12\t\n\x05\x44TMOD\x10\x43\x12\x0b\n\x07\x46OREIGN\x10\x44\x12\x06\n\x02KW\x10\x45\x12\x08\n\x04LIST\x10\x46\x12\x08\n\x04NOMC\x10G\x12\x0c\n\x08NOMCSUBJ\x10H\x12\x10\n\x0cNOMCSUBJPASS\x10I\x12\x08\n\x04NUMC\x10J\x12\x07\n\x03\x43OP\x10K\x12\x0e\n\nDISLOCATED\x10L\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R\"\xf6\x01\n\rEntityMention\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12?\n\x04type\x18\x02 \x01(\x0e\x32\x31.google.cloud.language.v1beta2.EntityMention.Type\x12;\n\tsentiment\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02\"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05\":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"\x98\x01\n\x17\x41nalyzeSentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\"\xae\x01\n\x18\x41nalyzeSentimentResponse\x12\x44\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12:\n\tsentences\x18\x03 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\"\x9e\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\"k\n\x1e\x41nalyzeEntitySentimentResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t\"\x97\x01\n\x16\x41nalyzeEntitiesRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\"d\n\x17\x41nalyzeEntitiesResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t\"\x95\x01\n\x14\x41nalyzeSyntaxRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\"\x9b\x01\n\x15\x41nalyzeSyntaxResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x10\n\x08language\x18\x03 \x01(\t\"P\n\x13\x43lassifyTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\"a\n\x14\x43lassifyTextResponse\x12I\n\ncategories\x18\x01 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory\"\xff\x02\n\x13\x41nnotateTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12M\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32;.google.cloud.language.v1beta2.AnnotateTextRequest.Features\x12\x42\n\rencoding_type\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\x1a\x99\x01\n\x08\x46\x65\x61tures\x12\x16\n\x0e\x65xtract_syntax\x18\x01 \x01(\x08\x12\x18\n\x10\x65xtract_entities\x18\x02 \x01(\x08\x12\"\n\x1a\x65xtract_document_sentiment\x18\x03 \x01(\x08\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08\"\xe4\x02\n\x14\x41nnotateTextResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x37\n\x08\x65ntities\x18\x03 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x44\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t\x12I\n\ncategories\x18\x06 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xbd\x08\n\x0fLanguageService\x12\xb3\x01\n\x10\x41nalyzeSentiment\x12\x36.google.cloud.language.v1beta2.AnalyzeSentimentRequest\x1a\x37.google.cloud.language.v1beta2.AnalyzeSentimentResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta2/documents:analyzeSentiment:\x01*\x12\xaf\x01\n\x0f\x41nalyzeEntities\x12\x35.google.cloud.language.v1beta2.AnalyzeEntitiesRequest\x1a\x36.google.cloud.language.v1beta2.AnalyzeEntitiesResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1beta2/documents:analyzeEntities:\x01*\x12\xcb\x01\n\x16\x41nalyzeEntitySentiment\x12<.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest\x1a=.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse\"4\x82\xd3\xe4\x93\x02.\")/v1beta2/documents:analyzeEntitySentiment:\x01*\x12\xa7\x01\n\rAnalyzeSyntax\x12\x33.google.cloud.language.v1beta2.AnalyzeSyntaxRequest\x1a\x34.google.cloud.language.v1beta2.AnalyzeSyntaxResponse\"+\x82\xd3\xe4\x93\x02%\" /v1beta2/documents:analyzeSyntax:\x01*\x12\xa3\x01\n\x0c\x43lassifyText\x12\x32.google.cloud.language.v1beta2.ClassifyTextRequest\x1a\x33.google.cloud.language.v1beta2.ClassifyTextResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/v1beta2/documents:classifyText:\x01*\x12\xa3\x01\n\x0c\x41nnotateText\x12\x32.google.cloud.language.v1beta2.AnnotateTextRequest\x1a\x33.google.cloud.language.v1beta2.AnnotateTextResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/v1beta2/documents:annotateText:\x01*B\x82\x01\n!com.google.cloud.language.v1beta2B\x14LanguageServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;languageb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/language_v1beta2/proto/language_service.proto", + package="google.cloud.language.v1beta2", + syntax="proto3", + serialized_pb=_b( + '\n:google/cloud/language_v1beta2/proto/language_service.proto\x12\x1dgoogle.cloud.language.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xc8\x01\n\x08\x44ocument\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.cloud.language.v1beta2.Document.Type\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12\x19\n\x0fgcs_content_uri\x18\x03 \x01(\tH\x00\x12\x10\n\x08language\x18\x04 \x01(\t"6\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPLAIN_TEXT\x10\x01\x12\x08\n\x04HTML\x10\x02\x42\x08\n\x06source"~\n\x08Sentence\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12;\n\tsentiment\x18\x02 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"\xd2\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.language.v1beta2.Entity.Type\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.google.cloud.language.v1beta2.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12>\n\x08mentions\x18\x05 \x03(\x0b\x32,.google.cloud.language.v1beta2.EntityMention\x12;\n\tsentiment\x18\x06 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"y\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07"\xda\x01\n\x05Token\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12\x43\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32+.google.cloud.language.v1beta2.PartOfSpeech\x12\x46\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32-.google.cloud.language.v1beta2.DependencyEdge\x12\r\n\x05lemma\x18\x04 \x01(\t"-\n\tSentiment\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x12\r\n\x05score\x18\x03 \x01(\x02"\xdf\x10\n\x0cPartOfSpeech\x12<\n\x03tag\x18\x01 \x01(\x0e\x32/.google.cloud.language.v1beta2.PartOfSpeech.Tag\x12\x42\n\x06\x61spect\x18\x02 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Aspect\x12>\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Case\x12>\n\x04\x66orm\x18\x04 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Form\x12\x42\n\x06gender\x18\x05 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Gender\x12>\n\x04mood\x18\x06 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Mood\x12\x42\n\x06number\x18\x07 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Number\x12\x42\n\x06person\x18\x08 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Person\x12\x42\n\x06proper\x18\t \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Proper\x12L\n\x0breciprocity\x18\n \x01(\x0e\x32\x37.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity\x12@\n\x05tense\x18\x0b \x01(\x0e\x32\x31.google.cloud.language.v1beta2.PartOfSpeech.Tense\x12@\n\x05voice\x18\x0c \x01(\x0e\x32\x31.google.cloud.language.v1beta2.PartOfSpeech.Voice"\x8d\x01\n\x03Tag\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44J\x10\x01\x12\x07\n\x03\x41\x44P\x10\x02\x12\x07\n\x03\x41\x44V\x10\x03\x12\x08\n\x04\x43ONJ\x10\x04\x12\x07\n\x03\x44\x45T\x10\x05\x12\x08\n\x04NOUN\x10\x06\x12\x07\n\x03NUM\x10\x07\x12\x08\n\x04PRON\x10\x08\x12\x07\n\x03PRT\x10\t\x12\t\n\x05PUNCT\x10\n\x12\x08\n\x04VERB\x10\x0b\x12\x05\n\x01X\x10\x0c\x12\t\n\x05\x41\x46\x46IX\x10\r"O\n\x06\x41spect\x12\x12\n\x0e\x41SPECT_UNKNOWN\x10\x00\x12\x0e\n\nPERFECTIVE\x10\x01\x12\x10\n\x0cIMPERFECTIVE\x10\x02\x12\x0f\n\x0bPROGRESSIVE\x10\x03"\xf8\x01\n\x04\x43\x61se\x12\x10\n\x0c\x43\x41SE_UNKNOWN\x10\x00\x12\x0e\n\nACCUSATIVE\x10\x01\x12\r\n\tADVERBIAL\x10\x02\x12\x11\n\rCOMPLEMENTIVE\x10\x03\x12\n\n\x06\x44\x41TIVE\x10\x04\x12\x0c\n\x08GENITIVE\x10\x05\x12\x10\n\x0cINSTRUMENTAL\x10\x06\x12\x0c\n\x08LOCATIVE\x10\x07\x12\x0e\n\nNOMINATIVE\x10\x08\x12\x0b\n\x07OBLIQUE\x10\t\x12\r\n\tPARTITIVE\x10\n\x12\x11\n\rPREPOSITIONAL\x10\x0b\x12\x12\n\x0eREFLEXIVE_CASE\x10\x0c\x12\x11\n\rRELATIVE_CASE\x10\r\x12\x0c\n\x08VOCATIVE\x10\x0e"\xaf\x01\n\x04\x46orm\x12\x10\n\x0c\x46ORM_UNKNOWN\x10\x00\x12\x0c\n\x08\x41\x44NOMIAL\x10\x01\x12\r\n\tAUXILIARY\x10\x02\x12\x12\n\x0e\x43OMPLEMENTIZER\x10\x03\x12\x10\n\x0c\x46INAL_ENDING\x10\x04\x12\n\n\x06GERUND\x10\x05\x12\n\n\x06REALIS\x10\x06\x12\x0c\n\x08IRREALIS\x10\x07\x12\t\n\x05SHORT\x10\x08\x12\x08\n\x04LONG\x10\t\x12\t\n\x05ORDER\x10\n\x12\x0c\n\x08SPECIFIC\x10\x0b"E\n\x06Gender\x12\x12\n\x0eGENDER_UNKNOWN\x10\x00\x12\x0c\n\x08\x46\x45MININE\x10\x01\x12\r\n\tMASCULINE\x10\x02\x12\n\n\x06NEUTER\x10\x03"\x7f\n\x04Mood\x12\x10\n\x0cMOOD_UNKNOWN\x10\x00\x12\x14\n\x10\x43ONDITIONAL_MOOD\x10\x01\x12\x0e\n\nIMPERATIVE\x10\x02\x12\x0e\n\nINDICATIVE\x10\x03\x12\x11\n\rINTERROGATIVE\x10\x04\x12\x0b\n\x07JUSSIVE\x10\x05\x12\x0f\n\x0bSUBJUNCTIVE\x10\x06"@\n\x06Number\x12\x12\n\x0eNUMBER_UNKNOWN\x10\x00\x12\x0c\n\x08SINGULAR\x10\x01\x12\n\n\x06PLURAL\x10\x02\x12\x08\n\x04\x44UAL\x10\x03"T\n\x06Person\x12\x12\n\x0ePERSON_UNKNOWN\x10\x00\x12\t\n\x05\x46IRST\x10\x01\x12\n\n\x06SECOND\x10\x02\x12\t\n\x05THIRD\x10\x03\x12\x14\n\x10REFLEXIVE_PERSON\x10\x04"8\n\x06Proper\x12\x12\n\x0ePROPER_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\x0e\n\nNOT_PROPER\x10\x02"J\n\x0bReciprocity\x12\x17\n\x13RECIPROCITY_UNKNOWN\x10\x00\x12\x0e\n\nRECIPROCAL\x10\x01\x12\x12\n\x0eNON_RECIPROCAL\x10\x02"s\n\x05Tense\x12\x11\n\rTENSE_UNKNOWN\x10\x00\x12\x15\n\x11\x43ONDITIONAL_TENSE\x10\x01\x12\n\n\x06\x46UTURE\x10\x02\x12\x08\n\x04PAST\x10\x03\x12\x0b\n\x07PRESENT\x10\x04\x12\r\n\tIMPERFECT\x10\x05\x12\x0e\n\nPLUPERFECT\x10\x06"B\n\x05Voice\x12\x11\n\rVOICE_UNKNOWN\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tCAUSATIVE\x10\x02\x12\x0b\n\x07PASSIVE\x10\x03"\x9a\x08\n\x0e\x44\x65pendencyEdge\x12\x18\n\x10head_token_index\x18\x01 \x01(\x05\x12\x42\n\x05label\x18\x02 \x01(\x0e\x32\x33.google.cloud.language.v1beta2.DependencyEdge.Label"\xa9\x07\n\x05Label\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x42\x42REV\x10\x01\x12\t\n\x05\x41\x43OMP\x10\x02\x12\t\n\x05\x41\x44VCL\x10\x03\x12\n\n\x06\x41\x44VMOD\x10\x04\x12\x08\n\x04\x41MOD\x10\x05\x12\t\n\x05\x41PPOS\x10\x06\x12\x08\n\x04\x41TTR\x10\x07\x12\x07\n\x03\x41UX\x10\x08\x12\x0b\n\x07\x41UXPASS\x10\t\x12\x06\n\x02\x43\x43\x10\n\x12\t\n\x05\x43\x43OMP\x10\x0b\x12\x08\n\x04\x43ONJ\x10\x0c\x12\t\n\x05\x43SUBJ\x10\r\x12\r\n\tCSUBJPASS\x10\x0e\x12\x07\n\x03\x44\x45P\x10\x0f\x12\x07\n\x03\x44\x45T\x10\x10\x12\r\n\tDISCOURSE\x10\x11\x12\x08\n\x04\x44OBJ\x10\x12\x12\x08\n\x04\x45XPL\x10\x13\x12\x0c\n\x08GOESWITH\x10\x14\x12\x08\n\x04IOBJ\x10\x15\x12\x08\n\x04MARK\x10\x16\x12\x07\n\x03MWE\x10\x17\x12\x07\n\x03MWV\x10\x18\x12\x07\n\x03NEG\x10\x19\x12\x06\n\x02NN\x10\x1a\x12\x0c\n\x08NPADVMOD\x10\x1b\x12\t\n\x05NSUBJ\x10\x1c\x12\r\n\tNSUBJPASS\x10\x1d\x12\x07\n\x03NUM\x10\x1e\x12\n\n\x06NUMBER\x10\x1f\x12\x05\n\x01P\x10 \x12\r\n\tPARATAXIS\x10!\x12\x0b\n\x07PARTMOD\x10"\x12\t\n\x05PCOMP\x10#\x12\x08\n\x04POBJ\x10$\x12\x08\n\x04POSS\x10%\x12\x0b\n\x07POSTNEG\x10&\x12\x0b\n\x07PRECOMP\x10\'\x12\x0b\n\x07PRECONJ\x10(\x12\n\n\x06PREDET\x10)\x12\x08\n\x04PREF\x10*\x12\x08\n\x04PREP\x10+\x12\t\n\x05PRONL\x10,\x12\x07\n\x03PRT\x10-\x12\x06\n\x02PS\x10.\x12\x0c\n\x08QUANTMOD\x10/\x12\t\n\x05RCMOD\x10\x30\x12\x0c\n\x08RCMODREL\x10\x31\x12\t\n\x05RDROP\x10\x32\x12\x07\n\x03REF\x10\x33\x12\x0b\n\x07REMNANT\x10\x34\x12\x0e\n\nREPARANDUM\x10\x35\x12\x08\n\x04ROOT\x10\x36\x12\x08\n\x04SNUM\x10\x37\x12\x08\n\x04SUFF\x10\x38\x12\x08\n\x04TMOD\x10\x39\x12\t\n\x05TOPIC\x10:\x12\x08\n\x04VMOD\x10;\x12\x0c\n\x08VOCATIVE\x10<\x12\t\n\x05XCOMP\x10=\x12\n\n\x06SUFFIX\x10>\x12\t\n\x05TITLE\x10?\x12\x0c\n\x08\x41\x44VPHMOD\x10@\x12\x0b\n\x07\x41UXCAUS\x10\x41\x12\t\n\x05\x41UXVV\x10\x42\x12\t\n\x05\x44TMOD\x10\x43\x12\x0b\n\x07\x46OREIGN\x10\x44\x12\x06\n\x02KW\x10\x45\x12\x08\n\x04LIST\x10\x46\x12\x08\n\x04NOMC\x10G\x12\x0c\n\x08NOMCSUBJ\x10H\x12\x10\n\x0cNOMCSUBJPASS\x10I\x12\x08\n\x04NUMC\x10J\x12\x07\n\x03\x43OP\x10K\x12\x0e\n\nDISLOCATED\x10L\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xf6\x01\n\rEntityMention\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12?\n\x04type\x18\x02 \x01(\x0e\x32\x31.google.cloud.language.v1beta2.EntityMention.Type\x12;\n\tsentiment\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x98\x01\n\x17\x41nalyzeSentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\xae\x01\n\x18\x41nalyzeSentimentResponse\x12\x44\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12:\n\tsentences\x18\x03 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence"\x9e\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"k\n\x1e\x41nalyzeEntitySentimentResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x97\x01\n\x16\x41nalyzeEntitiesRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"d\n\x17\x41nalyzeEntitiesResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x95\x01\n\x14\x41nalyzeSyntaxRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\x9b\x01\n\x15\x41nalyzeSyntaxResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x10\n\x08language\x18\x03 \x01(\t"P\n\x13\x43lassifyTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document"a\n\x14\x43lassifyTextResponse\x12I\n\ncategories\x18\x01 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory"\xff\x02\n\x13\x41nnotateTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.Document\x12M\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32;.google.cloud.language.v1beta2.AnnotateTextRequest.Features\x12\x42\n\rencoding_type\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\x1a\x99\x01\n\x08\x46\x65\x61tures\x12\x16\n\x0e\x65xtract_syntax\x18\x01 \x01(\x08\x12\x18\n\x10\x65xtract_entities\x18\x02 \x01(\x08\x12"\n\x1a\x65xtract_document_sentiment\x18\x03 \x01(\x08\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xe4\x02\n\x14\x41nnotateTextResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x37\n\x08\x65ntities\x18\x03 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x44\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t\x12I\n\ncategories\x18\x06 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xbd\x08\n\x0fLanguageService\x12\xb3\x01\n\x10\x41nalyzeSentiment\x12\x36.google.cloud.language.v1beta2.AnalyzeSentimentRequest\x1a\x37.google.cloud.language.v1beta2.AnalyzeSentimentResponse".\x82\xd3\xe4\x93\x02("#/v1beta2/documents:analyzeSentiment:\x01*\x12\xaf\x01\n\x0f\x41nalyzeEntities\x12\x35.google.cloud.language.v1beta2.AnalyzeEntitiesRequest\x1a\x36.google.cloud.language.v1beta2.AnalyzeEntitiesResponse"-\x82\xd3\xe4\x93\x02\'""/v1beta2/documents:analyzeEntities:\x01*\x12\xcb\x01\n\x16\x41nalyzeEntitySentiment\x12<.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest\x1a=.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse"4\x82\xd3\xe4\x93\x02.")/v1beta2/documents:analyzeEntitySentiment:\x01*\x12\xa7\x01\n\rAnalyzeSyntax\x12\x33.google.cloud.language.v1beta2.AnalyzeSyntaxRequest\x1a\x34.google.cloud.language.v1beta2.AnalyzeSyntaxResponse"+\x82\xd3\xe4\x93\x02%" /v1beta2/documents:analyzeSyntax:\x01*\x12\xa3\x01\n\x0c\x43lassifyText\x12\x32.google.cloud.language.v1beta2.ClassifyTextRequest\x1a\x33.google.cloud.language.v1beta2.ClassifyTextResponse"*\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:classifyText:\x01*\x12\xa3\x01\n\x0c\x41nnotateText\x12\x32.google.cloud.language.v1beta2.AnnotateTextRequest\x1a\x33.google.cloud.language.v1beta2.AnnotateTextResponse"*\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:annotateText:\x01*B\x82\x01\n!com.google.cloud.language.v1beta2B\x14LanguageServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;languageb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _ENCODINGTYPE = _descriptor.EnumDescriptor( - name='EncodingType', - full_name='google.cloud.language.v1beta2.EncodingType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='NONE', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UTF8', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UTF16', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UTF32', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=6939, - serialized_end=6995, + name="EncodingType", + full_name="google.cloud.language.v1beta2.EncodingType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="NONE", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UTF8", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UTF16", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UTF32", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=6939, + serialized_end=6995, ) _sym_db.RegisterEnumDescriptor(_ENCODINGTYPE) @@ -66,2094 +73,2674 @@ _DOCUMENT_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.language.v1beta2.Document.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLAIN_TEXT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HTML', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=355, - serialized_end=409, + name="Type", + full_name="google.cloud.language.v1beta2.Document.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLAIN_TEXT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HTML", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=355, + serialized_end=409, ) _sym_db.RegisterEnumDescriptor(_DOCUMENT_TYPE) _ENTITY_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.language.v1beta2.Entity.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERSON', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ORGANIZATION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EVENT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WORK_OF_ART', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONSUMER_GOOD', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OTHER', index=7, number=7, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=895, - serialized_end=1016, + name="Type", + full_name="google.cloud.language.v1beta2.Entity.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERSON", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOCATION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ORGANIZATION", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EVENT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WORK_OF_ART", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONSUMER_GOOD", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OTHER", index=7, number=7, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=895, + serialized_end=1016, ) _sym_db.RegisterEnumDescriptor(_ENTITY_TYPE) _PARTOFSPEECH_TAG = _descriptor.EnumDescriptor( - name='Tag', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Tag', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADJ', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADP', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADV', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONJ', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DET', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOUN', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUM', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRON', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRT', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUNCT', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERB', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='X', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AFFIX', index=13, number=13, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2108, - serialized_end=2249, + name="Tag", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Tag", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADJ", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADP", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADV", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONJ", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DET", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOUN", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUM", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRON", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRT", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PUNCT", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERB", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="X", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AFFIX", index=13, number=13, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2108, + serialized_end=2249, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_TAG) _PARTOFSPEECH_ASPECT = _descriptor.EnumDescriptor( - name='Aspect', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Aspect', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ASPECT_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PERFECTIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMPERFECTIVE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROGRESSIVE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2251, - serialized_end=2330, + name="Aspect", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Aspect", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ASPECT_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PERFECTIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMPERFECTIVE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROGRESSIVE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2251, + serialized_end=2330, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_ASPECT) _PARTOFSPEECH_CASE = _descriptor.EnumDescriptor( - name='Case', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Case', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CASE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCUSATIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVERBIAL', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPLEMENTIVE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATIVE', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GENITIVE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INSTRUMENTAL', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATIVE', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMINATIVE', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OBLIQUE', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARTITIVE', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREPOSITIONAL', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REFLEXIVE_CASE', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RELATIVE_CASE', index=13, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VOCATIVE', index=14, number=14, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2333, - serialized_end=2581, + name="Case", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Case", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="CASE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACCUSATIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVERBIAL", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPLEMENTIVE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DATIVE", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GENITIVE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INSTRUMENTAL", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOCATIVE", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMINATIVE", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OBLIQUE", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARTITIVE", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREPOSITIONAL", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REFLEXIVE_CASE", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RELATIVE_CASE", index=13, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VOCATIVE", index=14, number=14, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2333, + serialized_end=2581, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_CASE) _PARTOFSPEECH_FORM = _descriptor.EnumDescriptor( - name='Form', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Form', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FORM_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADNOMIAL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXILIARY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPLEMENTIZER', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FINAL_ENDING', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GERUND', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REALIS', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IRREALIS', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHORT', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LONG', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ORDER', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPECIFIC', index=11, number=11, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2584, - serialized_end=2759, + name="Form", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Form", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FORM_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADNOMIAL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXILIARY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPLEMENTIZER", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FINAL_ENDING", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GERUND", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REALIS", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IRREALIS", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHORT", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LONG", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ORDER", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SPECIFIC", index=11, number=11, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2584, + serialized_end=2759, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_FORM) _PARTOFSPEECH_GENDER = _descriptor.EnumDescriptor( - name='Gender', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Gender', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='GENDER_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEMININE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MASCULINE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEUTER', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2761, - serialized_end=2830, + name="Gender", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Gender", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="GENDER_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FEMININE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MASCULINE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEUTER", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2761, + serialized_end=2830, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_GENDER) _PARTOFSPEECH_MOOD = _descriptor.EnumDescriptor( - name='Mood', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Mood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MOOD_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONDITIONAL_MOOD', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMPERATIVE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INDICATIVE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INTERROGATIVE', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='JUSSIVE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUBJUNCTIVE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2832, - serialized_end=2959, + name="Mood", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Mood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="MOOD_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONDITIONAL_MOOD", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMPERATIVE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INDICATIVE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INTERROGATIVE", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="JUSSIVE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUBJUNCTIVE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2832, + serialized_end=2959, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_MOOD) _PARTOFSPEECH_NUMBER = _descriptor.EnumDescriptor( - name='Number', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Number', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='NUMBER_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SINGULAR', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLURAL', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUAL', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2961, - serialized_end=3025, + name="Number", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Number", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="NUMBER_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SINGULAR", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLURAL", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DUAL", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2961, + serialized_end=3025, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_NUMBER) _PARTOFSPEECH_PERSON = _descriptor.EnumDescriptor( - name='Person', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Person', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='PERSON_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FIRST', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SECOND', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='THIRD', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REFLEXIVE_PERSON', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3027, - serialized_end=3111, + name="Person", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Person", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="PERSON_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FIRST", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SECOND", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="THIRD", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REFLEXIVE_PERSON", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3027, + serialized_end=3111, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_PERSON) _PARTOFSPEECH_PROPER = _descriptor.EnumDescriptor( - name='Proper', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Proper', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='PROPER_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROPER', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOT_PROPER', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3113, - serialized_end=3169, + name="Proper", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Proper", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="PROPER_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROPER", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOT_PROPER", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3113, + serialized_end=3169, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_PROPER) _PARTOFSPEECH_RECIPROCITY = _descriptor.EnumDescriptor( - name='Reciprocity', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Reciprocity', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='RECIPROCITY_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RECIPROCAL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NON_RECIPROCAL', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3171, - serialized_end=3245, + name="Reciprocity", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Reciprocity", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="RECIPROCITY_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RECIPROCAL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NON_RECIPROCAL", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3171, + serialized_end=3245, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_RECIPROCITY) _PARTOFSPEECH_TENSE = _descriptor.EnumDescriptor( - name='Tense', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Tense', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TENSE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONDITIONAL_TENSE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FUTURE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAST', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRESENT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMPERFECT', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLUPERFECT', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3247, - serialized_end=3362, + name="Tense", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Tense", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TENSE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONDITIONAL_TENSE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FUTURE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PAST", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRESENT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMPERFECT", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLUPERFECT", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3247, + serialized_end=3362, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_TENSE) _PARTOFSPEECH_VOICE = _descriptor.EnumDescriptor( - name='Voice', - full_name='google.cloud.language.v1beta2.PartOfSpeech.Voice', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VOICE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACTIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CAUSATIVE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PASSIVE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3364, - serialized_end=3430, + name="Voice", + full_name="google.cloud.language.v1beta2.PartOfSpeech.Voice", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VOICE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACTIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CAUSATIVE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PASSIVE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3364, + serialized_end=3430, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_VOICE) _DEPENDENCYEDGE_LABEL = _descriptor.EnumDescriptor( - name='Label', - full_name='google.cloud.language.v1beta2.DependencyEdge.Label', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ABBREV', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACOMP', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVCL', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVMOD', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AMOD', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='APPOS', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ATTR', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUX', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXPASS', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CC', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CCOMP', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONJ', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CSUBJ', index=13, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CSUBJPASS', index=14, number=14, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEP', index=15, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DET', index=16, number=16, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISCOURSE', index=17, number=17, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DOBJ', index=18, number=18, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPL', index=19, number=19, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOESWITH', index=20, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IOBJ', index=21, number=21, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MARK', index=22, number=22, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MWE', index=23, number=23, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MWV', index=24, number=24, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEG', index=25, number=25, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NN', index=26, number=26, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NPADVMOD', index=27, number=27, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NSUBJ', index=28, number=28, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NSUBJPASS', index=29, number=29, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUM', index=30, number=30, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUMBER', index=31, number=31, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='P', index=32, number=32, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARATAXIS', index=33, number=33, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARTMOD', index=34, number=34, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PCOMP', index=35, number=35, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POBJ', index=36, number=36, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSS', index=37, number=37, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSTNEG', index=38, number=38, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRECOMP', index=39, number=39, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRECONJ', index=40, number=40, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREDET', index=41, number=41, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREF', index=42, number=42, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PREP', index=43, number=43, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRONL', index=44, number=44, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRT', index=45, number=45, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PS', index=46, number=46, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='QUANTMOD', index=47, number=47, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RCMOD', index=48, number=48, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RCMODREL', index=49, number=49, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RDROP', index=50, number=50, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REF', index=51, number=51, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMNANT', index=52, number=52, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REPARANDUM', index=53, number=53, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ROOT', index=54, number=54, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SNUM', index=55, number=55, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUFF', index=56, number=56, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TMOD', index=57, number=57, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOPIC', index=58, number=58, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VMOD', index=59, number=59, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VOCATIVE', index=60, number=60, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='XCOMP', index=61, number=61, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUFFIX', index=62, number=62, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TITLE', index=63, number=63, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADVPHMOD', index=64, number=64, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXCAUS', index=65, number=65, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUXVV', index=66, number=66, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DTMOD', index=67, number=67, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FOREIGN', index=68, number=68, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KW', index=69, number=69, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIST', index=70, number=70, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMC', index=71, number=71, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMCSUBJ', index=72, number=72, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOMCSUBJPASS', index=73, number=73, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NUMC', index=74, number=74, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COP', index=75, number=75, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISLOCATED', index=76, number=76, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASP', index=77, number=77, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GMOD', index=78, number=78, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOBJ', index=79, number=79, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INFMOD', index=80, number=80, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MES', index=81, number=81, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NCOMP', index=82, number=82, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3546, - serialized_end=4483, + name="Label", + full_name="google.cloud.language.v1beta2.DependencyEdge.Label", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ABBREV", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACOMP", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVCL", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVMOD", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AMOD", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="APPOS", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ATTR", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUX", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXPASS", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CC", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CCOMP", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CONJ", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CSUBJ", index=13, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CSUBJPASS", index=14, number=14, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DEP", index=15, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DET", index=16, number=16, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISCOURSE", index=17, number=17, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DOBJ", index=18, number=18, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXPL", index=19, number=19, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GOESWITH", index=20, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IOBJ", index=21, number=21, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MARK", index=22, number=22, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MWE", index=23, number=23, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MWV", index=24, number=24, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEG", index=25, number=25, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NN", index=26, number=26, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NPADVMOD", index=27, number=27, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NSUBJ", index=28, number=28, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NSUBJPASS", index=29, number=29, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUM", index=30, number=30, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUMBER", index=31, number=31, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="P", index=32, number=32, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARATAXIS", index=33, number=33, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARTMOD", index=34, number=34, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PCOMP", index=35, number=35, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POBJ", index=36, number=36, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSS", index=37, number=37, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSTNEG", index=38, number=38, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRECOMP", index=39, number=39, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRECONJ", index=40, number=40, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREDET", index=41, number=41, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREF", index=42, number=42, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PREP", index=43, number=43, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRONL", index=44, number=44, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRT", index=45, number=45, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PS", index=46, number=46, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="QUANTMOD", index=47, number=47, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RCMOD", index=48, number=48, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RCMODREL", index=49, number=49, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RDROP", index=50, number=50, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REF", index=51, number=51, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REMNANT", index=52, number=52, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REPARANDUM", index=53, number=53, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ROOT", index=54, number=54, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SNUM", index=55, number=55, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUFF", index=56, number=56, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TMOD", index=57, number=57, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TOPIC", index=58, number=58, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VMOD", index=59, number=59, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VOCATIVE", index=60, number=60, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="XCOMP", index=61, number=61, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUFFIX", index=62, number=62, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TITLE", index=63, number=63, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ADVPHMOD", index=64, number=64, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXCAUS", index=65, number=65, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AUXVV", index=66, number=66, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DTMOD", index=67, number=67, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FOREIGN", index=68, number=68, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="KW", index=69, number=69, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIST", index=70, number=70, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMC", index=71, number=71, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMCSUBJ", index=72, number=72, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOMCSUBJPASS", index=73, number=73, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NUMC", index=74, number=74, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COP", index=75, number=75, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISLOCATED", index=76, number=76, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ASP", index=77, number=77, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GMOD", index=78, number=78, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GOBJ", index=79, number=79, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INFMOD", index=80, number=80, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MES", index=81, number=81, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NCOMP", index=82, number=82, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3546, + serialized_end=4483, ) _sym_db.RegisterEnumDescriptor(_DEPENDENCYEDGE_LABEL) _ENTITYMENTION_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.language.v1beta2.EntityMention.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROPER', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMMON', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4684, - serialized_end=4732, + name="Type", + full_name="google.cloud.language.v1beta2.EntityMention.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROPER", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMMON", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4684, + serialized_end=4732, ) _sym_db.RegisterEnumDescriptor(_ENTITYMENTION_TYPE) _DOCUMENT = _descriptor.Descriptor( - name='Document', - full_name='google.cloud.language.v1beta2.Document', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1beta2.Document.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.language.v1beta2.Document.content', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gcs_content_uri', full_name='google.cloud.language.v1beta2.Document.gcs_content_uri', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta2.Document.language', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DOCUMENT_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='source', full_name='google.cloud.language.v1beta2.Document.source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=219, - serialized_end=419, + name="Document", + full_name="google.cloud.language.v1beta2.Document", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.language.v1beta2.Document.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.language.v1beta2.Document.content", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gcs_content_uri", + full_name="google.cloud.language.v1beta2.Document.gcs_content_uri", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1beta2.Document.language", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DOCUMENT_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.cloud.language.v1beta2.Document.source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=219, + serialized_end=419, ) _SENTENCE = _descriptor.Descriptor( - name='Sentence', - full_name='google.cloud.language.v1beta2.Sentence', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1beta2.Sentence.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentiment', full_name='google.cloud.language.v1beta2.Sentence.sentiment', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=421, - serialized_end=547, + name="Sentence", + full_name="google.cloud.language.v1beta2.Sentence", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.language.v1beta2.Sentence.text", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentiment", + full_name="google.cloud.language.v1beta2.Sentence.sentiment", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=421, + serialized_end=547, ) _ENTITY_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='google.cloud.language.v1beta2.Entity.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.language.v1beta2.Entity.MetadataEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.language.v1beta2.Entity.MetadataEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=846, - serialized_end=893, + name="MetadataEntry", + full_name="google.cloud.language.v1beta2.Entity.MetadataEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.language.v1beta2.Entity.MetadataEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.language.v1beta2.Entity.MetadataEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=846, + serialized_end=893, ) _ENTITY = _descriptor.Descriptor( - name='Entity', - full_name='google.cloud.language.v1beta2.Entity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.language.v1beta2.Entity.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1beta2.Entity.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.language.v1beta2.Entity.metadata', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='salience', full_name='google.cloud.language.v1beta2.Entity.salience', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mentions', full_name='google.cloud.language.v1beta2.Entity.mentions', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentiment', full_name='google.cloud.language.v1beta2.Entity.sentiment', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ENTITY_METADATAENTRY, ], - enum_types=[ - _ENTITY_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=550, - serialized_end=1016, + name="Entity", + full_name="google.cloud.language.v1beta2.Entity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.language.v1beta2.Entity.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.language.v1beta2.Entity.type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.cloud.language.v1beta2.Entity.metadata", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="salience", + full_name="google.cloud.language.v1beta2.Entity.salience", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mentions", + full_name="google.cloud.language.v1beta2.Entity.mentions", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentiment", + full_name="google.cloud.language.v1beta2.Entity.sentiment", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ENTITY_METADATAENTRY], + enum_types=[_ENTITY_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=550, + serialized_end=1016, ) _TOKEN = _descriptor.Descriptor( - name='Token', - full_name='google.cloud.language.v1beta2.Token', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1beta2.Token.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='part_of_speech', full_name='google.cloud.language.v1beta2.Token.part_of_speech', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dependency_edge', full_name='google.cloud.language.v1beta2.Token.dependency_edge', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='lemma', full_name='google.cloud.language.v1beta2.Token.lemma', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1019, - serialized_end=1237, + name="Token", + full_name="google.cloud.language.v1beta2.Token", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.language.v1beta2.Token.text", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="part_of_speech", + full_name="google.cloud.language.v1beta2.Token.part_of_speech", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dependency_edge", + full_name="google.cloud.language.v1beta2.Token.dependency_edge", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="lemma", + full_name="google.cloud.language.v1beta2.Token.lemma", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1019, + serialized_end=1237, ) _SENTIMENT = _descriptor.Descriptor( - name='Sentiment', - full_name='google.cloud.language.v1beta2.Sentiment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='magnitude', full_name='google.cloud.language.v1beta2.Sentiment.magnitude', index=0, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.language.v1beta2.Sentiment.score', index=1, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1239, - serialized_end=1284, + name="Sentiment", + full_name="google.cloud.language.v1beta2.Sentiment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="magnitude", + full_name="google.cloud.language.v1beta2.Sentiment.magnitude", + index=0, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.language.v1beta2.Sentiment.score", + index=1, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1239, + serialized_end=1284, ) _PARTOFSPEECH = _descriptor.Descriptor( - name='PartOfSpeech', - full_name='google.cloud.language.v1beta2.PartOfSpeech', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tag', full_name='google.cloud.language.v1beta2.PartOfSpeech.tag', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aspect', full_name='google.cloud.language.v1beta2.PartOfSpeech.aspect', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='case', full_name='google.cloud.language.v1beta2.PartOfSpeech.case', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='form', full_name='google.cloud.language.v1beta2.PartOfSpeech.form', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gender', full_name='google.cloud.language.v1beta2.PartOfSpeech.gender', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mood', full_name='google.cloud.language.v1beta2.PartOfSpeech.mood', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='number', full_name='google.cloud.language.v1beta2.PartOfSpeech.number', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='person', full_name='google.cloud.language.v1beta2.PartOfSpeech.person', index=7, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proper', full_name='google.cloud.language.v1beta2.PartOfSpeech.proper', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reciprocity', full_name='google.cloud.language.v1beta2.PartOfSpeech.reciprocity', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tense', full_name='google.cloud.language.v1beta2.PartOfSpeech.tense', index=10, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='voice', full_name='google.cloud.language.v1beta2.PartOfSpeech.voice', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PARTOFSPEECH_TAG, - _PARTOFSPEECH_ASPECT, - _PARTOFSPEECH_CASE, - _PARTOFSPEECH_FORM, - _PARTOFSPEECH_GENDER, - _PARTOFSPEECH_MOOD, - _PARTOFSPEECH_NUMBER, - _PARTOFSPEECH_PERSON, - _PARTOFSPEECH_PROPER, - _PARTOFSPEECH_RECIPROCITY, - _PARTOFSPEECH_TENSE, - _PARTOFSPEECH_VOICE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1287, - serialized_end=3430, + name="PartOfSpeech", + full_name="google.cloud.language.v1beta2.PartOfSpeech", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="tag", + full_name="google.cloud.language.v1beta2.PartOfSpeech.tag", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aspect", + full_name="google.cloud.language.v1beta2.PartOfSpeech.aspect", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="case", + full_name="google.cloud.language.v1beta2.PartOfSpeech.case", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="form", + full_name="google.cloud.language.v1beta2.PartOfSpeech.form", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gender", + full_name="google.cloud.language.v1beta2.PartOfSpeech.gender", + index=4, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mood", + full_name="google.cloud.language.v1beta2.PartOfSpeech.mood", + index=5, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="number", + full_name="google.cloud.language.v1beta2.PartOfSpeech.number", + index=6, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="person", + full_name="google.cloud.language.v1beta2.PartOfSpeech.person", + index=7, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="proper", + full_name="google.cloud.language.v1beta2.PartOfSpeech.proper", + index=8, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reciprocity", + full_name="google.cloud.language.v1beta2.PartOfSpeech.reciprocity", + index=9, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tense", + full_name="google.cloud.language.v1beta2.PartOfSpeech.tense", + index=10, + number=11, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="voice", + full_name="google.cloud.language.v1beta2.PartOfSpeech.voice", + index=11, + number=12, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[ + _PARTOFSPEECH_TAG, + _PARTOFSPEECH_ASPECT, + _PARTOFSPEECH_CASE, + _PARTOFSPEECH_FORM, + _PARTOFSPEECH_GENDER, + _PARTOFSPEECH_MOOD, + _PARTOFSPEECH_NUMBER, + _PARTOFSPEECH_PERSON, + _PARTOFSPEECH_PROPER, + _PARTOFSPEECH_RECIPROCITY, + _PARTOFSPEECH_TENSE, + _PARTOFSPEECH_VOICE, + ], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1287, + serialized_end=3430, ) _DEPENDENCYEDGE = _descriptor.Descriptor( - name='DependencyEdge', - full_name='google.cloud.language.v1beta2.DependencyEdge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='head_token_index', full_name='google.cloud.language.v1beta2.DependencyEdge.head_token_index', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label', full_name='google.cloud.language.v1beta2.DependencyEdge.label', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DEPENDENCYEDGE_LABEL, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3433, - serialized_end=4483, + name="DependencyEdge", + full_name="google.cloud.language.v1beta2.DependencyEdge", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="head_token_index", + full_name="google.cloud.language.v1beta2.DependencyEdge.head_token_index", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label", + full_name="google.cloud.language.v1beta2.DependencyEdge.label", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DEPENDENCYEDGE_LABEL], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3433, + serialized_end=4483, ) _ENTITYMENTION = _descriptor.Descriptor( - name='EntityMention', - full_name='google.cloud.language.v1beta2.EntityMention', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1beta2.EntityMention.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1beta2.EntityMention.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentiment', full_name='google.cloud.language.v1beta2.EntityMention.sentiment', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _ENTITYMENTION_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4486, - serialized_end=4732, + name="EntityMention", + full_name="google.cloud.language.v1beta2.EntityMention", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.language.v1beta2.EntityMention.text", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.language.v1beta2.EntityMention.type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentiment", + full_name="google.cloud.language.v1beta2.EntityMention.sentiment", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_ENTITYMENTION_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4486, + serialized_end=4732, ) _TEXTSPAN = _descriptor.Descriptor( - name='TextSpan', - full_name='google.cloud.language.v1beta2.TextSpan', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.language.v1beta2.TextSpan.content', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='begin_offset', full_name='google.cloud.language.v1beta2.TextSpan.begin_offset', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4734, - serialized_end=4783, + name="TextSpan", + full_name="google.cloud.language.v1beta2.TextSpan", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.language.v1beta2.TextSpan.content", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="begin_offset", + full_name="google.cloud.language.v1beta2.TextSpan.begin_offset", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4734, + serialized_end=4783, ) _CLASSIFICATIONCATEGORY = _descriptor.Descriptor( - name='ClassificationCategory', - full_name='google.cloud.language.v1beta2.ClassificationCategory', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.language.v1beta2.ClassificationCategory.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.language.v1beta2.ClassificationCategory.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4785, - serialized_end=4843, + name="ClassificationCategory", + full_name="google.cloud.language.v1beta2.ClassificationCategory", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.language.v1beta2.ClassificationCategory.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.language.v1beta2.ClassificationCategory.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4785, + serialized_end=4843, ) _ANALYZESENTIMENTREQUEST = _descriptor.Descriptor( - name='AnalyzeSentimentRequest', - full_name='google.cloud.language.v1beta2.AnalyzeSentimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta2.AnalyzeSentimentRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1beta2.AnalyzeSentimentRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4846, - serialized_end=4998, + name="AnalyzeSentimentRequest", + full_name="google.cloud.language.v1beta2.AnalyzeSentimentRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1beta2.AnalyzeSentimentRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1beta2.AnalyzeSentimentRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4846, + serialized_end=4998, ) _ANALYZESENTIMENTRESPONSE = _descriptor.Descriptor( - name='AnalyzeSentimentResponse', - full_name='google.cloud.language.v1beta2.AnalyzeSentimentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document_sentiment', full_name='google.cloud.language.v1beta2.AnalyzeSentimentResponse.document_sentiment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta2.AnalyzeSentimentResponse.language', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sentences', full_name='google.cloud.language.v1beta2.AnalyzeSentimentResponse.sentences', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5001, - serialized_end=5175, + name="AnalyzeSentimentResponse", + full_name="google.cloud.language.v1beta2.AnalyzeSentimentResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document_sentiment", + full_name="google.cloud.language.v1beta2.AnalyzeSentimentResponse.document_sentiment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1beta2.AnalyzeSentimentResponse.language", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sentences", + full_name="google.cloud.language.v1beta2.AnalyzeSentimentResponse.sentences", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5001, + serialized_end=5175, ) _ANALYZEENTITYSENTIMENTREQUEST = _descriptor.Descriptor( - name='AnalyzeEntitySentimentRequest', - full_name='google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5178, - serialized_end=5336, + name="AnalyzeEntitySentimentRequest", + full_name="google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5178, + serialized_end=5336, ) _ANALYZEENTITYSENTIMENTRESPONSE = _descriptor.Descriptor( - name='AnalyzeEntitySentimentResponse', - full_name='google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse.entities', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse.language', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5338, - serialized_end=5445, + name="AnalyzeEntitySentimentResponse", + full_name="google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entities", + full_name="google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse.entities", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse.language", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5338, + serialized_end=5445, ) _ANALYZEENTITIESREQUEST = _descriptor.Descriptor( - name='AnalyzeEntitiesRequest', - full_name='google.cloud.language.v1beta2.AnalyzeEntitiesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta2.AnalyzeEntitiesRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1beta2.AnalyzeEntitiesRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5448, - serialized_end=5599, + name="AnalyzeEntitiesRequest", + full_name="google.cloud.language.v1beta2.AnalyzeEntitiesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1beta2.AnalyzeEntitiesRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1beta2.AnalyzeEntitiesRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5448, + serialized_end=5599, ) _ANALYZEENTITIESRESPONSE = _descriptor.Descriptor( - name='AnalyzeEntitiesResponse', - full_name='google.cloud.language.v1beta2.AnalyzeEntitiesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1beta2.AnalyzeEntitiesResponse.entities', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta2.AnalyzeEntitiesResponse.language', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5601, - serialized_end=5701, + name="AnalyzeEntitiesResponse", + full_name="google.cloud.language.v1beta2.AnalyzeEntitiesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entities", + full_name="google.cloud.language.v1beta2.AnalyzeEntitiesResponse.entities", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1beta2.AnalyzeEntitiesResponse.language", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5601, + serialized_end=5701, ) _ANALYZESYNTAXREQUEST = _descriptor.Descriptor( - name='AnalyzeSyntaxRequest', - full_name='google.cloud.language.v1beta2.AnalyzeSyntaxRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta2.AnalyzeSyntaxRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1beta2.AnalyzeSyntaxRequest.encoding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5704, - serialized_end=5853, + name="AnalyzeSyntaxRequest", + full_name="google.cloud.language.v1beta2.AnalyzeSyntaxRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1beta2.AnalyzeSyntaxRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1beta2.AnalyzeSyntaxRequest.encoding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5704, + serialized_end=5853, ) _ANALYZESYNTAXRESPONSE = _descriptor.Descriptor( - name='AnalyzeSyntaxResponse', - full_name='google.cloud.language.v1beta2.AnalyzeSyntaxResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sentences', full_name='google.cloud.language.v1beta2.AnalyzeSyntaxResponse.sentences', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tokens', full_name='google.cloud.language.v1beta2.AnalyzeSyntaxResponse.tokens', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta2.AnalyzeSyntaxResponse.language', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5856, - serialized_end=6011, + name="AnalyzeSyntaxResponse", + full_name="google.cloud.language.v1beta2.AnalyzeSyntaxResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sentences", + full_name="google.cloud.language.v1beta2.AnalyzeSyntaxResponse.sentences", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tokens", + full_name="google.cloud.language.v1beta2.AnalyzeSyntaxResponse.tokens", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1beta2.AnalyzeSyntaxResponse.language", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5856, + serialized_end=6011, ) _CLASSIFYTEXTREQUEST = _descriptor.Descriptor( - name='ClassifyTextRequest', - full_name='google.cloud.language.v1beta2.ClassifyTextRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta2.ClassifyTextRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6013, - serialized_end=6093, + name="ClassifyTextRequest", + full_name="google.cloud.language.v1beta2.ClassifyTextRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1beta2.ClassifyTextRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6013, + serialized_end=6093, ) _CLASSIFYTEXTRESPONSE = _descriptor.Descriptor( - name='ClassifyTextResponse', - full_name='google.cloud.language.v1beta2.ClassifyTextResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='categories', full_name='google.cloud.language.v1beta2.ClassifyTextResponse.categories', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6095, - serialized_end=6192, + name="ClassifyTextResponse", + full_name="google.cloud.language.v1beta2.ClassifyTextResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="categories", + full_name="google.cloud.language.v1beta2.ClassifyTextResponse.categories", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6095, + serialized_end=6192, ) _ANNOTATETEXTREQUEST_FEATURES = _descriptor.Descriptor( - name='Features', - full_name='google.cloud.language.v1beta2.AnnotateTextRequest.Features', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='extract_syntax', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extract_entities', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extract_document_sentiment', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extract_entity_sentiment', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entity_sentiment', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='classify_text', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.Features.classify_text', index=4, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6425, - serialized_end=6578, + name="Features", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.Features", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="extract_syntax", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extract_entities", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extract_document_sentiment", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extract_entity_sentiment", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entity_sentiment", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="classify_text", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.Features.classify_text", + index=4, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6425, + serialized_end=6578, ) _ANNOTATETEXTREQUEST = _descriptor.Descriptor( - name='AnnotateTextRequest', - full_name='google.cloud.language.v1beta2.AnnotateTextRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.document', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.features', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1beta2.AnnotateTextRequest.encoding_type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ANNOTATETEXTREQUEST_FEATURES, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6195, - serialized_end=6578, + name="AnnotateTextRequest", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="document", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.document", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.features", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding_type", + full_name="google.cloud.language.v1beta2.AnnotateTextRequest.encoding_type", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ANNOTATETEXTREQUEST_FEATURES], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6195, + serialized_end=6578, ) _ANNOTATETEXTRESPONSE = _descriptor.Descriptor( - name='AnnotateTextResponse', - full_name='google.cloud.language.v1beta2.AnnotateTextResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sentences', full_name='google.cloud.language.v1beta2.AnnotateTextResponse.sentences', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tokens', full_name='google.cloud.language.v1beta2.AnnotateTextResponse.tokens', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1beta2.AnnotateTextResponse.entities', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='document_sentiment', full_name='google.cloud.language.v1beta2.AnnotateTextResponse.document_sentiment', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta2.AnnotateTextResponse.language', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='categories', full_name='google.cloud.language.v1beta2.AnnotateTextResponse.categories', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6581, - serialized_end=6937, -) - -_DOCUMENT.fields_by_name['type'].enum_type = _DOCUMENT_TYPE + name="AnnotateTextResponse", + full_name="google.cloud.language.v1beta2.AnnotateTextResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sentences", + full_name="google.cloud.language.v1beta2.AnnotateTextResponse.sentences", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tokens", + full_name="google.cloud.language.v1beta2.AnnotateTextResponse.tokens", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="entities", + full_name="google.cloud.language.v1beta2.AnnotateTextResponse.entities", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="document_sentiment", + full_name="google.cloud.language.v1beta2.AnnotateTextResponse.document_sentiment", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language", + full_name="google.cloud.language.v1beta2.AnnotateTextResponse.language", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="categories", + full_name="google.cloud.language.v1beta2.AnnotateTextResponse.categories", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6581, + serialized_end=6937, +) + +_DOCUMENT.fields_by_name["type"].enum_type = _DOCUMENT_TYPE _DOCUMENT_TYPE.containing_type = _DOCUMENT -_DOCUMENT.oneofs_by_name['source'].fields.append( - _DOCUMENT.fields_by_name['content']) -_DOCUMENT.fields_by_name['content'].containing_oneof = _DOCUMENT.oneofs_by_name['source'] -_DOCUMENT.oneofs_by_name['source'].fields.append( - _DOCUMENT.fields_by_name['gcs_content_uri']) -_DOCUMENT.fields_by_name['gcs_content_uri'].containing_oneof = _DOCUMENT.oneofs_by_name['source'] -_SENTENCE.fields_by_name['text'].message_type = _TEXTSPAN -_SENTENCE.fields_by_name['sentiment'].message_type = _SENTIMENT +_DOCUMENT.oneofs_by_name["source"].fields.append(_DOCUMENT.fields_by_name["content"]) +_DOCUMENT.fields_by_name["content"].containing_oneof = _DOCUMENT.oneofs_by_name[ + "source" +] +_DOCUMENT.oneofs_by_name["source"].fields.append( + _DOCUMENT.fields_by_name["gcs_content_uri"] +) +_DOCUMENT.fields_by_name["gcs_content_uri"].containing_oneof = _DOCUMENT.oneofs_by_name[ + "source" +] +_SENTENCE.fields_by_name["text"].message_type = _TEXTSPAN +_SENTENCE.fields_by_name["sentiment"].message_type = _SENTIMENT _ENTITY_METADATAENTRY.containing_type = _ENTITY -_ENTITY.fields_by_name['type'].enum_type = _ENTITY_TYPE -_ENTITY.fields_by_name['metadata'].message_type = _ENTITY_METADATAENTRY -_ENTITY.fields_by_name['mentions'].message_type = _ENTITYMENTION -_ENTITY.fields_by_name['sentiment'].message_type = _SENTIMENT +_ENTITY.fields_by_name["type"].enum_type = _ENTITY_TYPE +_ENTITY.fields_by_name["metadata"].message_type = _ENTITY_METADATAENTRY +_ENTITY.fields_by_name["mentions"].message_type = _ENTITYMENTION +_ENTITY.fields_by_name["sentiment"].message_type = _SENTIMENT _ENTITY_TYPE.containing_type = _ENTITY -_TOKEN.fields_by_name['text'].message_type = _TEXTSPAN -_TOKEN.fields_by_name['part_of_speech'].message_type = _PARTOFSPEECH -_TOKEN.fields_by_name['dependency_edge'].message_type = _DEPENDENCYEDGE -_PARTOFSPEECH.fields_by_name['tag'].enum_type = _PARTOFSPEECH_TAG -_PARTOFSPEECH.fields_by_name['aspect'].enum_type = _PARTOFSPEECH_ASPECT -_PARTOFSPEECH.fields_by_name['case'].enum_type = _PARTOFSPEECH_CASE -_PARTOFSPEECH.fields_by_name['form'].enum_type = _PARTOFSPEECH_FORM -_PARTOFSPEECH.fields_by_name['gender'].enum_type = _PARTOFSPEECH_GENDER -_PARTOFSPEECH.fields_by_name['mood'].enum_type = _PARTOFSPEECH_MOOD -_PARTOFSPEECH.fields_by_name['number'].enum_type = _PARTOFSPEECH_NUMBER -_PARTOFSPEECH.fields_by_name['person'].enum_type = _PARTOFSPEECH_PERSON -_PARTOFSPEECH.fields_by_name['proper'].enum_type = _PARTOFSPEECH_PROPER -_PARTOFSPEECH.fields_by_name['reciprocity'].enum_type = _PARTOFSPEECH_RECIPROCITY -_PARTOFSPEECH.fields_by_name['tense'].enum_type = _PARTOFSPEECH_TENSE -_PARTOFSPEECH.fields_by_name['voice'].enum_type = _PARTOFSPEECH_VOICE +_TOKEN.fields_by_name["text"].message_type = _TEXTSPAN +_TOKEN.fields_by_name["part_of_speech"].message_type = _PARTOFSPEECH +_TOKEN.fields_by_name["dependency_edge"].message_type = _DEPENDENCYEDGE +_PARTOFSPEECH.fields_by_name["tag"].enum_type = _PARTOFSPEECH_TAG +_PARTOFSPEECH.fields_by_name["aspect"].enum_type = _PARTOFSPEECH_ASPECT +_PARTOFSPEECH.fields_by_name["case"].enum_type = _PARTOFSPEECH_CASE +_PARTOFSPEECH.fields_by_name["form"].enum_type = _PARTOFSPEECH_FORM +_PARTOFSPEECH.fields_by_name["gender"].enum_type = _PARTOFSPEECH_GENDER +_PARTOFSPEECH.fields_by_name["mood"].enum_type = _PARTOFSPEECH_MOOD +_PARTOFSPEECH.fields_by_name["number"].enum_type = _PARTOFSPEECH_NUMBER +_PARTOFSPEECH.fields_by_name["person"].enum_type = _PARTOFSPEECH_PERSON +_PARTOFSPEECH.fields_by_name["proper"].enum_type = _PARTOFSPEECH_PROPER +_PARTOFSPEECH.fields_by_name["reciprocity"].enum_type = _PARTOFSPEECH_RECIPROCITY +_PARTOFSPEECH.fields_by_name["tense"].enum_type = _PARTOFSPEECH_TENSE +_PARTOFSPEECH.fields_by_name["voice"].enum_type = _PARTOFSPEECH_VOICE _PARTOFSPEECH_TAG.containing_type = _PARTOFSPEECH _PARTOFSPEECH_ASPECT.containing_type = _PARTOFSPEECH _PARTOFSPEECH_CASE.containing_type = _PARTOFSPEECH @@ -2166,67 +2753,79 @@ _PARTOFSPEECH_RECIPROCITY.containing_type = _PARTOFSPEECH _PARTOFSPEECH_TENSE.containing_type = _PARTOFSPEECH _PARTOFSPEECH_VOICE.containing_type = _PARTOFSPEECH -_DEPENDENCYEDGE.fields_by_name['label'].enum_type = _DEPENDENCYEDGE_LABEL +_DEPENDENCYEDGE.fields_by_name["label"].enum_type = _DEPENDENCYEDGE_LABEL _DEPENDENCYEDGE_LABEL.containing_type = _DEPENDENCYEDGE -_ENTITYMENTION.fields_by_name['text'].message_type = _TEXTSPAN -_ENTITYMENTION.fields_by_name['type'].enum_type = _ENTITYMENTION_TYPE -_ENTITYMENTION.fields_by_name['sentiment'].message_type = _SENTIMENT +_ENTITYMENTION.fields_by_name["text"].message_type = _TEXTSPAN +_ENTITYMENTION.fields_by_name["type"].enum_type = _ENTITYMENTION_TYPE +_ENTITYMENTION.fields_by_name["sentiment"].message_type = _SENTIMENT _ENTITYMENTION_TYPE.containing_type = _ENTITYMENTION -_ANALYZESENTIMENTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZESENTIMENTREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZESENTIMENTRESPONSE.fields_by_name['document_sentiment'].message_type = _SENTIMENT -_ANALYZESENTIMENTRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE -_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZEENTITYSENTIMENTRESPONSE.fields_by_name['entities'].message_type = _ENTITY -_ANALYZEENTITIESREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZEENTITIESREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZEENTITIESRESPONSE.fields_by_name['entities'].message_type = _ENTITY -_ANALYZESYNTAXREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANALYZESYNTAXREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANALYZESYNTAXRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE -_ANALYZESYNTAXRESPONSE.fields_by_name['tokens'].message_type = _TOKEN -_CLASSIFYTEXTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_CLASSIFYTEXTRESPONSE.fields_by_name['categories'].message_type = _CLASSIFICATIONCATEGORY +_ANALYZESENTIMENTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZESENTIMENTREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZESENTIMENTRESPONSE.fields_by_name["document_sentiment"].message_type = _SENTIMENT +_ANALYZESENTIMENTRESPONSE.fields_by_name["sentences"].message_type = _SENTENCE +_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZEENTITYSENTIMENTREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZEENTITYSENTIMENTRESPONSE.fields_by_name["entities"].message_type = _ENTITY +_ANALYZEENTITIESREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZEENTITIESREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZEENTITIESRESPONSE.fields_by_name["entities"].message_type = _ENTITY +_ANALYZESYNTAXREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANALYZESYNTAXREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANALYZESYNTAXRESPONSE.fields_by_name["sentences"].message_type = _SENTENCE +_ANALYZESYNTAXRESPONSE.fields_by_name["tokens"].message_type = _TOKEN +_CLASSIFYTEXTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_CLASSIFYTEXTRESPONSE.fields_by_name[ + "categories" +].message_type = _CLASSIFICATIONCATEGORY _ANNOTATETEXTREQUEST_FEATURES.containing_type = _ANNOTATETEXTREQUEST -_ANNOTATETEXTREQUEST.fields_by_name['document'].message_type = _DOCUMENT -_ANNOTATETEXTREQUEST.fields_by_name['features'].message_type = _ANNOTATETEXTREQUEST_FEATURES -_ANNOTATETEXTREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE -_ANNOTATETEXTRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE -_ANNOTATETEXTRESPONSE.fields_by_name['tokens'].message_type = _TOKEN -_ANNOTATETEXTRESPONSE.fields_by_name['entities'].message_type = _ENTITY -_ANNOTATETEXTRESPONSE.fields_by_name['document_sentiment'].message_type = _SENTIMENT -_ANNOTATETEXTRESPONSE.fields_by_name['categories'].message_type = _CLASSIFICATIONCATEGORY -DESCRIPTOR.message_types_by_name['Document'] = _DOCUMENT -DESCRIPTOR.message_types_by_name['Sentence'] = _SENTENCE -DESCRIPTOR.message_types_by_name['Entity'] = _ENTITY -DESCRIPTOR.message_types_by_name['Token'] = _TOKEN -DESCRIPTOR.message_types_by_name['Sentiment'] = _SENTIMENT -DESCRIPTOR.message_types_by_name['PartOfSpeech'] = _PARTOFSPEECH -DESCRIPTOR.message_types_by_name['DependencyEdge'] = _DEPENDENCYEDGE -DESCRIPTOR.message_types_by_name['EntityMention'] = _ENTITYMENTION -DESCRIPTOR.message_types_by_name['TextSpan'] = _TEXTSPAN -DESCRIPTOR.message_types_by_name['ClassificationCategory'] = _CLASSIFICATIONCATEGORY -DESCRIPTOR.message_types_by_name['AnalyzeSentimentRequest'] = _ANALYZESENTIMENTREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeSentimentResponse'] = _ANALYZESENTIMENTRESPONSE -DESCRIPTOR.message_types_by_name['AnalyzeEntitySentimentRequest'] = _ANALYZEENTITYSENTIMENTREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeEntitySentimentResponse'] = _ANALYZEENTITYSENTIMENTRESPONSE -DESCRIPTOR.message_types_by_name['AnalyzeEntitiesRequest'] = _ANALYZEENTITIESREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeEntitiesResponse'] = _ANALYZEENTITIESRESPONSE -DESCRIPTOR.message_types_by_name['AnalyzeSyntaxRequest'] = _ANALYZESYNTAXREQUEST -DESCRIPTOR.message_types_by_name['AnalyzeSyntaxResponse'] = _ANALYZESYNTAXRESPONSE -DESCRIPTOR.message_types_by_name['ClassifyTextRequest'] = _CLASSIFYTEXTREQUEST -DESCRIPTOR.message_types_by_name['ClassifyTextResponse'] = _CLASSIFYTEXTRESPONSE -DESCRIPTOR.message_types_by_name['AnnotateTextRequest'] = _ANNOTATETEXTREQUEST -DESCRIPTOR.message_types_by_name['AnnotateTextResponse'] = _ANNOTATETEXTRESPONSE -DESCRIPTOR.enum_types_by_name['EncodingType'] = _ENCODINGTYPE +_ANNOTATETEXTREQUEST.fields_by_name["document"].message_type = _DOCUMENT +_ANNOTATETEXTREQUEST.fields_by_name[ + "features" +].message_type = _ANNOTATETEXTREQUEST_FEATURES +_ANNOTATETEXTREQUEST.fields_by_name["encoding_type"].enum_type = _ENCODINGTYPE +_ANNOTATETEXTRESPONSE.fields_by_name["sentences"].message_type = _SENTENCE +_ANNOTATETEXTRESPONSE.fields_by_name["tokens"].message_type = _TOKEN +_ANNOTATETEXTRESPONSE.fields_by_name["entities"].message_type = _ENTITY +_ANNOTATETEXTRESPONSE.fields_by_name["document_sentiment"].message_type = _SENTIMENT +_ANNOTATETEXTRESPONSE.fields_by_name[ + "categories" +].message_type = _CLASSIFICATIONCATEGORY +DESCRIPTOR.message_types_by_name["Document"] = _DOCUMENT +DESCRIPTOR.message_types_by_name["Sentence"] = _SENTENCE +DESCRIPTOR.message_types_by_name["Entity"] = _ENTITY +DESCRIPTOR.message_types_by_name["Token"] = _TOKEN +DESCRIPTOR.message_types_by_name["Sentiment"] = _SENTIMENT +DESCRIPTOR.message_types_by_name["PartOfSpeech"] = _PARTOFSPEECH +DESCRIPTOR.message_types_by_name["DependencyEdge"] = _DEPENDENCYEDGE +DESCRIPTOR.message_types_by_name["EntityMention"] = _ENTITYMENTION +DESCRIPTOR.message_types_by_name["TextSpan"] = _TEXTSPAN +DESCRIPTOR.message_types_by_name["ClassificationCategory"] = _CLASSIFICATIONCATEGORY +DESCRIPTOR.message_types_by_name["AnalyzeSentimentRequest"] = _ANALYZESENTIMENTREQUEST +DESCRIPTOR.message_types_by_name["AnalyzeSentimentResponse"] = _ANALYZESENTIMENTRESPONSE +DESCRIPTOR.message_types_by_name[ + "AnalyzeEntitySentimentRequest" +] = _ANALYZEENTITYSENTIMENTREQUEST +DESCRIPTOR.message_types_by_name[ + "AnalyzeEntitySentimentResponse" +] = _ANALYZEENTITYSENTIMENTRESPONSE +DESCRIPTOR.message_types_by_name["AnalyzeEntitiesRequest"] = _ANALYZEENTITIESREQUEST +DESCRIPTOR.message_types_by_name["AnalyzeEntitiesResponse"] = _ANALYZEENTITIESRESPONSE +DESCRIPTOR.message_types_by_name["AnalyzeSyntaxRequest"] = _ANALYZESYNTAXREQUEST +DESCRIPTOR.message_types_by_name["AnalyzeSyntaxResponse"] = _ANALYZESYNTAXRESPONSE +DESCRIPTOR.message_types_by_name["ClassifyTextRequest"] = _CLASSIFYTEXTREQUEST +DESCRIPTOR.message_types_by_name["ClassifyTextResponse"] = _CLASSIFYTEXTRESPONSE +DESCRIPTOR.message_types_by_name["AnnotateTextRequest"] = _ANNOTATETEXTREQUEST +DESCRIPTOR.message_types_by_name["AnnotateTextResponse"] = _ANNOTATETEXTRESPONSE +DESCRIPTOR.enum_types_by_name["EncodingType"] = _ENCODINGTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Document = _reflection.GeneratedProtocolMessageType('Document', (_message.Message,), dict( - DESCRIPTOR = _DOCUMENT, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents the input to API methods. +Document = _reflection.GeneratedProtocolMessageType( + "Document", + (_message.Message,), + dict( + DESCRIPTOR=_DOCUMENT, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents the input to API methods. Attributes: @@ -2254,15 +2853,18 @@ supported by the called API method, an ``INVALID_ARGUMENT`` error is returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Document) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Document) + ), +) _sym_db.RegisterMessage(Document) -Sentence = _reflection.GeneratedProtocolMessageType('Sentence', (_message.Message,), dict( - DESCRIPTOR = _SENTENCE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents a sentence in the input document. +Sentence = _reflection.GeneratedProtocolMessageType( + "Sentence", + (_message.Message,), + dict( + DESCRIPTOR=_SENTENCE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents a sentence in the input document. Attributes: @@ -2275,22 +2877,27 @@ t] is set to true, this field will contain the sentiment for the sentence. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Sentence) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Sentence) + ), +) _sym_db.RegisterMessage(Sentence) -Entity = _reflection.GeneratedProtocolMessageType('Entity', (_message.Message,), dict( - - MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( - DESCRIPTOR = _ENTITY_METADATAENTRY, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Entity.MetadataEntry) - )) - , - DESCRIPTOR = _ENTITY, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents a phrase in the text that is a known entity, such as a +Entity = _reflection.GeneratedProtocolMessageType( + "Entity", + (_message.Message,), + dict( + MetadataEntry=_reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITY_METADATAENTRY, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Entity.MetadataEntry) + ), + ), + DESCRIPTOR=_ENTITY, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as salience and mentions, with entities. @@ -2320,16 +2927,19 @@ ent] is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Entity) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Entity) + ), +) _sym_db.RegisterMessage(Entity) _sym_db.RegisterMessage(Entity.MetadataEntry) -Token = _reflection.GeneratedProtocolMessageType('Token', (_message.Message,), dict( - DESCRIPTOR = _TOKEN, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents the smallest syntactic building block of the text. +Token = _reflection.GeneratedProtocolMessageType( + "Token", + (_message.Message,), + dict( + DESCRIPTOR=_TOKEN, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents the smallest syntactic building block of the text. Attributes: @@ -2344,15 +2954,18 @@ `__ of the token. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Token) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Token) + ), +) _sym_db.RegisterMessage(Token) -Sentiment = _reflection.GeneratedProtocolMessageType('Sentiment', (_message.Message,), dict( - DESCRIPTOR = _SENTIMENT, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents the feeling associated with the entire text or entities in +Sentiment = _reflection.GeneratedProtocolMessageType( + "Sentiment", + (_message.Message,), + dict( + DESCRIPTOR=_SENTIMENT, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents the feeling associated with the entire text or entities in the text. @@ -2365,15 +2978,18 @@ Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Sentiment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Sentiment) + ), +) _sym_db.RegisterMessage(Sentiment) -PartOfSpeech = _reflection.GeneratedProtocolMessageType('PartOfSpeech', (_message.Message,), dict( - DESCRIPTOR = _PARTOFSPEECH, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents part of speech information for a token. +PartOfSpeech = _reflection.GeneratedProtocolMessageType( + "PartOfSpeech", + (_message.Message,), + dict( + DESCRIPTOR=_PARTOFSPEECH, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents part of speech information for a token. Attributes: @@ -2402,15 +3018,18 @@ voice: The grammatical voice. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.PartOfSpeech) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.PartOfSpeech) + ), +) _sym_db.RegisterMessage(PartOfSpeech) -DependencyEdge = _reflection.GeneratedProtocolMessageType('DependencyEdge', (_message.Message,), dict( - DESCRIPTOR = _DEPENDENCYEDGE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents dependency parse tree information for a token. +DependencyEdge = _reflection.GeneratedProtocolMessageType( + "DependencyEdge", + (_message.Message,), + dict( + DESCRIPTOR=_DEPENDENCYEDGE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents dependency parse tree information for a token. Attributes: @@ -2423,15 +3042,18 @@ label: The parse label for the token. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.DependencyEdge) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.DependencyEdge) + ), +) _sym_db.RegisterMessage(DependencyEdge) -EntityMention = _reflection.GeneratedProtocolMessageType('EntityMention', (_message.Message,), dict( - DESCRIPTOR = _ENTITYMENTION, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents a mention for an entity in the text. Currently, proper noun +EntityMention = _reflection.GeneratedProtocolMessageType( + "EntityMention", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITYMENTION, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents a mention for an entity in the text. Currently, proper noun mentions are supported. @@ -2448,15 +3070,18 @@ expressed for this mention of the entity in the provided document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.EntityMention) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.EntityMention) + ), +) _sym_db.RegisterMessage(EntityMention) -TextSpan = _reflection.GeneratedProtocolMessageType('TextSpan', (_message.Message,), dict( - DESCRIPTOR = _TEXTSPAN, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents an output piece of text. +TextSpan = _reflection.GeneratedProtocolMessageType( + "TextSpan", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTSPAN, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents an output piece of text. Attributes: @@ -2468,15 +3093,18 @@ [EncodingType][google.cloud.language.v1beta2.EncodingType] specified in the API request. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.TextSpan) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.TextSpan) + ), +) _sym_db.RegisterMessage(TextSpan) -ClassificationCategory = _reflection.GeneratedProtocolMessageType('ClassificationCategory', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFICATIONCATEGORY, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """Represents a category returned from the text classifier. +ClassificationCategory = _reflection.GeneratedProtocolMessageType( + "ClassificationCategory", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFICATIONCATEGORY, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""Represents a category returned from the text classifier. Attributes: @@ -2487,15 +3115,18 @@ how certain the classifier is that this category represents the given text. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassificationCategory) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassificationCategory) + ), +) _sym_db.RegisterMessage(ClassificationCategory) -AnalyzeSentimentRequest = _reflection.GeneratedProtocolMessageType('AnalyzeSentimentRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESENTIMENTREQUEST, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The sentiment analysis request message. +AnalyzeSentimentRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeSentimentRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESENTIMENTREQUEST, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The sentiment analysis request message. Attributes: @@ -2505,15 +3136,18 @@ The encoding type used by the API to calculate sentence offsets for the sentence sentiment. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSentimentRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSentimentRequest) + ), +) _sym_db.RegisterMessage(AnalyzeSentimentRequest) -AnalyzeSentimentResponse = _reflection.GeneratedProtocolMessageType('AnalyzeSentimentResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESENTIMENTRESPONSE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The sentiment analysis response message. +AnalyzeSentimentResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeSentimentResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESENTIMENTRESPONSE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The sentiment analysis response message. Attributes: @@ -2528,15 +3162,18 @@ sentences: The sentiment for all the sentences in the document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSentimentResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSentimentResponse) + ), +) _sym_db.RegisterMessage(AnalyzeSentimentResponse) -AnalyzeEntitySentimentRequest = _reflection.GeneratedProtocolMessageType('AnalyzeEntitySentimentRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITYSENTIMENTREQUEST, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The entity-level sentiment analysis request message. +AnalyzeEntitySentimentRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitySentimentRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITYSENTIMENTREQUEST, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The entity-level sentiment analysis request message. Attributes: @@ -2545,15 +3182,18 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest) + ), +) _sym_db.RegisterMessage(AnalyzeEntitySentimentRequest) -AnalyzeEntitySentimentResponse = _reflection.GeneratedProtocolMessageType('AnalyzeEntitySentimentResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITYSENTIMENTRESPONSE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The entity-level sentiment analysis response message. +AnalyzeEntitySentimentResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitySentimentResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITYSENTIMENTRESPONSE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The entity-level sentiment analysis response message. Attributes: @@ -2567,15 +3207,18 @@ e.cloud.language.v1beta2.Document.language] field for more details. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse) + ), +) _sym_db.RegisterMessage(AnalyzeEntitySentimentResponse) -AnalyzeEntitiesRequest = _reflection.GeneratedProtocolMessageType('AnalyzeEntitiesRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITIESREQUEST, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The entity analysis request message. +AnalyzeEntitiesRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitiesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITIESREQUEST, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The entity analysis request message. Attributes: @@ -2584,15 +3227,18 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitiesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitiesRequest) + ), +) _sym_db.RegisterMessage(AnalyzeEntitiesRequest) -AnalyzeEntitiesResponse = _reflection.GeneratedProtocolMessageType('AnalyzeEntitiesResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZEENTITIESRESPONSE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The entity analysis response message. +AnalyzeEntitiesResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeEntitiesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZEENTITIESRESPONSE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The entity analysis response message. Attributes: @@ -2605,15 +3251,18 @@ e.cloud.language.v1beta2.Document.language] field for more details. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitiesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitiesResponse) + ), +) _sym_db.RegisterMessage(AnalyzeEntitiesResponse) -AnalyzeSyntaxRequest = _reflection.GeneratedProtocolMessageType('AnalyzeSyntaxRequest', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESYNTAXREQUEST, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The syntax analysis request message. +AnalyzeSyntaxRequest = _reflection.GeneratedProtocolMessageType( + "AnalyzeSyntaxRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESYNTAXREQUEST, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The syntax analysis request message. Attributes: @@ -2622,15 +3271,18 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSyntaxRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSyntaxRequest) + ), +) _sym_db.RegisterMessage(AnalyzeSyntaxRequest) -AnalyzeSyntaxResponse = _reflection.GeneratedProtocolMessageType('AnalyzeSyntaxResponse', (_message.Message,), dict( - DESCRIPTOR = _ANALYZESYNTAXRESPONSE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The syntax analysis response message. +AnalyzeSyntaxResponse = _reflection.GeneratedProtocolMessageType( + "AnalyzeSyntaxResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANALYZESYNTAXRESPONSE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The syntax analysis response message. Attributes: @@ -2646,47 +3298,58 @@ e.cloud.language.v1beta2.Document.language] field for more details. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSyntaxResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSyntaxResponse) + ), +) _sym_db.RegisterMessage(AnalyzeSyntaxResponse) -ClassifyTextRequest = _reflection.GeneratedProtocolMessageType('ClassifyTextRequest', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFYTEXTREQUEST, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The document classification request message. +ClassifyTextRequest = _reflection.GeneratedProtocolMessageType( + "ClassifyTextRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFYTEXTREQUEST, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The document classification request message. Attributes: document: Input document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassifyTextRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassifyTextRequest) + ), +) _sym_db.RegisterMessage(ClassifyTextRequest) -ClassifyTextResponse = _reflection.GeneratedProtocolMessageType('ClassifyTextResponse', (_message.Message,), dict( - DESCRIPTOR = _CLASSIFYTEXTRESPONSE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The document classification response message. +ClassifyTextResponse = _reflection.GeneratedProtocolMessageType( + "ClassifyTextResponse", + (_message.Message,), + dict( + DESCRIPTOR=_CLASSIFYTEXTRESPONSE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The document classification response message. Attributes: categories: Categories representing the input document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassifyTextResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassifyTextResponse) + ), +) _sym_db.RegisterMessage(ClassifyTextResponse) -AnnotateTextRequest = _reflection.GeneratedProtocolMessageType('AnnotateTextRequest', (_message.Message,), dict( - - Features = _reflection.GeneratedProtocolMessageType('Features', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATETEXTREQUEST_FEATURES, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """All available features for sentiment, syntax, and semantic analysis. +AnnotateTextRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateTextRequest", + (_message.Message,), + dict( + Features=_reflection.GeneratedProtocolMessageType( + "Features", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATETEXTREQUEST_FEATURES, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. @@ -2703,13 +3366,12 @@ classify_text: Classify the full document into categories. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextRequest.Features) - )) - , - DESCRIPTOR = _ANNOTATETEXTREQUEST, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The request message for the text annotation API, which can perform + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextRequest.Features) + ), + ), + DESCRIPTOR=_ANNOTATETEXTREQUEST, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call. @@ -2721,16 +3383,19 @@ encoding_type: The encoding type used by the API to calculate offsets. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextRequest) + ), +) _sym_db.RegisterMessage(AnnotateTextRequest) _sym_db.RegisterMessage(AnnotateTextRequest.Features) -AnnotateTextResponse = _reflection.GeneratedProtocolMessageType('AnnotateTextResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATETEXTRESPONSE, - __module__ = 'google.cloud.language_v1beta2.proto.language_service_pb2' - , - __doc__ = """The text annotations response message. +AnnotateTextResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateTextResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATETEXTRESPONSE, + __module__="google.cloud.language_v1beta2.proto.language_service_pb2", + __doc__="""The text annotations response message. Attributes: @@ -2762,82 +3427,111 @@ categories: Categories identified in the input document. """, - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextResponse) + ), +) _sym_db.RegisterMessage(AnnotateTextResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.language.v1beta2B\024LanguageServiceProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;language')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.language.v1beta2B\024LanguageServiceProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;language" + ), +) _ENTITY_METADATAENTRY.has_options = True -_ENTITY_METADATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ENTITY_METADATAENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _LANGUAGESERVICE = _descriptor.ServiceDescriptor( - name='LanguageService', - full_name='google.cloud.language.v1beta2.LanguageService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=6998, - serialized_end=8083, - methods=[ - _descriptor.MethodDescriptor( - name='AnalyzeSentiment', - full_name='google.cloud.language.v1beta2.LanguageService.AnalyzeSentiment', + name="LanguageService", + full_name="google.cloud.language.v1beta2.LanguageService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_ANALYZESENTIMENTREQUEST, - output_type=_ANALYZESENTIMENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\"#/v1beta2/documents:analyzeSentiment:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnalyzeEntities', - full_name='google.cloud.language.v1beta2.LanguageService.AnalyzeEntities', - index=1, - containing_service=None, - input_type=_ANALYZEENTITIESREQUEST, - output_type=_ANALYZEENTITIESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\'\"\"/v1beta2/documents:analyzeEntities:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnalyzeEntitySentiment', - full_name='google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentiment', - index=2, - containing_service=None, - input_type=_ANALYZEENTITYSENTIMENTREQUEST, - output_type=_ANALYZEENTITYSENTIMENTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\")/v1beta2/documents:analyzeEntitySentiment:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnalyzeSyntax', - full_name='google.cloud.language.v1beta2.LanguageService.AnalyzeSyntax', - index=3, - containing_service=None, - input_type=_ANALYZESYNTAXREQUEST, - output_type=_ANALYZESYNTAXRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\" /v1beta2/documents:analyzeSyntax:\001*')), - ), - _descriptor.MethodDescriptor( - name='ClassifyText', - full_name='google.cloud.language.v1beta2.LanguageService.ClassifyText', - index=4, - containing_service=None, - input_type=_CLASSIFYTEXTREQUEST, - output_type=_CLASSIFYTEXTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002$\"\037/v1beta2/documents:classifyText:\001*')), - ), - _descriptor.MethodDescriptor( - name='AnnotateText', - full_name='google.cloud.language.v1beta2.LanguageService.AnnotateText', - index=5, - containing_service=None, - input_type=_ANNOTATETEXTREQUEST, - output_type=_ANNOTATETEXTRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002$\"\037/v1beta2/documents:annotateText:\001*')), - ), -]) + options=None, + serialized_start=6998, + serialized_end=8083, + methods=[ + _descriptor.MethodDescriptor( + name="AnalyzeSentiment", + full_name="google.cloud.language.v1beta2.LanguageService.AnalyzeSentiment", + index=0, + containing_service=None, + input_type=_ANALYZESENTIMENTREQUEST, + output_type=_ANALYZESENTIMENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002("#/v1beta2/documents:analyzeSentiment:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AnalyzeEntities", + full_name="google.cloud.language.v1beta2.LanguageService.AnalyzeEntities", + index=1, + containing_service=None, + input_type=_ANALYZEENTITIESREQUEST, + output_type=_ANALYZEENTITIESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\'""/v1beta2/documents:analyzeEntities:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AnalyzeEntitySentiment", + full_name="google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentiment", + index=2, + containing_service=None, + input_type=_ANALYZEENTITYSENTIMENTREQUEST, + output_type=_ANALYZEENTITYSENTIMENTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002.")/v1beta2/documents:analyzeEntitySentiment:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="AnalyzeSyntax", + full_name="google.cloud.language.v1beta2.LanguageService.AnalyzeSyntax", + index=3, + containing_service=None, + input_type=_ANALYZESYNTAXREQUEST, + output_type=_ANALYZESYNTAXRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002%" /v1beta2/documents:analyzeSyntax:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="ClassifyText", + full_name="google.cloud.language.v1beta2.LanguageService.ClassifyText", + index=4, + containing_service=None, + input_type=_CLASSIFYTEXTREQUEST, + output_type=_CLASSIFYTEXTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002$"\037/v1beta2/documents:classifyText:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AnnotateText", + full_name="google.cloud.language.v1beta2.LanguageService.AnnotateText", + index=5, + containing_service=None, + input_type=_ANNOTATETEXTREQUEST, + output_type=_ANNOTATETEXTRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002$"\037/v1beta2/documents:annotateText:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_LANGUAGESERVICE) -DESCRIPTOR.services_by_name['LanguageService'] = _LANGUAGESERVICE +DESCRIPTOR.services_by_name["LanguageService"] = _LANGUAGESERVICE # @@protoc_insertion_point(module_scope) diff --git a/language/google/cloud/language_v1beta2/proto/language_service_pb2_grpc.py b/language/google/cloud/language_v1beta2/proto/language_service_pb2_grpc.py index 73bfcadda28e1..e0e1e4124606d 100644 --- a/language/google/cloud/language_v1beta2/proto/language_service_pb2_grpc.py +++ b/language/google/cloud/language_v1beta2/proto/language_service_pb2_grpc.py @@ -1,139 +1,142 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.language_v1beta2.proto import language_service_pb2 as google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2 +from google.cloud.language_v1beta2.proto import ( + language_service_pb2 as google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2, +) class LanguageServiceStub(object): - """Provides text analysis operations such as sentiment analysis and entity + """Provides text analysis operations such as sentiment analysis and entity recognition. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.AnalyzeSentiment = channel.unary_unary( - '/google.cloud.language.v1beta2.LanguageService/AnalyzeSentiment', - request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.FromString, + self.AnalyzeSentiment = channel.unary_unary( + "/google.cloud.language.v1beta2.LanguageService/AnalyzeSentiment", + request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.FromString, ) - self.AnalyzeEntities = channel.unary_unary( - '/google.cloud.language.v1beta2.LanguageService/AnalyzeEntities', - request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.FromString, + self.AnalyzeEntities = channel.unary_unary( + "/google.cloud.language.v1beta2.LanguageService/AnalyzeEntities", + request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.FromString, ) - self.AnalyzeEntitySentiment = channel.unary_unary( - '/google.cloud.language.v1beta2.LanguageService/AnalyzeEntitySentiment', - request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.FromString, + self.AnalyzeEntitySentiment = channel.unary_unary( + "/google.cloud.language.v1beta2.LanguageService/AnalyzeEntitySentiment", + request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.FromString, ) - self.AnalyzeSyntax = channel.unary_unary( - '/google.cloud.language.v1beta2.LanguageService/AnalyzeSyntax', - request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.FromString, + self.AnalyzeSyntax = channel.unary_unary( + "/google.cloud.language.v1beta2.LanguageService/AnalyzeSyntax", + request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.FromString, ) - self.ClassifyText = channel.unary_unary( - '/google.cloud.language.v1beta2.LanguageService/ClassifyText', - request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextResponse.FromString, + self.ClassifyText = channel.unary_unary( + "/google.cloud.language.v1beta2.LanguageService/ClassifyText", + request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextResponse.FromString, ) - self.AnnotateText = channel.unary_unary( - '/google.cloud.language.v1beta2.LanguageService/AnnotateText', - request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextResponse.FromString, + self.AnnotateText = channel.unary_unary( + "/google.cloud.language.v1beta2.LanguageService/AnnotateText", + request_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextResponse.FromString, ) class LanguageServiceServicer(object): - """Provides text analysis operations such as sentiment analysis and entity + """Provides text analysis operations such as sentiment analysis and entity recognition. """ - def AnalyzeSentiment(self, request, context): - """Analyzes the sentiment of the provided text. + def AnalyzeSentiment(self, request, context): + """Analyzes the sentiment of the provided text. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnalyzeEntities(self, request, context): - """Finds named entities (currently proper names and common nouns) in the text + def AnalyzeEntities(self, request, context): + """Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnalyzeEntitySentiment(self, request, context): - """Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes + def AnalyzeEntitySentiment(self, request, context): + """Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnalyzeSyntax(self, request, context): - """Analyzes the syntax of the text and provides sentence boundaries and + def AnalyzeSyntax(self, request, context): + """Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ClassifyText(self, request, context): - """Classifies a document into categories. + def ClassifyText(self, request, context): + """Classifies a document into categories. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AnnotateText(self, request, context): - """A convenience method that provides all syntax, sentiment, entity, and + def AnnotateText(self, request, context): + """A convenience method that provides all syntax, sentiment, entity, and classification features in one call. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_LanguageServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'AnalyzeSentiment': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeSentiment, - request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.SerializeToString, - ), - 'AnalyzeEntities': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeEntities, - request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.SerializeToString, - ), - 'AnalyzeEntitySentiment': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeEntitySentiment, - request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.SerializeToString, - ), - 'AnalyzeSyntax': grpc.unary_unary_rpc_method_handler( - servicer.AnalyzeSyntax, - request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.SerializeToString, - ), - 'ClassifyText': grpc.unary_unary_rpc_method_handler( - servicer.ClassifyText, - request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextResponse.SerializeToString, - ), - 'AnnotateText': grpc.unary_unary_rpc_method_handler( - servicer.AnnotateText, - request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextRequest.FromString, - response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.language.v1beta2.LanguageService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "AnalyzeSentiment": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeSentiment, + request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSentimentResponse.SerializeToString, + ), + "AnalyzeEntities": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeEntities, + request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitiesResponse.SerializeToString, + ), + "AnalyzeEntitySentiment": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeEntitySentiment, + request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeEntitySentimentResponse.SerializeToString, + ), + "AnalyzeSyntax": grpc.unary_unary_rpc_method_handler( + servicer.AnalyzeSyntax, + request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnalyzeSyntaxResponse.SerializeToString, + ), + "ClassifyText": grpc.unary_unary_rpc_method_handler( + servicer.ClassifyText, + request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.ClassifyTextResponse.SerializeToString, + ), + "AnnotateText": grpc.unary_unary_rpc_method_handler( + servicer.AnnotateText, + request_deserializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextRequest.FromString, + response_serializer=google_dot_cloud_dot_language__v1beta2_dot_proto_dot_language__service__pb2.AnnotateTextResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.language.v1beta2.LanguageService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py index f27c749760263..048df7b15d200 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py @@ -2,503 +2,918 @@ # source: google/cloud/monitoring_v3/proto/alert.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 -from google.cloud.monitoring_v3.proto import mutation_record_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2 +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) +from google.cloud.monitoring_v3.proto import ( + mutation_record_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/alert.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n,google/cloud/monitoring_v3/proto/alert.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x36google/cloud/monitoring_v3/proto/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xdd\x0c\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\xf8\x06\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\x81\x03\n\x0fMetricThreshold\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xcb\x01\n\rMetricAbsence\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.TriggerB\x0b\n\tcondition\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - + name="google/cloud/monitoring_v3/proto/alert.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n,google/cloud/monitoring_v3/proto/alert.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x36google/cloud/monitoring_v3/proto/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto"\xdd\x0c\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\xf8\x06\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\x81\x03\n\x0fMetricThreshold\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xcb\x01\n\rMetricAbsence\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.TriggerB\x0b\n\tcondition\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + ], +) _ALERTPOLICY_CONDITIONCOMBINERTYPE = _descriptor.EnumDescriptor( - name='ConditionCombinerType', - full_name='google.monitoring.v3.AlertPolicy.ConditionCombinerType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='COMBINE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AND', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OR', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AND_WITH_MATCHING_RESOURCE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1800, - serialized_end=1897, + name="ConditionCombinerType", + full_name="google.monitoring.v3.AlertPolicy.ConditionCombinerType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="COMBINE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AND", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OR", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AND_WITH_MATCHING_RESOURCE", + index=3, + number=3, + options=None, + type=None, + ), + ], + containing_type=None, + options=None, + serialized_start=1800, + serialized_end=1897, ) _sym_db.RegisterEnumDescriptor(_ALERTPOLICY_CONDITIONCOMBINERTYPE) _ALERTPOLICY_DOCUMENTATION = _descriptor.Descriptor( - name='Documentation', - full_name='google.monitoring.v3.AlertPolicy.Documentation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.monitoring.v3.AlertPolicy.Documentation.content', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.monitoring.v3.AlertPolicy.Documentation.mime_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=805, - serialized_end=856, + name="Documentation", + full_name="google.monitoring.v3.AlertPolicy.Documentation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.monitoring.v3.AlertPolicy.Documentation.content", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mime_type", + full_name="google.monitoring.v3.AlertPolicy.Documentation.mime_type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=805, + serialized_end=856, ) _ALERTPOLICY_CONDITION_TRIGGER = _descriptor.Descriptor( - name='Trigger', - full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='count', full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger.count', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='percent', full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger.percent', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1087, - serialized_end=1140, + name="Trigger", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="count", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger.count", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="percent", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger.percent", + index=1, + number=2, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1087, + serialized_end=1140, ) _ALERTPOLICY_CONDITION_METRICTHRESHOLD = _descriptor.Descriptor( - name='MetricThreshold', - full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.filter', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aggregations', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.aggregations', index=1, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='denominator_filter', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_filter', index=2, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='denominator_aggregations', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_aggregations', index=3, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='comparison', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.comparison', index=4, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='threshold_value', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.threshold_value', index=5, - number=5, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='duration', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.duration', index=6, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trigger', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.trigger', index=7, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1143, - serialized_end=1528, + name="MetricThreshold", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.filter", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aggregations", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.aggregations", + index=1, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="denominator_filter", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_filter", + index=2, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="denominator_aggregations", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_aggregations", + index=3, + number=10, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="comparison", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.comparison", + index=4, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="threshold_value", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.threshold_value", + index=5, + number=5, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="duration", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.duration", + index=6, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trigger", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.trigger", + index=7, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1143, + serialized_end=1528, ) _ALERTPOLICY_CONDITION_METRICABSENCE = _descriptor.Descriptor( - name='MetricAbsence', - full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.filter', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aggregations', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.aggregations', index=1, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='duration', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.duration', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trigger', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.trigger', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1531, - serialized_end=1734, + name="MetricAbsence", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.filter", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aggregations", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.aggregations", + index=1, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="duration", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.duration", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trigger", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.trigger", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1531, + serialized_end=1734, ) _ALERTPOLICY_CONDITION = _descriptor.Descriptor( - name='Condition', - full_name='google.monitoring.v3.AlertPolicy.Condition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.AlertPolicy.Condition.name', index=0, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.AlertPolicy.Condition.display_name', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='condition_threshold', full_name='google.monitoring.v3.AlertPolicy.Condition.condition_threshold', index=2, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='condition_absent', full_name='google.monitoring.v3.AlertPolicy.Condition.condition_absent', index=3, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ALERTPOLICY_CONDITION_TRIGGER, _ALERTPOLICY_CONDITION_METRICTHRESHOLD, _ALERTPOLICY_CONDITION_METRICABSENCE, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='condition', full_name='google.monitoring.v3.AlertPolicy.Condition.condition', - index=0, containing_type=None, fields=[]), - ], - serialized_start=859, - serialized_end=1747, + name="Condition", + full_name="google.monitoring.v3.AlertPolicy.Condition", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.AlertPolicy.Condition.name", + index=0, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.AlertPolicy.Condition.display_name", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="condition_threshold", + full_name="google.monitoring.v3.AlertPolicy.Condition.condition_threshold", + index=2, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="condition_absent", + full_name="google.monitoring.v3.AlertPolicy.Condition.condition_absent", + index=3, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _ALERTPOLICY_CONDITION_TRIGGER, + _ALERTPOLICY_CONDITION_METRICTHRESHOLD, + _ALERTPOLICY_CONDITION_METRICABSENCE, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="condition", + full_name="google.monitoring.v3.AlertPolicy.Condition.condition", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=859, + serialized_end=1747, ) _ALERTPOLICY_USERLABELSENTRY = _descriptor.Descriptor( - name='UserLabelsEntry', - full_name='google.monitoring.v3.AlertPolicy.UserLabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.AlertPolicy.UserLabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.AlertPolicy.UserLabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1749, - serialized_end=1798, + name="UserLabelsEntry", + full_name="google.monitoring.v3.AlertPolicy.UserLabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.AlertPolicy.UserLabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.AlertPolicy.UserLabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1749, + serialized_end=1798, ) _ALERTPOLICY = _descriptor.Descriptor( - name='AlertPolicy', - full_name='google.monitoring.v3.AlertPolicy', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.AlertPolicy.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.AlertPolicy.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='documentation', full_name='google.monitoring.v3.AlertPolicy.documentation', index=2, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_labels', full_name='google.monitoring.v3.AlertPolicy.user_labels', index=3, - number=16, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conditions', full_name='google.monitoring.v3.AlertPolicy.conditions', index=4, - number=12, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='combiner', full_name='google.monitoring.v3.AlertPolicy.combiner', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enabled', full_name='google.monitoring.v3.AlertPolicy.enabled', index=6, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notification_channels', full_name='google.monitoring.v3.AlertPolicy.notification_channels', index=7, - number=14, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='creation_record', full_name='google.monitoring.v3.AlertPolicy.creation_record', index=8, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutation_record', full_name='google.monitoring.v3.AlertPolicy.mutation_record', index=9, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ALERTPOLICY_DOCUMENTATION, _ALERTPOLICY_CONDITION, _ALERTPOLICY_USERLABELSENTRY, ], - enum_types=[ - _ALERTPOLICY_CONDITIONCOMBINERTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=268, - serialized_end=1897, + name="AlertPolicy", + full_name="google.monitoring.v3.AlertPolicy", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.AlertPolicy.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.AlertPolicy.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="documentation", + full_name="google.monitoring.v3.AlertPolicy.documentation", + index=2, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_labels", + full_name="google.monitoring.v3.AlertPolicy.user_labels", + index=3, + number=16, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="conditions", + full_name="google.monitoring.v3.AlertPolicy.conditions", + index=4, + number=12, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="combiner", + full_name="google.monitoring.v3.AlertPolicy.combiner", + index=5, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enabled", + full_name="google.monitoring.v3.AlertPolicy.enabled", + index=6, + number=17, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="notification_channels", + full_name="google.monitoring.v3.AlertPolicy.notification_channels", + index=7, + number=14, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="creation_record", + full_name="google.monitoring.v3.AlertPolicy.creation_record", + index=8, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mutation_record", + full_name="google.monitoring.v3.AlertPolicy.mutation_record", + index=9, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _ALERTPOLICY_DOCUMENTATION, + _ALERTPOLICY_CONDITION, + _ALERTPOLICY_USERLABELSENTRY, + ], + enum_types=[_ALERTPOLICY_CONDITIONCOMBINERTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=268, + serialized_end=1897, ) _ALERTPOLICY_DOCUMENTATION.containing_type = _ALERTPOLICY _ALERTPOLICY_CONDITION_TRIGGER.containing_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'].fields.append( - _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['count']) -_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['count'].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'] -_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'].fields.append( - _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['percent']) -_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['percent'].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'] -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['aggregations'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['denominator_aggregations'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['comparison'].enum_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._COMPARISONTYPE -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['trigger'].message_type = _ALERTPOLICY_CONDITION_TRIGGER +_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"].fields.append( + _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name["count"] +) +_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name[ + "count" +].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"] +_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"].fields.append( + _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name["percent"] +) +_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name[ + "percent" +].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"] +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "aggregations" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "denominator_aggregations" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "comparison" +].enum_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._COMPARISONTYPE +) +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "trigger" +].message_type = _ALERTPOLICY_CONDITION_TRIGGER _ALERTPOLICY_CONDITION_METRICTHRESHOLD.containing_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name['aggregations'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name['trigger'].message_type = _ALERTPOLICY_CONDITION_TRIGGER +_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name[ + "aggregations" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name[ + "duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name[ + "trigger" +].message_type = _ALERTPOLICY_CONDITION_TRIGGER _ALERTPOLICY_CONDITION_METRICABSENCE.containing_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY_CONDITION.fields_by_name['condition_threshold'].message_type = _ALERTPOLICY_CONDITION_METRICTHRESHOLD -_ALERTPOLICY_CONDITION.fields_by_name['condition_absent'].message_type = _ALERTPOLICY_CONDITION_METRICABSENCE +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_threshold" +].message_type = _ALERTPOLICY_CONDITION_METRICTHRESHOLD +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_absent" +].message_type = _ALERTPOLICY_CONDITION_METRICABSENCE _ALERTPOLICY_CONDITION.containing_type = _ALERTPOLICY -_ALERTPOLICY_CONDITION.oneofs_by_name['condition'].fields.append( - _ALERTPOLICY_CONDITION.fields_by_name['condition_threshold']) -_ALERTPOLICY_CONDITION.fields_by_name['condition_threshold'].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name['condition'] -_ALERTPOLICY_CONDITION.oneofs_by_name['condition'].fields.append( - _ALERTPOLICY_CONDITION.fields_by_name['condition_absent']) -_ALERTPOLICY_CONDITION.fields_by_name['condition_absent'].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name['condition'] +_ALERTPOLICY_CONDITION.oneofs_by_name["condition"].fields.append( + _ALERTPOLICY_CONDITION.fields_by_name["condition_threshold"] +) +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_threshold" +].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name["condition"] +_ALERTPOLICY_CONDITION.oneofs_by_name["condition"].fields.append( + _ALERTPOLICY_CONDITION.fields_by_name["condition_absent"] +) +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_absent" +].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name["condition"] _ALERTPOLICY_USERLABELSENTRY.containing_type = _ALERTPOLICY -_ALERTPOLICY.fields_by_name['documentation'].message_type = _ALERTPOLICY_DOCUMENTATION -_ALERTPOLICY.fields_by_name['user_labels'].message_type = _ALERTPOLICY_USERLABELSENTRY -_ALERTPOLICY.fields_by_name['conditions'].message_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY.fields_by_name['combiner'].enum_type = _ALERTPOLICY_CONDITIONCOMBINERTYPE -_ALERTPOLICY.fields_by_name['enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_ALERTPOLICY.fields_by_name['creation_record'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD -_ALERTPOLICY.fields_by_name['mutation_record'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD +_ALERTPOLICY.fields_by_name["documentation"].message_type = _ALERTPOLICY_DOCUMENTATION +_ALERTPOLICY.fields_by_name["user_labels"].message_type = _ALERTPOLICY_USERLABELSENTRY +_ALERTPOLICY.fields_by_name["conditions"].message_type = _ALERTPOLICY_CONDITION +_ALERTPOLICY.fields_by_name["combiner"].enum_type = _ALERTPOLICY_CONDITIONCOMBINERTYPE +_ALERTPOLICY.fields_by_name[ + "enabled" +].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_ALERTPOLICY.fields_by_name[ + "creation_record" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD +) +_ALERTPOLICY.fields_by_name[ + "mutation_record" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD +) _ALERTPOLICY_CONDITIONCOMBINERTYPE.containing_type = _ALERTPOLICY -DESCRIPTOR.message_types_by_name['AlertPolicy'] = _ALERTPOLICY +DESCRIPTOR.message_types_by_name["AlertPolicy"] = _ALERTPOLICY _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AlertPolicy = _reflection.GeneratedProtocolMessageType('AlertPolicy', (_message.Message,), dict( - - Documentation = _reflection.GeneratedProtocolMessageType('Documentation', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_DOCUMENTATION, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A content string and a MIME type that describes the content string's +AlertPolicy = _reflection.GeneratedProtocolMessageType( + "AlertPolicy", + (_message.Message,), + dict( + Documentation=_reflection.GeneratedProtocolMessageType( + "Documentation", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_DOCUMENTATION, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A content string and a MIME type that describes the content string's format. @@ -514,17 +929,20 @@ `__ for more information. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation) - )) - , - - Condition = _reflection.GeneratedProtocolMessageType('Condition', (_message.Message,), dict( - - Trigger = _reflection.GeneratedProtocolMessageType('Trigger', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_CONDITION_TRIGGER, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """Specifies how many time series must fail a predicate to trigger a + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation) + ), + ), + Condition=_reflection.GeneratedProtocolMessageType( + "Condition", + (_message.Message,), + dict( + Trigger=_reflection.GeneratedProtocolMessageType( + "Trigger", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_CONDITION_TRIGGER, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a ``{count: 1}`` trigger is used. @@ -538,15 +956,16 @@ The percentage of time series that must fail the predicate for the condition to be triggered. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) - )) - , - - MetricThreshold = _reflection.GeneratedProtocolMessageType('MetricThreshold', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_CONDITION_METRICTHRESHOLD, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A condition type that compares a collection of time series against a + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) + ), + ), + MetricThreshold=_reflection.GeneratedProtocolMessageType( + "MetricThreshold", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICTHRESHOLD, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A condition type that compares a collection of time series against a threshold. @@ -633,15 +1052,16 @@ ``denominator_filter`` and ``denominator_aggregations`` are specified. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) - )) - , - - MetricAbsence = _reflection.GeneratedProtocolMessageType('MetricAbsence', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_CONDITION_METRICABSENCE, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A condition type that checks that monitored resources are reporting + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) + ), + ), + MetricAbsence=_reflection.GeneratedProtocolMessageType( + "MetricAbsence", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICABSENCE, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A condition type that checks that monitored resources are reporting data. The configuration defines a metric and a set of monitored resources. The predicate is considered in violation when a time series for the specified metric of a monitored resource does not include any @@ -685,13 +1105,12 @@ is true for any of the time series that have been identified by ``filter`` and ``aggregations``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) - )) - , - DESCRIPTOR = _ALERTPOLICY_CONDITION, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A condition is a true/false test that determines when an alerting policy + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) + ), + ), + DESCRIPTOR=_ALERTPOLICY_CONDITION, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A condition is a true/false test that determines when an alerting policy should open an incident. If a condition evaluates to true, it signifies that something is wrong. @@ -731,20 +1150,21 @@ A condition that checks that a time series continues to receive new data points. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) - )) - , - - UserLabelsEntry = _reflection.GeneratedProtocolMessageType('UserLabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_USERLABELSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.UserLabelsEntry) - )) - , - DESCRIPTOR = _ALERTPOLICY, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A description of the conditions under which some aspect of your system + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) + ), + ), + UserLabelsEntry=_reflection.GeneratedProtocolMessageType( + "UserLabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_USERLABELSENTRY, + __module__="google.cloud.monitoring_v3.proto.alert_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.UserLabelsEntry) + ), + ), + DESCRIPTOR=_ALERTPOLICY, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify people or services about this state. For an overview of alert policies, see `Introduction to Alerting `__. @@ -815,8 +1235,9 @@ policy. If provided in a call to create or update, this field will be ignored. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy) + ), +) _sym_db.RegisterMessage(AlertPolicy) _sym_db.RegisterMessage(AlertPolicy.Documentation) _sym_db.RegisterMessage(AlertPolicy.Condition) @@ -827,7 +1248,14 @@ DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\nAlertProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\nAlertProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _ALERTPOLICY_USERLABELSENTRY.has_options = True -_ALERTPOLICY_USERLABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ALERTPOLICY_USERLABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py index b736e46b408a5..13ae5bfda1129 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py @@ -2,285 +2,437 @@ # source: google/cloud/monitoring_v3/proto/alert_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2 +from google.cloud.monitoring_v3.proto import ( + alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/alert_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n4google/cloud/monitoring_v3/proto/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"a\n\x18\x43reateAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy\"%\n\x15GetAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"q\n\x18ListAlertPoliciesRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x19ListAlertPoliciesResponse\x12\x39\n\x0e\x61lert_policies\x18\x03 \x03(\x0b\x32!.google.monitoring.v3.AlertPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x01\n\x18UpdateAlertPolicyRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x37\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy\"(\n\x18\x44\x65leteAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t2\xae\x06\n\x12\x41lertPolicyService\x12\xa1\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\x12\x8f\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"-\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\x12\xa1\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"9\x82\xd3\xe4\x93\x02\x33\"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\x12\x8a\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\x12\xb0\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"H\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policyB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/alert_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n4google/cloud/monitoring_v3/proto/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"a\n\x18\x43reateAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy"%\n\x15GetAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"q\n\x18ListAlertPoliciesRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"o\n\x19ListAlertPoliciesResponse\x12\x39\n\x0e\x61lert_policies\x18\x03 \x03(\x0b\x32!.google.monitoring.v3.AlertPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x84\x01\n\x18UpdateAlertPolicyRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x37\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy"(\n\x18\x44\x65leteAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t2\xae\x06\n\x12\x41lertPolicyService\x12\xa1\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse"+\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\x12\x8f\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"-\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\x12\xa1\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"9\x82\xd3\xe4\x93\x02\x33"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\x12\x8a\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty"-\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\x12\xb0\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"H\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policyB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _CREATEALERTPOLICYREQUEST = _descriptor.Descriptor( - name='CreateAlertPolicyRequest', - full_name='google.monitoring.v3.CreateAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateAlertPolicyRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alert_policy', full_name='google.monitoring.v3.CreateAlertPolicyRequest.alert_policy', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=217, - serialized_end=314, + name="CreateAlertPolicyRequest", + full_name="google.monitoring.v3.CreateAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateAlertPolicyRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alert_policy", + full_name="google.monitoring.v3.CreateAlertPolicyRequest.alert_policy", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=217, + serialized_end=314, ) _GETALERTPOLICYREQUEST = _descriptor.Descriptor( - name='GetAlertPolicyRequest', - full_name='google.monitoring.v3.GetAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetAlertPolicyRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=316, - serialized_end=353, + name="GetAlertPolicyRequest", + full_name="google.monitoring.v3.GetAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetAlertPolicyRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=316, + serialized_end=353, ) _LISTALERTPOLICIESREQUEST = _descriptor.Descriptor( - name='ListAlertPoliciesRequest', - full_name='google.monitoring.v3.ListAlertPoliciesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListAlertPoliciesRequest.name', index=0, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListAlertPoliciesRequest.filter', index=1, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.monitoring.v3.ListAlertPoliciesRequest.order_by', index=2, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListAlertPoliciesRequest.page_size', index=3, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListAlertPoliciesRequest.page_token', index=4, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=355, - serialized_end=468, + name="ListAlertPoliciesRequest", + full_name="google.monitoring.v3.ListAlertPoliciesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.name", + index=0, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.filter", + index=1, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.order_by", + index=2, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.page_size", + index=3, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.page_token", + index=4, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=355, + serialized_end=468, ) _LISTALERTPOLICIESRESPONSE = _descriptor.Descriptor( - name='ListAlertPoliciesResponse', - full_name='google.monitoring.v3.ListAlertPoliciesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alert_policies', full_name='google.monitoring.v3.ListAlertPoliciesResponse.alert_policies', index=0, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListAlertPoliciesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=470, - serialized_end=581, + name="ListAlertPoliciesResponse", + full_name="google.monitoring.v3.ListAlertPoliciesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alert_policies", + full_name="google.monitoring.v3.ListAlertPoliciesResponse.alert_policies", + index=0, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListAlertPoliciesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=470, + serialized_end=581, ) _UPDATEALERTPOLICYREQUEST = _descriptor.Descriptor( - name='UpdateAlertPolicyRequest', - full_name='google.monitoring.v3.UpdateAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.monitoring.v3.UpdateAlertPolicyRequest.update_mask', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alert_policy', full_name='google.monitoring.v3.UpdateAlertPolicyRequest.alert_policy', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=584, - serialized_end=716, + name="UpdateAlertPolicyRequest", + full_name="google.monitoring.v3.UpdateAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.monitoring.v3.UpdateAlertPolicyRequest.update_mask", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alert_policy", + full_name="google.monitoring.v3.UpdateAlertPolicyRequest.alert_policy", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=584, + serialized_end=716, ) _DELETEALERTPOLICYREQUEST = _descriptor.Descriptor( - name='DeleteAlertPolicyRequest', - full_name='google.monitoring.v3.DeleteAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteAlertPolicyRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=718, - serialized_end=758, + name="DeleteAlertPolicyRequest", + full_name="google.monitoring.v3.DeleteAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteAlertPolicyRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=718, + serialized_end=758, ) -_CREATEALERTPOLICYREQUEST.fields_by_name['alert_policy'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY -_LISTALERTPOLICIESRESPONSE.fields_by_name['alert_policies'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY -_UPDATEALERTPOLICYREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATEALERTPOLICYREQUEST.fields_by_name['alert_policy'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY -DESCRIPTOR.message_types_by_name['CreateAlertPolicyRequest'] = _CREATEALERTPOLICYREQUEST -DESCRIPTOR.message_types_by_name['GetAlertPolicyRequest'] = _GETALERTPOLICYREQUEST -DESCRIPTOR.message_types_by_name['ListAlertPoliciesRequest'] = _LISTALERTPOLICIESREQUEST -DESCRIPTOR.message_types_by_name['ListAlertPoliciesResponse'] = _LISTALERTPOLICIESRESPONSE -DESCRIPTOR.message_types_by_name['UpdateAlertPolicyRequest'] = _UPDATEALERTPOLICYREQUEST -DESCRIPTOR.message_types_by_name['DeleteAlertPolicyRequest'] = _DELETEALERTPOLICYREQUEST +_CREATEALERTPOLICYREQUEST.fields_by_name[ + "alert_policy" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY +) +_LISTALERTPOLICIESRESPONSE.fields_by_name[ + "alert_policies" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY +) +_UPDATEALERTPOLICYREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATEALERTPOLICYREQUEST.fields_by_name[ + "alert_policy" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY +) +DESCRIPTOR.message_types_by_name["CreateAlertPolicyRequest"] = _CREATEALERTPOLICYREQUEST +DESCRIPTOR.message_types_by_name["GetAlertPolicyRequest"] = _GETALERTPOLICYREQUEST +DESCRIPTOR.message_types_by_name["ListAlertPoliciesRequest"] = _LISTALERTPOLICIESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListAlertPoliciesResponse" +] = _LISTALERTPOLICIESRESPONSE +DESCRIPTOR.message_types_by_name["UpdateAlertPolicyRequest"] = _UPDATEALERTPOLICYREQUEST +DESCRIPTOR.message_types_by_name["DeleteAlertPolicyRequest"] = _DELETEALERTPOLICYREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('CreateAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``CreateAlertPolicy`` request. +CreateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "CreateAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``CreateAlertPolicy`` request. Attributes: @@ -298,15 +450,18 @@ field in this policy. The name will be returned in the new policy, including a new [ALERT\_POLICY\_ID] value. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(CreateAlertPolicyRequest) -GetAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('GetAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _GETALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``GetAlertPolicy`` request. +GetAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "GetAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``GetAlertPolicy`` request. Attributes: @@ -314,15 +469,18 @@ The alerting policy to retrieve. The format is :: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(GetAlertPolicyRequest) -ListAlertPoliciesRequest = _reflection.GeneratedProtocolMessageType('ListAlertPoliciesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTALERTPOLICIESREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``ListAlertPolicies`` request. +ListAlertPoliciesRequest = _reflection.GeneratedProtocolMessageType( + "ListAlertPoliciesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTALERTPOLICIESREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``ListAlertPolicies`` request. Attributes: @@ -352,15 +510,18 @@ method. Using this field causes the method to return more results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesRequest) + ), +) _sym_db.RegisterMessage(ListAlertPoliciesRequest) -ListAlertPoliciesResponse = _reflection.GeneratedProtocolMessageType('ListAlertPoliciesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTALERTPOLICIESRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``ListAlertPolicies`` response. +ListAlertPoliciesResponse = _reflection.GeneratedProtocolMessageType( + "ListAlertPoliciesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTALERTPOLICIESRESPONSE, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``ListAlertPolicies`` response. Attributes: @@ -372,15 +533,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesResponse) + ), +) _sym_db.RegisterMessage(ListAlertPoliciesResponse) -UpdateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('UpdateAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``UpdateAlertPolicy`` request. +UpdateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "UpdateAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``UpdateAlertPolicy`` request. Attributes: @@ -411,15 +575,18 @@ is not empty, any fields in this policy that are not in ``update_mask`` are ignored. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(UpdateAlertPolicyRequest) -DeleteAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('DeleteAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``DeleteAlertPolicy`` request. +DeleteAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "DeleteAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``DeleteAlertPolicy`` request. Attributes: @@ -429,71 +596,97 @@ more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy]. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(DeleteAlertPolicyRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\021AlertServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\021AlertServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _ALERTPOLICYSERVICE = _descriptor.ServiceDescriptor( - name='AlertPolicyService', - full_name='google.monitoring.v3.AlertPolicyService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=761, - serialized_end=1575, - methods=[ - _descriptor.MethodDescriptor( - name='ListAlertPolicies', - full_name='google.monitoring.v3.AlertPolicyService.ListAlertPolicies', + name="AlertPolicyService", + full_name="google.monitoring.v3.AlertPolicyService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTALERTPOLICIESREQUEST, - output_type=_LISTALERTPOLICIESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\022#/v3/{name=projects/*}/alertPolicies')), - ), - _descriptor.MethodDescriptor( - name='GetAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.GetAlertPolicy', - index=1, - containing_service=None, - input_type=_GETALERTPOLICYREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\'\022%/v3/{name=projects/*/alertPolicies/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.CreateAlertPolicy', - index=2, - containing_service=None, - input_type=_CREATEALERTPOLICYREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0023\"#/v3/{name=projects/*}/alertPolicies:\014alert_policy')), - ), - _descriptor.MethodDescriptor( - name='DeleteAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.DeleteAlertPolicy', - index=3, - containing_service=None, - input_type=_DELETEALERTPOLICYREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\'*%/v3/{name=projects/*/alertPolicies/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy', - index=4, - containing_service=None, - input_type=_UPDATEALERTPOLICYREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B22/v3/{alert_policy.name=projects/*/alertPolicies/*}:\014alert_policy')), - ), -]) + options=None, + serialized_start=761, + serialized_end=1575, + methods=[ + _descriptor.MethodDescriptor( + name="ListAlertPolicies", + full_name="google.monitoring.v3.AlertPolicyService.ListAlertPolicies", + index=0, + containing_service=None, + input_type=_LISTALERTPOLICIESREQUEST, + output_type=_LISTALERTPOLICIESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002%\022#/v3/{name=projects/*}/alertPolicies"), + ), + ), + _descriptor.MethodDescriptor( + name="GetAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.GetAlertPolicy", + index=1, + containing_service=None, + input_type=_GETALERTPOLICYREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002'\022%/v3/{name=projects/*/alertPolicies/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.CreateAlertPolicy", + index=2, + containing_service=None, + input_type=_CREATEALERTPOLICYREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0023"#/v3/{name=projects/*}/alertPolicies:\014alert_policy' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.DeleteAlertPolicy", + index=3, + containing_service=None, + input_type=_DELETEALERTPOLICYREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002'*%/v3/{name=projects/*/alertPolicies/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy", + index=4, + containing_service=None, + input_type=_UPDATEALERTPOLICYREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002B22/v3/{alert_policy.name=projects/*/alertPolicies/*}:\014alert_policy" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_ALERTPOLICYSERVICE) -DESCRIPTOR.services_by_name['AlertPolicyService'] = _ALERTPOLICYSERVICE +DESCRIPTOR.services_by_name["AlertPolicyService"] = _ALERTPOLICYSERVICE # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py index c9248fdbc9e13..d5773d78c4d4f 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2 -from google.cloud.monitoring_v3.proto import alert_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2 +from google.cloud.monitoring_v3.proto import ( + alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2, +) +from google.cloud.monitoring_v3.proto import ( + alert_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class AlertPolicyServiceStub(object): - """The AlertPolicyService API is used to manage (list, create, delete, + """The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify @@ -18,41 +22,41 @@ class AlertPolicyServiceStub(object): [Cloud Console](https://console.cloud.google.com/). """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListAlertPolicies = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/ListAlertPolicies', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.FromString, + self.ListAlertPolicies = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/ListAlertPolicies", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.FromString, ) - self.GetAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/GetAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, + self.GetAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/GetAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, ) - self.CreateAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, + self.CreateAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, ) - self.DeleteAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.UpdateAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, + self.UpdateAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, ) class AlertPolicyServiceServicer(object): - """The AlertPolicyService API is used to manage (list, create, delete, + """The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify @@ -63,73 +67,74 @@ class AlertPolicyServiceServicer(object): [Cloud Console](https://console.cloud.google.com/). """ - def ListAlertPolicies(self, request, context): - """Lists the existing alerting policies for the project. + def ListAlertPolicies(self, request, context): + """Lists the existing alerting policies for the project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetAlertPolicy(self, request, context): - """Gets a single alerting policy. + def GetAlertPolicy(self, request, context): + """Gets a single alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateAlertPolicy(self, request, context): - """Creates a new alerting policy. + def CreateAlertPolicy(self, request, context): + """Creates a new alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteAlertPolicy(self, request, context): - """Deletes an alerting policy. + def DeleteAlertPolicy(self, request, context): + """Deletes an alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateAlertPolicy(self, request, context): - """Updates an alerting policy. You can either replace the entire policy with + def UpdateAlertPolicy(self, request, context): + """Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via `updateMask`. Returns the updated alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_AlertPolicyServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListAlertPolicies': grpc.unary_unary_rpc_method_handler( - servicer.ListAlertPolicies, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.SerializeToString, - ), - 'GetAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, - ), - 'CreateAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.CreateAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, - ), - 'DeleteAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'UpdateAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.UpdateAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.AlertPolicyService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListAlertPolicies": grpc.unary_unary_rpc_method_handler( + servicer.ListAlertPolicies, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.SerializeToString, + ), + "GetAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, + ), + "CreateAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.CreateAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, + ), + "DeleteAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.DeleteAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "UpdateAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.UpdateAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.AlertPolicyService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py index e38d658d2485b..c8677339d1eea 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py @@ -3,13 +3,15 @@ # source: google/cloud/monitoring_v3/proto/common.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,79 +24,76 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/common.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/monitoring_v3/proto/common.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x1dgoogle/api/distribution.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xaa\x01\n\nTypedValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x36\n\x12\x64istribution_value\x18\x05 \x01(\x0b\x32\x18.google.api.DistributionH\x00\x42\x07\n\x05value\"l\n\x0cTimeInterval\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xad\x07\n\x0b\x41ggregation\x12\x33\n\x10\x61lignment_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x12per_series_aligner\x18\x02 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Aligner\x12G\n\x14\x63ross_series_reducer\x18\x04 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Reducer\x12\x17\n\x0fgroup_by_fields\x18\x05 \x03(\t\"\x8b\x03\n\x07\x41ligner\x12\x0e\n\nALIGN_NONE\x10\x00\x12\x0f\n\x0b\x41LIGN_DELTA\x10\x01\x12\x0e\n\nALIGN_RATE\x10\x02\x12\x15\n\x11\x41LIGN_INTERPOLATE\x10\x03\x12\x14\n\x10\x41LIGN_NEXT_OLDER\x10\x04\x12\r\n\tALIGN_MIN\x10\n\x12\r\n\tALIGN_MAX\x10\x0b\x12\x0e\n\nALIGN_MEAN\x10\x0c\x12\x0f\n\x0b\x41LIGN_COUNT\x10\r\x12\r\n\tALIGN_SUM\x10\x0e\x12\x10\n\x0c\x41LIGN_STDDEV\x10\x0f\x12\x14\n\x10\x41LIGN_COUNT_TRUE\x10\x10\x12\x15\n\x11\x41LIGN_COUNT_FALSE\x10\x18\x12\x17\n\x13\x41LIGN_FRACTION_TRUE\x10\x11\x12\x17\n\x13\x41LIGN_PERCENTILE_99\x10\x12\x12\x17\n\x13\x41LIGN_PERCENTILE_95\x10\x13\x12\x17\n\x13\x41LIGN_PERCENTILE_50\x10\x14\x12\x17\n\x13\x41LIGN_PERCENTILE_05\x10\x15\x12\x18\n\x14\x41LIGN_PERCENT_CHANGE\x10\x17\"\xb1\x02\n\x07Reducer\x12\x0f\n\x0bREDUCE_NONE\x10\x00\x12\x0f\n\x0bREDUCE_MEAN\x10\x01\x12\x0e\n\nREDUCE_MIN\x10\x02\x12\x0e\n\nREDUCE_MAX\x10\x03\x12\x0e\n\nREDUCE_SUM\x10\x04\x12\x11\n\rREDUCE_STDDEV\x10\x05\x12\x10\n\x0cREDUCE_COUNT\x10\x06\x12\x15\n\x11REDUCE_COUNT_TRUE\x10\x07\x12\x16\n\x12REDUCE_COUNT_FALSE\x10\x0f\x12\x18\n\x14REDUCE_FRACTION_TRUE\x10\x08\x12\x18\n\x14REDUCE_PERCENTILE_99\x10\t\x12\x18\n\x14REDUCE_PERCENTILE_95\x10\n\x12\x18\n\x14REDUCE_PERCENTILE_50\x10\x0b\x12\x18\n\x14REDUCE_PERCENTILE_05\x10\x0c*\x9e\x01\n\x0e\x43omparisonType\x12\x1a\n\x16\x43OMPARISON_UNSPECIFIED\x10\x00\x12\x11\n\rCOMPARISON_GT\x10\x01\x12\x11\n\rCOMPARISON_GE\x10\x02\x12\x11\n\rCOMPARISON_LT\x10\x03\x12\x11\n\rCOMPARISON_LE\x10\x04\x12\x11\n\rCOMPARISON_EQ\x10\x05\x12\x11\n\rCOMPARISON_NE\x10\x06*a\n\x0bServiceTier\x12\x1c\n\x18SERVICE_TIER_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_TIER_BASIC\x10\x01\x12\x18\n\x14SERVICE_TIER_PREMIUM\x10\x02\x1a\x02\x18\x01\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0b\x43ommonProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_distribution__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/monitoring_v3/proto/common.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/monitoring_v3/proto/common.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x1dgoogle/api/distribution.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xaa\x01\n\nTypedValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x36\n\x12\x64istribution_value\x18\x05 \x01(\x0b\x32\x18.google.api.DistributionH\x00\x42\x07\n\x05value"l\n\x0cTimeInterval\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xad\x07\n\x0b\x41ggregation\x12\x33\n\x10\x61lignment_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x12per_series_aligner\x18\x02 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Aligner\x12G\n\x14\x63ross_series_reducer\x18\x04 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Reducer\x12\x17\n\x0fgroup_by_fields\x18\x05 \x03(\t"\x8b\x03\n\x07\x41ligner\x12\x0e\n\nALIGN_NONE\x10\x00\x12\x0f\n\x0b\x41LIGN_DELTA\x10\x01\x12\x0e\n\nALIGN_RATE\x10\x02\x12\x15\n\x11\x41LIGN_INTERPOLATE\x10\x03\x12\x14\n\x10\x41LIGN_NEXT_OLDER\x10\x04\x12\r\n\tALIGN_MIN\x10\n\x12\r\n\tALIGN_MAX\x10\x0b\x12\x0e\n\nALIGN_MEAN\x10\x0c\x12\x0f\n\x0b\x41LIGN_COUNT\x10\r\x12\r\n\tALIGN_SUM\x10\x0e\x12\x10\n\x0c\x41LIGN_STDDEV\x10\x0f\x12\x14\n\x10\x41LIGN_COUNT_TRUE\x10\x10\x12\x15\n\x11\x41LIGN_COUNT_FALSE\x10\x18\x12\x17\n\x13\x41LIGN_FRACTION_TRUE\x10\x11\x12\x17\n\x13\x41LIGN_PERCENTILE_99\x10\x12\x12\x17\n\x13\x41LIGN_PERCENTILE_95\x10\x13\x12\x17\n\x13\x41LIGN_PERCENTILE_50\x10\x14\x12\x17\n\x13\x41LIGN_PERCENTILE_05\x10\x15\x12\x18\n\x14\x41LIGN_PERCENT_CHANGE\x10\x17"\xb1\x02\n\x07Reducer\x12\x0f\n\x0bREDUCE_NONE\x10\x00\x12\x0f\n\x0bREDUCE_MEAN\x10\x01\x12\x0e\n\nREDUCE_MIN\x10\x02\x12\x0e\n\nREDUCE_MAX\x10\x03\x12\x0e\n\nREDUCE_SUM\x10\x04\x12\x11\n\rREDUCE_STDDEV\x10\x05\x12\x10\n\x0cREDUCE_COUNT\x10\x06\x12\x15\n\x11REDUCE_COUNT_TRUE\x10\x07\x12\x16\n\x12REDUCE_COUNT_FALSE\x10\x0f\x12\x18\n\x14REDUCE_FRACTION_TRUE\x10\x08\x12\x18\n\x14REDUCE_PERCENTILE_99\x10\t\x12\x18\n\x14REDUCE_PERCENTILE_95\x10\n\x12\x18\n\x14REDUCE_PERCENTILE_50\x10\x0b\x12\x18\n\x14REDUCE_PERCENTILE_05\x10\x0c*\x9e\x01\n\x0e\x43omparisonType\x12\x1a\n\x16\x43OMPARISON_UNSPECIFIED\x10\x00\x12\x11\n\rCOMPARISON_GT\x10\x01\x12\x11\n\rCOMPARISON_GE\x10\x02\x12\x11\n\rCOMPARISON_LT\x10\x03\x12\x11\n\rCOMPARISON_LE\x10\x04\x12\x11\n\rCOMPARISON_EQ\x10\x05\x12\x11\n\rCOMPARISON_NE\x10\x06*a\n\x0bServiceTier\x12\x1c\n\x18SERVICE_TIER_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_TIER_BASIC\x10\x01\x12\x18\n\x14SERVICE_TIER_PREMIUM\x10\x02\x1a\x02\x18\x01\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0b\x43ommonProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_distribution__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _COMPARISONTYPE = _descriptor.EnumDescriptor( - name='ComparisonType', - full_name='google.monitoring.v3.ComparisonType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='COMPARISON_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_GT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_GE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_LT', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_LE', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_EQ', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_NE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1425, - serialized_end=1583, + name="ComparisonType", + full_name="google.monitoring.v3.ComparisonType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="COMPARISON_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_GT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_GE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_LT", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_LE", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_EQ", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_NE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1425, + serialized_end=1583, ) _sym_db.RegisterEnumDescriptor(_COMPARISONTYPE) ComparisonType = enum_type_wrapper.EnumTypeWrapper(_COMPARISONTYPE) _SERVICETIER = _descriptor.EnumDescriptor( - name='ServiceTier', - full_name='google.monitoring.v3.ServiceTier', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SERVICE_TIER_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SERVICE_TIER_BASIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SERVICE_TIER_PREMIUM', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=_descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\030\001')), - serialized_start=1585, - serialized_end=1682, + name="ServiceTier", + full_name="google.monitoring.v3.ServiceTier", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SERVICE_TIER_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SERVICE_TIER_BASIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SERVICE_TIER_PREMIUM", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=_descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b("\030\001")), + serialized_start=1585, + serialized_end=1682, ) _sym_db.RegisterEnumDescriptor(_SERVICETIER) @@ -112,354 +111,461 @@ _AGGREGATION_ALIGNER = _descriptor.EnumDescriptor( - name='Aligner', - full_name='google.monitoring.v3.Aggregation.Aligner', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ALIGN_NONE', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_DELTA', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_RATE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_INTERPOLATE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_NEXT_OLDER', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_MIN', index=5, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_MAX', index=6, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_MEAN', index=7, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_COUNT', index=8, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_SUM', index=9, number=14, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_STDDEV', index=10, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_COUNT_TRUE', index=11, number=16, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_COUNT_FALSE', index=12, number=24, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_FRACTION_TRUE', index=13, number=17, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_99', index=14, number=18, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_95', index=15, number=19, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_50', index=16, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_05', index=17, number=21, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENT_CHANGE', index=18, number=23, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=719, - serialized_end=1114, + name="Aligner", + full_name="google.monitoring.v3.Aggregation.Aligner", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ALIGN_NONE", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_DELTA", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_RATE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_INTERPOLATE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_NEXT_OLDER", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_MIN", index=5, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_MAX", index=6, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_MEAN", index=7, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_COUNT", index=8, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_SUM", index=9, number=14, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_STDDEV", index=10, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_COUNT_TRUE", index=11, number=16, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_COUNT_FALSE", index=12, number=24, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_FRACTION_TRUE", index=13, number=17, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_99", index=14, number=18, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_95", index=15, number=19, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_50", index=16, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_05", index=17, number=21, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENT_CHANGE", index=18, number=23, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=719, + serialized_end=1114, ) _sym_db.RegisterEnumDescriptor(_AGGREGATION_ALIGNER) _AGGREGATION_REDUCER = _descriptor.EnumDescriptor( - name='Reducer', - full_name='google.monitoring.v3.Aggregation.Reducer', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='REDUCE_NONE', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_MEAN', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_MIN', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_MAX', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_SUM', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_STDDEV', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_COUNT', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_COUNT_TRUE', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_COUNT_FALSE', index=8, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_FRACTION_TRUE', index=9, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_99', index=10, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_95', index=11, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_50', index=12, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_05', index=13, number=12, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1117, - serialized_end=1422, + name="Reducer", + full_name="google.monitoring.v3.Aggregation.Reducer", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="REDUCE_NONE", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_MEAN", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_MIN", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_MAX", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_SUM", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_STDDEV", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_COUNT", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_COUNT_TRUE", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_COUNT_FALSE", index=8, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_FRACTION_TRUE", index=9, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_99", index=10, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_95", index=11, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_50", index=12, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_05", index=13, number=12, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1117, + serialized_end=1422, ) _sym_db.RegisterEnumDescriptor(_AGGREGATION_REDUCER) _TYPEDVALUE = _descriptor.Descriptor( - name='TypedValue', - full_name='google.monitoring.v3.TypedValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bool_value', full_name='google.monitoring.v3.TypedValue.bool_value', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='int64_value', full_name='google.monitoring.v3.TypedValue.int64_value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='double_value', full_name='google.monitoring.v3.TypedValue.double_value', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='string_value', full_name='google.monitoring.v3.TypedValue.string_value', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='distribution_value', full_name='google.monitoring.v3.TypedValue.distribution_value', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.monitoring.v3.TypedValue.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=198, - serialized_end=368, + name="TypedValue", + full_name="google.monitoring.v3.TypedValue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bool_value", + full_name="google.monitoring.v3.TypedValue.bool_value", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="int64_value", + full_name="google.monitoring.v3.TypedValue.int64_value", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="double_value", + full_name="google.monitoring.v3.TypedValue.double_value", + index=2, + number=3, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="string_value", + full_name="google.monitoring.v3.TypedValue.string_value", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="distribution_value", + full_name="google.monitoring.v3.TypedValue.distribution_value", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="value", + full_name="google.monitoring.v3.TypedValue.value", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=198, + serialized_end=368, ) _TIMEINTERVAL = _descriptor.Descriptor( - name='TimeInterval', - full_name='google.monitoring.v3.TimeInterval', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='end_time', full_name='google.monitoring.v3.TimeInterval.end_time', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.monitoring.v3.TimeInterval.start_time', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=370, - serialized_end=478, + name="TimeInterval", + full_name="google.monitoring.v3.TimeInterval", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.monitoring.v3.TimeInterval.end_time", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.monitoring.v3.TimeInterval.start_time", + index=1, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=370, + serialized_end=478, ) _AGGREGATION = _descriptor.Descriptor( - name='Aggregation', - full_name='google.monitoring.v3.Aggregation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alignment_period', full_name='google.monitoring.v3.Aggregation.alignment_period', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='per_series_aligner', full_name='google.monitoring.v3.Aggregation.per_series_aligner', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cross_series_reducer', full_name='google.monitoring.v3.Aggregation.cross_series_reducer', index=2, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group_by_fields', full_name='google.monitoring.v3.Aggregation.group_by_fields', index=3, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _AGGREGATION_ALIGNER, - _AGGREGATION_REDUCER, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=481, - serialized_end=1422, + name="Aggregation", + full_name="google.monitoring.v3.Aggregation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alignment_period", + full_name="google.monitoring.v3.Aggregation.alignment_period", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="per_series_aligner", + full_name="google.monitoring.v3.Aggregation.per_series_aligner", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cross_series_reducer", + full_name="google.monitoring.v3.Aggregation.cross_series_reducer", + index=2, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="group_by_fields", + full_name="google.monitoring.v3.Aggregation.group_by_fields", + index=3, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_AGGREGATION_ALIGNER, _AGGREGATION_REDUCER], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=481, + serialized_end=1422, ) -_TYPEDVALUE.fields_by_name['distribution_value'].message_type = google_dot_api_dot_distribution__pb2._DISTRIBUTION -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['bool_value']) -_TYPEDVALUE.fields_by_name['bool_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['int64_value']) -_TYPEDVALUE.fields_by_name['int64_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['double_value']) -_TYPEDVALUE.fields_by_name['double_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['string_value']) -_TYPEDVALUE.fields_by_name['string_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['distribution_value']) -_TYPEDVALUE.fields_by_name['distribution_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TIMEINTERVAL.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TIMEINTERVAL.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_AGGREGATION.fields_by_name['alignment_period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_AGGREGATION.fields_by_name['per_series_aligner'].enum_type = _AGGREGATION_ALIGNER -_AGGREGATION.fields_by_name['cross_series_reducer'].enum_type = _AGGREGATION_REDUCER +_TYPEDVALUE.fields_by_name[ + "distribution_value" +].message_type = google_dot_api_dot_distribution__pb2._DISTRIBUTION +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["bool_value"] +) +_TYPEDVALUE.fields_by_name["bool_value"].containing_oneof = _TYPEDVALUE.oneofs_by_name[ + "value" +] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["int64_value"] +) +_TYPEDVALUE.fields_by_name["int64_value"].containing_oneof = _TYPEDVALUE.oneofs_by_name[ + "value" +] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["double_value"] +) +_TYPEDVALUE.fields_by_name[ + "double_value" +].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["string_value"] +) +_TYPEDVALUE.fields_by_name[ + "string_value" +].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["distribution_value"] +) +_TYPEDVALUE.fields_by_name[ + "distribution_value" +].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TIMEINTERVAL.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMEINTERVAL.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_AGGREGATION.fields_by_name[ + "alignment_period" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_AGGREGATION.fields_by_name["per_series_aligner"].enum_type = _AGGREGATION_ALIGNER +_AGGREGATION.fields_by_name["cross_series_reducer"].enum_type = _AGGREGATION_REDUCER _AGGREGATION_ALIGNER.containing_type = _AGGREGATION _AGGREGATION_REDUCER.containing_type = _AGGREGATION -DESCRIPTOR.message_types_by_name['TypedValue'] = _TYPEDVALUE -DESCRIPTOR.message_types_by_name['TimeInterval'] = _TIMEINTERVAL -DESCRIPTOR.message_types_by_name['Aggregation'] = _AGGREGATION -DESCRIPTOR.enum_types_by_name['ComparisonType'] = _COMPARISONTYPE -DESCRIPTOR.enum_types_by_name['ServiceTier'] = _SERVICETIER +DESCRIPTOR.message_types_by_name["TypedValue"] = _TYPEDVALUE +DESCRIPTOR.message_types_by_name["TimeInterval"] = _TIMEINTERVAL +DESCRIPTOR.message_types_by_name["Aggregation"] = _AGGREGATION +DESCRIPTOR.enum_types_by_name["ComparisonType"] = _COMPARISONTYPE +DESCRIPTOR.enum_types_by_name["ServiceTier"] = _SERVICETIER _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TypedValue = _reflection.GeneratedProtocolMessageType('TypedValue', (_message.Message,), dict( - DESCRIPTOR = _TYPEDVALUE, - __module__ = 'google.cloud.monitoring_v3.proto.common_pb2' - , - __doc__ = """A single strongly-typed value. +TypedValue = _reflection.GeneratedProtocolMessageType( + "TypedValue", + (_message.Message,), + dict( + DESCRIPTOR=_TYPEDVALUE, + __module__="google.cloud.monitoring_v3.proto.common_pb2", + __doc__="""A single strongly-typed value. Attributes: @@ -478,15 +584,18 @@ distribution_value: A distribution value. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.TypedValue) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.TypedValue) + ), +) _sym_db.RegisterMessage(TypedValue) -TimeInterval = _reflection.GeneratedProtocolMessageType('TimeInterval', (_message.Message,), dict( - DESCRIPTOR = _TIMEINTERVAL, - __module__ = 'google.cloud.monitoring_v3.proto.common_pb2' - , - __doc__ = """A time interval extending just after a start time through an end time. +TimeInterval = _reflection.GeneratedProtocolMessageType( + "TimeInterval", + (_message.Message,), + dict( + DESCRIPTOR=_TIMEINTERVAL, + __module__="google.cloud.monitoring_v3.proto.common_pb2", + __doc__="""A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time. @@ -499,15 +608,18 @@ value for the start time is the end time. The start time must not be later than the end time. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeInterval) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeInterval) + ), +) _sym_db.RegisterMessage(TimeInterval) -Aggregation = _reflection.GeneratedProtocolMessageType('Aggregation', (_message.Message,), dict( - DESCRIPTOR = _AGGREGATION, - __module__ = 'google.cloud.monitoring_v3.proto.common_pb2' - , - __doc__ = """Describes how to combine multiple time series to provide different views +Aggregation = _reflection.GeneratedProtocolMessageType( + "Aggregation", + (_message.Message,), + dict( + DESCRIPTOR=_AGGREGATION, + __module__="google.cloud.monitoring_v3.proto.common_pb2", + __doc__="""Describes how to combine multiple time series to provide different views of the data. Aggregation consists of an alignment step on individual time series (``alignment_period`` and ``per_series_aligner``) followed by an optional reduction step of the data across the aligned time series @@ -564,13 +676,21 @@ aggregated into a single output time series. If ``crossSeriesReducer`` is not defined, this field is ignored. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.Aggregation) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.Aggregation) + ), +) _sym_db.RegisterMessage(Aggregation) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\013CommonProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\013CommonProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _SERVICETIER.has_options = True -_SERVICETIER._options = _descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\030\001')) +_SERVICETIER._options = _descriptor._ParseOptions( + descriptor_pb2.EnumOptions(), _b("\030\001") +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py index b7aab12e4ab09..ce8cec6109f3c 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/dropped_labels.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,100 +19,131 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/dropped_labels.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/monitoring_v3/proto/dropped_labels.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\"|\n\rDroppedLabels\x12=\n\x05label\x18\x01 \x03(\x0b\x32..google.monitoring.v3.DroppedLabels.LabelEntry\x1a,\n\nLabelEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42@Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoringb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/dropped_labels.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n5google/cloud/monitoring_v3/proto/dropped_labels.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto"|\n\rDroppedLabels\x12=\n\x05label\x18\x01 \x03(\x0b\x32..google.monitoring.v3.DroppedLabels.LabelEntry\x1a,\n\nLabelEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42@Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoringb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _DROPPEDLABELS_LABELENTRY = _descriptor.Descriptor( - name='LabelEntry', - full_name='google.monitoring.v3.DroppedLabels.LabelEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.DroppedLabels.LabelEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.DroppedLabels.LabelEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=189, - serialized_end=233, + name="LabelEntry", + full_name="google.monitoring.v3.DroppedLabels.LabelEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.DroppedLabels.LabelEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.DroppedLabels.LabelEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=189, + serialized_end=233, ) _DROPPEDLABELS = _descriptor.Descriptor( - name='DroppedLabels', - full_name='google.monitoring.v3.DroppedLabels', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label', full_name='google.monitoring.v3.DroppedLabels.label', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_DROPPEDLABELS_LABELENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=109, - serialized_end=233, + name="DroppedLabels", + full_name="google.monitoring.v3.DroppedLabels", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label", + full_name="google.monitoring.v3.DroppedLabels.label", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_DROPPEDLABELS_LABELENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=109, + serialized_end=233, ) _DROPPEDLABELS_LABELENTRY.containing_type = _DROPPEDLABELS -_DROPPEDLABELS.fields_by_name['label'].message_type = _DROPPEDLABELS_LABELENTRY -DESCRIPTOR.message_types_by_name['DroppedLabels'] = _DROPPEDLABELS +_DROPPEDLABELS.fields_by_name["label"].message_type = _DROPPEDLABELS_LABELENTRY +DESCRIPTOR.message_types_by_name["DroppedLabels"] = _DROPPEDLABELS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -DroppedLabels = _reflection.GeneratedProtocolMessageType('DroppedLabels', (_message.Message,), dict( - - LabelEntry = _reflection.GeneratedProtocolMessageType('LabelEntry', (_message.Message,), dict( - DESCRIPTOR = _DROPPEDLABELS_LABELENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.dropped_labels_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels.LabelEntry) - )) - , - DESCRIPTOR = _DROPPEDLABELS, - __module__ = 'google.cloud.monitoring_v3.proto.dropped_labels_pb2' - , - __doc__ = """A set of (label, value) pairs which were dropped during aggregation, +DroppedLabels = _reflection.GeneratedProtocolMessageType( + "DroppedLabels", + (_message.Message,), + dict( + LabelEntry=_reflection.GeneratedProtocolMessageType( + "LabelEntry", + (_message.Message,), + dict( + DESCRIPTOR=_DROPPEDLABELS_LABELENTRY, + __module__="google.cloud.monitoring_v3.proto.dropped_labels_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels.LabelEntry) + ), + ), + DESCRIPTOR=_DROPPEDLABELS, + __module__="google.cloud.monitoring_v3.proto.dropped_labels_pb2", + __doc__="""A set of (label, value) pairs which were dropped during aggregation, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation. @@ -132,14 +165,20 @@ Map from label to its value, for all labels dropped in any aggregation. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) + ), +) _sym_db.RegisterMessage(DroppedLabels) _sym_db.RegisterMessage(DroppedLabels.LabelEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b("Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring"), +) _DROPPEDLABELS_LABELENTRY.has_options = True -_DROPPEDLABELS_LABELENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_DROPPEDLABELS_LABELENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py index ea312128072ab..51df80a5fddf1 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py @@ -2,95 +2,149 @@ # source: google/cloud/monitoring_v3/proto/group.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/group.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n,google/cloud/monitoring_v3/proto/group.proto\x12\x14google.monitoring.v3\"d\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0bparent_name\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\nis_cluster\x18\x06 \x01(\x08\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nGroupProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') + name="google/cloud/monitoring_v3/proto/group.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n,google/cloud/monitoring_v3/proto/group.proto\x12\x14google.monitoring.v3"d\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0bparent_name\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\nis_cluster\x18\x06 \x01(\x08\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nGroupProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), ) - - _GROUP = _descriptor.Descriptor( - name='Group', - full_name='google.monitoring.v3.Group', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.Group.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.Group.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_name', full_name='google.monitoring.v3.Group.parent_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.Group.filter', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_cluster', full_name='google.monitoring.v3.Group.is_cluster', index=4, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=70, - serialized_end=170, + name="Group", + full_name="google.monitoring.v3.Group", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.Group.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.Group.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent_name", + full_name="google.monitoring.v3.Group.parent_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.Group.filter", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_cluster", + full_name="google.monitoring.v3.Group.is_cluster", + index=4, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=70, + serialized_end=170, ) -DESCRIPTOR.message_types_by_name['Group'] = _GROUP +DESCRIPTOR.message_types_by_name["Group"] = _GROUP _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Group = _reflection.GeneratedProtocolMessageType('Group', (_message.Message,), dict( - DESCRIPTOR = _GROUP, - __module__ = 'google.cloud.monitoring_v3.proto.group_pb2' - , - __doc__ = """The description of a dynamic collection of monitored resources. Each +Group = _reflection.GeneratedProtocolMessageType( + "Group", + (_message.Message,), + dict( + DESCRIPTOR=_GROUP, + __module__="google.cloud.monitoring_v3.proto.group_pb2", + __doc__="""The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can @@ -142,11 +196,17 @@ cluster. The system can perform additional analysis on groups that are clusters. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.Group) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.Group) + ), +) _sym_db.RegisterMessage(Group) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\nGroupProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\nGroupProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py index 7b1b64eb95430..3a40629fe93bf 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py @@ -2,419 +2,690 @@ # source: google/cloud/monitoring_v3/proto/group_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 -from google.cloud.monitoring_v3.proto import group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) +from google.cloud.monitoring_v3.proto import ( + group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/group_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n4google/cloud/monitoring_v3/proto/group_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a,google/cloud/monitoring_v3/proto/group.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xad\x01\n\x11ListGroupsRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x1b\n\x11\x63hildren_of_group\x18\x02 \x01(\tH\x00\x12\x1c\n\x12\x61ncestors_of_group\x18\x03 \x01(\tH\x00\x12\x1e\n\x14\x64\x65scendants_of_group\x18\x04 \x01(\tH\x00\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\tB\x08\n\x06\x66ilter\"Y\n\x12ListGroupsResponse\x12*\n\x05group\x18\x01 \x03(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1f\n\x0fGetGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"e\n\x12\x43reateGroupRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"W\n\x12UpdateGroupRequest\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\"\n\x12\x44\x65leteGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"\x94\x01\n\x17ListGroupMembersRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x34\n\x08interval\x18\x06 \x01(\x0b\x32\".google.monitoring.v3.TimeInterval\"w\n\x18ListGroupMembersResponse\x12.\n\x07members\x18\x01 \x03(\x0b\x32\x1d.google.api.MonitoredResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\xbb\x06\n\x0cGroupService\x12\x85\x01\n\nListGroups\x12\'.google.monitoring.v3.ListGroupsRequest\x1a(.google.monitoring.v3.ListGroupsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v3/{name=projects/*}/groups\x12v\n\x08GetGroup\x12%.google.monitoring.v3.GetGroupRequest\x1a\x1b.google.monitoring.v3.Group\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v3/{name=projects/*/groups/*}\x12\x81\x01\n\x0b\x43reateGroup\x12(.google.monitoring.v3.CreateGroupRequest\x1a\x1b.google.monitoring.v3.Group\"+\x82\xd3\xe4\x93\x02%\"\x1c/v3/{name=projects/*}/groups:\x05group\x12\x89\x01\n\x0bUpdateGroup\x12(.google.monitoring.v3.UpdateGroupRequest\x1a\x1b.google.monitoring.v3.Group\"3\x82\xd3\xe4\x93\x02-\x1a$/v3/{group.name=projects/*/groups/*}:\x05group\x12w\n\x0b\x44\x65leteGroup\x12(.google.monitoring.v3.DeleteGroupRequest\x1a\x16.google.protobuf.Empty\"&\x82\xd3\xe4\x93\x02 *\x1e/v3/{name=projects/*/groups/*}\x12\xa1\x01\n\x10ListGroupMembers\x12-.google.monitoring.v3.ListGroupMembersRequest\x1a..google.monitoring.v3.ListGroupMembersResponse\".\x82\xd3\xe4\x93\x02(\x12&/v3/{name=projects/*/groups/*}/membersB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11GroupServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/group_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n4google/cloud/monitoring_v3/proto/group_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a,google/cloud/monitoring_v3/proto/group.proto\x1a\x1bgoogle/protobuf/empty.proto"\xad\x01\n\x11ListGroupsRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x1b\n\x11\x63hildren_of_group\x18\x02 \x01(\tH\x00\x12\x1c\n\x12\x61ncestors_of_group\x18\x03 \x01(\tH\x00\x12\x1e\n\x14\x64\x65scendants_of_group\x18\x04 \x01(\tH\x00\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\tB\x08\n\x06\x66ilter"Y\n\x12ListGroupsResponse\x12*\n\x05group\x18\x01 \x03(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x1f\n\x0fGetGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"e\n\x12\x43reateGroupRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08"W\n\x12UpdateGroupRequest\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08""\n\x12\x44\x65leteGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"\x94\x01\n\x17ListGroupMembersRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x34\n\x08interval\x18\x06 \x01(\x0b\x32".google.monitoring.v3.TimeInterval"w\n\x18ListGroupMembersResponse\x12.\n\x07members\x18\x01 \x03(\x0b\x32\x1d.google.api.MonitoredResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\xbb\x06\n\x0cGroupService\x12\x85\x01\n\nListGroups\x12\'.google.monitoring.v3.ListGroupsRequest\x1a(.google.monitoring.v3.ListGroupsResponse"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v3/{name=projects/*}/groups\x12v\n\x08GetGroup\x12%.google.monitoring.v3.GetGroupRequest\x1a\x1b.google.monitoring.v3.Group"&\x82\xd3\xe4\x93\x02 \x12\x1e/v3/{name=projects/*/groups/*}\x12\x81\x01\n\x0b\x43reateGroup\x12(.google.monitoring.v3.CreateGroupRequest\x1a\x1b.google.monitoring.v3.Group"+\x82\xd3\xe4\x93\x02%"\x1c/v3/{name=projects/*}/groups:\x05group\x12\x89\x01\n\x0bUpdateGroup\x12(.google.monitoring.v3.UpdateGroupRequest\x1a\x1b.google.monitoring.v3.Group"3\x82\xd3\xe4\x93\x02-\x1a$/v3/{group.name=projects/*/groups/*}:\x05group\x12w\n\x0b\x44\x65leteGroup\x12(.google.monitoring.v3.DeleteGroupRequest\x1a\x16.google.protobuf.Empty"&\x82\xd3\xe4\x93\x02 *\x1e/v3/{name=projects/*/groups/*}\x12\xa1\x01\n\x10ListGroupMembers\x12-.google.monitoring.v3.ListGroupMembersRequest\x1a..google.monitoring.v3.ListGroupMembersResponse".\x82\xd3\xe4\x93\x02(\x12&/v3/{name=projects/*/groups/*}/membersB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11GroupServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + ], +) _LISTGROUPSREQUEST = _descriptor.Descriptor( - name='ListGroupsRequest', - full_name='google.monitoring.v3.ListGroupsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListGroupsRequest.name', index=0, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='children_of_group', full_name='google.monitoring.v3.ListGroupsRequest.children_of_group', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ancestors_of_group', full_name='google.monitoring.v3.ListGroupsRequest.ancestors_of_group', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='descendants_of_group', full_name='google.monitoring.v3.ListGroupsRequest.descendants_of_group', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListGroupsRequest.page_size', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListGroupsRequest.page_token', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='filter', full_name='google.monitoring.v3.ListGroupsRequest.filter', - index=0, containing_type=None, fields=[]), - ], - serialized_start=268, - serialized_end=441, + name="ListGroupsRequest", + full_name="google.monitoring.v3.ListGroupsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListGroupsRequest.name", + index=0, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="children_of_group", + full_name="google.monitoring.v3.ListGroupsRequest.children_of_group", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ancestors_of_group", + full_name="google.monitoring.v3.ListGroupsRequest.ancestors_of_group", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="descendants_of_group", + full_name="google.monitoring.v3.ListGroupsRequest.descendants_of_group", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListGroupsRequest.page_size", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListGroupsRequest.page_token", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="filter", + full_name="google.monitoring.v3.ListGroupsRequest.filter", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=268, + serialized_end=441, ) _LISTGROUPSRESPONSE = _descriptor.Descriptor( - name='ListGroupsResponse', - full_name='google.monitoring.v3.ListGroupsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group', full_name='google.monitoring.v3.ListGroupsResponse.group', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListGroupsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=443, - serialized_end=532, + name="ListGroupsResponse", + full_name="google.monitoring.v3.ListGroupsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group", + full_name="google.monitoring.v3.ListGroupsResponse.group", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListGroupsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=443, + serialized_end=532, ) _GETGROUPREQUEST = _descriptor.Descriptor( - name='GetGroupRequest', - full_name='google.monitoring.v3.GetGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetGroupRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=534, - serialized_end=565, + name="GetGroupRequest", + full_name="google.monitoring.v3.GetGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetGroupRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=534, + serialized_end=565, ) _CREATEGROUPREQUEST = _descriptor.Descriptor( - name='CreateGroupRequest', - full_name='google.monitoring.v3.CreateGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateGroupRequest.name', index=0, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group', full_name='google.monitoring.v3.CreateGroupRequest.group', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.monitoring.v3.CreateGroupRequest.validate_only', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=567, - serialized_end=668, + name="CreateGroupRequest", + full_name="google.monitoring.v3.CreateGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateGroupRequest.name", + index=0, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="group", + full_name="google.monitoring.v3.CreateGroupRequest.group", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validate_only", + full_name="google.monitoring.v3.CreateGroupRequest.validate_only", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=567, + serialized_end=668, ) _UPDATEGROUPREQUEST = _descriptor.Descriptor( - name='UpdateGroupRequest', - full_name='google.monitoring.v3.UpdateGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group', full_name='google.monitoring.v3.UpdateGroupRequest.group', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.monitoring.v3.UpdateGroupRequest.validate_only', index=1, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=670, - serialized_end=757, + name="UpdateGroupRequest", + full_name="google.monitoring.v3.UpdateGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group", + full_name="google.monitoring.v3.UpdateGroupRequest.group", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validate_only", + full_name="google.monitoring.v3.UpdateGroupRequest.validate_only", + index=1, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=670, + serialized_end=757, ) _DELETEGROUPREQUEST = _descriptor.Descriptor( - name='DeleteGroupRequest', - full_name='google.monitoring.v3.DeleteGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteGroupRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=759, - serialized_end=793, + name="DeleteGroupRequest", + full_name="google.monitoring.v3.DeleteGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteGroupRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=759, + serialized_end=793, ) _LISTGROUPMEMBERSREQUEST = _descriptor.Descriptor( - name='ListGroupMembersRequest', - full_name='google.monitoring.v3.ListGroupMembersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListGroupMembersRequest.name', index=0, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListGroupMembersRequest.page_size', index=1, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListGroupMembersRequest.page_token', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListGroupMembersRequest.filter', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interval', full_name='google.monitoring.v3.ListGroupMembersRequest.interval', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=796, - serialized_end=944, + name="ListGroupMembersRequest", + full_name="google.monitoring.v3.ListGroupMembersRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListGroupMembersRequest.name", + index=0, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListGroupMembersRequest.page_size", + index=1, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListGroupMembersRequest.page_token", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListGroupMembersRequest.filter", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="interval", + full_name="google.monitoring.v3.ListGroupMembersRequest.interval", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=796, + serialized_end=944, ) _LISTGROUPMEMBERSRESPONSE = _descriptor.Descriptor( - name='ListGroupMembersResponse', - full_name='google.monitoring.v3.ListGroupMembersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='members', full_name='google.monitoring.v3.ListGroupMembersResponse.members', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListGroupMembersResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_size', full_name='google.monitoring.v3.ListGroupMembersResponse.total_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=946, - serialized_end=1065, + name="ListGroupMembersResponse", + full_name="google.monitoring.v3.ListGroupMembersResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="members", + full_name="google.monitoring.v3.ListGroupMembersResponse.members", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListGroupMembersResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_size", + full_name="google.monitoring.v3.ListGroupMembersResponse.total_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=946, + serialized_end=1065, ) -_LISTGROUPSREQUEST.oneofs_by_name['filter'].fields.append( - _LISTGROUPSREQUEST.fields_by_name['children_of_group']) -_LISTGROUPSREQUEST.fields_by_name['children_of_group'].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name['filter'] -_LISTGROUPSREQUEST.oneofs_by_name['filter'].fields.append( - _LISTGROUPSREQUEST.fields_by_name['ancestors_of_group']) -_LISTGROUPSREQUEST.fields_by_name['ancestors_of_group'].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name['filter'] -_LISTGROUPSREQUEST.oneofs_by_name['filter'].fields.append( - _LISTGROUPSREQUEST.fields_by_name['descendants_of_group']) -_LISTGROUPSREQUEST.fields_by_name['descendants_of_group'].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name['filter'] -_LISTGROUPSRESPONSE.fields_by_name['group'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP -_CREATEGROUPREQUEST.fields_by_name['group'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP -_UPDATEGROUPREQUEST.fields_by_name['group'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP -_LISTGROUPMEMBERSREQUEST.fields_by_name['interval'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL -_LISTGROUPMEMBERSRESPONSE.fields_by_name['members'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE -DESCRIPTOR.message_types_by_name['ListGroupsRequest'] = _LISTGROUPSREQUEST -DESCRIPTOR.message_types_by_name['ListGroupsResponse'] = _LISTGROUPSRESPONSE -DESCRIPTOR.message_types_by_name['GetGroupRequest'] = _GETGROUPREQUEST -DESCRIPTOR.message_types_by_name['CreateGroupRequest'] = _CREATEGROUPREQUEST -DESCRIPTOR.message_types_by_name['UpdateGroupRequest'] = _UPDATEGROUPREQUEST -DESCRIPTOR.message_types_by_name['DeleteGroupRequest'] = _DELETEGROUPREQUEST -DESCRIPTOR.message_types_by_name['ListGroupMembersRequest'] = _LISTGROUPMEMBERSREQUEST -DESCRIPTOR.message_types_by_name['ListGroupMembersResponse'] = _LISTGROUPMEMBERSRESPONSE +_LISTGROUPSREQUEST.oneofs_by_name["filter"].fields.append( + _LISTGROUPSREQUEST.fields_by_name["children_of_group"] +) +_LISTGROUPSREQUEST.fields_by_name[ + "children_of_group" +].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name["filter"] +_LISTGROUPSREQUEST.oneofs_by_name["filter"].fields.append( + _LISTGROUPSREQUEST.fields_by_name["ancestors_of_group"] +) +_LISTGROUPSREQUEST.fields_by_name[ + "ancestors_of_group" +].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name["filter"] +_LISTGROUPSREQUEST.oneofs_by_name["filter"].fields.append( + _LISTGROUPSREQUEST.fields_by_name["descendants_of_group"] +) +_LISTGROUPSREQUEST.fields_by_name[ + "descendants_of_group" +].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name["filter"] +_LISTGROUPSRESPONSE.fields_by_name[ + "group" +].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP +_CREATEGROUPREQUEST.fields_by_name[ + "group" +].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP +_UPDATEGROUPREQUEST.fields_by_name[ + "group" +].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP +_LISTGROUPMEMBERSREQUEST.fields_by_name[ + "interval" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL +) +_LISTGROUPMEMBERSRESPONSE.fields_by_name[ + "members" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE +DESCRIPTOR.message_types_by_name["ListGroupsRequest"] = _LISTGROUPSREQUEST +DESCRIPTOR.message_types_by_name["ListGroupsResponse"] = _LISTGROUPSRESPONSE +DESCRIPTOR.message_types_by_name["GetGroupRequest"] = _GETGROUPREQUEST +DESCRIPTOR.message_types_by_name["CreateGroupRequest"] = _CREATEGROUPREQUEST +DESCRIPTOR.message_types_by_name["UpdateGroupRequest"] = _UPDATEGROUPREQUEST +DESCRIPTOR.message_types_by_name["DeleteGroupRequest"] = _DELETEGROUPREQUEST +DESCRIPTOR.message_types_by_name["ListGroupMembersRequest"] = _LISTGROUPMEMBERSREQUEST +DESCRIPTOR.message_types_by_name["ListGroupMembersResponse"] = _LISTGROUPMEMBERSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListGroupsRequest = _reflection.GeneratedProtocolMessageType('ListGroupsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroup`` request. +ListGroupsRequest = _reflection.GeneratedProtocolMessageType( + "ListGroupsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPSREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroup`` request. Attributes: @@ -454,15 +725,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsRequest) + ), +) _sym_db.RegisterMessage(ListGroupsRequest) -ListGroupsResponse = _reflection.GeneratedProtocolMessageType('ListGroupsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroups`` response. +ListGroupsResponse = _reflection.GeneratedProtocolMessageType( + "ListGroupsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroups`` response. Attributes: @@ -474,15 +748,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsResponse) + ), +) _sym_db.RegisterMessage(ListGroupsResponse) -GetGroupRequest = _reflection.GeneratedProtocolMessageType('GetGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``GetGroup`` request. +GetGroupRequest = _reflection.GeneratedProtocolMessageType( + "GetGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``GetGroup`` request. Attributes: @@ -490,15 +767,18 @@ The group to retrieve. The format is ``"projects/{project_id_or_number}/groups/{group_id}"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetGroupRequest) + ), +) _sym_db.RegisterMessage(GetGroupRequest) -CreateGroupRequest = _reflection.GeneratedProtocolMessageType('CreateGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``CreateGroup`` request. +CreateGroupRequest = _reflection.GeneratedProtocolMessageType( + "CreateGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``CreateGroup`` request. Attributes: @@ -511,15 +791,18 @@ validate_only: If true, validate this request but do not create the group. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateGroupRequest) + ), +) _sym_db.RegisterMessage(CreateGroupRequest) -UpdateGroupRequest = _reflection.GeneratedProtocolMessageType('UpdateGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``UpdateGroup`` request. +UpdateGroupRequest = _reflection.GeneratedProtocolMessageType( + "UpdateGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``UpdateGroup`` request. Attributes: @@ -531,15 +814,18 @@ If true, validate this request but do not update the existing group. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateGroupRequest) + ), +) _sym_db.RegisterMessage(UpdateGroupRequest) -DeleteGroupRequest = _reflection.GeneratedProtocolMessageType('DeleteGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``DeleteGroup`` request. You can only delete a group if it has no +DeleteGroupRequest = _reflection.GeneratedProtocolMessageType( + "DeleteGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``DeleteGroup`` request. You can only delete a group if it has no children. @@ -548,15 +834,18 @@ The group to delete. The format is ``"projects/{project_id_or_number}/groups/{group_id}"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteGroupRequest) + ), +) _sym_db.RegisterMessage(DeleteGroupRequest) -ListGroupMembersRequest = _reflection.GeneratedProtocolMessageType('ListGroupMembersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPMEMBERSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroupMembers`` request. +ListGroupMembersRequest = _reflection.GeneratedProtocolMessageType( + "ListGroupMembersRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPMEMBERSREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroupMembers`` request. Attributes: @@ -586,15 +875,18 @@ interval is provided then the group membership over the last minute is returned. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersRequest) + ), +) _sym_db.RegisterMessage(ListGroupMembersRequest) -ListGroupMembersResponse = _reflection.GeneratedProtocolMessageType('ListGroupMembersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPMEMBERSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroupMembers`` response. +ListGroupMembersResponse = _reflection.GeneratedProtocolMessageType( + "ListGroupMembersResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPMEMBERSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroupMembers`` response. Attributes: @@ -608,80 +900,107 @@ total_size: The total number of elements matching this request. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersResponse) + ), +) _sym_db.RegisterMessage(ListGroupMembersResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\021GroupServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\021GroupServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _GROUPSERVICE = _descriptor.ServiceDescriptor( - name='GroupService', - full_name='google.monitoring.v3.GroupService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1068, - serialized_end=1895, - methods=[ - _descriptor.MethodDescriptor( - name='ListGroups', - full_name='google.monitoring.v3.GroupService.ListGroups', + name="GroupService", + full_name="google.monitoring.v3.GroupService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTGROUPSREQUEST, - output_type=_LISTGROUPSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\036\022\034/v3/{name=projects/*}/groups')), - ), - _descriptor.MethodDescriptor( - name='GetGroup', - full_name='google.monitoring.v3.GroupService.GetGroup', - index=1, - containing_service=None, - input_type=_GETGROUPREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateGroup', - full_name='google.monitoring.v3.GroupService.CreateGroup', - index=2, - containing_service=None, - input_type=_CREATEGROUPREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\"\034/v3/{name=projects/*}/groups:\005group')), - ), - _descriptor.MethodDescriptor( - name='UpdateGroup', - full_name='google.monitoring.v3.GroupService.UpdateGroup', - index=3, - containing_service=None, - input_type=_UPDATEGROUPREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002-\032$/v3/{group.name=projects/*/groups/*}:\005group')), - ), - _descriptor.MethodDescriptor( - name='DeleteGroup', - full_name='google.monitoring.v3.GroupService.DeleteGroup', - index=4, - containing_service=None, - input_type=_DELETEGROUPREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002 *\036/v3/{name=projects/*/groups/*}')), - ), - _descriptor.MethodDescriptor( - name='ListGroupMembers', - full_name='google.monitoring.v3.GroupService.ListGroupMembers', - index=5, - containing_service=None, - input_type=_LISTGROUPMEMBERSREQUEST, - output_type=_LISTGROUPMEMBERSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\022&/v3/{name=projects/*/groups/*}/members')), - ), -]) + options=None, + serialized_start=1068, + serialized_end=1895, + methods=[ + _descriptor.MethodDescriptor( + name="ListGroups", + full_name="google.monitoring.v3.GroupService.ListGroups", + index=0, + containing_service=None, + input_type=_LISTGROUPSREQUEST, + output_type=_LISTGROUPSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\036\022\034/v3/{name=projects/*}/groups"), + ), + ), + _descriptor.MethodDescriptor( + name="GetGroup", + full_name="google.monitoring.v3.GroupService.GetGroup", + index=1, + containing_service=None, + input_type=_GETGROUPREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateGroup", + full_name="google.monitoring.v3.GroupService.CreateGroup", + index=2, + containing_service=None, + input_type=_CREATEGROUPREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002%"\034/v3/{name=projects/*}/groups:\005group'), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateGroup", + full_name="google.monitoring.v3.GroupService.UpdateGroup", + index=3, + containing_service=None, + input_type=_UPDATEGROUPREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002-\032$/v3/{group.name=projects/*/groups/*}:\005group" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteGroup", + full_name="google.monitoring.v3.GroupService.DeleteGroup", + index=4, + containing_service=None, + input_type=_DELETEGROUPREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002 *\036/v3/{name=projects/*/groups/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListGroupMembers", + full_name="google.monitoring.v3.GroupService.ListGroupMembers", + index=5, + containing_service=None, + input_type=_LISTGROUPMEMBERSREQUEST, + output_type=_LISTGROUPMEMBERSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002(\022&/v3/{name=projects/*/groups/*}/members"), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_GROUPSERVICE) -DESCRIPTOR.services_by_name['GroupService'] = _GROUPSERVICE +DESCRIPTOR.services_by_name["GroupService"] = _GROUPSERVICE # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py index b1c6ab7d84aa7..d681b6c186427 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2 -from google.cloud.monitoring_v3.proto import group_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2 +from google.cloud.monitoring_v3.proto import ( + group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2, +) +from google.cloud.monitoring_v3.proto import ( + group_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class GroupServiceStub(object): - """The Group API lets you inspect and manage your + """The Group API lets you inspect and manage your [groups](#google.monitoring.v3.Group). A group is a named filter that is used to identify @@ -21,46 +25,46 @@ class GroupServiceStub(object): from the infrastructure. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListGroups = channel.unary_unary( - '/google.monitoring.v3.GroupService/ListGroups', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.FromString, + self.ListGroups = channel.unary_unary( + "/google.monitoring.v3.GroupService/ListGroups", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.FromString, ) - self.GetGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/GetGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, + self.GetGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/GetGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, ) - self.CreateGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/CreateGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, + self.CreateGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/CreateGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, ) - self.UpdateGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/UpdateGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, + self.UpdateGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/UpdateGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, ) - self.DeleteGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/DeleteGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/DeleteGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListGroupMembers = channel.unary_unary( - '/google.monitoring.v3.GroupService/ListGroupMembers', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.FromString, + self.ListGroupMembers = channel.unary_unary( + "/google.monitoring.v3.GroupService/ListGroupMembers", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.FromString, ) class GroupServiceServicer(object): - """The Group API lets you inspect and manage your + """The Group API lets you inspect and manage your [groups](#google.monitoring.v3.Group). A group is a named filter that is used to identify @@ -74,83 +78,84 @@ class GroupServiceServicer(object): from the infrastructure. """ - def ListGroups(self, request, context): - """Lists the existing groups. + def ListGroups(self, request, context): + """Lists the existing groups. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetGroup(self, request, context): - """Gets a single group. + def GetGroup(self, request, context): + """Gets a single group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateGroup(self, request, context): - """Creates a new group. + def CreateGroup(self, request, context): + """Creates a new group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateGroup(self, request, context): - """Updates an existing group. + def UpdateGroup(self, request, context): + """Updates an existing group. You can change any group attributes except `name`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteGroup(self, request, context): - """Deletes an existing group. + def DeleteGroup(self, request, context): + """Deletes an existing group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListGroupMembers(self, request, context): - """Lists the monitored resources that are members of a group. + def ListGroupMembers(self, request, context): + """Lists the monitored resources that are members of a group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_GroupServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListGroups': grpc.unary_unary_rpc_method_handler( - servicer.ListGroups, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.SerializeToString, - ), - 'GetGroup': grpc.unary_unary_rpc_method_handler( - servicer.GetGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, - ), - 'CreateGroup': grpc.unary_unary_rpc_method_handler( - servicer.CreateGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, - ), - 'UpdateGroup': grpc.unary_unary_rpc_method_handler( - servicer.UpdateGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, - ), - 'DeleteGroup': grpc.unary_unary_rpc_method_handler( - servicer.DeleteGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListGroupMembers': grpc.unary_unary_rpc_method_handler( - servicer.ListGroupMembers, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.GroupService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListGroups": grpc.unary_unary_rpc_method_handler( + servicer.ListGroups, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.SerializeToString, + ), + "GetGroup": grpc.unary_unary_rpc_method_handler( + servicer.GetGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, + ), + "CreateGroup": grpc.unary_unary_rpc_method_handler( + servicer.CreateGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, + ), + "UpdateGroup": grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, + ), + "DeleteGroup": grpc.unary_unary_rpc_method_handler( + servicer.DeleteGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListGroupMembers": grpc.unary_unary_rpc_method_handler( + servicer.ListGroupMembers, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.GroupService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py index f33c8a7fef8ba..13140c9fc49cd 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/metric.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,141 +18,253 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import label_pb2 as google_dot_api_dot_label__pb2 from google.api import metric_pb2 as google_dot_api_dot_metric__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/metric.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/monitoring_v3/proto/metric.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\"n\n\x05Point\x12\x34\n\x08interval\x18\x01 \x01(\x0b\x32\".google.monitoring.v3.TimeInterval\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .google.monitoring.v3.TypedValue\"\xc1\x02\n\nTimeSeries\x12\"\n\x06metric\x18\x01 \x01(\x0b\x32\x12.google.api.Metric\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.google.api.MonitoredResource\x12\x37\n\x08metadata\x18\x07 \x01(\x0b\x32%.google.api.MonitoredResourceMetadata\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind\x12:\n\nvalue_type\x18\x04 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12+\n\x06points\x18\x05 \x03(\x0b\x32\x1b.google.monitoring.v3.PointB\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bMetricProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_label__pb2.DESCRIPTOR,google_dot_api_dot_metric__pb2.DESCRIPTOR,google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/metric.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/monitoring_v3/proto/metric.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto"n\n\x05Point\x12\x34\n\x08interval\x18\x01 \x01(\x0b\x32".google.monitoring.v3.TimeInterval\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .google.monitoring.v3.TypedValue"\xc1\x02\n\nTimeSeries\x12"\n\x06metric\x18\x01 \x01(\x0b\x32\x12.google.api.Metric\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.google.api.MonitoredResource\x12\x37\n\x08metadata\x18\x07 \x01(\x0b\x32%.google.api.MonitoredResourceMetadata\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind\x12:\n\nvalue_type\x18\x04 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12+\n\x06points\x18\x05 \x03(\x0b\x32\x1b.google.monitoring.v3.PointB\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bMetricProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_label__pb2.DESCRIPTOR, + google_dot_api_dot_metric__pb2.DESCRIPTOR, + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + ], +) _POINT = _descriptor.Descriptor( - name='Point', - full_name='google.monitoring.v3.Point', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='interval', full_name='google.monitoring.v3.Point.interval', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.Point.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=234, - serialized_end=344, + name="Point", + full_name="google.monitoring.v3.Point", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="interval", + full_name="google.monitoring.v3.Point.interval", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.Point.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=234, + serialized_end=344, ) _TIMESERIES = _descriptor.Descriptor( - name='TimeSeries', - full_name='google.monitoring.v3.TimeSeries', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metric', full_name='google.monitoring.v3.TimeSeries.metric', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource', full_name='google.monitoring.v3.TimeSeries.resource', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.monitoring.v3.TimeSeries.metadata', index=2, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric_kind', full_name='google.monitoring.v3.TimeSeries.metric_kind', index=3, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_type', full_name='google.monitoring.v3.TimeSeries.value_type', index=4, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='points', full_name='google.monitoring.v3.TimeSeries.points', index=5, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=347, - serialized_end=668, + name="TimeSeries", + full_name="google.monitoring.v3.TimeSeries", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="metric", + full_name="google.monitoring.v3.TimeSeries.metric", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource", + full_name="google.monitoring.v3.TimeSeries.resource", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.monitoring.v3.TimeSeries.metadata", + index=2, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metric_kind", + full_name="google.monitoring.v3.TimeSeries.metric_kind", + index=3, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value_type", + full_name="google.monitoring.v3.TimeSeries.value_type", + index=4, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="points", + full_name="google.monitoring.v3.TimeSeries.points", + index=5, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=347, + serialized_end=668, ) -_POINT.fields_by_name['interval'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL -_POINT.fields_by_name['value'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TYPEDVALUE -_TIMESERIES.fields_by_name['metric'].message_type = google_dot_api_dot_metric__pb2._METRIC -_TIMESERIES.fields_by_name['resource'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE -_TIMESERIES.fields_by_name['metadata'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEMETADATA -_TIMESERIES.fields_by_name['metric_kind'].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_METRICKIND -_TIMESERIES.fields_by_name['value_type'].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_VALUETYPE -_TIMESERIES.fields_by_name['points'].message_type = _POINT -DESCRIPTOR.message_types_by_name['Point'] = _POINT -DESCRIPTOR.message_types_by_name['TimeSeries'] = _TIMESERIES +_POINT.fields_by_name[ + "interval" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL +) +_POINT.fields_by_name[ + "value" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TYPEDVALUE +) +_TIMESERIES.fields_by_name[ + "metric" +].message_type = google_dot_api_dot_metric__pb2._METRIC +_TIMESERIES.fields_by_name[ + "resource" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE +_TIMESERIES.fields_by_name[ + "metadata" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEMETADATA +_TIMESERIES.fields_by_name[ + "metric_kind" +].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_METRICKIND +_TIMESERIES.fields_by_name[ + "value_type" +].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_VALUETYPE +_TIMESERIES.fields_by_name["points"].message_type = _POINT +DESCRIPTOR.message_types_by_name["Point"] = _POINT +DESCRIPTOR.message_types_by_name["TimeSeries"] = _TIMESERIES _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Point = _reflection.GeneratedProtocolMessageType('Point', (_message.Message,), dict( - DESCRIPTOR = _POINT, - __module__ = 'google.cloud.monitoring_v3.proto.metric_pb2' - , - __doc__ = """A single data point in a time series. +Point = _reflection.GeneratedProtocolMessageType( + "Point", + (_message.Message,), + dict( + DESCRIPTOR=_POINT, + __module__="google.cloud.monitoring_v3.proto.metric_pb2", + __doc__="""A single data point in a time series. Attributes: @@ -168,15 +282,18 @@ value: The value of the data point. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.Point) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.Point) + ), +) _sym_db.RegisterMessage(Point) -TimeSeries = _reflection.GeneratedProtocolMessageType('TimeSeries', (_message.Message,), dict( - DESCRIPTOR = _TIMESERIES, - __module__ = 'google.cloud.monitoring_v3.proto.metric_pb2' - , - __doc__ = """A collection of data points that describes the time-varying values of a +TimeSeries = _reflection.GeneratedProtocolMessageType( + "TimeSeries", + (_message.Message,), + dict( + DESCRIPTOR=_TIMESERIES, + __module__="google.cloud.monitoring_v3.proto.metric_pb2", + __doc__="""A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series. @@ -221,11 +338,17 @@ determined by the point's type, which must be ``BOOL``, ``INT64``, ``DOUBLE``, or ``DISTRIBUTION``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeries) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeries) + ), +) _sym_db.RegisterMessage(TimeSeries) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\013MetricProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\013MetricProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py index 53d43d5d8425e..39d0d2d2db699 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/metric_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,590 +17,971 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import metric_pb2 as google_dot_api_dot_metric__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 -from google.cloud.monitoring_v3.proto import metric_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) +from google.cloud.monitoring_v3.proto import ( + metric_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/metric_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/monitoring_v3/proto/metric_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a-google/cloud/monitoring_v3/proto/metric.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"n\n\'ListMonitoredResourceDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x8a\x01\n(ListMonitoredResourceDescriptorsResponse\x12\x45\n\x14resource_descriptors\x18\x01 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"5\n%GetMonitoredResourceDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"c\n\x1cListMetricDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"r\n\x1dListMetricDescriptorsResponse\x12\x38\n\x12metric_descriptors\x18\x01 \x03(\x0b\x32\x1c.google.api.MetricDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"*\n\x1aGetMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"f\n\x1d\x43reateMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x11metric_descriptor\x18\x02 \x01(\x0b\x32\x1c.google.api.MetricDescriptor\"-\n\x1d\x44\x65leteMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"\xcf\x02\n\x15ListTimeSeriesRequest\x12\x0c\n\x04name\x18\n \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x34\n\x08interval\x18\x04 \x01(\x0b\x32\".google.monitoring.v3.TimeInterval\x12\x36\n\x0b\x61ggregation\x18\x05 \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12H\n\x04view\x18\x07 \x01(\x0e\x32:.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x12\n\npage_token\x18\t \x01(\t\"\'\n\x0eTimeSeriesView\x12\x08\n\x04\x46ULL\x10\x00\x12\x0b\n\x07HEADERS\x10\x01\"\x96\x01\n\x16ListTimeSeriesResponse\x12\x35\n\x0btime_series\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x10\x65xecution_errors\x18\x03 \x03(\x0b\x32\x12.google.rpc.Status\"^\n\x17\x43reateTimeSeriesRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x35\n\x0btime_series\x18\x02 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\"r\n\x15\x43reateTimeSeriesError\x12\x35\n\x0btime_series\x18\x01 \x01(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xf5\n\n\rMetricService\x12\xdd\x01\n ListMonitoredResourceDescriptors\x12=.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest\x1a>.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*}/monitoredResourceDescriptors\x12\xc4\x01\n\x1eGetMonitoredResourceDescriptor\x12;.google.monitoring.v3.GetMonitoredResourceDescriptorRequest\x1a\'.google.api.MonitoredResourceDescriptor\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/monitoredResourceDescriptors/*}\x12\xb1\x01\n\x15ListMetricDescriptors\x12\x32.google.monitoring.v3.ListMetricDescriptorsRequest\x1a\x33.google.monitoring.v3.ListMetricDescriptorsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/v3/{name=projects/*}/metricDescriptors\x12\x99\x01\n\x13GetMetricDescriptor\x12\x30.google.monitoring.v3.GetMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/metricDescriptors/**}\x12\xaf\x01\n\x16\x43reateMetricDescriptor\x12\x33.google.monitoring.v3.CreateMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor\"B\x82\xd3\xe4\x93\x02<\"\'/v3/{name=projects/*}/metricDescriptors:\x11metric_descriptor\x12\x99\x01\n\x16\x44\x65leteMetricDescriptor\x12\x33.google.monitoring.v3.DeleteMetricDescriptorRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/metricDescriptors/**}\x12\x95\x01\n\x0eListTimeSeries\x12+.google.monitoring.v3.ListTimeSeriesRequest\x1a,.google.monitoring.v3.ListTimeSeriesResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /v3/{name=projects/*}/timeSeries\x12\x86\x01\n\x10\x43reateTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%\" /v3/{name=projects/*}/timeSeries:\x01*B\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12MetricServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_metric__pb2.DESCRIPTOR,google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/monitoring_v3/proto/metric_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n5google/cloud/monitoring_v3/proto/metric_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a-google/cloud/monitoring_v3/proto/metric.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto"n\n\'ListMonitoredResourceDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x8a\x01\n(ListMonitoredResourceDescriptorsResponse\x12\x45\n\x14resource_descriptors\x18\x01 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"5\n%GetMonitoredResourceDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"c\n\x1cListMetricDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"r\n\x1dListMetricDescriptorsResponse\x12\x38\n\x12metric_descriptors\x18\x01 \x03(\x0b\x32\x1c.google.api.MetricDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"*\n\x1aGetMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"f\n\x1d\x43reateMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x11metric_descriptor\x18\x02 \x01(\x0b\x32\x1c.google.api.MetricDescriptor"-\n\x1d\x44\x65leteMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"\xcf\x02\n\x15ListTimeSeriesRequest\x12\x0c\n\x04name\x18\n \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x34\n\x08interval\x18\x04 \x01(\x0b\x32".google.monitoring.v3.TimeInterval\x12\x36\n\x0b\x61ggregation\x18\x05 \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12H\n\x04view\x18\x07 \x01(\x0e\x32:.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x12\n\npage_token\x18\t \x01(\t"\'\n\x0eTimeSeriesView\x12\x08\n\x04\x46ULL\x10\x00\x12\x0b\n\x07HEADERS\x10\x01"\x96\x01\n\x16ListTimeSeriesResponse\x12\x35\n\x0btime_series\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x10\x65xecution_errors\x18\x03 \x03(\x0b\x32\x12.google.rpc.Status"^\n\x17\x43reateTimeSeriesRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x35\n\x0btime_series\x18\x02 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries"r\n\x15\x43reateTimeSeriesError\x12\x35\n\x0btime_series\x18\x01 \x01(\x0b\x32 .google.monitoring.v3.TimeSeries\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xf5\n\n\rMetricService\x12\xdd\x01\n ListMonitoredResourceDescriptors\x12=.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest\x1a>.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse":\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*}/monitoredResourceDescriptors\x12\xc4\x01\n\x1eGetMonitoredResourceDescriptor\x12;.google.monitoring.v3.GetMonitoredResourceDescriptorRequest\x1a\'.google.api.MonitoredResourceDescriptor"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/monitoredResourceDescriptors/*}\x12\xb1\x01\n\x15ListMetricDescriptors\x12\x32.google.monitoring.v3.ListMetricDescriptorsRequest\x1a\x33.google.monitoring.v3.ListMetricDescriptorsResponse"/\x82\xd3\xe4\x93\x02)\x12\'/v3/{name=projects/*}/metricDescriptors\x12\x99\x01\n\x13GetMetricDescriptor\x12\x30.google.monitoring.v3.GetMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/metricDescriptors/**}\x12\xaf\x01\n\x16\x43reateMetricDescriptor\x12\x33.google.monitoring.v3.CreateMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"B\x82\xd3\xe4\x93\x02<"\'/v3/{name=projects/*}/metricDescriptors:\x11metric_descriptor\x12\x99\x01\n\x16\x44\x65leteMetricDescriptor\x12\x33.google.monitoring.v3.DeleteMetricDescriptorRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/metricDescriptors/**}\x12\x95\x01\n\x0eListTimeSeries\x12+.google.monitoring.v3.ListTimeSeriesRequest\x1a,.google.monitoring.v3.ListTimeSeriesResponse"(\x82\xd3\xe4\x93\x02"\x12 /v3/{name=projects/*}/timeSeries\x12\x86\x01\n\x10\x43reateTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty"+\x82\xd3\xe4\x93\x02%" /v3/{name=projects/*}/timeSeries:\x01*B\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12MetricServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_metric__pb2.DESCRIPTOR, + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _LISTTIMESERIESREQUEST_TIMESERIESVIEW = _descriptor.EnumDescriptor( - name='TimeSeriesView', - full_name='google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FULL', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEADERS', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1368, - serialized_end=1407, + name="TimeSeriesView", + full_name="google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FULL", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEADERS", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1368, + serialized_end=1407, ) _sym_db.RegisterEnumDescriptor(_LISTTIMESERIESREQUEST_TIMESERIESVIEW) _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST = _descriptor.Descriptor( - name='ListMonitoredResourceDescriptorsRequest', - full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.name', index=0, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=351, - serialized_end=461, + name="ListMonitoredResourceDescriptorsRequest", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.name", + index=0, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=351, + serialized_end=461, ) _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE = _descriptor.Descriptor( - name='ListMonitoredResourceDescriptorsResponse', - full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_descriptors', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.resource_descriptors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=464, - serialized_end=602, + name="ListMonitoredResourceDescriptorsResponse", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="resource_descriptors", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.resource_descriptors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=464, + serialized_end=602, ) _GETMONITOREDRESOURCEDESCRIPTORREQUEST = _descriptor.Descriptor( - name='GetMonitoredResourceDescriptorRequest', - full_name='google.monitoring.v3.GetMonitoredResourceDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetMonitoredResourceDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=604, - serialized_end=657, + name="GetMonitoredResourceDescriptorRequest", + full_name="google.monitoring.v3.GetMonitoredResourceDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetMonitoredResourceDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=604, + serialized_end=657, ) _LISTMETRICDESCRIPTORSREQUEST = _descriptor.Descriptor( - name='ListMetricDescriptorsRequest', - full_name='google.monitoring.v3.ListMetricDescriptorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.name', index=0, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=659, - serialized_end=758, + name="ListMetricDescriptorsRequest", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.name", + index=0, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=659, + serialized_end=758, ) _LISTMETRICDESCRIPTORSRESPONSE = _descriptor.Descriptor( - name='ListMetricDescriptorsResponse', - full_name='google.monitoring.v3.ListMetricDescriptorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metric_descriptors', full_name='google.monitoring.v3.ListMetricDescriptorsResponse.metric_descriptors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListMetricDescriptorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=760, - serialized_end=874, + name="ListMetricDescriptorsResponse", + full_name="google.monitoring.v3.ListMetricDescriptorsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="metric_descriptors", + full_name="google.monitoring.v3.ListMetricDescriptorsResponse.metric_descriptors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListMetricDescriptorsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=760, + serialized_end=874, ) _GETMETRICDESCRIPTORREQUEST = _descriptor.Descriptor( - name='GetMetricDescriptorRequest', - full_name='google.monitoring.v3.GetMetricDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetMetricDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=876, - serialized_end=918, + name="GetMetricDescriptorRequest", + full_name="google.monitoring.v3.GetMetricDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetMetricDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=876, + serialized_end=918, ) _CREATEMETRICDESCRIPTORREQUEST = _descriptor.Descriptor( - name='CreateMetricDescriptorRequest', - full_name='google.monitoring.v3.CreateMetricDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateMetricDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric_descriptor', full_name='google.monitoring.v3.CreateMetricDescriptorRequest.metric_descriptor', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=920, - serialized_end=1022, + name="CreateMetricDescriptorRequest", + full_name="google.monitoring.v3.CreateMetricDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateMetricDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metric_descriptor", + full_name="google.monitoring.v3.CreateMetricDescriptorRequest.metric_descriptor", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=920, + serialized_end=1022, ) _DELETEMETRICDESCRIPTORREQUEST = _descriptor.Descriptor( - name='DeleteMetricDescriptorRequest', - full_name='google.monitoring.v3.DeleteMetricDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteMetricDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1024, - serialized_end=1069, + name="DeleteMetricDescriptorRequest", + full_name="google.monitoring.v3.DeleteMetricDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteMetricDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1024, + serialized_end=1069, ) _LISTTIMESERIESREQUEST = _descriptor.Descriptor( - name='ListTimeSeriesRequest', - full_name='google.monitoring.v3.ListTimeSeriesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListTimeSeriesRequest.name', index=0, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListTimeSeriesRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interval', full_name='google.monitoring.v3.ListTimeSeriesRequest.interval', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aggregation', full_name='google.monitoring.v3.ListTimeSeriesRequest.aggregation', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.monitoring.v3.ListTimeSeriesRequest.order_by', index=4, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.monitoring.v3.ListTimeSeriesRequest.view', index=5, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListTimeSeriesRequest.page_size', index=6, - number=8, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListTimeSeriesRequest.page_token', index=7, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTTIMESERIESREQUEST_TIMESERIESVIEW, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1072, - serialized_end=1407, + name="ListTimeSeriesRequest", + full_name="google.monitoring.v3.ListTimeSeriesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListTimeSeriesRequest.name", + index=0, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListTimeSeriesRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="interval", + full_name="google.monitoring.v3.ListTimeSeriesRequest.interval", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aggregation", + full_name="google.monitoring.v3.ListTimeSeriesRequest.aggregation", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.monitoring.v3.ListTimeSeriesRequest.order_by", + index=4, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.monitoring.v3.ListTimeSeriesRequest.view", + index=5, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListTimeSeriesRequest.page_size", + index=6, + number=8, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListTimeSeriesRequest.page_token", + index=7, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_LISTTIMESERIESREQUEST_TIMESERIESVIEW], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1072, + serialized_end=1407, ) _LISTTIMESERIESRESPONSE = _descriptor.Descriptor( - name='ListTimeSeriesResponse', - full_name='google.monitoring.v3.ListTimeSeriesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_series', full_name='google.monitoring.v3.ListTimeSeriesResponse.time_series', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListTimeSeriesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='execution_errors', full_name='google.monitoring.v3.ListTimeSeriesResponse.execution_errors', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1410, - serialized_end=1560, + name="ListTimeSeriesResponse", + full_name="google.monitoring.v3.ListTimeSeriesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_series", + full_name="google.monitoring.v3.ListTimeSeriesResponse.time_series", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListTimeSeriesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="execution_errors", + full_name="google.monitoring.v3.ListTimeSeriesResponse.execution_errors", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1410, + serialized_end=1560, ) _CREATETIMESERIESREQUEST = _descriptor.Descriptor( - name='CreateTimeSeriesRequest', - full_name='google.monitoring.v3.CreateTimeSeriesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateTimeSeriesRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_series', full_name='google.monitoring.v3.CreateTimeSeriesRequest.time_series', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1562, - serialized_end=1656, + name="CreateTimeSeriesRequest", + full_name="google.monitoring.v3.CreateTimeSeriesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateTimeSeriesRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_series", + full_name="google.monitoring.v3.CreateTimeSeriesRequest.time_series", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1562, + serialized_end=1656, ) _CREATETIMESERIESERROR = _descriptor.Descriptor( - name='CreateTimeSeriesError', - full_name='google.monitoring.v3.CreateTimeSeriesError', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_series', full_name='google.monitoring.v3.CreateTimeSeriesError.time_series', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.monitoring.v3.CreateTimeSeriesError.status', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1658, - serialized_end=1772, -) - -_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE.fields_by_name['resource_descriptors'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR -_LISTMETRICDESCRIPTORSRESPONSE.fields_by_name['metric_descriptors'].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR -_CREATEMETRICDESCRIPTORREQUEST.fields_by_name['metric_descriptor'].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR -_LISTTIMESERIESREQUEST.fields_by_name['interval'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL -_LISTTIMESERIESREQUEST.fields_by_name['aggregation'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_LISTTIMESERIESREQUEST.fields_by_name['view'].enum_type = _LISTTIMESERIESREQUEST_TIMESERIESVIEW + name="CreateTimeSeriesError", + full_name="google.monitoring.v3.CreateTimeSeriesError", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_series", + full_name="google.monitoring.v3.CreateTimeSeriesError.time_series", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.monitoring.v3.CreateTimeSeriesError.status", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1658, + serialized_end=1772, +) + +_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE.fields_by_name[ + "resource_descriptors" +].message_type = ( + google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR +) +_LISTMETRICDESCRIPTORSRESPONSE.fields_by_name[ + "metric_descriptors" +].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR +_CREATEMETRICDESCRIPTORREQUEST.fields_by_name[ + "metric_descriptor" +].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR +_LISTTIMESERIESREQUEST.fields_by_name[ + "interval" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL +) +_LISTTIMESERIESREQUEST.fields_by_name[ + "aggregation" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_LISTTIMESERIESREQUEST.fields_by_name[ + "view" +].enum_type = _LISTTIMESERIESREQUEST_TIMESERIESVIEW _LISTTIMESERIESREQUEST_TIMESERIESVIEW.containing_type = _LISTTIMESERIESREQUEST -_LISTTIMESERIESRESPONSE.fields_by_name['time_series'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES -_LISTTIMESERIESRESPONSE.fields_by_name['execution_errors'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_CREATETIMESERIESREQUEST.fields_by_name['time_series'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES -_CREATETIMESERIESERROR.fields_by_name['time_series'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES -_CREATETIMESERIESERROR.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['ListMonitoredResourceDescriptorsRequest'] = _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST -DESCRIPTOR.message_types_by_name['ListMonitoredResourceDescriptorsResponse'] = _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE -DESCRIPTOR.message_types_by_name['GetMonitoredResourceDescriptorRequest'] = _GETMONITOREDRESOURCEDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['ListMetricDescriptorsRequest'] = _LISTMETRICDESCRIPTORSREQUEST -DESCRIPTOR.message_types_by_name['ListMetricDescriptorsResponse'] = _LISTMETRICDESCRIPTORSRESPONSE -DESCRIPTOR.message_types_by_name['GetMetricDescriptorRequest'] = _GETMETRICDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['CreateMetricDescriptorRequest'] = _CREATEMETRICDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['DeleteMetricDescriptorRequest'] = _DELETEMETRICDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['ListTimeSeriesRequest'] = _LISTTIMESERIESREQUEST -DESCRIPTOR.message_types_by_name['ListTimeSeriesResponse'] = _LISTTIMESERIESRESPONSE -DESCRIPTOR.message_types_by_name['CreateTimeSeriesRequest'] = _CREATETIMESERIESREQUEST -DESCRIPTOR.message_types_by_name['CreateTimeSeriesError'] = _CREATETIMESERIESERROR +_LISTTIMESERIESRESPONSE.fields_by_name[ + "time_series" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES +) +_LISTTIMESERIESRESPONSE.fields_by_name[ + "execution_errors" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_CREATETIMESERIESREQUEST.fields_by_name[ + "time_series" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES +) +_CREATETIMESERIESERROR.fields_by_name[ + "time_series" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES +) +_CREATETIMESERIESERROR.fields_by_name[ + "status" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name[ + "ListMonitoredResourceDescriptorsRequest" +] = _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListMonitoredResourceDescriptorsResponse" +] = _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetMonitoredResourceDescriptorRequest" +] = _GETMONITOREDRESOURCEDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "ListMetricDescriptorsRequest" +] = _LISTMETRICDESCRIPTORSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListMetricDescriptorsResponse" +] = _LISTMETRICDESCRIPTORSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetMetricDescriptorRequest" +] = _GETMETRICDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateMetricDescriptorRequest" +] = _CREATEMETRICDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteMetricDescriptorRequest" +] = _DELETEMETRICDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name["ListTimeSeriesRequest"] = _LISTTIMESERIESREQUEST +DESCRIPTOR.message_types_by_name["ListTimeSeriesResponse"] = _LISTTIMESERIESRESPONSE +DESCRIPTOR.message_types_by_name["CreateTimeSeriesRequest"] = _CREATETIMESERIESREQUEST +DESCRIPTOR.message_types_by_name["CreateTimeSeriesError"] = _CREATETIMESERIESERROR _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListMonitoredResourceDescriptorsRequest = _reflection.GeneratedProtocolMessageType('ListMonitoredResourceDescriptorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMonitoredResourceDescriptors`` request. +ListMonitoredResourceDescriptorsRequest = _reflection.GeneratedProtocolMessageType( + "ListMonitoredResourceDescriptorsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMonitoredResourceDescriptors`` request. Attributes: @@ -623,15 +1006,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) + ), +) _sym_db.RegisterMessage(ListMonitoredResourceDescriptorsRequest) -ListMonitoredResourceDescriptorsResponse = _reflection.GeneratedProtocolMessageType('ListMonitoredResourceDescriptorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMonitoredResourceDescriptors`` response. +ListMonitoredResourceDescriptorsResponse = _reflection.GeneratedProtocolMessageType( + "ListMonitoredResourceDescriptorsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMonitoredResourceDescriptors`` response. Attributes: @@ -644,15 +1030,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) + ), +) _sym_db.RegisterMessage(ListMonitoredResourceDescriptorsResponse) -GetMonitoredResourceDescriptorRequest = _reflection.GeneratedProtocolMessageType('GetMonitoredResourceDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMONITOREDRESOURCEDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``GetMonitoredResourceDescriptor`` request. +GetMonitoredResourceDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "GetMonitoredResourceDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``GetMonitoredResourceDescriptor`` request. Attributes: @@ -662,15 +1051,18 @@ ource_type}"``. The ``{resource_type}`` is a predefined type, such as ``cloudsql_database``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) + ), +) _sym_db.RegisterMessage(GetMonitoredResourceDescriptorRequest) -ListMetricDescriptorsRequest = _reflection.GeneratedProtocolMessageType('ListMetricDescriptorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMETRICDESCRIPTORSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMetricDescriptors`` request. +ListMetricDescriptorsRequest = _reflection.GeneratedProtocolMessageType( + "ListMetricDescriptorsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMETRICDESCRIPTORSREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMetricDescriptors`` request. Attributes: @@ -694,15 +1086,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsRequest) + ), +) _sym_db.RegisterMessage(ListMetricDescriptorsRequest) -ListMetricDescriptorsResponse = _reflection.GeneratedProtocolMessageType('ListMetricDescriptorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMETRICDESCRIPTORSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMetricDescriptors`` response. +ListMetricDescriptorsResponse = _reflection.GeneratedProtocolMessageType( + "ListMetricDescriptorsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMETRICDESCRIPTORSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMetricDescriptors`` response. Attributes: @@ -715,15 +1110,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsResponse) + ), +) _sym_db.RegisterMessage(ListMetricDescriptorsResponse) -GetMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType('GetMetricDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMETRICDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``GetMetricDescriptor`` request. +GetMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "GetMetricDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETMETRICDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``GetMetricDescriptor`` request. Attributes: @@ -733,15 +1131,18 @@ /{metric_id}"``. An example value of ``{metric_id}`` is ``"compute.googleapis.com/instance/disk/read_bytes_count"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMetricDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMetricDescriptorRequest) + ), +) _sym_db.RegisterMessage(GetMetricDescriptorRequest) -CreateMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType('CreateMetricDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEMETRICDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``CreateMetricDescriptor`` request. +CreateMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "CreateMetricDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEMETRICDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``CreateMetricDescriptor`` request. Attributes: @@ -752,15 +1153,18 @@ The new `custom metric `__ descriptor. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateMetricDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateMetricDescriptorRequest) + ), +) _sym_db.RegisterMessage(CreateMetricDescriptorRequest) -DeleteMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType('DeleteMetricDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEMETRICDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``DeleteMetricDescriptor`` request. +DeleteMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "DeleteMetricDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEMETRICDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``DeleteMetricDescriptor`` request. Attributes: @@ -770,15 +1174,18 @@ /{metric_id}"``. An example of ``{metric_id}`` is: ``"custom.googleapis.com/my_test_metric"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) + ), +) _sym_db.RegisterMessage(DeleteMetricDescriptorRequest) -ListTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('ListTimeSeriesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTIMESERIESREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListTimeSeries`` request. +ListTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( + "ListTimeSeriesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTIMESERIESREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListTimeSeries`` request. Attributes: @@ -818,15 +1225,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesRequest) + ), +) _sym_db.RegisterMessage(ListTimeSeriesRequest) -ListTimeSeriesResponse = _reflection.GeneratedProtocolMessageType('ListTimeSeriesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTIMESERIESRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListTimeSeries`` response. +ListTimeSeriesResponse = _reflection.GeneratedProtocolMessageType( + "ListTimeSeriesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTIMESERIESRESPONSE, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListTimeSeries`` response. Attributes: @@ -842,15 +1252,18 @@ Query execution errors that may have caused the time series data returned to be incomplete. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesResponse) + ), +) _sym_db.RegisterMessage(ListTimeSeriesResponse) -CreateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('CreateTimeSeriesRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATETIMESERIESREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``CreateTimeSeries`` request. +CreateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( + "CreateTimeSeriesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETIMESERIESREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``CreateTimeSeries`` request. Attributes: @@ -865,15 +1278,18 @@ unique time series by supplying all label values for the metric and the monitored resource. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesRequest) + ), +) _sym_db.RegisterMessage(CreateTimeSeriesRequest) -CreateTimeSeriesError = _reflection.GeneratedProtocolMessageType('CreateTimeSeriesError', (_message.Message,), dict( - DESCRIPTOR = _CREATETIMESERIESERROR, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """Describes the result of a failed request to write data to a time series. +CreateTimeSeriesError = _reflection.GeneratedProtocolMessageType( + "CreateTimeSeriesError", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETIMESERIESERROR, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""Describes the result of a failed request to write data to a time series. Attributes: @@ -885,98 +1301,137 @@ status: The status of the requested write operation. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesError) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesError) + ), +) _sym_db.RegisterMessage(CreateTimeSeriesError) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\022MetricServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\022MetricServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _METRICSERVICE = _descriptor.ServiceDescriptor( - name='MetricService', - full_name='google.monitoring.v3.MetricService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1775, - serialized_end=3172, - methods=[ - _descriptor.MethodDescriptor( - name='ListMonitoredResourceDescriptors', - full_name='google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors', + name="MetricService", + full_name="google.monitoring.v3.MetricService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, - output_type=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredResourceDescriptors')), - ), - _descriptor.MethodDescriptor( - name='GetMonitoredResourceDescriptor', - full_name='google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor', - index=1, - containing_service=None, - input_type=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, - output_type=google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\0224/v3/{name=projects/*/monitoredResourceDescriptors/*}')), - ), - _descriptor.MethodDescriptor( - name='ListMetricDescriptors', - full_name='google.monitoring.v3.MetricService.ListMetricDescriptors', - index=2, - containing_service=None, - input_type=_LISTMETRICDESCRIPTORSREQUEST, - output_type=_LISTMETRICDESCRIPTORSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\022\'/v3/{name=projects/*}/metricDescriptors')), - ), - _descriptor.MethodDescriptor( - name='GetMetricDescriptor', - full_name='google.monitoring.v3.MetricService.GetMetricDescriptor', - index=3, - containing_service=None, - input_type=_GETMETRICDESCRIPTORREQUEST, - output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{name=projects/*/metricDescriptors/**}')), - ), - _descriptor.MethodDescriptor( - name='CreateMetricDescriptor', - full_name='google.monitoring.v3.MetricService.CreateMetricDescriptor', - index=4, - containing_service=None, - input_type=_CREATEMETRICDESCRIPTORREQUEST, - output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\"\'/v3/{name=projects/*}/metricDescriptors:\021metric_descriptor')), - ), - _descriptor.MethodDescriptor( - name='DeleteMetricDescriptor', - full_name='google.monitoring.v3.MetricService.DeleteMetricDescriptor', - index=5, - containing_service=None, - input_type=_DELETEMETRICDESCRIPTORREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,**/v3/{name=projects/*/metricDescriptors/**}')), - ), - _descriptor.MethodDescriptor( - name='ListTimeSeries', - full_name='google.monitoring.v3.MetricService.ListTimeSeries', - index=6, - containing_service=None, - input_type=_LISTTIMESERIESREQUEST, - output_type=_LISTTIMESERIESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\"\022 /v3/{name=projects/*}/timeSeries')), - ), - _descriptor.MethodDescriptor( - name='CreateTimeSeries', - full_name='google.monitoring.v3.MetricService.CreateTimeSeries', - index=7, - containing_service=None, - input_type=_CREATETIMESERIESREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\" /v3/{name=projects/*}/timeSeries:\001*')), - ), -]) + options=None, + serialized_start=1775, + serialized_end=3172, + methods=[ + _descriptor.MethodDescriptor( + name="ListMonitoredResourceDescriptors", + full_name="google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors", + index=0, + containing_service=None, + input_type=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, + output_type=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredResourceDescriptors" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetMonitoredResourceDescriptor", + full_name="google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor", + index=1, + containing_service=None, + input_type=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, + output_type=google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0026\0224/v3/{name=projects/*/monitoredResourceDescriptors/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListMetricDescriptors", + full_name="google.monitoring.v3.MetricService.ListMetricDescriptors", + index=2, + containing_service=None, + input_type=_LISTMETRICDESCRIPTORSREQUEST, + output_type=_LISTMETRICDESCRIPTORSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002)\022'/v3/{name=projects/*}/metricDescriptors"), + ), + ), + _descriptor.MethodDescriptor( + name="GetMetricDescriptor", + full_name="google.monitoring.v3.MetricService.GetMetricDescriptor", + index=3, + containing_service=None, + input_type=_GETMETRICDESCRIPTORREQUEST, + output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{name=projects/*/metricDescriptors/**}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateMetricDescriptor", + full_name="google.monitoring.v3.MetricService.CreateMetricDescriptor", + index=4, + containing_service=None, + input_type=_CREATEMETRICDESCRIPTORREQUEST, + output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002<\"'/v3/{name=projects/*}/metricDescriptors:\021metric_descriptor" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteMetricDescriptor", + full_name="google.monitoring.v3.MetricService.DeleteMetricDescriptor", + index=5, + containing_service=None, + input_type=_DELETEMETRICDESCRIPTORREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002,**/v3/{name=projects/*/metricDescriptors/**}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListTimeSeries", + full_name="google.monitoring.v3.MetricService.ListTimeSeries", + index=6, + containing_service=None, + input_type=_LISTTIMESERIESREQUEST, + output_type=_LISTTIMESERIESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002"\022 /v3/{name=projects/*}/timeSeries'), + ), + ), + _descriptor.MethodDescriptor( + name="CreateTimeSeries", + full_name="google.monitoring.v3.MetricService.CreateTimeSeries", + index=7, + containing_service=None, + input_type=_CREATETIMESERIESREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002%" /v3/{name=projects/*}/timeSeries:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_METRICSERVICE) -DESCRIPTOR.services_by_name['MetricService'] = _METRICSERVICE +DESCRIPTOR.services_by_name["MetricService"] = _METRICSERVICE # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py index e091978e4530c..581a79532e7e2 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py @@ -2,175 +2,180 @@ import grpc from google.api import metric_pb2 as google_dot_api_dot_metric__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import metric_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + metric_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class MetricServiceStub(object): - """Manages metric descriptors, monitored resource descriptors, and + """Manages metric descriptors, monitored resource descriptors, and time series data. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListMonitoredResourceDescriptors = channel.unary_unary( - '/google.monitoring.v3.MetricService/ListMonitoredResourceDescriptors', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.FromString, + self.ListMonitoredResourceDescriptors = channel.unary_unary( + "/google.monitoring.v3.MetricService/ListMonitoredResourceDescriptors", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.FromString, ) - self.GetMonitoredResourceDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/GetMonitoredResourceDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.SerializeToString, - response_deserializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.FromString, + self.GetMonitoredResourceDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/GetMonitoredResourceDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.SerializeToString, + response_deserializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.FromString, ) - self.ListMetricDescriptors = channel.unary_unary( - '/google.monitoring.v3.MetricService/ListMetricDescriptors', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.FromString, + self.ListMetricDescriptors = channel.unary_unary( + "/google.monitoring.v3.MetricService/ListMetricDescriptors", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.FromString, ) - self.GetMetricDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/GetMetricDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.SerializeToString, - response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, + self.GetMetricDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/GetMetricDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.SerializeToString, + response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, ) - self.CreateMetricDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/CreateMetricDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.SerializeToString, - response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, + self.CreateMetricDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/CreateMetricDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.SerializeToString, + response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, ) - self.DeleteMetricDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/DeleteMetricDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteMetricDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/DeleteMetricDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListTimeSeries = channel.unary_unary( - '/google.monitoring.v3.MetricService/ListTimeSeries', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.FromString, + self.ListTimeSeries = channel.unary_unary( + "/google.monitoring.v3.MetricService/ListTimeSeries", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.FromString, ) - self.CreateTimeSeries = channel.unary_unary( - '/google.monitoring.v3.MetricService/CreateTimeSeries', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.CreateTimeSeries = channel.unary_unary( + "/google.monitoring.v3.MetricService/CreateTimeSeries", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class MetricServiceServicer(object): - """Manages metric descriptors, monitored resource descriptors, and + """Manages metric descriptors, monitored resource descriptors, and time series data. """ - def ListMonitoredResourceDescriptors(self, request, context): - """Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account. + def ListMonitoredResourceDescriptors(self, request, context): + """Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetMonitoredResourceDescriptor(self, request, context): - """Gets a single monitored resource descriptor. This method does not require a Stackdriver account. + def GetMonitoredResourceDescriptor(self, request, context): + """Gets a single monitored resource descriptor. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListMetricDescriptors(self, request, context): - """Lists metric descriptors that match a filter. This method does not require a Stackdriver account. + def ListMetricDescriptors(self, request, context): + """Lists metric descriptors that match a filter. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetMetricDescriptor(self, request, context): - """Gets a single metric descriptor. This method does not require a Stackdriver account. + def GetMetricDescriptor(self, request, context): + """Gets a single metric descriptor. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateMetricDescriptor(self, request, context): - """Creates a new metric descriptor. + def CreateMetricDescriptor(self, request, context): + """Creates a new metric descriptor. User-created metric descriptors define [custom metrics](/monitoring/custom-metrics). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteMetricDescriptor(self, request, context): - """Deletes a metric descriptor. Only user-created + def DeleteMetricDescriptor(self, request, context): + """Deletes a metric descriptor. Only user-created [custom metrics](/monitoring/custom-metrics) can be deleted. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTimeSeries(self, request, context): - """Lists time series that match a filter. This method does not require a Stackdriver account. + def ListTimeSeries(self, request, context): + """Lists time series that match a filter. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateTimeSeries(self, request, context): - """Creates or adds data to one or more time series. + def CreateTimeSeries(self, request, context): + """Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_MetricServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListMonitoredResourceDescriptors': grpc.unary_unary_rpc_method_handler( - servicer.ListMonitoredResourceDescriptors, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.SerializeToString, - ), - 'GetMonitoredResourceDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.GetMonitoredResourceDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.FromString, - response_serializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.SerializeToString, - ), - 'ListMetricDescriptors': grpc.unary_unary_rpc_method_handler( - servicer.ListMetricDescriptors, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.SerializeToString, - ), - 'GetMetricDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.GetMetricDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.FromString, - response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, - ), - 'CreateMetricDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.CreateMetricDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.FromString, - response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, - ), - 'DeleteMetricDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.DeleteMetricDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListTimeSeries': grpc.unary_unary_rpc_method_handler( - servicer.ListTimeSeries, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.SerializeToString, - ), - 'CreateTimeSeries': grpc.unary_unary_rpc_method_handler( - servicer.CreateTimeSeries, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.MetricService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListMonitoredResourceDescriptors": grpc.unary_unary_rpc_method_handler( + servicer.ListMonitoredResourceDescriptors, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.SerializeToString, + ), + "GetMonitoredResourceDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.GetMonitoredResourceDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.FromString, + response_serializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.SerializeToString, + ), + "ListMetricDescriptors": grpc.unary_unary_rpc_method_handler( + servicer.ListMetricDescriptors, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.SerializeToString, + ), + "GetMetricDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.GetMetricDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.FromString, + response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, + ), + "CreateMetricDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.CreateMetricDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.FromString, + response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, + ), + "DeleteMetricDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.DeleteMetricDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListTimeSeries": grpc.unary_unary_rpc_method_handler( + servicer.ListTimeSeries, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.SerializeToString, + ), + "CreateTimeSeries": grpc.unary_unary_rpc_method_handler( + servicer.CreateTimeSeries, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.MetricService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py index f2177878e1f71..bc30bf52c8187 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/mutation_record.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,62 +19,85 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/mutation_record.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n6google/cloud/monitoring_v3/proto/mutation_record.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/protobuf/timestamp.proto\"U\n\x0eMutationRecord\x12/\n\x0bmutate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmutated_by\x18\x02 \x01(\tB\xab\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/mutation_record.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n6google/cloud/monitoring_v3/proto/mutation_record.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/protobuf/timestamp.proto"U\n\x0eMutationRecord\x12/\n\x0bmutate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmutated_by\x18\x02 \x01(\tB\xab\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR], +) _MUTATIONRECORD = _descriptor.Descriptor( - name='MutationRecord', - full_name='google.monitoring.v3.MutationRecord', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mutate_time', full_name='google.monitoring.v3.MutationRecord.mutate_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutated_by', full_name='google.monitoring.v3.MutationRecord.mutated_by', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=113, - serialized_end=198, + name="MutationRecord", + full_name="google.monitoring.v3.MutationRecord", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="mutate_time", + full_name="google.monitoring.v3.MutationRecord.mutate_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mutated_by", + full_name="google.monitoring.v3.MutationRecord.mutated_by", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=113, + serialized_end=198, ) -_MUTATIONRECORD.fields_by_name['mutate_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['MutationRecord'] = _MUTATIONRECORD +_MUTATIONRECORD.fields_by_name[ + "mutate_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["MutationRecord"] = _MUTATIONRECORD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -MutationRecord = _reflection.GeneratedProtocolMessageType('MutationRecord', (_message.Message,), dict( - DESCRIPTOR = _MUTATIONRECORD, - __module__ = 'google.cloud.monitoring_v3.proto.mutation_record_pb2' - , - __doc__ = """Describes a change made to a configuration. +MutationRecord = _reflection.GeneratedProtocolMessageType( + "MutationRecord", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATIONRECORD, + __module__="google.cloud.monitoring_v3.proto.mutation_record_pb2", + __doc__="""Describes a change made to a configuration. Attributes: @@ -81,11 +106,17 @@ mutated_by: The email address of the user making the change. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.MutationRecord) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.MutationRecord) + ), +) _sym_db.RegisterMessage(MutationRecord) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\023MutationRecordProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\023MutationRecordProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py index 4ca0969c19f5d..708f92ce1851a 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/notification.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,285 +17,500 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import label_pb2 as google_dot_api_dot_label__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/notification.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n3google/cloud/monitoring_v3/proto/notification.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xd3\x01\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01\"\xb6\x04\n\x13NotificationChannel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x35.google.monitoring.v3.NotificationChannel.LabelsEntry\x12N\n\x0buser_labels\x18\x08 \x03(\x0b\x32\x39.google.monitoring.v3.NotificationChannel.UserLabelsEntry\x12Y\n\x13verification_status\x18\t \x01(\x0e\x32<.google.monitoring.v3.NotificationChannel.VerificationStatus\x12+\n\x07\x65nabled\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0e\n\nUNVERIFIED\x10\x01\x12\x0c\n\x08VERIFIED\x10\x02\x42\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11NotificationProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_label__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - + name="google/cloud/monitoring_v3/proto/notification.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n3google/cloud/monitoring_v3/proto/notification.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/wrappers.proto"\xd3\x01\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01"\xb6\x04\n\x13NotificationChannel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x35.google.monitoring.v3.NotificationChannel.LabelsEntry\x12N\n\x0buser_labels\x18\x08 \x03(\x0b\x32\x39.google.monitoring.v3.NotificationChannel.UserLabelsEntry\x12Y\n\x13verification_status\x18\t \x01(\x0e\x32<.google.monitoring.v3.NotificationChannel.VerificationStatus\x12+\n\x07\x65nabled\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"W\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0e\n\nUNVERIFIED\x10\x01\x12\x0c\n\x08VERIFIED\x10\x02\x42\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11NotificationProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_label__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + ], +) _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS = _descriptor.EnumDescriptor( - name='VerificationStatus', - full_name='google.monitoring.v3.NotificationChannel.VerificationStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VERIFICATION_STATUS_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNVERIFIED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERIFIED', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=904, - serialized_end=991, + name="VerificationStatus", + full_name="google.monitoring.v3.NotificationChannel.VerificationStatus", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VERIFICATION_STATUS_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="UNVERIFIED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERIFIED", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=904, + serialized_end=991, ) _sym_db.RegisterEnumDescriptor(_NOTIFICATIONCHANNEL_VERIFICATIONSTATUS) _NOTIFICATIONCHANNELDESCRIPTOR = _descriptor.Descriptor( - name='NotificationChannelDescriptor', - full_name='google.monitoring.v3.NotificationChannelDescriptor', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.NotificationChannelDescriptor.name', index=0, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.monitoring.v3.NotificationChannelDescriptor.type', index=1, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.NotificationChannelDescriptor.display_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.monitoring.v3.NotificationChannelDescriptor.description', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.monitoring.v3.NotificationChannelDescriptor.labels', index=4, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='supported_tiers', full_name='google.monitoring.v3.NotificationChannelDescriptor.supported_tiers', index=5, - number=5, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=211, - serialized_end=422, + name="NotificationChannelDescriptor", + full_name="google.monitoring.v3.NotificationChannelDescriptor", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.NotificationChannelDescriptor.name", + index=0, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.monitoring.v3.NotificationChannelDescriptor.type", + index=1, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.NotificationChannelDescriptor.display_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.monitoring.v3.NotificationChannelDescriptor.description", + index=3, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.monitoring.v3.NotificationChannelDescriptor.labels", + index=4, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="supported_tiers", + full_name="google.monitoring.v3.NotificationChannelDescriptor.supported_tiers", + index=5, + number=5, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=_descriptor._ParseOptions( + descriptor_pb2.FieldOptions(), _b("\030\001") + ), + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=211, + serialized_end=422, ) _NOTIFICATIONCHANNEL_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.monitoring.v3.NotificationChannel.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.NotificationChannel.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.NotificationChannel.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=806, - serialized_end=851, + name="LabelsEntry", + full_name="google.monitoring.v3.NotificationChannel.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.NotificationChannel.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.NotificationChannel.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=806, + serialized_end=851, ) _NOTIFICATIONCHANNEL_USERLABELSENTRY = _descriptor.Descriptor( - name='UserLabelsEntry', - full_name='google.monitoring.v3.NotificationChannel.UserLabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.NotificationChannel.UserLabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.NotificationChannel.UserLabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=853, - serialized_end=902, + name="UserLabelsEntry", + full_name="google.monitoring.v3.NotificationChannel.UserLabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.NotificationChannel.UserLabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.NotificationChannel.UserLabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=853, + serialized_end=902, ) _NOTIFICATIONCHANNEL = _descriptor.Descriptor( - name='NotificationChannel', - full_name='google.monitoring.v3.NotificationChannel', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.monitoring.v3.NotificationChannel.type', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.NotificationChannel.name', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.NotificationChannel.display_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.monitoring.v3.NotificationChannel.description', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.monitoring.v3.NotificationChannel.labels', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_labels', full_name='google.monitoring.v3.NotificationChannel.user_labels', index=5, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='verification_status', full_name='google.monitoring.v3.NotificationChannel.verification_status', index=6, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enabled', full_name='google.monitoring.v3.NotificationChannel.enabled', index=7, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_NOTIFICATIONCHANNEL_LABELSENTRY, _NOTIFICATIONCHANNEL_USERLABELSENTRY, ], - enum_types=[ - _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=425, - serialized_end=991, + name="NotificationChannel", + full_name="google.monitoring.v3.NotificationChannel", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.monitoring.v3.NotificationChannel.type", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.NotificationChannel.name", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.NotificationChannel.display_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.monitoring.v3.NotificationChannel.description", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.monitoring.v3.NotificationChannel.labels", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_labels", + full_name="google.monitoring.v3.NotificationChannel.user_labels", + index=5, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="verification_status", + full_name="google.monitoring.v3.NotificationChannel.verification_status", + index=6, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enabled", + full_name="google.monitoring.v3.NotificationChannel.enabled", + index=7, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _NOTIFICATIONCHANNEL_LABELSENTRY, + _NOTIFICATIONCHANNEL_USERLABELSENTRY, + ], + enum_types=[_NOTIFICATIONCHANNEL_VERIFICATIONSTATUS], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=425, + serialized_end=991, ) -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['labels'].message_type = google_dot_api_dot_label__pb2._LABELDESCRIPTOR -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['supported_tiers'].enum_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._SERVICETIER +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name[ + "labels" +].message_type = google_dot_api_dot_label__pb2._LABELDESCRIPTOR +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name[ + "supported_tiers" +].enum_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._SERVICETIER _NOTIFICATIONCHANNEL_LABELSENTRY.containing_type = _NOTIFICATIONCHANNEL _NOTIFICATIONCHANNEL_USERLABELSENTRY.containing_type = _NOTIFICATIONCHANNEL -_NOTIFICATIONCHANNEL.fields_by_name['labels'].message_type = _NOTIFICATIONCHANNEL_LABELSENTRY -_NOTIFICATIONCHANNEL.fields_by_name['user_labels'].message_type = _NOTIFICATIONCHANNEL_USERLABELSENTRY -_NOTIFICATIONCHANNEL.fields_by_name['verification_status'].enum_type = _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS -_NOTIFICATIONCHANNEL.fields_by_name['enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_NOTIFICATIONCHANNEL.fields_by_name[ + "labels" +].message_type = _NOTIFICATIONCHANNEL_LABELSENTRY +_NOTIFICATIONCHANNEL.fields_by_name[ + "user_labels" +].message_type = _NOTIFICATIONCHANNEL_USERLABELSENTRY +_NOTIFICATIONCHANNEL.fields_by_name[ + "verification_status" +].enum_type = _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS +_NOTIFICATIONCHANNEL.fields_by_name[ + "enabled" +].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS.containing_type = _NOTIFICATIONCHANNEL -DESCRIPTOR.message_types_by_name['NotificationChannelDescriptor'] = _NOTIFICATIONCHANNELDESCRIPTOR -DESCRIPTOR.message_types_by_name['NotificationChannel'] = _NOTIFICATIONCHANNEL +DESCRIPTOR.message_types_by_name[ + "NotificationChannelDescriptor" +] = _NOTIFICATIONCHANNELDESCRIPTOR +DESCRIPTOR.message_types_by_name["NotificationChannel"] = _NOTIFICATIONCHANNEL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -NotificationChannelDescriptor = _reflection.GeneratedProtocolMessageType('NotificationChannelDescriptor', (_message.Message,), dict( - DESCRIPTOR = _NOTIFICATIONCHANNELDESCRIPTOR, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - , - __doc__ = """A description of a notification channel. The descriptor includes the +NotificationChannelDescriptor = _reflection.GeneratedProtocolMessageType( + "NotificationChannelDescriptor", + (_message.Message,), + dict( + DESCRIPTOR=_NOTIFICATIONCHANNELDESCRIPTOR, + __module__="google.cloud.monitoring_v3.proto.notification_pb2", + __doc__="""A description of a notification channel. The descriptor includes the properties of the channel and the set of labels or fields that must be specified to configure channels of a given type. @@ -322,29 +539,36 @@ The tiers that support this notification channel; the project service tier must be one of the supported\_tiers. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannelDescriptor) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannelDescriptor) + ), +) _sym_db.RegisterMessage(NotificationChannelDescriptor) -NotificationChannel = _reflection.GeneratedProtocolMessageType('NotificationChannel', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _NOTIFICATIONCHANNEL_LABELSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.LabelsEntry) - )) - , - - UserLabelsEntry = _reflection.GeneratedProtocolMessageType('UserLabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _NOTIFICATIONCHANNEL_USERLABELSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.UserLabelsEntry) - )) - , - DESCRIPTOR = _NOTIFICATIONCHANNEL, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - , - __doc__ = """A ``NotificationChannel`` is a medium through which an alert is +NotificationChannel = _reflection.GeneratedProtocolMessageType( + "NotificationChannel", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_NOTIFICATIONCHANNEL_LABELSENTRY, + __module__="google.cloud.monitoring_v3.proto.notification_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.LabelsEntry) + ), + ), + UserLabelsEntry=_reflection.GeneratedProtocolMessageType( + "UserLabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_NOTIFICATIONCHANNEL_USERLABELSENTRY, + __module__="google.cloud.monitoring_v3.proto.notification_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.UserLabelsEntry) + ), + ), + DESCRIPTOR=_NOTIFICATIONCHANNEL, + __module__="google.cloud.monitoring_v3.proto.notification_pb2", + __doc__="""A ``NotificationChannel`` is a medium through which an alert is delivered when a policy violation is detected. Examples of channels include email, SMS, and third-party messaging applications. Fields containing sensitive information like authentication tokens or contact @@ -419,19 +643,31 @@ to receive notifications from the same set of alerting policies on the channel at some point in the future. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel) + ), +) _sym_db.RegisterMessage(NotificationChannel) _sym_db.RegisterMessage(NotificationChannel.LabelsEntry) _sym_db.RegisterMessage(NotificationChannel.UserLabelsEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\021NotificationProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['supported_tiers'].has_options = True -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['supported_tiers']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\021NotificationProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name["supported_tiers"].has_options = True +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name[ + "supported_tiers" +]._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b("\030\001")) _NOTIFICATIONCHANNEL_LABELSENTRY.has_options = True -_NOTIFICATIONCHANNEL_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_NOTIFICATIONCHANNEL_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _NOTIFICATIONCHANNEL_USERLABELSENTRY.has_options = True -_NOTIFICATIONCHANNEL_USERLABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_NOTIFICATIONCHANNEL_USERLABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py index b93742adbbd6d..482d08ad9154b 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py @@ -2,19 +2,23 @@ # source: google/cloud/monitoring_v3/proto/notification_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2 +from google.cloud.monitoring_v3.proto import ( + notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 @@ -22,543 +26,858 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/notification_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n;google/cloud/monitoring_v3/proto/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x33google/cloud/monitoring_v3/proto/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"`\n)ListNotificationChannelDescriptorsRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"7\n\'GetNotificationChannelDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"y\n CreateNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12G\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel\"x\n\x1fListNotificationChannelsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\t\x12\x10\n\x08order_by\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x85\x01\n ListNotificationChannelsResponse\x12H\n\x15notification_channels\x18\x03 \x03(\x0b\x32).google.monitoring.v3.NotificationChannel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"-\n\x1dGetNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"\x9c\x01\n UpdateNotificationChannelRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel\"?\n DeleteNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05\x66orce\x18\x05 \x01(\x08\">\n.SendNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"n\n-GetNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"o\n.GetNotificationChannelVerificationCodeResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\">\n VerifyNotificationChannelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t2\xbb\x10\n\x1aNotificationChannelService\x12\xe5\x01\n\"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\x12\xd6\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\x12\xbd\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\x12\xae\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"4\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\x12\xc8\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"H\x82\xd3\xe4\x93\x02\x42\"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\x12\xdf\x01\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"_\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\x12\xa1\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty\"4\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\x12\xd5\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty\"L\x82\xd3\xe4\x93\x02\x46\"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\x12\x80\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\x12\xbe\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\">\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*B\xb0\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/notification_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n;google/cloud/monitoring_v3/proto/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x33google/cloud/monitoring_v3/proto/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"`\n)ListNotificationChannelDescriptorsRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"7\n\'GetNotificationChannelDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"y\n CreateNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12G\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel"x\n\x1fListNotificationChannelsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\t\x12\x10\n\x08order_by\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x85\x01\n ListNotificationChannelsResponse\x12H\n\x15notification_channels\x18\x03 \x03(\x0b\x32).google.monitoring.v3.NotificationChannel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"-\n\x1dGetNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"\x9c\x01\n UpdateNotificationChannelRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel"?\n DeleteNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05\x66orce\x18\x05 \x01(\x08">\n.SendNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"n\n-GetNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"o\n.GetNotificationChannelVerificationCodeResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp">\n VerifyNotificationChannelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t2\xbb\x10\n\x1aNotificationChannelService\x12\xe5\x01\n"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\x12\xd6\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor">\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\x12\xbd\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\x12\xae\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"4\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\x12\xc8\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"H\x82\xd3\xe4\x93\x02\x42"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\x12\xdf\x01\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"_\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\x12\xa1\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\x12\xd5\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty"L\x82\xd3\xe4\x93\x02\x46"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\x12\x80\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse"K\x82\xd3\xe4\x93\x02\x45"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\x12\xbe\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel">\x82\xd3\xe4\x93\x02\x38"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*B\xb0\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST = _descriptor.Descriptor( - name='ListNotificationChannelDescriptorsRequest', - full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest.name', index=0, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=294, - serialized_end=390, + name="ListNotificationChannelDescriptorsRequest", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest.name", + index=0, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=294, + serialized_end=390, ) _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE = _descriptor.Descriptor( - name='ListNotificationChannelDescriptorsResponse', - full_name='google.monitoring.v3.ListNotificationChannelDescriptorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='channel_descriptors', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsResponse.channel_descriptors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=393, - serialized_end=544, + name="ListNotificationChannelDescriptorsResponse", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="channel_descriptors", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsResponse.channel_descriptors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=393, + serialized_end=544, ) _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST = _descriptor.Descriptor( - name='GetNotificationChannelDescriptorRequest', - full_name='google.monitoring.v3.GetNotificationChannelDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetNotificationChannelDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=546, - serialized_end=601, + name="GetNotificationChannelDescriptorRequest", + full_name="google.monitoring.v3.GetNotificationChannelDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetNotificationChannelDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=546, + serialized_end=601, ) _CREATENOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='CreateNotificationChannelRequest', - full_name='google.monitoring.v3.CreateNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateNotificationChannelRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notification_channel', full_name='google.monitoring.v3.CreateNotificationChannelRequest.notification_channel', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=603, - serialized_end=724, + name="CreateNotificationChannelRequest", + full_name="google.monitoring.v3.CreateNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateNotificationChannelRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="notification_channel", + full_name="google.monitoring.v3.CreateNotificationChannelRequest.notification_channel", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=603, + serialized_end=724, ) _LISTNOTIFICATIONCHANNELSREQUEST = _descriptor.Descriptor( - name='ListNotificationChannelsRequest', - full_name='google.monitoring.v3.ListNotificationChannelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListNotificationChannelsRequest.name', index=0, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListNotificationChannelsRequest.filter', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.monitoring.v3.ListNotificationChannelsRequest.order_by', index=2, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListNotificationChannelsRequest.page_size', index=3, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListNotificationChannelsRequest.page_token', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=726, - serialized_end=846, + name="ListNotificationChannelsRequest", + full_name="google.monitoring.v3.ListNotificationChannelsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.name", + index=0, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.filter", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.order_by", + index=2, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.page_size", + index=3, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.page_token", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=726, + serialized_end=846, ) _LISTNOTIFICATIONCHANNELSRESPONSE = _descriptor.Descriptor( - name='ListNotificationChannelsResponse', - full_name='google.monitoring.v3.ListNotificationChannelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='notification_channels', full_name='google.monitoring.v3.ListNotificationChannelsResponse.notification_channels', index=0, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListNotificationChannelsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=849, - serialized_end=982, + name="ListNotificationChannelsResponse", + full_name="google.monitoring.v3.ListNotificationChannelsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="notification_channels", + full_name="google.monitoring.v3.ListNotificationChannelsResponse.notification_channels", + index=0, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListNotificationChannelsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=849, + serialized_end=982, ) _GETNOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='GetNotificationChannelRequest', - full_name='google.monitoring.v3.GetNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetNotificationChannelRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=984, - serialized_end=1029, + name="GetNotificationChannelRequest", + full_name="google.monitoring.v3.GetNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetNotificationChannelRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=984, + serialized_end=1029, ) _UPDATENOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='UpdateNotificationChannelRequest', - full_name='google.monitoring.v3.UpdateNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.monitoring.v3.UpdateNotificationChannelRequest.update_mask', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notification_channel', full_name='google.monitoring.v3.UpdateNotificationChannelRequest.notification_channel', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1032, - serialized_end=1188, + name="UpdateNotificationChannelRequest", + full_name="google.monitoring.v3.UpdateNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.monitoring.v3.UpdateNotificationChannelRequest.update_mask", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="notification_channel", + full_name="google.monitoring.v3.UpdateNotificationChannelRequest.notification_channel", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1032, + serialized_end=1188, ) _DELETENOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='DeleteNotificationChannelRequest', - full_name='google.monitoring.v3.DeleteNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteNotificationChannelRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='force', full_name='google.monitoring.v3.DeleteNotificationChannelRequest.force', index=1, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1190, - serialized_end=1253, + name="DeleteNotificationChannelRequest", + full_name="google.monitoring.v3.DeleteNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteNotificationChannelRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="force", + full_name="google.monitoring.v3.DeleteNotificationChannelRequest.force", + index=1, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1190, + serialized_end=1253, ) _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST = _descriptor.Descriptor( - name='SendNotificationChannelVerificationCodeRequest', - full_name='google.monitoring.v3.SendNotificationChannelVerificationCodeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1255, - serialized_end=1317, + name="SendNotificationChannelVerificationCodeRequest", + full_name="google.monitoring.v3.SendNotificationChannelVerificationCodeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1255, + serialized_end=1317, ) _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST = _descriptor.Descriptor( - name='GetNotificationChannelVerificationCodeRequest', - full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expire_time', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.expire_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1319, - serialized_end=1429, + name="GetNotificationChannelVerificationCodeRequest", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expire_time", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.expire_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1319, + serialized_end=1429, ) _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE = _descriptor.Descriptor( - name='GetNotificationChannelVerificationCodeResponse', - full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='code', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expire_time', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.expire_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1431, - serialized_end=1542, + name="GetNotificationChannelVerificationCodeResponse", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="code", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expire_time", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.expire_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1431, + serialized_end=1542, ) _VERIFYNOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='VerifyNotificationChannelRequest', - full_name='google.monitoring.v3.VerifyNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.VerifyNotificationChannelRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='code', full_name='google.monitoring.v3.VerifyNotificationChannelRequest.code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1544, - serialized_end=1606, -) - -_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE.fields_by_name['channel_descriptors'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR -_CREATENOTIFICATIONCHANNELREQUEST.fields_by_name['notification_channel'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL -_LISTNOTIFICATIONCHANNELSRESPONSE.fields_by_name['notification_channels'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL -_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name['notification_channel'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL -_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST.fields_by_name['expire_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE.fields_by_name['expire_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['ListNotificationChannelDescriptorsRequest'] = _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST -DESCRIPTOR.message_types_by_name['ListNotificationChannelDescriptorsResponse'] = _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE -DESCRIPTOR.message_types_by_name['GetNotificationChannelDescriptorRequest'] = _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['CreateNotificationChannelRequest'] = _CREATENOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['ListNotificationChannelsRequest'] = _LISTNOTIFICATIONCHANNELSREQUEST -DESCRIPTOR.message_types_by_name['ListNotificationChannelsResponse'] = _LISTNOTIFICATIONCHANNELSRESPONSE -DESCRIPTOR.message_types_by_name['GetNotificationChannelRequest'] = _GETNOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['UpdateNotificationChannelRequest'] = _UPDATENOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['DeleteNotificationChannelRequest'] = _DELETENOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['SendNotificationChannelVerificationCodeRequest'] = _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST -DESCRIPTOR.message_types_by_name['GetNotificationChannelVerificationCodeRequest'] = _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST -DESCRIPTOR.message_types_by_name['GetNotificationChannelVerificationCodeResponse'] = _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE -DESCRIPTOR.message_types_by_name['VerifyNotificationChannelRequest'] = _VERIFYNOTIFICATIONCHANNELREQUEST + name="VerifyNotificationChannelRequest", + full_name="google.monitoring.v3.VerifyNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.VerifyNotificationChannelRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="code", + full_name="google.monitoring.v3.VerifyNotificationChannelRequest.code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1544, + serialized_end=1606, +) + +_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE.fields_by_name[ + "channel_descriptors" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR +) +_CREATENOTIFICATIONCHANNELREQUEST.fields_by_name[ + "notification_channel" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL +) +_LISTNOTIFICATIONCHANNELSRESPONSE.fields_by_name[ + "notification_channels" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL +) +_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name[ + "notification_channel" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL +) +_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST.fields_by_name[ + "expire_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE.fields_by_name[ + "expire_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelDescriptorsRequest" +] = _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelDescriptorsResponse" +] = _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelDescriptorRequest" +] = _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateNotificationChannelRequest" +] = _CREATENOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelsRequest" +] = _LISTNOTIFICATIONCHANNELSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelsResponse" +] = _LISTNOTIFICATIONCHANNELSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelRequest" +] = _GETNOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateNotificationChannelRequest" +] = _UPDATENOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteNotificationChannelRequest" +] = _DELETENOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "SendNotificationChannelVerificationCodeRequest" +] = _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelVerificationCodeRequest" +] = _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelVerificationCodeResponse" +] = _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE +DESCRIPTOR.message_types_by_name[ + "VerifyNotificationChannelRequest" +] = _VERIFYNOTIFICATIONCHANNELREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListNotificationChannelDescriptorsRequest = _reflection.GeneratedProtocolMessageType('ListNotificationChannelDescriptorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannelDescriptors`` request. +ListNotificationChannelDescriptorsRequest = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelDescriptorsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannelDescriptors`` request. Attributes: @@ -579,15 +898,18 @@ the ``next_page_token`` in a previous response to request the next set of results. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) + ), +) _sym_db.RegisterMessage(ListNotificationChannelDescriptorsRequest) -ListNotificationChannelDescriptorsResponse = _reflection.GeneratedProtocolMessageType('ListNotificationChannelDescriptorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannelDescriptors`` response. +ListNotificationChannelDescriptorsResponse = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelDescriptorsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannelDescriptors`` response. Attributes: @@ -600,15 +922,18 @@ in a subsequent request to fetch the next set of results. If empty, all results have been returned. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) + ), +) _sym_db.RegisterMessage(ListNotificationChannelDescriptorsResponse) -GetNotificationChannelDescriptorRequest = _reflection.GeneratedProtocolMessageType('GetNotificationChannelDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannelDescriptor`` response. +GetNotificationChannelDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannelDescriptor`` response. Attributes: @@ -617,15 +942,18 @@ is ``projects/[PROJECT_ID]/notificationChannelDescriptors/{cha nnel_type}``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) + ), +) _sym_db.RegisterMessage(GetNotificationChannelDescriptorRequest) -CreateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('CreateNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATENOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``CreateNotificationChannel`` request. +CreateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "CreateNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATENOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``CreateNotificationChannel`` request. Attributes: @@ -640,15 +968,18 @@ notification_channel: The definition of the ``NotificationChannel`` to create. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(CreateNotificationChannelRequest) -ListNotificationChannelsRequest = _reflection.GeneratedProtocolMessageType('ListNotificationChannelsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannels`` request. +ListNotificationChannelsRequest = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELSREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannels`` request. Attributes: @@ -680,15 +1011,18 @@ the ``next_page_token`` in a previous response to request the next set of results. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsRequest) + ), +) _sym_db.RegisterMessage(ListNotificationChannelsRequest) -ListNotificationChannelsResponse = _reflection.GeneratedProtocolMessageType('ListNotificationChannelsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannels`` response. +ListNotificationChannelsResponse = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannels`` response. Attributes: @@ -700,15 +1034,18 @@ in a subsequent request to fetch the next set of results. If empty, all results have been returned. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsResponse) + ), +) _sym_db.RegisterMessage(ListNotificationChannelsResponse) -GetNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('GetNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannel`` request. +GetNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannel`` request. Attributes: @@ -716,15 +1053,18 @@ The channel for which to execute the request. The format is ``projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(GetNotificationChannelRequest) -UpdateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('UpdateNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATENOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``UpdateNotificationChannel`` request. +UpdateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "UpdateNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATENOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``UpdateNotificationChannel`` request. Attributes: @@ -736,15 +1076,18 @@ definition for fields to be updated; the names of these fields should also be included in the ``update_mask``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(UpdateNotificationChannelRequest) -DeleteNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('DeleteNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETENOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``DeleteNotificationChannel`` request. +DeleteNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "DeleteNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETENOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``DeleteNotificationChannel`` request. Attributes: @@ -758,30 +1101,36 @@ referenced by an existing alerting policy will fail to be deleted in a delete operation. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(DeleteNotificationChannelRequest) -SendNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType('SendNotificationChannelVerificationCodeRequest', (_message.Message,), dict( - DESCRIPTOR = _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``SendNotificationChannelVerificationCode`` request. +SendNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType( + "SendNotificationChannelVerificationCodeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``SendNotificationChannelVerificationCode`` request. Attributes: name: The notification channel to which to send a verification code. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) + ), +) _sym_db.RegisterMessage(SendNotificationChannelVerificationCodeRequest) -GetNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType('GetNotificationChannelVerificationCodeRequest', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannelVerificationCode`` request. +GetNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelVerificationCodeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannelVerificationCode`` request. Attributes: @@ -803,15 +1152,18 @@ the API does impose an upper limit on the maximum expiration that is permitted). """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) + ), +) _sym_db.RegisterMessage(GetNotificationChannelVerificationCodeRequest) -GetNotificationChannelVerificationCodeResponse = _reflection.GeneratedProtocolMessageType('GetNotificationChannelVerificationCodeResponse', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannelVerificationCode`` request. +GetNotificationChannelVerificationCodeResponse = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelVerificationCodeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannelVerificationCode`` request. Attributes: @@ -827,15 +1179,18 @@ is the minimum of the requested expiration in the request and the max permitted expiration. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) + ), +) _sym_db.RegisterMessage(GetNotificationChannelVerificationCodeResponse) -VerifyNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('VerifyNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _VERIFYNOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``VerifyNotificationChannel`` request. +VerifyNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "VerifyNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_VERIFYNOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``VerifyNotificationChannel`` request. Attributes: @@ -852,116 +1207,173 @@ one should not make any assumptions regarding the structure or format of the code). """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.VerifyNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.VerifyNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(VerifyNotificationChannelRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\030NotificationServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\030NotificationServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _NOTIFICATIONCHANNELSERVICE = _descriptor.ServiceDescriptor( - name='NotificationChannelService', - full_name='google.monitoring.v3.NotificationChannelService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1609, - serialized_end=3716, - methods=[ - _descriptor.MethodDescriptor( - name='ListNotificationChannelDescriptors', - full_name='google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptors', + name="NotificationChannelService", + full_name="google.monitoring.v3.NotificationChannelService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, - output_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\0224/v3/{name=projects/*}/notificationChannelDescriptors')), - ), - _descriptor.MethodDescriptor( - name='GetNotificationChannelDescriptor', - full_name='google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor', - index=1, - containing_service=None, - input_type=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\0226/v3/{name=projects/*/notificationChannelDescriptors/*}')), - ), - _descriptor.MethodDescriptor( - name='ListNotificationChannels', - full_name='google.monitoring.v3.NotificationChannelService.ListNotificationChannels', - index=2, - containing_service=None, - input_type=_LISTNOTIFICATIONCHANNELSREQUEST, - output_type=_LISTNOTIFICATIONCHANNELSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{name=projects/*}/notificationChannels')), - ), - _descriptor.MethodDescriptor( - name='GetNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.GetNotificationChannel', - index=3, - containing_service=None, - input_type=_GETNOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v3/{name=projects/*/notificationChannels/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.CreateNotificationChannel', - index=4, - containing_service=None, - input_type=_CREATENOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B\"*/v3/{name=projects/*}/notificationChannels:\024notification_channel')), - ), - _descriptor.MethodDescriptor( - name='UpdateNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel', - index=5, - containing_service=None, - input_type=_UPDATENOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\024notification_channel')), - ), - _descriptor.MethodDescriptor( - name='DeleteNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.DeleteNotificationChannel', - index=6, - containing_service=None, - input_type=_DELETENOTIFICATIONCHANNELREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.*,/v3/{name=projects/*/notificationChannels/*}')), - ), - _descriptor.MethodDescriptor( - name='SendNotificationChannelVerificationCode', - full_name='google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCode', - index=7, - containing_service=None, - input_type=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002F\"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetNotificationChannelVerificationCode', - full_name='google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCode', - index=8, - containing_service=None, - input_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - output_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\001*')), - ), - _descriptor.MethodDescriptor( - name='VerifyNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel', - index=9, - containing_service=None, - input_type=_VERIFYNOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\"3/v3/{name=projects/*/notificationChannels/*}:verify:\001*')), - ), -]) + options=None, + serialized_start=1609, + serialized_end=3716, + methods=[ + _descriptor.MethodDescriptor( + name="ListNotificationChannelDescriptors", + full_name="google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptors", + index=0, + containing_service=None, + input_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, + output_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0026\0224/v3/{name=projects/*}/notificationChannelDescriptors" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetNotificationChannelDescriptor", + full_name="google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor", + index=1, + containing_service=None, + input_type=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0028\0226/v3/{name=projects/*/notificationChannelDescriptors/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListNotificationChannels", + full_name="google.monitoring.v3.NotificationChannelService.ListNotificationChannels", + index=2, + containing_service=None, + input_type=_LISTNOTIFICATIONCHANNELSREQUEST, + output_type=_LISTNOTIFICATIONCHANNELSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{name=projects/*}/notificationChannels" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.GetNotificationChannel", + index=3, + containing_service=None, + input_type=_GETNOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v3/{name=projects/*/notificationChannels/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.CreateNotificationChannel", + index=4, + containing_service=None, + input_type=_CREATENOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002B"*/v3/{name=projects/*}/notificationChannels:\024notification_channel' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel", + index=5, + containing_service=None, + input_type=_UPDATENOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\024notification_channel" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.DeleteNotificationChannel", + index=6, + containing_service=None, + input_type=_DELETENOTIFICATIONCHANNELREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.*,/v3/{name=projects/*/notificationChannels/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="SendNotificationChannelVerificationCode", + full_name="google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCode", + index=7, + containing_service=None, + input_type=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002F"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetNotificationChannelVerificationCode", + full_name="google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCode", + index=8, + containing_service=None, + input_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + output_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="VerifyNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel", + index=9, + containing_service=None, + input_type=_VERIFYNOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028"3/v3/{name=projects/*/notificationChannels/*}:verify:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_NOTIFICATIONCHANNELSERVICE) -DESCRIPTOR.services_by_name['NotificationChannelService'] = _NOTIFICATIONCHANNELSERVICE +DESCRIPTOR.services_by_name["NotificationChannelService"] = _NOTIFICATIONCHANNELSERVICE # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py index 97c0311419a0b..ba8b68d03c709 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py @@ -1,146 +1,150 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2 -from google.cloud.monitoring_v3.proto import notification_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2 +from google.cloud.monitoring_v3.proto import ( + notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2, +) +from google.cloud.monitoring_v3.proto import ( + notification_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class NotificationChannelServiceStub(object): - """The Notification Channel API provides access to configuration that + """The Notification Channel API provides access to configuration that controls how messages related to incidents are sent. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListNotificationChannelDescriptors = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/ListNotificationChannelDescriptors', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.FromString, + self.ListNotificationChannelDescriptors = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/ListNotificationChannelDescriptors", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.FromString, ) - self.GetNotificationChannelDescriptor = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/GetNotificationChannelDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.FromString, + self.GetNotificationChannelDescriptor = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.FromString, ) - self.ListNotificationChannels = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/ListNotificationChannels', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.FromString, + self.ListNotificationChannels = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/ListNotificationChannels", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.FromString, ) - self.GetNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/GetNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.GetNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/GetNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) - self.CreateNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/CreateNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.CreateNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/CreateNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) - self.UpdateNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/UpdateNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.UpdateNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/UpdateNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) - self.DeleteNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/DeleteNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/DeleteNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.SendNotificationChannelVerificationCode = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/SendNotificationChannelVerificationCode', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.SendNotificationChannelVerificationCode = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/SendNotificationChannelVerificationCode", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetNotificationChannelVerificationCode = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/GetNotificationChannelVerificationCode', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.FromString, + self.GetNotificationChannelVerificationCode = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelVerificationCode", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.FromString, ) - self.VerifyNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/VerifyNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.VerifyNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/VerifyNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) class NotificationChannelServiceServicer(object): - """The Notification Channel API provides access to configuration that + """The Notification Channel API provides access to configuration that controls how messages related to incidents are sent. """ - def ListNotificationChannelDescriptors(self, request, context): - """Lists the descriptors for supported channel types. The use of descriptors + def ListNotificationChannelDescriptors(self, request, context): + """Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetNotificationChannelDescriptor(self, request, context): - """Gets a single channel descriptor. The descriptor indicates which fields + def GetNotificationChannelDescriptor(self, request, context): + """Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListNotificationChannels(self, request, context): - """Lists the notification channels that have been created for the project. + def ListNotificationChannels(self, request, context): + """Lists the notification channels that have been created for the project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetNotificationChannel(self, request, context): - """Gets a single notification channel. The channel includes the relevant + def GetNotificationChannel(self, request, context): + """Gets a single notification channel. The channel includes the relevant configuration details with which the channel was created. However, the response may truncate or omit passwords, API keys, or other private key matter and thus the response may not be 100% identical to the information that was supplied in the call to the create method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateNotificationChannel(self, request, context): - """Creates a new notification channel, representing a single notification + def CreateNotificationChannel(self, request, context): + """Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateNotificationChannel(self, request, context): - """Updates a notification channel. Fields not specified in the field mask + def UpdateNotificationChannel(self, request, context): + """Updates a notification channel. Fields not specified in the field mask remain unchanged. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteNotificationChannel(self, request, context): - """Deletes a notification channel. + def DeleteNotificationChannel(self, request, context): + """Deletes a notification channel. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SendNotificationChannelVerificationCode(self, request, context): - """Causes a verification code to be delivered to the channel. The code + def SendNotificationChannelVerificationCode(self, request, context): + """Causes a verification code to be delivered to the channel. The code can then be supplied in `VerifyNotificationChannel` to verify the channel. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetNotificationChannelVerificationCode(self, request, context): - """Requests a verification code for an already verified channel that can then + def GetNotificationChannelVerificationCode(self, request, context): + """Requests a verification code for an already verified channel that can then be used in a call to VerifyNotificationChannel() on a different channel with an equivalent identity in the same or in a different project. This makes it possible to copy a channel between projects without requiring @@ -162,73 +166,74 @@ def GetNotificationChannelVerificationCode(self, request, context): GetVerificationCode() will typically return a much longer, websafe base 64 encoded string that has a longer expiration time. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def VerifyNotificationChannel(self, request, context): - """Verifies a `NotificationChannel` by proving receipt of the code + def VerifyNotificationChannel(self, request, context): + """Verifies a `NotificationChannel` by proving receipt of the code delivered to the channel as a result of calling `SendNotificationChannelVerificationCode`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_NotificationChannelServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListNotificationChannelDescriptors': grpc.unary_unary_rpc_method_handler( - servicer.ListNotificationChannelDescriptors, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.SerializeToString, - ), - 'GetNotificationChannelDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.GetNotificationChannelDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.SerializeToString, - ), - 'ListNotificationChannels': grpc.unary_unary_rpc_method_handler( - servicer.ListNotificationChannels, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.SerializeToString, - ), - 'GetNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.GetNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - 'CreateNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.CreateNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - 'UpdateNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.UpdateNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - 'DeleteNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.DeleteNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'SendNotificationChannelVerificationCode': grpc.unary_unary_rpc_method_handler( - servicer.SendNotificationChannelVerificationCode, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetNotificationChannelVerificationCode': grpc.unary_unary_rpc_method_handler( - servicer.GetNotificationChannelVerificationCode, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.SerializeToString, - ), - 'VerifyNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.VerifyNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.NotificationChannelService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListNotificationChannelDescriptors": grpc.unary_unary_rpc_method_handler( + servicer.ListNotificationChannelDescriptors, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.SerializeToString, + ), + "GetNotificationChannelDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.GetNotificationChannelDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.SerializeToString, + ), + "ListNotificationChannels": grpc.unary_unary_rpc_method_handler( + servicer.ListNotificationChannels, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.SerializeToString, + ), + "GetNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.GetNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + "CreateNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.CreateNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + "UpdateNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.UpdateNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + "DeleteNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.DeleteNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "SendNotificationChannelVerificationCode": grpc.unary_unary_rpc_method_handler( + servicer.SendNotificationChannelVerificationCode, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetNotificationChannelVerificationCode": grpc.unary_unary_rpc_method_handler( + servicer.GetNotificationChannelVerificationCode, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.SerializeToString, + ), + "VerifyNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.VerifyNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.NotificationChannelService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py index 92c9b19a16dc6..476bf5ab0a247 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py @@ -2,67 +2,77 @@ # source: google/cloud/monitoring_v3/proto/span_context.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/span_context.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n3google/cloud/monitoring_v3/proto/span_context.proto\x12\x14google.monitoring.v3\" \n\x0bSpanContext\x12\x11\n\tspan_name\x18\x01 \x01(\tB\xa8\x01\n\x18\x63om.google.monitoring.v3B\x10SpanContextProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') + name="google/cloud/monitoring_v3/proto/span_context.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n3google/cloud/monitoring_v3/proto/span_context.proto\x12\x14google.monitoring.v3" \n\x0bSpanContext\x12\x11\n\tspan_name\x18\x01 \x01(\tB\xa8\x01\n\x18\x63om.google.monitoring.v3B\x10SpanContextProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), ) - - _SPANCONTEXT = _descriptor.Descriptor( - name='SpanContext', - full_name='google.monitoring.v3.SpanContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='span_name', full_name='google.monitoring.v3.SpanContext.span_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=77, - serialized_end=109, + name="SpanContext", + full_name="google.monitoring.v3.SpanContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="span_name", + full_name="google.monitoring.v3.SpanContext.span_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=77, + serialized_end=109, ) -DESCRIPTOR.message_types_by_name['SpanContext'] = _SPANCONTEXT +DESCRIPTOR.message_types_by_name["SpanContext"] = _SPANCONTEXT _sym_db.RegisterFileDescriptor(DESCRIPTOR) -SpanContext = _reflection.GeneratedProtocolMessageType('SpanContext', (_message.Message,), dict( - DESCRIPTOR = _SPANCONTEXT, - __module__ = 'google.cloud.monitoring_v3.proto.span_context_pb2' - , - __doc__ = """The context of a span, attached to google.api.Distribution.Exemplars in +SpanContext = _reflection.GeneratedProtocolMessageType( + "SpanContext", + (_message.Message,), + dict( + DESCRIPTOR=_SPANCONTEXT, + __module__="google.cloud.monitoring_v3.proto.span_context_pb2", + __doc__="""The context of a span, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation. It contains the name of a span with format: @@ -79,11 +89,17 @@ within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) + ), +) _sym_db.RegisterMessage(SpanContext) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\020SpanContextProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\020SpanContextProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py index c90bcc31cebaf..151bf2f6c70f2 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py @@ -2,88 +2,89 @@ # source: google/cloud/monitoring_v3/proto/uptime.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/uptime.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/monitoring_v3/proto/uptime.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x1egoogle/protobuf/duration.proto\"q\n\x0fInternalChecker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x10\n\x08gcp_zone\x18\x04 \x01(\t\x12\x17\n\x0fpeer_project_id\x18\x06 \x01(\t\"\xc1\t\n\x11UptimeCheckConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x12monitored_resource\x18\x03 \x01(\x0b\x32\x1d.google.api.MonitoredResourceH\x00\x12O\n\x0eresource_group\x18\x04 \x01(\x0b\x32\x35.google.monitoring.v3.UptimeCheckConfig.ResourceGroupH\x00\x12G\n\nhttp_check\x18\x05 \x01(\x0b\x32\x31.google.monitoring.v3.UptimeCheckConfig.HttpCheckH\x01\x12\x45\n\ttcp_check\x18\x06 \x01(\x0b\x32\x30.google.monitoring.v3.UptimeCheckConfig.TcpCheckH\x01\x12)\n\x06period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12P\n\x10\x63ontent_matchers\x18\t \x03(\x0b\x32\x36.google.monitoring.v3.UptimeCheckConfig.ContentMatcher\x12\x41\n\x10selected_regions\x18\n \x03(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x13\n\x0bis_internal\x18\x0f \x01(\x08\x12@\n\x11internal_checkers\x18\x0e \x03(\x0b\x32%.google.monitoring.v3.InternalChecker\x1a\x61\n\rResourceGroup\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12>\n\rresource_type\x18\x02 \x01(\x0e\x32\'.google.monitoring.v3.GroupResourceType\x1a\xe4\x02\n\tHttpCheck\x12\x0f\n\x07use_ssl\x18\x01 \x01(\x08\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12X\n\tauth_info\x18\x04 \x01(\x0b\x32\x45.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication\x12\x14\n\x0cmask_headers\x18\x05 \x01(\x08\x12O\n\x07headers\x18\x06 \x03(\x0b\x32>.google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry\x1a\x39\n\x13\x42\x61sicAuthentication\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08TcpCheck\x12\x0c\n\x04port\x18\x01 \x01(\x05\x1a!\n\x0e\x43ontentMatcher\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\tB\n\n\x08resourceB\x14\n\x12\x63heck_request_type\"n\n\rUptimeCheckIp\x12\x37\n\x06region\x18\x01 \x01(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t*e\n\x11UptimeCheckRegion\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x07\n\x03USA\x10\x01\x12\n\n\x06\x45UROPE\x10\x02\x12\x11\n\rSOUTH_AMERICA\x10\x03\x12\x10\n\x0c\x41SIA_PACIFIC\x10\x04*[\n\x11GroupResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x19\n\x15\x41WS_ELB_LOAD_BALANCER\x10\x02\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bUptimeProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + name="google/cloud/monitoring_v3/proto/uptime.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + "\n-google/cloud/monitoring_v3/proto/uptime.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x1egoogle/protobuf/duration.proto\"q\n\x0fInternalChecker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x10\n\x08gcp_zone\x18\x04 \x01(\t\x12\x17\n\x0fpeer_project_id\x18\x06 \x01(\t\"\xc1\t\n\x11UptimeCheckConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x12monitored_resource\x18\x03 \x01(\x0b\x32\x1d.google.api.MonitoredResourceH\x00\x12O\n\x0eresource_group\x18\x04 \x01(\x0b\x32\x35.google.monitoring.v3.UptimeCheckConfig.ResourceGroupH\x00\x12G\n\nhttp_check\x18\x05 \x01(\x0b\x32\x31.google.monitoring.v3.UptimeCheckConfig.HttpCheckH\x01\x12\x45\n\ttcp_check\x18\x06 \x01(\x0b\x32\x30.google.monitoring.v3.UptimeCheckConfig.TcpCheckH\x01\x12)\n\x06period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12P\n\x10\x63ontent_matchers\x18\t \x03(\x0b\x32\x36.google.monitoring.v3.UptimeCheckConfig.ContentMatcher\x12\x41\n\x10selected_regions\x18\n \x03(\x0e\x32'.google.monitoring.v3.UptimeCheckRegion\x12\x13\n\x0bis_internal\x18\x0f \x01(\x08\x12@\n\x11internal_checkers\x18\x0e \x03(\x0b\x32%.google.monitoring.v3.InternalChecker\x1a\x61\n\rResourceGroup\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12>\n\rresource_type\x18\x02 \x01(\x0e\x32'.google.monitoring.v3.GroupResourceType\x1a\xe4\x02\n\tHttpCheck\x12\x0f\n\x07use_ssl\x18\x01 \x01(\x08\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12X\n\tauth_info\x18\x04 \x01(\x0b\x32\x45.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication\x12\x14\n\x0cmask_headers\x18\x05 \x01(\x08\x12O\n\x07headers\x18\x06 \x03(\x0b\x32>.google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry\x1a\x39\n\x13\x42\x61sicAuthentication\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08TcpCheck\x12\x0c\n\x04port\x18\x01 \x01(\x05\x1a!\n\x0e\x43ontentMatcher\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\tB\n\n\x08resourceB\x14\n\x12\x63heck_request_type\"n\n\rUptimeCheckIp\x12\x37\n\x06region\x18\x01 \x01(\x0e\x32'.google.monitoring.v3.UptimeCheckRegion\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t*e\n\x11UptimeCheckRegion\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x07\n\x03USA\x10\x01\x12\n\n\x06\x45UROPE\x10\x02\x12\x11\n\rSOUTH_AMERICA\x10\x03\x12\x10\n\x0c\x41SIA_PACIFIC\x10\x04*[\n\x11GroupResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x19\n\x15\x41WS_ELB_LOAD_BALANCER\x10\x02\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bUptimeProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3" + ), + dependencies=[ + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + ], +) _UPTIMECHECKREGION = _descriptor.EnumDescriptor( - name='UptimeCheckRegion', - full_name='google.monitoring.v3.UptimeCheckRegion', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='REGION_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='USA', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EUROPE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SOUTH_AMERICA', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASIA_PACIFIC', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1587, - serialized_end=1688, + name="UptimeCheckRegion", + full_name="google.monitoring.v3.UptimeCheckRegion", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="REGION_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="USA", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EUROPE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SOUTH_AMERICA", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ASIA_PACIFIC", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1587, + serialized_end=1688, ) _sym_db.RegisterEnumDescriptor(_UPTIMECHECKREGION) UptimeCheckRegion = enum_type_wrapper.EnumTypeWrapper(_UPTIMECHECKREGION) _GROUPRESOURCETYPE = _descriptor.EnumDescriptor( - name='GroupResourceType', - full_name='google.monitoring.v3.GroupResourceType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='RESOURCE_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INSTANCE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AWS_ELB_LOAD_BALANCER', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1690, - serialized_end=1781, + name="GroupResourceType", + full_name="google.monitoring.v3.GroupResourceType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="RESOURCE_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INSTANCE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AWS_ELB_LOAD_BALANCER", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1690, + serialized_end=1781, ) _sym_db.RegisterEnumDescriptor(_GROUPRESOURCETYPE) @@ -98,503 +99,902 @@ AWS_ELB_LOAD_BALANCER = 2 - _INTERNALCHECKER = _descriptor.Descriptor( - name='InternalChecker', - full_name='google.monitoring.v3.InternalChecker', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.InternalChecker.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.InternalChecker.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='network', full_name='google.monitoring.v3.InternalChecker.network', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gcp_zone', full_name='google.monitoring.v3.InternalChecker.gcp_zone', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='peer_project_id', full_name='google.monitoring.v3.InternalChecker.peer_project_id', index=4, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=140, - serialized_end=253, + name="InternalChecker", + full_name="google.monitoring.v3.InternalChecker", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.InternalChecker.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.InternalChecker.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="network", + full_name="google.monitoring.v3.InternalChecker.network", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gcp_zone", + full_name="google.monitoring.v3.InternalChecker.gcp_zone", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="peer_project_id", + full_name="google.monitoring.v3.InternalChecker.peer_project_id", + index=4, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=140, + serialized_end=253, ) _UPTIMECHECKCONFIG_RESOURCEGROUP = _descriptor.Descriptor( - name='ResourceGroup', - full_name='google.monitoring.v3.UptimeCheckConfig.ResourceGroup', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group_id', full_name='google.monitoring.v3.UptimeCheckConfig.ResourceGroup.group_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_type', full_name='google.monitoring.v3.UptimeCheckConfig.ResourceGroup.resource_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=922, - serialized_end=1019, + name="ResourceGroup", + full_name="google.monitoring.v3.UptimeCheckConfig.ResourceGroup", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group_id", + full_name="google.monitoring.v3.UptimeCheckConfig.ResourceGroup.group_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_type", + full_name="google.monitoring.v3.UptimeCheckConfig.ResourceGroup.resource_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=922, + serialized_end=1019, ) _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION = _descriptor.Descriptor( - name='BasicAuthentication', - full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='username', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.username', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='password', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.password', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1273, - serialized_end=1330, + name="BasicAuthentication", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="username", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.username", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="password", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.password", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1273, + serialized_end=1330, ) _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1332, - serialized_end=1378, + name="HeadersEntry", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1332, + serialized_end=1378, ) _UPTIMECHECKCONFIG_HTTPCHECK = _descriptor.Descriptor( - name='HttpCheck', - full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='use_ssl', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.use_ssl', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.path', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='port', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.port', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='auth_info', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.auth_info', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mask_headers', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.mask_headers', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headers', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.headers', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1022, - serialized_end=1378, + name="HttpCheck", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="use_ssl", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.use_ssl", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="path", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.path", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="port", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.port", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="auth_info", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.auth_info", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mask_headers", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.mask_headers", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.headers", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, + _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1022, + serialized_end=1378, ) _UPTIMECHECKCONFIG_TCPCHECK = _descriptor.Descriptor( - name='TcpCheck', - full_name='google.monitoring.v3.UptimeCheckConfig.TcpCheck', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='port', full_name='google.monitoring.v3.UptimeCheckConfig.TcpCheck.port', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1380, - serialized_end=1404, + name="TcpCheck", + full_name="google.monitoring.v3.UptimeCheckConfig.TcpCheck", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="port", + full_name="google.monitoring.v3.UptimeCheckConfig.TcpCheck.port", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1380, + serialized_end=1404, ) _UPTIMECHECKCONFIG_CONTENTMATCHER = _descriptor.Descriptor( - name='ContentMatcher', - full_name='google.monitoring.v3.UptimeCheckConfig.ContentMatcher', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.monitoring.v3.UptimeCheckConfig.ContentMatcher.content', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1406, - serialized_end=1439, + name="ContentMatcher", + full_name="google.monitoring.v3.UptimeCheckConfig.ContentMatcher", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.monitoring.v3.UptimeCheckConfig.ContentMatcher.content", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1406, + serialized_end=1439, ) _UPTIMECHECKCONFIG = _descriptor.Descriptor( - name='UptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.UptimeCheckConfig.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.UptimeCheckConfig.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='monitored_resource', full_name='google.monitoring.v3.UptimeCheckConfig.monitored_resource', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_group', full_name='google.monitoring.v3.UptimeCheckConfig.resource_group', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_check', full_name='google.monitoring.v3.UptimeCheckConfig.http_check', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tcp_check', full_name='google.monitoring.v3.UptimeCheckConfig.tcp_check', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='period', full_name='google.monitoring.v3.UptimeCheckConfig.period', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timeout', full_name='google.monitoring.v3.UptimeCheckConfig.timeout', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_matchers', full_name='google.monitoring.v3.UptimeCheckConfig.content_matchers', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='selected_regions', full_name='google.monitoring.v3.UptimeCheckConfig.selected_regions', index=9, - number=10, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_internal', full_name='google.monitoring.v3.UptimeCheckConfig.is_internal', index=10, - number=15, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='internal_checkers', full_name='google.monitoring.v3.UptimeCheckConfig.internal_checkers', index=11, - number=14, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_UPTIMECHECKCONFIG_RESOURCEGROUP, _UPTIMECHECKCONFIG_HTTPCHECK, _UPTIMECHECKCONFIG_TCPCHECK, _UPTIMECHECKCONFIG_CONTENTMATCHER, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='resource', full_name='google.monitoring.v3.UptimeCheckConfig.resource', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='check_request_type', full_name='google.monitoring.v3.UptimeCheckConfig.check_request_type', - index=1, containing_type=None, fields=[]), - ], - serialized_start=256, - serialized_end=1473, + name="UptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.UptimeCheckConfig.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.UptimeCheckConfig.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="monitored_resource", + full_name="google.monitoring.v3.UptimeCheckConfig.monitored_resource", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_group", + full_name="google.monitoring.v3.UptimeCheckConfig.resource_group", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="http_check", + full_name="google.monitoring.v3.UptimeCheckConfig.http_check", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tcp_check", + full_name="google.monitoring.v3.UptimeCheckConfig.tcp_check", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="period", + full_name="google.monitoring.v3.UptimeCheckConfig.period", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timeout", + full_name="google.monitoring.v3.UptimeCheckConfig.timeout", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content_matchers", + full_name="google.monitoring.v3.UptimeCheckConfig.content_matchers", + index=8, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="selected_regions", + full_name="google.monitoring.v3.UptimeCheckConfig.selected_regions", + index=9, + number=10, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_internal", + full_name="google.monitoring.v3.UptimeCheckConfig.is_internal", + index=10, + number=15, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="internal_checkers", + full_name="google.monitoring.v3.UptimeCheckConfig.internal_checkers", + index=11, + number=14, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _UPTIMECHECKCONFIG_RESOURCEGROUP, + _UPTIMECHECKCONFIG_HTTPCHECK, + _UPTIMECHECKCONFIG_TCPCHECK, + _UPTIMECHECKCONFIG_CONTENTMATCHER, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="resource", + full_name="google.monitoring.v3.UptimeCheckConfig.resource", + index=0, + containing_type=None, + fields=[], + ), + _descriptor.OneofDescriptor( + name="check_request_type", + full_name="google.monitoring.v3.UptimeCheckConfig.check_request_type", + index=1, + containing_type=None, + fields=[], + ), + ], + serialized_start=256, + serialized_end=1473, ) _UPTIMECHECKIP = _descriptor.Descriptor( - name='UptimeCheckIp', - full_name='google.monitoring.v3.UptimeCheckIp', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='region', full_name='google.monitoring.v3.UptimeCheckIp.region', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location', full_name='google.monitoring.v3.UptimeCheckIp.location', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ip_address', full_name='google.monitoring.v3.UptimeCheckIp.ip_address', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1475, - serialized_end=1585, + name="UptimeCheckIp", + full_name="google.monitoring.v3.UptimeCheckIp", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="region", + full_name="google.monitoring.v3.UptimeCheckIp.region", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location", + full_name="google.monitoring.v3.UptimeCheckIp.location", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ip_address", + full_name="google.monitoring.v3.UptimeCheckIp.ip_address", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1475, + serialized_end=1585, ) -_UPTIMECHECKCONFIG_RESOURCEGROUP.fields_by_name['resource_type'].enum_type = _GROUPRESOURCETYPE +_UPTIMECHECKCONFIG_RESOURCEGROUP.fields_by_name[ + "resource_type" +].enum_type = _GROUPRESOURCETYPE _UPTIMECHECKCONFIG_RESOURCEGROUP.containing_type = _UPTIMECHECKCONFIG -_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION.containing_type = _UPTIMECHECKCONFIG_HTTPCHECK +_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION.containing_type = ( + _UPTIMECHECKCONFIG_HTTPCHECK +) _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY.containing_type = _UPTIMECHECKCONFIG_HTTPCHECK -_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name['auth_info'].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION -_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name['headers'].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY +_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name[ + "auth_info" +].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION +_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name[ + "headers" +].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY _UPTIMECHECKCONFIG_HTTPCHECK.containing_type = _UPTIMECHECKCONFIG _UPTIMECHECKCONFIG_TCPCHECK.containing_type = _UPTIMECHECKCONFIG _UPTIMECHECKCONFIG_CONTENTMATCHER.containing_type = _UPTIMECHECKCONFIG -_UPTIMECHECKCONFIG.fields_by_name['monitored_resource'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE -_UPTIMECHECKCONFIG.fields_by_name['resource_group'].message_type = _UPTIMECHECKCONFIG_RESOURCEGROUP -_UPTIMECHECKCONFIG.fields_by_name['http_check'].message_type = _UPTIMECHECKCONFIG_HTTPCHECK -_UPTIMECHECKCONFIG.fields_by_name['tcp_check'].message_type = _UPTIMECHECKCONFIG_TCPCHECK -_UPTIMECHECKCONFIG.fields_by_name['period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_UPTIMECHECKCONFIG.fields_by_name['timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_UPTIMECHECKCONFIG.fields_by_name['content_matchers'].message_type = _UPTIMECHECKCONFIG_CONTENTMATCHER -_UPTIMECHECKCONFIG.fields_by_name['selected_regions'].enum_type = _UPTIMECHECKREGION -_UPTIMECHECKCONFIG.fields_by_name['internal_checkers'].message_type = _INTERNALCHECKER -_UPTIMECHECKCONFIG.oneofs_by_name['resource'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['monitored_resource']) -_UPTIMECHECKCONFIG.fields_by_name['monitored_resource'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['resource'] -_UPTIMECHECKCONFIG.oneofs_by_name['resource'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['resource_group']) -_UPTIMECHECKCONFIG.fields_by_name['resource_group'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['resource'] -_UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['http_check']) -_UPTIMECHECKCONFIG.fields_by_name['http_check'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'] -_UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['tcp_check']) -_UPTIMECHECKCONFIG.fields_by_name['tcp_check'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'] -_UPTIMECHECKIP.fields_by_name['region'].enum_type = _UPTIMECHECKREGION -DESCRIPTOR.message_types_by_name['InternalChecker'] = _INTERNALCHECKER -DESCRIPTOR.message_types_by_name['UptimeCheckConfig'] = _UPTIMECHECKCONFIG -DESCRIPTOR.message_types_by_name['UptimeCheckIp'] = _UPTIMECHECKIP -DESCRIPTOR.enum_types_by_name['UptimeCheckRegion'] = _UPTIMECHECKREGION -DESCRIPTOR.enum_types_by_name['GroupResourceType'] = _GROUPRESOURCETYPE +_UPTIMECHECKCONFIG.fields_by_name[ + "monitored_resource" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE +_UPTIMECHECKCONFIG.fields_by_name[ + "resource_group" +].message_type = _UPTIMECHECKCONFIG_RESOURCEGROUP +_UPTIMECHECKCONFIG.fields_by_name[ + "http_check" +].message_type = _UPTIMECHECKCONFIG_HTTPCHECK +_UPTIMECHECKCONFIG.fields_by_name[ + "tcp_check" +].message_type = _UPTIMECHECKCONFIG_TCPCHECK +_UPTIMECHECKCONFIG.fields_by_name[ + "period" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_UPTIMECHECKCONFIG.fields_by_name[ + "timeout" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_UPTIMECHECKCONFIG.fields_by_name[ + "content_matchers" +].message_type = _UPTIMECHECKCONFIG_CONTENTMATCHER +_UPTIMECHECKCONFIG.fields_by_name["selected_regions"].enum_type = _UPTIMECHECKREGION +_UPTIMECHECKCONFIG.fields_by_name["internal_checkers"].message_type = _INTERNALCHECKER +_UPTIMECHECKCONFIG.oneofs_by_name["resource"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["monitored_resource"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "monitored_resource" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["resource"] +_UPTIMECHECKCONFIG.oneofs_by_name["resource"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["resource_group"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "resource_group" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["resource"] +_UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["http_check"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "http_check" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"] +_UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["tcp_check"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "tcp_check" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"] +_UPTIMECHECKIP.fields_by_name["region"].enum_type = _UPTIMECHECKREGION +DESCRIPTOR.message_types_by_name["InternalChecker"] = _INTERNALCHECKER +DESCRIPTOR.message_types_by_name["UptimeCheckConfig"] = _UPTIMECHECKCONFIG +DESCRIPTOR.message_types_by_name["UptimeCheckIp"] = _UPTIMECHECKIP +DESCRIPTOR.enum_types_by_name["UptimeCheckRegion"] = _UPTIMECHECKREGION +DESCRIPTOR.enum_types_by_name["GroupResourceType"] = _GROUPRESOURCETYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -InternalChecker = _reflection.GeneratedProtocolMessageType('InternalChecker', (_message.Message,), dict( - DESCRIPTOR = _INTERNALCHECKER, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """An internal checker allows uptime checks to run on private/internal GCP +InternalChecker = _reflection.GeneratedProtocolMessageType( + "InternalChecker", + (_message.Message,), + dict( + DESCRIPTOR=_INTERNALCHECKER, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""An internal checker allows uptime checks to run on private/internal GCP resources. @@ -620,17 +1020,22 @@ The GCP project\_id where the internal checker lives. Not necessary the same as the workspace project. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) + ), +) _sym_db.RegisterMessage(InternalChecker) -UptimeCheckConfig = _reflection.GeneratedProtocolMessageType('UptimeCheckConfig', (_message.Message,), dict( - - ResourceGroup = _reflection.GeneratedProtocolMessageType('ResourceGroup', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_RESOURCEGROUP, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """The resource submessage for group checks. It can be used instead of a +UptimeCheckConfig = _reflection.GeneratedProtocolMessageType( + "UptimeCheckConfig", + (_message.Message,), + dict( + ResourceGroup=_reflection.GeneratedProtocolMessageType( + "ResourceGroup", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_RESOURCEGROUP, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. @@ -641,17 +1046,20 @@ resource_type: The resource type of the group members. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) - )) - , - - HttpCheck = _reflection.GeneratedProtocolMessageType('HttpCheck', (_message.Message,), dict( - - BasicAuthentication = _reflection.GeneratedProtocolMessageType('BasicAuthentication', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """A type of authentication to perform against the specified resource or + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) + ), + ), + HttpCheck=_reflection.GeneratedProtocolMessageType( + "HttpCheck", + (_message.Message,), + dict( + BasicAuthentication=_reflection.GeneratedProtocolMessageType( + "BasicAuthentication", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. @@ -662,20 +1070,21 @@ password: The password to authenticate. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) - )) - , - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry) - )) - , - DESCRIPTOR = _UPTIMECHECKCONFIG_HTTPCHECK, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Information involved in an HTTP/HTTPS uptime check request. + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) + ), + ), + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry) + ), + ), + DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Information involved in an HTTP/HTTPS uptime check request. Attributes: @@ -713,15 +1122,16 @@ call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) - )) - , - - TcpCheck = _reflection.GeneratedProtocolMessageType('TcpCheck', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_TCPCHECK, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Information required for a TCP uptime check request. + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) + ), + ), + TcpCheck=_reflection.GeneratedProtocolMessageType( + "TcpCheck", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_TCPCHECK, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Information required for a TCP uptime check request. Attributes: @@ -730,15 +1140,16 @@ combined with host (specified within the MonitoredResource) to construct the full URL. Required. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) - )) - , - - ContentMatcher = _reflection.GeneratedProtocolMessageType('ContentMatcher', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_CONTENTMATCHER, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Used to perform string matching. It allows substring and regular + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) + ), + ), + ContentMatcher=_reflection.GeneratedProtocolMessageType( + "ContentMatcher", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_CONTENTMATCHER, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Used to perform string matching. It allows substring and regular expressions, together with their negations. @@ -746,13 +1157,12 @@ content: String or regex content to match (max 1024 bytes) """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) - )) - , - DESCRIPTOR = _UPTIMECHECKCONFIG, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """This message configures which resources and services to monitor for + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) + ), + ), + DESCRIPTOR=_UPTIMECHECKCONFIG, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""This message configures which resources and services to monitor for availability. @@ -819,8 +1229,9 @@ egress from all the InternalCheckers configured for the project that owns this CheckConfig. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig) + ), +) _sym_db.RegisterMessage(UptimeCheckConfig) _sym_db.RegisterMessage(UptimeCheckConfig.ResourceGroup) _sym_db.RegisterMessage(UptimeCheckConfig.HttpCheck) @@ -829,11 +1240,13 @@ _sym_db.RegisterMessage(UptimeCheckConfig.TcpCheck) _sym_db.RegisterMessage(UptimeCheckConfig.ContentMatcher) -UptimeCheckIp = _reflection.GeneratedProtocolMessageType('UptimeCheckIp', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKIP, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Contains the region, location, and list of IP addresses where checkers +UptimeCheckIp = _reflection.GeneratedProtocolMessageType( + "UptimeCheckIp", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKIP, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Contains the region, location, and list of IP addresses where checkers in the location run from. @@ -853,13 +1266,21 @@ format indefinitely and should support interpreting this field in either IPv4 or IPv6 format. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckIp) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckIp) + ), +) _sym_db.RegisterMessage(UptimeCheckIp) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\013UptimeProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\013UptimeProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY.has_options = True -_UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py index 1a569cac826f9..6e0e46bf10513 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py @@ -2,357 +2,554 @@ # source: google/cloud/monitoring_v3/proto/uptime_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2 +from google.cloud.monitoring_v3.proto import ( + uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/uptime_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/monitoring_v3/proto/uptime_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/uptime.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"V\n\x1dListUptimeCheckConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x94\x01\n\x1eListUptimeCheckConfigsResponse\x12\x45\n\x14uptime_check_configs\x18\x01 \x03(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"+\n\x1bGetUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"v\n\x1e\x43reateUptimeCheckConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x44\n\x13uptime_check_config\x18\x02 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\"\x97\x01\n\x1eUpdateUptimeCheckConfigRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x44\n\x13uptime_check_config\x18\x03 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\".\n\x1e\x44\x65leteUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"B\n\x19ListUptimeCheckIpsRequest\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x1aListUptimeCheckIpsResponse\x12=\n\x10uptime_check_ips\x18\x01 \x03(\x0b\x32#.google.monitoring.v3.UptimeCheckIp\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xc7\x08\n\x12UptimeCheckService\x12\xb7\x01\n\x16ListUptimeCheckConfigs\x12\x33.google.monitoring.v3.ListUptimeCheckConfigsRequest\x1a\x34.google.monitoring.v3.ListUptimeCheckConfigsResponse\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*}/uptimeCheckConfigs\x12\xa6\x01\n\x14GetUptimeCheckConfig\x12\x31.google.monitoring.v3.GetUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\xc1\x01\n\x17\x43reateUptimeCheckConfig\x12\x34.google.monitoring.v3.CreateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig\"G\x82\xd3\xe4\x93\x02\x41\"*/v3/{parent=projects/*}/uptimeCheckConfigs:\x13uptime_check_config\x12\xd5\x01\n\x17UpdateUptimeCheckConfig\x12\x34.google.monitoring.v3.UpdateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig\"[\x82\xd3\xe4\x93\x02U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\x13uptime_check_config\x12\x9b\x01\n\x17\x44\x65leteUptimeCheckConfig\x12\x34.google.monitoring.v3.DeleteUptimeCheckConfigRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\x93\x01\n\x12ListUptimeCheckIps\x12/.google.monitoring.v3.ListUptimeCheckIpsRequest\x1a\x30.google.monitoring.v3.ListUptimeCheckIpsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v3/uptimeCheckIpsB\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12UptimeServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/uptime_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n5google/cloud/monitoring_v3/proto/uptime_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/uptime.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"V\n\x1dListUptimeCheckConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x94\x01\n\x1eListUptimeCheckConfigsResponse\x12\x45\n\x14uptime_check_configs\x18\x01 \x03(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05"+\n\x1bGetUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"v\n\x1e\x43reateUptimeCheckConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x44\n\x13uptime_check_config\x18\x02 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig"\x97\x01\n\x1eUpdateUptimeCheckConfigRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x44\n\x13uptime_check_config\x18\x03 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig".\n\x1e\x44\x65leteUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"B\n\x19ListUptimeCheckIpsRequest\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"t\n\x1aListUptimeCheckIpsResponse\x12=\n\x10uptime_check_ips\x18\x01 \x03(\x0b\x32#.google.monitoring.v3.UptimeCheckIp\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xc7\x08\n\x12UptimeCheckService\x12\xb7\x01\n\x16ListUptimeCheckConfigs\x12\x33.google.monitoring.v3.ListUptimeCheckConfigsRequest\x1a\x34.google.monitoring.v3.ListUptimeCheckConfigsResponse"2\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*}/uptimeCheckConfigs\x12\xa6\x01\n\x14GetUptimeCheckConfig\x12\x31.google.monitoring.v3.GetUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\xc1\x01\n\x17\x43reateUptimeCheckConfig\x12\x34.google.monitoring.v3.CreateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"G\x82\xd3\xe4\x93\x02\x41"*/v3/{parent=projects/*}/uptimeCheckConfigs:\x13uptime_check_config\x12\xd5\x01\n\x17UpdateUptimeCheckConfig\x12\x34.google.monitoring.v3.UpdateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"[\x82\xd3\xe4\x93\x02U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\x13uptime_check_config\x12\x9b\x01\n\x17\x44\x65leteUptimeCheckConfig\x12\x34.google.monitoring.v3.DeleteUptimeCheckConfigRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\x93\x01\n\x12ListUptimeCheckIps\x12/.google.monitoring.v3.ListUptimeCheckIpsRequest\x1a\x30.google.monitoring.v3.ListUptimeCheckIpsResponse"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v3/uptimeCheckIpsB\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12UptimeServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _LISTUPTIMECHECKCONFIGSREQUEST = _descriptor.Descriptor( - name='ListUptimeCheckConfigsRequest', - full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest.page_size', index=1, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest.page_token', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=219, - serialized_end=305, + name="ListUptimeCheckConfigsRequest", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest.page_size", + index=1, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest.page_token", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=219, + serialized_end=305, ) _LISTUPTIMECHECKCONFIGSRESPONSE = _descriptor.Descriptor( - name='ListUptimeCheckConfigsResponse', - full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uptime_check_configs', full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse.uptime_check_configs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_size', full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse.total_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=308, - serialized_end=456, + name="ListUptimeCheckConfigsResponse", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uptime_check_configs", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse.uptime_check_configs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_size", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse.total_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=308, + serialized_end=456, ) _GETUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='GetUptimeCheckConfigRequest', - full_name='google.monitoring.v3.GetUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetUptimeCheckConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=458, - serialized_end=501, + name="GetUptimeCheckConfigRequest", + full_name="google.monitoring.v3.GetUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetUptimeCheckConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=458, + serialized_end=501, ) _CREATEUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='CreateUptimeCheckConfigRequest', - full_name='google.monitoring.v3.CreateUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.monitoring.v3.CreateUptimeCheckConfigRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uptime_check_config', full_name='google.monitoring.v3.CreateUptimeCheckConfigRequest.uptime_check_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=503, - serialized_end=621, + name="CreateUptimeCheckConfigRequest", + full_name="google.monitoring.v3.CreateUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.monitoring.v3.CreateUptimeCheckConfigRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uptime_check_config", + full_name="google.monitoring.v3.CreateUptimeCheckConfigRequest.uptime_check_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=503, + serialized_end=621, ) _UPDATEUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='UpdateUptimeCheckConfigRequest', - full_name='google.monitoring.v3.UpdateUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.monitoring.v3.UpdateUptimeCheckConfigRequest.update_mask', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uptime_check_config', full_name='google.monitoring.v3.UpdateUptimeCheckConfigRequest.uptime_check_config', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=624, - serialized_end=775, + name="UpdateUptimeCheckConfigRequest", + full_name="google.monitoring.v3.UpdateUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.monitoring.v3.UpdateUptimeCheckConfigRequest.update_mask", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uptime_check_config", + full_name="google.monitoring.v3.UpdateUptimeCheckConfigRequest.uptime_check_config", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=624, + serialized_end=775, ) _DELETEUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='DeleteUptimeCheckConfigRequest', - full_name='google.monitoring.v3.DeleteUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteUptimeCheckConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=777, - serialized_end=823, + name="DeleteUptimeCheckConfigRequest", + full_name="google.monitoring.v3.DeleteUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteUptimeCheckConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=777, + serialized_end=823, ) _LISTUPTIMECHECKIPSREQUEST = _descriptor.Descriptor( - name='ListUptimeCheckIpsRequest', - full_name='google.monitoring.v3.ListUptimeCheckIpsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListUptimeCheckIpsRequest.page_size', index=0, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListUptimeCheckIpsRequest.page_token', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=825, - serialized_end=891, + name="ListUptimeCheckIpsRequest", + full_name="google.monitoring.v3.ListUptimeCheckIpsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListUptimeCheckIpsRequest.page_size", + index=0, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListUptimeCheckIpsRequest.page_token", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=825, + serialized_end=891, ) _LISTUPTIMECHECKIPSRESPONSE = _descriptor.Descriptor( - name='ListUptimeCheckIpsResponse', - full_name='google.monitoring.v3.ListUptimeCheckIpsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uptime_check_ips', full_name='google.monitoring.v3.ListUptimeCheckIpsResponse.uptime_check_ips', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListUptimeCheckIpsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=893, - serialized_end=1009, + name="ListUptimeCheckIpsResponse", + full_name="google.monitoring.v3.ListUptimeCheckIpsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uptime_check_ips", + full_name="google.monitoring.v3.ListUptimeCheckIpsResponse.uptime_check_ips", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListUptimeCheckIpsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=893, + serialized_end=1009, ) -_LISTUPTIMECHECKCONFIGSRESPONSE.fields_by_name['uptime_check_configs'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG -_CREATEUPTIMECHECKCONFIGREQUEST.fields_by_name['uptime_check_config'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG -_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name['uptime_check_config'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG -_LISTUPTIMECHECKIPSRESPONSE.fields_by_name['uptime_check_ips'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKIP -DESCRIPTOR.message_types_by_name['ListUptimeCheckConfigsRequest'] = _LISTUPTIMECHECKCONFIGSREQUEST -DESCRIPTOR.message_types_by_name['ListUptimeCheckConfigsResponse'] = _LISTUPTIMECHECKCONFIGSRESPONSE -DESCRIPTOR.message_types_by_name['GetUptimeCheckConfigRequest'] = _GETUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['CreateUptimeCheckConfigRequest'] = _CREATEUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['UpdateUptimeCheckConfigRequest'] = _UPDATEUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['DeleteUptimeCheckConfigRequest'] = _DELETEUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['ListUptimeCheckIpsRequest'] = _LISTUPTIMECHECKIPSREQUEST -DESCRIPTOR.message_types_by_name['ListUptimeCheckIpsResponse'] = _LISTUPTIMECHECKIPSRESPONSE +_LISTUPTIMECHECKCONFIGSRESPONSE.fields_by_name[ + "uptime_check_configs" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG +) +_CREATEUPTIMECHECKCONFIGREQUEST.fields_by_name[ + "uptime_check_config" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG +) +_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name[ + "uptime_check_config" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG +) +_LISTUPTIMECHECKIPSRESPONSE.fields_by_name[ + "uptime_check_ips" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKIP +) +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckConfigsRequest" +] = _LISTUPTIMECHECKCONFIGSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckConfigsResponse" +] = _LISTUPTIMECHECKCONFIGSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetUptimeCheckConfigRequest" +] = _GETUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateUptimeCheckConfigRequest" +] = _CREATEUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateUptimeCheckConfigRequest" +] = _UPDATEUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteUptimeCheckConfigRequest" +] = _DELETEUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckIpsRequest" +] = _LISTUPTIMECHECKIPSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckIpsResponse" +] = _LISTUPTIMECHECKIPSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListUptimeCheckConfigsRequest = _reflection.GeneratedProtocolMessageType('ListUptimeCheckConfigsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKCONFIGSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckConfigs`` request. +ListUptimeCheckConfigsRequest = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckConfigsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKCONFIGSREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckConfigs`` request. Attributes: @@ -370,15 +567,18 @@ method. Using this field causes the method to return more results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) + ), +) _sym_db.RegisterMessage(ListUptimeCheckConfigsRequest) -ListUptimeCheckConfigsResponse = _reflection.GeneratedProtocolMessageType('ListUptimeCheckConfigsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKCONFIGSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckConfigs`` response. +ListUptimeCheckConfigsResponse = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckConfigsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKCONFIGSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckConfigs`` response. Attributes: @@ -395,15 +595,18 @@ The total number of uptime check configurations for the project, irrespective of any pagination. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) + ), +) _sym_db.RegisterMessage(ListUptimeCheckConfigsResponse) -GetUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('GetUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _GETUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``GetUptimeCheckConfig`` request. +GetUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "GetUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``GetUptimeCheckConfig`` request. Attributes: @@ -411,15 +614,18 @@ The uptime check configuration to retrieve. The format is ``pr ojects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(GetUptimeCheckConfigRequest) -CreateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('CreateUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``CreateUptimeCheckConfig`` request. +CreateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "CreateUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``CreateUptimeCheckConfig`` request. Attributes: @@ -429,15 +635,18 @@ uptime_check_config: The new uptime check configuration. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(CreateUptimeCheckConfigRequest) -UpdateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('UpdateUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``UpdateUptimeCheckConfig`` request. +UpdateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "UpdateUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``UpdateUptimeCheckConfig`` request. Attributes: @@ -460,15 +669,18 @@ ``tcp_check``, ``timeout``, ``content_matchers``, and ``selected_regions``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(UpdateUptimeCheckConfigRequest) -DeleteUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('DeleteUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``DeleteUptimeCheckConfig`` request. +DeleteUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "DeleteUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``DeleteUptimeCheckConfig`` request. Attributes: @@ -476,15 +688,18 @@ The uptime check configuration to delete. The format is ``proj ects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(DeleteUptimeCheckConfigRequest) -ListUptimeCheckIpsRequest = _reflection.GeneratedProtocolMessageType('ListUptimeCheckIpsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKIPSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckIps`` request. +ListUptimeCheckIpsRequest = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckIpsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKIPSREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckIps`` request. Attributes: @@ -501,15 +716,18 @@ results from the previous method call. NOTE: this field is not yet implemented """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) + ), +) _sym_db.RegisterMessage(ListUptimeCheckIpsRequest) -ListUptimeCheckIpsResponse = _reflection.GeneratedProtocolMessageType('ListUptimeCheckIpsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKIPSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckIps`` response. +ListUptimeCheckIpsResponse = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckIpsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKIPSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckIps`` response. Attributes: @@ -524,80 +742,113 @@ subsequent List method call (in the request message's page\_token field). NOTE: this field is not yet implemented """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) + ), +) _sym_db.RegisterMessage(ListUptimeCheckIpsResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\022UptimeServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\022UptimeServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _UPTIMECHECKSERVICE = _descriptor.ServiceDescriptor( - name='UptimeCheckService', - full_name='google.monitoring.v3.UptimeCheckService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1012, - serialized_end=2107, - methods=[ - _descriptor.MethodDescriptor( - name='ListUptimeCheckConfigs', - full_name='google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs', + name="UptimeCheckService", + full_name="google.monitoring.v3.UptimeCheckService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTUPTIMECHECKCONFIGSREQUEST, - output_type=_LISTUPTIMECHECKCONFIGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptimeCheckConfigs')), - ), - _descriptor.MethodDescriptor( - name='GetUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig', - index=1, - containing_service=None, - input_type=_GETUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{name=projects/*/uptimeCheckConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig', - index=2, - containing_service=None, - input_type=_CREATEUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002A\"*/v3/{parent=projects/*}/uptimeCheckConfigs:\023uptime_check_config')), - ), - _descriptor.MethodDescriptor( - name='UpdateUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.UpdateUptimeCheckConfig', - index=3, - containing_service=None, - input_type=_UPDATEUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\023uptime_check_config')), - ), - _descriptor.MethodDescriptor( - name='DeleteUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.DeleteUptimeCheckConfig', - index=4, - containing_service=None, - input_type=_DELETEUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,**/v3/{name=projects/*/uptimeCheckConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='ListUptimeCheckIps', - full_name='google.monitoring.v3.UptimeCheckService.ListUptimeCheckIps', - index=5, - containing_service=None, - input_type=_LISTUPTIMECHECKIPSREQUEST, - output_type=_LISTUPTIMECHECKIPSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\024\022\022/v3/uptimeCheckIps')), - ), -]) + options=None, + serialized_start=1012, + serialized_end=2107, + methods=[ + _descriptor.MethodDescriptor( + name="ListUptimeCheckConfigs", + full_name="google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs", + index=0, + containing_service=None, + input_type=_LISTUPTIMECHECKCONFIGSREQUEST, + output_type=_LISTUPTIMECHECKCONFIGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptimeCheckConfigs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig", + index=1, + containing_service=None, + input_type=_GETUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{name=projects/*/uptimeCheckConfigs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig", + index=2, + containing_service=None, + input_type=_CREATEUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002A"*/v3/{parent=projects/*}/uptimeCheckConfigs:\023uptime_check_config' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.UpdateUptimeCheckConfig", + index=3, + containing_service=None, + input_type=_UPDATEUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\023uptime_check_config" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.DeleteUptimeCheckConfig", + index=4, + containing_service=None, + input_type=_DELETEUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002,**/v3/{name=projects/*/uptimeCheckConfigs/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListUptimeCheckIps", + full_name="google.monitoring.v3.UptimeCheckService.ListUptimeCheckIps", + index=5, + containing_service=None, + input_type=_LISTUPTIMECHECKIPSREQUEST, + output_type=_LISTUPTIMECHECKIPSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\024\022\022/v3/uptimeCheckIps"), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_UPTIMECHECKSERVICE) -DESCRIPTOR.services_by_name['UptimeCheckService'] = _UPTIMECHECKSERVICE +DESCRIPTOR.services_by_name["UptimeCheckService"] = _UPTIMECHECKSERVICE # @@protoc_insertion_point(module_scope) diff --git a/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py b/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py index 90dccd7de6c25..ed2e70ed8fd15 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py +++ b/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2 -from google.cloud.monitoring_v3.proto import uptime_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2 +from google.cloud.monitoring_v3.proto import ( + uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2, +) +from google.cloud.monitoring_v3.proto import ( + uptime_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class UptimeCheckServiceStub(object): - """The UptimeCheckService API is used to manage (list, create, delete, edit) + """The UptimeCheckService API is used to manage (list, create, delete, edit) uptime check configurations in the Stackdriver Monitoring product. An uptime check is a piece of configuration that determines which resources and services to monitor for availability. These configurations can also be @@ -17,46 +21,46 @@ class UptimeCheckServiceStub(object): and then clicking on "Uptime". """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListUptimeCheckConfigs = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/ListUptimeCheckConfigs', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.FromString, + self.ListUptimeCheckConfigs = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/ListUptimeCheckConfigs", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.FromString, ) - self.GetUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/GetUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, + self.GetUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/GetUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, ) - self.CreateUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/CreateUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, + self.CreateUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/CreateUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, ) - self.UpdateUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/UpdateUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, + self.UpdateUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/UpdateUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, ) - self.DeleteUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/DeleteUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/DeleteUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListUptimeCheckIps = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/ListUptimeCheckIps', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.FromString, + self.ListUptimeCheckIps = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/ListUptimeCheckIps", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.FromString, ) class UptimeCheckServiceServicer(object): - """The UptimeCheckService API is used to manage (list, create, delete, edit) + """The UptimeCheckService API is used to manage (list, create, delete, edit) uptime check configurations in the Stackdriver Monitoring product. An uptime check is a piece of configuration that determines which resources and services to monitor for availability. These configurations can also be @@ -66,88 +70,89 @@ class UptimeCheckServiceServicer(object): and then clicking on "Uptime". """ - def ListUptimeCheckConfigs(self, request, context): - """Lists the existing valid uptime check configurations for the project, + def ListUptimeCheckConfigs(self, request, context): + """Lists the existing valid uptime check configurations for the project, leaving out any invalid configurations. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetUptimeCheckConfig(self, request, context): - """Gets a single uptime check configuration. + def GetUptimeCheckConfig(self, request, context): + """Gets a single uptime check configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateUptimeCheckConfig(self, request, context): - """Creates a new uptime check configuration. + def CreateUptimeCheckConfig(self, request, context): + """Creates a new uptime check configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateUptimeCheckConfig(self, request, context): - """Updates an uptime check configuration. You can either replace the entire + def UpdateUptimeCheckConfig(self, request, context): + """Updates an uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via `"updateMask"`. Returns the updated configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteUptimeCheckConfig(self, request, context): - """Deletes an uptime check configuration. Note that this method will fail + def DeleteUptimeCheckConfig(self, request, context): + """Deletes an uptime check configuration. Note that this method will fail if the uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListUptimeCheckIps(self, request, context): - """Returns the list of IPs that checkers run from + def ListUptimeCheckIps(self, request, context): + """Returns the list of IPs that checkers run from """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_UptimeCheckServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListUptimeCheckConfigs': grpc.unary_unary_rpc_method_handler( - servicer.ListUptimeCheckConfigs, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.SerializeToString, - ), - 'GetUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, - ), - 'CreateUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.CreateUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, - ), - 'UpdateUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.UpdateUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, - ), - 'DeleteUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.DeleteUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListUptimeCheckIps': grpc.unary_unary_rpc_method_handler( - servicer.ListUptimeCheckIps, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.UptimeCheckService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListUptimeCheckConfigs": grpc.unary_unary_rpc_method_handler( + servicer.ListUptimeCheckConfigs, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.SerializeToString, + ), + "GetUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.GetUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, + ), + "CreateUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.CreateUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, + ), + "UpdateUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.UpdateUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, + ), + "DeleteUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.DeleteUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListUptimeCheckIps": grpc.unary_unary_rpc_method_handler( + servicer.ListUptimeCheckIps, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.UptimeCheckService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py b/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py index 507e84fc7ff51..7a81f9e4a3220 100644 --- a/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py +++ b/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/oslogin/common/common.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,156 +19,272 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/oslogin/common/common.proto', - package='google.cloud.oslogin.common', - syntax='proto3', - serialized_pb=_b('\n(google/cloud/oslogin/common/common.proto\x12\x1bgoogle.cloud.oslogin.common\x1a\x1cgoogle/api/annotations.proto\"\xa8\x01\n\x0cPosixAccount\x12\x0f\n\x07primary\x18\x01 \x01(\x08\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\x03\x12\x0b\n\x03gid\x18\x04 \x01(\x03\x12\x16\n\x0ehome_directory\x18\x05 \x01(\t\x12\r\n\x05shell\x18\x06 \x01(\t\x12\r\n\x05gecos\x18\x07 \x01(\t\x12\x11\n\tsystem_id\x18\x08 \x01(\t\x12\x12\n\naccount_id\x18\t \x01(\t\"N\n\x0cSshPublicKey\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x14\x65xpiration_time_usec\x18\x02 \x01(\x03\x12\x13\n\x0b\x66ingerprint\x18\x03 \x01(\tB\xae\x01\n\x1f\x63om.google.cloud.oslogin.commonB\x0cOsLoginProtoZAgoogle.golang.org/genproto/googleapis/cloud/oslogin/common;common\xaa\x02\x1bGoogle.Cloud.OsLogin.Common\xca\x02\x1bGoogle\\Cloud\\OsLogin\\Commonb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/oslogin/common/common.proto", + package="google.cloud.oslogin.common", + syntax="proto3", + serialized_pb=_b( + '\n(google/cloud/oslogin/common/common.proto\x12\x1bgoogle.cloud.oslogin.common\x1a\x1cgoogle/api/annotations.proto"\xa8\x01\n\x0cPosixAccount\x12\x0f\n\x07primary\x18\x01 \x01(\x08\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\x03\x12\x0b\n\x03gid\x18\x04 \x01(\x03\x12\x16\n\x0ehome_directory\x18\x05 \x01(\t\x12\r\n\x05shell\x18\x06 \x01(\t\x12\r\n\x05gecos\x18\x07 \x01(\t\x12\x11\n\tsystem_id\x18\x08 \x01(\t\x12\x12\n\naccount_id\x18\t \x01(\t"N\n\x0cSshPublicKey\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x14\x65xpiration_time_usec\x18\x02 \x01(\x03\x12\x13\n\x0b\x66ingerprint\x18\x03 \x01(\tB\xae\x01\n\x1f\x63om.google.cloud.oslogin.commonB\x0cOsLoginProtoZAgoogle.golang.org/genproto/googleapis/cloud/oslogin/common;common\xaa\x02\x1bGoogle.Cloud.OsLogin.Common\xca\x02\x1bGoogle\\Cloud\\OsLogin\\Commonb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _POSIXACCOUNT = _descriptor.Descriptor( - name='PosixAccount', - full_name='google.cloud.oslogin.common.PosixAccount', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='primary', full_name='google.cloud.oslogin.common.PosixAccount.primary', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='username', full_name='google.cloud.oslogin.common.PosixAccount.username', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='uid', full_name='google.cloud.oslogin.common.PosixAccount.uid', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='gid', full_name='google.cloud.oslogin.common.PosixAccount.gid', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='home_directory', full_name='google.cloud.oslogin.common.PosixAccount.home_directory', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='shell', full_name='google.cloud.oslogin.common.PosixAccount.shell', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='gecos', full_name='google.cloud.oslogin.common.PosixAccount.gecos', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='system_id', full_name='google.cloud.oslogin.common.PosixAccount.system_id', index=7, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='account_id', full_name='google.cloud.oslogin.common.PosixAccount.account_id', index=8, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=104, - serialized_end=272, + name="PosixAccount", + full_name="google.cloud.oslogin.common.PosixAccount", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="primary", + full_name="google.cloud.oslogin.common.PosixAccount.primary", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="username", + full_name="google.cloud.oslogin.common.PosixAccount.username", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="uid", + full_name="google.cloud.oslogin.common.PosixAccount.uid", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="gid", + full_name="google.cloud.oslogin.common.PosixAccount.gid", + index=3, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="home_directory", + full_name="google.cloud.oslogin.common.PosixAccount.home_directory", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="shell", + full_name="google.cloud.oslogin.common.PosixAccount.shell", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="gecos", + full_name="google.cloud.oslogin.common.PosixAccount.gecos", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="system_id", + full_name="google.cloud.oslogin.common.PosixAccount.system_id", + index=7, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="account_id", + full_name="google.cloud.oslogin.common.PosixAccount.account_id", + index=8, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=104, + serialized_end=272, ) _SSHPUBLICKEY = _descriptor.Descriptor( - name='SshPublicKey', - full_name='google.cloud.oslogin.common.SshPublicKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.oslogin.common.SshPublicKey.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='expiration_time_usec', full_name='google.cloud.oslogin.common.SshPublicKey.expiration_time_usec', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - _descriptor.FieldDescriptor( - name='fingerprint', full_name='google.cloud.oslogin.common.SshPublicKey.fingerprint', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=274, - serialized_end=352, + name="SshPublicKey", + full_name="google.cloud.oslogin.common.SshPublicKey", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.oslogin.common.SshPublicKey.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="expiration_time_usec", + full_name="google.cloud.oslogin.common.SshPublicKey.expiration_time_usec", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + _descriptor.FieldDescriptor( + name="fingerprint", + full_name="google.cloud.oslogin.common.SshPublicKey.fingerprint", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=274, + serialized_end=352, ) -DESCRIPTOR.message_types_by_name['PosixAccount'] = _POSIXACCOUNT -DESCRIPTOR.message_types_by_name['SshPublicKey'] = _SSHPUBLICKEY +DESCRIPTOR.message_types_by_name["PosixAccount"] = _POSIXACCOUNT +DESCRIPTOR.message_types_by_name["SshPublicKey"] = _SSHPUBLICKEY _sym_db.RegisterFileDescriptor(DESCRIPTOR) -PosixAccount = _reflection.GeneratedProtocolMessageType('PosixAccount', (_message.Message,), dict( - DESCRIPTOR = _POSIXACCOUNT, - __module__ = 'google.cloud.oslogin.common.common_pb2' - , - __doc__ = """The POSIX account information associated with a Google account. +PosixAccount = _reflection.GeneratedProtocolMessageType( + "PosixAccount", + (_message.Message,), + dict( + DESCRIPTOR=_POSIXACCOUNT, + __module__="google.cloud.oslogin.common.common_pb2", + __doc__="""The POSIX account information associated with a Google account. Attributes: @@ -190,15 +308,18 @@ account_id: Output only. A POSIX account identifier. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.common.PosixAccount) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.common.PosixAccount) + ), +) _sym_db.RegisterMessage(PosixAccount) -SshPublicKey = _reflection.GeneratedProtocolMessageType('SshPublicKey', (_message.Message,), dict( - DESCRIPTOR = _SSHPUBLICKEY, - __module__ = 'google.cloud.oslogin.common.common_pb2' - , - __doc__ = """The SSH public key information associated with a Google account. +SshPublicKey = _reflection.GeneratedProtocolMessageType( + "SshPublicKey", + (_message.Message,), + dict( + DESCRIPTOR=_SSHPUBLICKEY, + __module__="google.cloud.oslogin.common.common_pb2", + __doc__="""The SSH public key information associated with a Google account. Attributes: @@ -209,11 +330,17 @@ fingerprint: Output only. The SHA-256 fingerprint of the SSH public key. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.common.SshPublicKey) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.common.SshPublicKey) + ), +) _sym_db.RegisterMessage(SshPublicKey) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\037com.google.cloud.oslogin.commonB\014OsLoginProtoZAgoogle.golang.org/genproto/googleapis/cloud/oslogin/common;common\252\002\033Google.Cloud.OsLogin.Common\312\002\033Google\\Cloud\\OsLogin\\Common')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\037com.google.cloud.oslogin.commonB\014OsLoginProtoZAgoogle.golang.org/genproto/googleapis/cloud/oslogin/common;common\252\002\033Google.Cloud.OsLogin.Common\312\002\033Google\\Cloud\\OsLogin\\Common" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/oslogin/google/cloud/oslogin_v1/proto/common_pb2_grpc.py b/oslogin/google/cloud/oslogin_v1/proto/common_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/oslogin/google/cloud/oslogin_v1/proto/common_pb2_grpc.py +++ b/oslogin/google/cloud/oslogin_v1/proto/common_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py b/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py index 6bfb00fabe4c4..2a64d4c320f31 100644 --- a/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py +++ b/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py @@ -2,397 +2,592 @@ # source: google/cloud/oslogin_v1/proto/oslogin.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.oslogin_v1.proto import common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2 +from google.cloud.oslogin_v1.proto import ( + common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/oslogin_v1/proto/oslogin.proto', - package='google.cloud.oslogin.v1', - syntax='proto3', - serialized_pb=_b('\n+google/cloud/oslogin_v1/proto/oslogin.proto\x12\x17google.cloud.oslogin.v1\x1a\x1cgoogle/api/annotations.proto\x1a(google/cloud/oslogin/common/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa6\x02\n\x0cLoginProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x0eposix_accounts\x18\x02 \x03(\x0b\x32).google.cloud.oslogin.common.PosixAccount\x12Q\n\x0fssh_public_keys\x18\x03 \x03(\x0b\x32\x38.google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry\x12\x11\n\tsuspended\x18\x04 \x01(\x08\x1a_\n\x12SshPublicKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey:\x02\x38\x01\")\n\x19\x44\x65letePosixAccountRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\")\n\x19\x44\x65leteSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"&\n\x16GetLoginProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"&\n\x16GetSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x82\x01\n\x19ImportSshPublicKeyRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey\x12\x12\n\nproject_id\x18\x03 \x01(\t\"Z\n\x1aImportSshPublicKeyResponse\x12<\n\rlogin_profile\x18\x01 \x01(\x0b\x32%.google.cloud.oslogin.v1.LoginProfile\"\x9d\x01\n\x19UpdateSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xcd\x07\n\x0eOsLoginService\x12\x87\x01\n\x12\x44\x65letePosixAccount\x12\x32.google.cloud.oslogin.v1.DeletePosixAccountRequest\x1a\x16.google.protobuf.Empty\"%\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/projects/*}\x12\x8c\x01\n\x12\x44\x65leteSshPublicKey\x12\x32.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02$*\"/v1/{name=users/*/sshPublicKeys/*}\x12\x92\x01\n\x0fGetLoginProfile\x12/.google.cloud.oslogin.v1.GetLoginProfileRequest\x1a%.google.cloud.oslogin.v1.LoginProfile\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*}/loginProfile\x12\x99\x01\n\x0fGetSshPublicKey\x12/.google.cloud.oslogin.v1.GetSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{name=users/*/sshPublicKeys/*}\x12\xbe\x01\n\x12ImportSshPublicKey\x12\x32.google.cloud.oslogin.v1.ImportSshPublicKeyRequest\x1a\x33.google.cloud.oslogin.v1.ImportSshPublicKeyResponse\"?\x82\xd3\xe4\x93\x02\x39\"\'/v1/{parent=users/*}:importSshPublicKey:\x0essh_public_key\x12\xaf\x01\n\x12UpdateSshPublicKey\x12\x32.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey\":\x82\xd3\xe4\x93\x02\x34\x32\"/v1/{name=users/*/sshPublicKeys/*}:\x0essh_public_keyB\xa1\x01\n\x1b\x63om.google.cloud.oslogin.v1B\x0cOsLoginProtoP\x01Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\xaa\x02\x17Google.Cloud.OsLogin.V1\xca\x02\x17Google\\Cloud\\OsLogin\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/oslogin_v1/proto/oslogin.proto", + package="google.cloud.oslogin.v1", + syntax="proto3", + serialized_pb=_b( + '\n+google/cloud/oslogin_v1/proto/oslogin.proto\x12\x17google.cloud.oslogin.v1\x1a\x1cgoogle/api/annotations.proto\x1a(google/cloud/oslogin/common/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xa6\x02\n\x0cLoginProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x0eposix_accounts\x18\x02 \x03(\x0b\x32).google.cloud.oslogin.common.PosixAccount\x12Q\n\x0fssh_public_keys\x18\x03 \x03(\x0b\x32\x38.google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry\x12\x11\n\tsuspended\x18\x04 \x01(\x08\x1a_\n\x12SshPublicKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey:\x02\x38\x01")\n\x19\x44\x65letePosixAccountRequest\x12\x0c\n\x04name\x18\x01 \x01(\t")\n\x19\x44\x65leteSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"&\n\x16GetLoginProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"&\n\x16GetSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x82\x01\n\x19ImportSshPublicKeyRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey\x12\x12\n\nproject_id\x18\x03 \x01(\t"Z\n\x1aImportSshPublicKeyResponse\x12<\n\rlogin_profile\x18\x01 \x01(\x0b\x32%.google.cloud.oslogin.v1.LoginProfile"\x9d\x01\n\x19UpdateSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xcd\x07\n\x0eOsLoginService\x12\x87\x01\n\x12\x44\x65letePosixAccount\x12\x32.google.cloud.oslogin.v1.DeletePosixAccountRequest\x1a\x16.google.protobuf.Empty"%\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/projects/*}\x12\x8c\x01\n\x12\x44\x65leteSshPublicKey\x12\x32.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest\x1a\x16.google.protobuf.Empty"*\x82\xd3\xe4\x93\x02$*"/v1/{name=users/*/sshPublicKeys/*}\x12\x92\x01\n\x0fGetLoginProfile\x12/.google.cloud.oslogin.v1.GetLoginProfileRequest\x1a%.google.cloud.oslogin.v1.LoginProfile"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*}/loginProfile\x12\x99\x01\n\x0fGetSshPublicKey\x12/.google.cloud.oslogin.v1.GetSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey"*\x82\xd3\xe4\x93\x02$\x12"/v1/{name=users/*/sshPublicKeys/*}\x12\xbe\x01\n\x12ImportSshPublicKey\x12\x32.google.cloud.oslogin.v1.ImportSshPublicKeyRequest\x1a\x33.google.cloud.oslogin.v1.ImportSshPublicKeyResponse"?\x82\xd3\xe4\x93\x02\x39"\'/v1/{parent=users/*}:importSshPublicKey:\x0essh_public_key\x12\xaf\x01\n\x12UpdateSshPublicKey\x12\x32.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey":\x82\xd3\xe4\x93\x02\x34\x32"/v1/{name=users/*/sshPublicKeys/*}:\x0essh_public_keyB\xa1\x01\n\x1b\x63om.google.cloud.oslogin.v1B\x0cOsLoginProtoP\x01Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\xaa\x02\x17Google.Cloud.OsLogin.V1\xca\x02\x17Google\\Cloud\\OsLogin\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _LOGINPROFILE_SSHPUBLICKEYSENTRY = _descriptor.Descriptor( - name='SshPublicKeysEntry', - full_name='google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=407, - serialized_end=502, + name="SshPublicKeysEntry", + full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=407, + serialized_end=502, ) _LOGINPROFILE = _descriptor.Descriptor( - name='LoginProfile', - full_name='google.cloud.oslogin.v1.LoginProfile', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.oslogin.v1.LoginProfile.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='posix_accounts', full_name='google.cloud.oslogin.v1.LoginProfile.posix_accounts', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssh_public_keys', full_name='google.cloud.oslogin.v1.LoginProfile.ssh_public_keys', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='suspended', full_name='google.cloud.oslogin.v1.LoginProfile.suspended', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_LOGINPROFILE_SSHPUBLICKEYSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=208, - serialized_end=502, + name="LoginProfile", + full_name="google.cloud.oslogin.v1.LoginProfile", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.LoginProfile.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="posix_accounts", + full_name="google.cloud.oslogin.v1.LoginProfile.posix_accounts", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssh_public_keys", + full_name="google.cloud.oslogin.v1.LoginProfile.ssh_public_keys", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="suspended", + full_name="google.cloud.oslogin.v1.LoginProfile.suspended", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_LOGINPROFILE_SSHPUBLICKEYSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=208, + serialized_end=502, ) _DELETEPOSIXACCOUNTREQUEST = _descriptor.Descriptor( - name='DeletePosixAccountRequest', - full_name='google.cloud.oslogin.v1.DeletePosixAccountRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.oslogin.v1.DeletePosixAccountRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=504, - serialized_end=545, + name="DeletePosixAccountRequest", + full_name="google.cloud.oslogin.v1.DeletePosixAccountRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.DeletePosixAccountRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=504, + serialized_end=545, ) _DELETESSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name='DeleteSshPublicKeyRequest', - full_name='google.cloud.oslogin.v1.DeleteSshPublicKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=547, - serialized_end=588, + name="DeleteSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.DeleteSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=547, + serialized_end=588, ) _GETLOGINPROFILEREQUEST = _descriptor.Descriptor( - name='GetLoginProfileRequest', - full_name='google.cloud.oslogin.v1.GetLoginProfileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.oslogin.v1.GetLoginProfileRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=590, - serialized_end=628, + name="GetLoginProfileRequest", + full_name="google.cloud.oslogin.v1.GetLoginProfileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.GetLoginProfileRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=590, + serialized_end=628, ) _GETSSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name='GetSshPublicKeyRequest', - full_name='google.cloud.oslogin.v1.GetSshPublicKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.oslogin.v1.GetSshPublicKeyRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=630, - serialized_end=668, + name="GetSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.GetSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.GetSshPublicKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=630, + serialized_end=668, ) _IMPORTSSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name='ImportSshPublicKeyRequest', - full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssh_public_key', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest.ssh_public_key', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='project_id', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest.project_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=671, - serialized_end=801, + name="ImportSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssh_public_key", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.ssh_public_key", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.project_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=671, + serialized_end=801, ) _IMPORTSSHPUBLICKEYRESPONSE = _descriptor.Descriptor( - name='ImportSshPublicKeyResponse', - full_name='google.cloud.oslogin.v1.ImportSshPublicKeyResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='login_profile', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyResponse.login_profile', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=803, - serialized_end=893, + name="ImportSshPublicKeyResponse", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="login_profile", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyResponse.login_profile", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=803, + serialized_end=893, ) _UPDATESSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name='UpdateSshPublicKeyRequest', - full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssh_public_key', full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.ssh_public_key', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.update_mask', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=896, - serialized_end=1053, + name="UpdateSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssh_public_key", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.ssh_public_key", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.update_mask", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=896, + serialized_end=1053, ) -_LOGINPROFILE_SSHPUBLICKEYSENTRY.fields_by_name['value'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY +_LOGINPROFILE_SSHPUBLICKEYSENTRY.fields_by_name[ + "value" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY _LOGINPROFILE_SSHPUBLICKEYSENTRY.containing_type = _LOGINPROFILE -_LOGINPROFILE.fields_by_name['posix_accounts'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._POSIXACCOUNT -_LOGINPROFILE.fields_by_name['ssh_public_keys'].message_type = _LOGINPROFILE_SSHPUBLICKEYSENTRY -_IMPORTSSHPUBLICKEYREQUEST.fields_by_name['ssh_public_key'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY -_IMPORTSSHPUBLICKEYRESPONSE.fields_by_name['login_profile'].message_type = _LOGINPROFILE -_UPDATESSHPUBLICKEYREQUEST.fields_by_name['ssh_public_key'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY -_UPDATESSHPUBLICKEYREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name['LoginProfile'] = _LOGINPROFILE -DESCRIPTOR.message_types_by_name['DeletePosixAccountRequest'] = _DELETEPOSIXACCOUNTREQUEST -DESCRIPTOR.message_types_by_name['DeleteSshPublicKeyRequest'] = _DELETESSHPUBLICKEYREQUEST -DESCRIPTOR.message_types_by_name['GetLoginProfileRequest'] = _GETLOGINPROFILEREQUEST -DESCRIPTOR.message_types_by_name['GetSshPublicKeyRequest'] = _GETSSHPUBLICKEYREQUEST -DESCRIPTOR.message_types_by_name['ImportSshPublicKeyRequest'] = _IMPORTSSHPUBLICKEYREQUEST -DESCRIPTOR.message_types_by_name['ImportSshPublicKeyResponse'] = _IMPORTSSHPUBLICKEYRESPONSE -DESCRIPTOR.message_types_by_name['UpdateSshPublicKeyRequest'] = _UPDATESSHPUBLICKEYREQUEST +_LOGINPROFILE.fields_by_name[ + "posix_accounts" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._POSIXACCOUNT +_LOGINPROFILE.fields_by_name[ + "ssh_public_keys" +].message_type = _LOGINPROFILE_SSHPUBLICKEYSENTRY +_IMPORTSSHPUBLICKEYREQUEST.fields_by_name[ + "ssh_public_key" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY +_IMPORTSSHPUBLICKEYRESPONSE.fields_by_name["login_profile"].message_type = _LOGINPROFILE +_UPDATESSHPUBLICKEYREQUEST.fields_by_name[ + "ssh_public_key" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY +_UPDATESSHPUBLICKEYREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name["LoginProfile"] = _LOGINPROFILE +DESCRIPTOR.message_types_by_name[ + "DeletePosixAccountRequest" +] = _DELETEPOSIXACCOUNTREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteSshPublicKeyRequest" +] = _DELETESSHPUBLICKEYREQUEST +DESCRIPTOR.message_types_by_name["GetLoginProfileRequest"] = _GETLOGINPROFILEREQUEST +DESCRIPTOR.message_types_by_name["GetSshPublicKeyRequest"] = _GETSSHPUBLICKEYREQUEST +DESCRIPTOR.message_types_by_name[ + "ImportSshPublicKeyRequest" +] = _IMPORTSSHPUBLICKEYREQUEST +DESCRIPTOR.message_types_by_name[ + "ImportSshPublicKeyResponse" +] = _IMPORTSSHPUBLICKEYRESPONSE +DESCRIPTOR.message_types_by_name[ + "UpdateSshPublicKeyRequest" +] = _UPDATESSHPUBLICKEYREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -LoginProfile = _reflection.GeneratedProtocolMessageType('LoginProfile', (_message.Message,), dict( - - SshPublicKeysEntry = _reflection.GeneratedProtocolMessageType('SshPublicKeysEntry', (_message.Message,), dict( - DESCRIPTOR = _LOGINPROFILE_SSHPUBLICKEYSENTRY, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry) - )) - , - DESCRIPTOR = _LOGINPROFILE, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """The user profile information used for logging in to a virtual machine on +LoginProfile = _reflection.GeneratedProtocolMessageType( + "LoginProfile", + (_message.Message,), + dict( + SshPublicKeysEntry=_reflection.GeneratedProtocolMessageType( + "SshPublicKeysEntry", + (_message.Message,), + dict( + DESCRIPTOR=_LOGINPROFILE_SSHPUBLICKEYSENTRY, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry) + ), + ), + DESCRIPTOR=_LOGINPROFILE, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""The user profile information used for logging in to a virtual machine on Google Compute Engine. @@ -408,16 +603,19 @@ Indicates if the user is suspended. A suspended user cannot log in but their profile information is retained. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile) + ), +) _sym_db.RegisterMessage(LoginProfile) _sym_db.RegisterMessage(LoginProfile.SshPublicKeysEntry) -DeletePosixAccountRequest = _reflection.GeneratedProtocolMessageType('DeletePosixAccountRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEPOSIXACCOUNTREQUEST, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """A request message for deleting a POSIX account entry. +DeletePosixAccountRequest = _reflection.GeneratedProtocolMessageType( + "DeletePosixAccountRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEPOSIXACCOUNTREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for deleting a POSIX account entry. Attributes: @@ -427,15 +625,18 @@ reference to the POSIX account is in format ``users/{user}/projects/{project}``. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeletePosixAccountRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeletePosixAccountRequest) + ), +) _sym_db.RegisterMessage(DeletePosixAccountRequest) -DeleteSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('DeleteSshPublicKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETESSHPUBLICKEYREQUEST, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """A request message for deleting an SSH public key. +DeleteSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "DeleteSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for deleting an SSH public key. Attributes: @@ -445,15 +646,18 @@ the public key is in format ``users/{user}/sshPublicKeys/{fingerprint}``. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) + ), +) _sym_db.RegisterMessage(DeleteSshPublicKeyRequest) -GetLoginProfileRequest = _reflection.GeneratedProtocolMessageType('GetLoginProfileRequest', (_message.Message,), dict( - DESCRIPTOR = _GETLOGINPROFILEREQUEST, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """A request message for retrieving the login profile information for a +GetLoginProfileRequest = _reflection.GeneratedProtocolMessageType( + "GetLoginProfileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETLOGINPROFILEREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for retrieving the login profile information for a user. @@ -461,15 +665,18 @@ name: The unique ID for the user in format ``users/{user}``. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetLoginProfileRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetLoginProfileRequest) + ), +) _sym_db.RegisterMessage(GetLoginProfileRequest) -GetSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('GetSshPublicKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSSHPUBLICKEYREQUEST, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """A request message for retrieving an SSH public key. +GetSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "GetSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for retrieving an SSH public key. Attributes: @@ -479,15 +686,18 @@ the public key is in format ``users/{user}/sshPublicKeys/{fingerprint}``. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetSshPublicKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetSshPublicKeyRequest) + ), +) _sym_db.RegisterMessage(GetSshPublicKeyRequest) -ImportSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('ImportSshPublicKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _IMPORTSSHPUBLICKEYREQUEST, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """A request message for importing an SSH public key. +ImportSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "ImportSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTSSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for importing an SSH public key. Attributes: @@ -498,30 +708,36 @@ project_id: The project ID of the Google Cloud Platform project. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) + ), +) _sym_db.RegisterMessage(ImportSshPublicKeyRequest) -ImportSshPublicKeyResponse = _reflection.GeneratedProtocolMessageType('ImportSshPublicKeyResponse', (_message.Message,), dict( - DESCRIPTOR = _IMPORTSSHPUBLICKEYRESPONSE, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """A response message for importing an SSH public key. +ImportSshPublicKeyResponse = _reflection.GeneratedProtocolMessageType( + "ImportSshPublicKeyResponse", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTSSHPUBLICKEYRESPONSE, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A response message for importing an SSH public key. Attributes: login_profile: The login profile information for the user. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) + ), +) _sym_db.RegisterMessage(ImportSshPublicKeyResponse) -UpdateSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('UpdateSshPublicKeyRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATESSHPUBLICKEYREQUEST, - __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2' - , - __doc__ = """A request message for updating an SSH public key. +UpdateSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "UpdateSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATESSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for updating an SSH public key. Attributes: @@ -536,82 +752,113 @@ Mask to control which fields get updated. Updates all if not present. """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) + ), +) _sym_db.RegisterMessage(UpdateSshPublicKeyRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\033com.google.cloud.oslogin.v1B\014OsLoginProtoP\001Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\252\002\027Google.Cloud.OsLogin.V1\312\002\027Google\\Cloud\\OsLogin\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\033com.google.cloud.oslogin.v1B\014OsLoginProtoP\001Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\252\002\027Google.Cloud.OsLogin.V1\312\002\027Google\\Cloud\\OsLogin\\V1" + ), +) _LOGINPROFILE_SSHPUBLICKEYSENTRY.has_options = True -_LOGINPROFILE_SSHPUBLICKEYSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_LOGINPROFILE_SSHPUBLICKEYSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _OSLOGINSERVICE = _descriptor.ServiceDescriptor( - name='OsLoginService', - full_name='google.cloud.oslogin.v1.OsLoginService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1056, - serialized_end=2029, - methods=[ - _descriptor.MethodDescriptor( - name='DeletePosixAccount', - full_name='google.cloud.oslogin.v1.OsLoginService.DeletePosixAccount', + name="OsLoginService", + full_name="google.cloud.oslogin.v1.OsLoginService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_DELETEPOSIXACCOUNTREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037*\035/v1/{name=users/*/projects/*}')), - ), - _descriptor.MethodDescriptor( - name='DeleteSshPublicKey', - full_name='google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKey', - index=1, - containing_service=None, - input_type=_DELETESSHPUBLICKEYREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002$*\"/v1/{name=users/*/sshPublicKeys/*}')), - ), - _descriptor.MethodDescriptor( - name='GetLoginProfile', - full_name='google.cloud.oslogin.v1.OsLoginService.GetLoginProfile', - index=2, - containing_service=None, - input_type=_GETLOGINPROFILEREQUEST, - output_type=_LOGINPROFILE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002!\022\037/v1/{name=users/*}/loginProfile')), - ), - _descriptor.MethodDescriptor( - name='GetSshPublicKey', - full_name='google.cloud.oslogin.v1.OsLoginService.GetSshPublicKey', - index=3, - containing_service=None, - input_type=_GETSSHPUBLICKEYREQUEST, - output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002$\022\"/v1/{name=users/*/sshPublicKeys/*}')), - ), - _descriptor.MethodDescriptor( - name='ImportSshPublicKey', - full_name='google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKey', - index=4, - containing_service=None, - input_type=_IMPORTSSHPUBLICKEYREQUEST, - output_type=_IMPORTSSHPUBLICKEYRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\"\'/v1/{parent=users/*}:importSshPublicKey:\016ssh_public_key')), - ), - _descriptor.MethodDescriptor( - name='UpdateSshPublicKey', - full_name='google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKey', - index=5, - containing_service=None, - input_type=_UPDATESSHPUBLICKEYREQUEST, - output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\00242\"/v1/{name=users/*/sshPublicKeys/*}:\016ssh_public_key')), - ), -]) + options=None, + serialized_start=1056, + serialized_end=2029, + methods=[ + _descriptor.MethodDescriptor( + name="DeletePosixAccount", + full_name="google.cloud.oslogin.v1.OsLoginService.DeletePosixAccount", + index=0, + containing_service=None, + input_type=_DELETEPOSIXACCOUNTREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\037*\035/v1/{name=users/*/projects/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKey", + index=1, + containing_service=None, + input_type=_DELETESSHPUBLICKEYREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002$*"/v1/{name=users/*/sshPublicKeys/*}'), + ), + ), + _descriptor.MethodDescriptor( + name="GetLoginProfile", + full_name="google.cloud.oslogin.v1.OsLoginService.GetLoginProfile", + index=2, + containing_service=None, + input_type=_GETLOGINPROFILEREQUEST, + output_type=_LOGINPROFILE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002!\022\037/v1/{name=users/*}/loginProfile"), + ), + ), + _descriptor.MethodDescriptor( + name="GetSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.GetSshPublicKey", + index=3, + containing_service=None, + input_type=_GETSSHPUBLICKEYREQUEST, + output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002$\022"/v1/{name=users/*/sshPublicKeys/*}'), + ), + ), + _descriptor.MethodDescriptor( + name="ImportSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKey", + index=4, + containing_service=None, + input_type=_IMPORTSSHPUBLICKEYREQUEST, + output_type=_IMPORTSSHPUBLICKEYRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0029\"'/v1/{parent=users/*}:importSshPublicKey:\016ssh_public_key" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKey", + index=5, + containing_service=None, + input_type=_UPDATESSHPUBLICKEYREQUEST, + output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\00242"/v1/{name=users/*/sshPublicKeys/*}:\016ssh_public_key' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_OSLOGINSERVICE) -DESCRIPTOR.services_by_name['OsLoginService'] = _OSLOGINSERVICE +DESCRIPTOR.services_by_name["OsLoginService"] = _OSLOGINSERVICE # @@protoc_insertion_point(module_scope) diff --git a/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2_grpc.py b/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2_grpc.py index d7a8bcdfcf98d..6b002666a67b1 100644 --- a/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2_grpc.py +++ b/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2_grpc.py @@ -1,143 +1,148 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.oslogin_v1.proto import common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2 -from google.cloud.oslogin_v1.proto import oslogin_pb2 as google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2 +from google.cloud.oslogin_v1.proto import ( + common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2, +) +from google.cloud.oslogin_v1.proto import ( + oslogin_pb2 as google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class OsLoginServiceStub(object): - """Cloud OS Login API + """Cloud OS Login API The Cloud OS Login API allows you to manage users and their associated SSH public keys for logging into virtual machines on Google Cloud Platform. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.DeletePosixAccount = channel.unary_unary( - '/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount', - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeletePosixAccount = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.DeleteSshPublicKey = channel.unary_unary( - '/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey', - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetLoginProfile = channel.unary_unary( - '/google.cloud.oslogin.v1.OsLoginService/GetLoginProfile', - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.FromString, + self.GetLoginProfile = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/GetLoginProfile", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.FromString, ) - self.GetSshPublicKey = channel.unary_unary( - '/google.cloud.oslogin.v1.OsLoginService/GetSshPublicKey', - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, + self.GetSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/GetSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, ) - self.ImportSshPublicKey = channel.unary_unary( - '/google.cloud.oslogin.v1.OsLoginService/ImportSshPublicKey', - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.FromString, + self.ImportSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/ImportSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.FromString, ) - self.UpdateSshPublicKey = channel.unary_unary( - '/google.cloud.oslogin.v1.OsLoginService/UpdateSshPublicKey', - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, + self.UpdateSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/UpdateSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, ) class OsLoginServiceServicer(object): - """Cloud OS Login API + """Cloud OS Login API The Cloud OS Login API allows you to manage users and their associated SSH public keys for logging into virtual machines on Google Cloud Platform. """ - def DeletePosixAccount(self, request, context): - """Deletes a POSIX account. + def DeletePosixAccount(self, request, context): + """Deletes a POSIX account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteSshPublicKey(self, request, context): - """Deletes an SSH public key. + def DeleteSshPublicKey(self, request, context): + """Deletes an SSH public key. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetLoginProfile(self, request, context): - """Retrieves the profile information used for logging in to a virtual machine + def GetLoginProfile(self, request, context): + """Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetSshPublicKey(self, request, context): - """Retrieves an SSH public key. + def GetSshPublicKey(self, request, context): + """Retrieves an SSH public key. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ImportSshPublicKey(self, request, context): - """Adds an SSH public key and returns the profile information. Default POSIX + def ImportSshPublicKey(self, request, context): + """Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateSshPublicKey(self, request, context): - """Updates an SSH public key and returns the profile information. This method + def UpdateSshPublicKey(self, request, context): + """Updates an SSH public key and returns the profile information. This method supports patch semantics. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_OsLoginServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'DeletePosixAccount': grpc.unary_unary_rpc_method_handler( - servicer.DeletePosixAccount, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteSshPublicKey': grpc.unary_unary_rpc_method_handler( - servicer.DeleteSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetLoginProfile': grpc.unary_unary_rpc_method_handler( - servicer.GetLoginProfile, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.SerializeToString, - ), - 'GetSshPublicKey': grpc.unary_unary_rpc_method_handler( - servicer.GetSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, - ), - 'ImportSshPublicKey': grpc.unary_unary_rpc_method_handler( - servicer.ImportSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.SerializeToString, - ), - 'UpdateSshPublicKey': grpc.unary_unary_rpc_method_handler( - servicer.UpdateSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.oslogin.v1.OsLoginService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "DeletePosixAccount": grpc.unary_unary_rpc_method_handler( + servicer.DeletePosixAccount, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "DeleteSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.DeleteSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetLoginProfile": grpc.unary_unary_rpc_method_handler( + servicer.GetLoginProfile, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.SerializeToString, + ), + "GetSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.GetSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, + ), + "ImportSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.ImportSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.SerializeToString, + ), + "UpdateSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.UpdateSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.oslogin.v1.OsLoginService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2.py b/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2.py index 6f4a75859082c..50f0a4b791a94 100644 --- a/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2.py +++ b/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/pubsub_v1/proto/pubsub.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,1878 +23,2895 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/pubsub_v1/proto/pubsub.proto', - package='google.pubsub.v1', - syntax='proto3', - serialized_pb=_b('\n)google/cloud/pubsub_v1/proto/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\";\n\x14MessageStoragePolicy\x12#\n\x1b\x61llowed_persistence_regions\x18\x01 \x03(\t\"\xc1\x01\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x06labels\x18\x02 \x03(\x0b\x32#.google.pubsub.v1.Topic.LabelsEntry\x12\x46\n\x16message_storage_policy\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.MessageStoragePolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdb\x01\n\rPubsubMessage\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x43\n\nattributes\x18\x02 \x03(\x0b\x32/.google.pubsub.v1.PubsubMessage.AttributesEntry\x12\x12\n\nmessage_id\x18\x03 \x01(\t\x12\x30\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\" \n\x0fGetTopicRequest\x12\r\n\x05topic\x18\x01 \x01(\t\"m\n\x12UpdateTopicRequest\x12&\n\x05topic\x18\x01 \x01(\x0b\x32\x17.google.pubsub.v1.Topic\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"R\n\x0ePublishRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x31\n\x08messages\x18\x02 \x03(\x0b\x32\x1f.google.pubsub.v1.PubsubMessage\"&\n\x0fPublishResponse\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\"K\n\x11ListTopicsRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"V\n\x12ListTopicsResponse\x12\'\n\x06topics\x18\x01 \x03(\x0b\x32\x17.google.pubsub.v1.Topic\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"U\n\x1dListTopicSubscriptionsRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"P\n\x1eListTopicSubscriptionsResponse\x12\x15\n\rsubscriptions\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x19ListTopicSnapshotsRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"H\n\x1aListTopicSnapshotsResponse\x12\x11\n\tsnapshots\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"#\n\x12\x44\x65leteTopicRequest\x12\r\n\x05topic\x18\x01 \x01(\t\"\x84\x03\n\x0cSubscription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x31\n\x0bpush_config\x18\x04 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfig\x12\x1c\n\x14\x61\x63k_deadline_seconds\x18\x05 \x01(\x05\x12\x1d\n\x15retain_acked_messages\x18\x07 \x01(\x08\x12=\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x06labels\x18\t \x03(\x0b\x32*.google.pubsub.v1.Subscription.LabelsEntry\x12=\n\x11\x65xpiration_policy\x18\x0b \x01(\x0b\x32\".google.pubsub.v1.ExpirationPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\":\n\x10\x45xpirationPolicy\x12&\n\x03ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x98\x01\n\nPushConfig\x12\x15\n\rpush_endpoint\x18\x01 \x01(\t\x12@\n\nattributes\x18\x02 \x03(\x0b\x32,.google.pubsub.v1.PushConfig.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"S\n\x0fReceivedMessage\x12\x0e\n\x06\x61\x63k_id\x18\x01 \x01(\t\x12\x30\n\x07message\x18\x02 \x01(\x0b\x32\x1f.google.pubsub.v1.PubsubMessage\".\n\x16GetSubscriptionRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\"\x82\x01\n\x19UpdateSubscriptionRequest\x12\x34\n\x0csubscription\x18\x01 \x01(\x0b\x32\x1e.google.pubsub.v1.Subscription\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"R\n\x18ListSubscriptionsRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"k\n\x19ListSubscriptionsResponse\x12\x35\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x1e.google.pubsub.v1.Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"1\n\x19\x44\x65leteSubscriptionRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\"b\n\x17ModifyPushConfigRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x31\n\x0bpush_config\x18\x02 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfig\"U\n\x0bPullRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x1a\n\x12return_immediately\x18\x02 \x01(\x08\x12\x14\n\x0cmax_messages\x18\x03 \x01(\x05\"L\n\x0cPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage\"_\n\x18ModifyAckDeadlineRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63k_ids\x18\x04 \x03(\t\x12\x1c\n\x14\x61\x63k_deadline_seconds\x18\x03 \x01(\x05\";\n\x12\x41\x63knowledgeRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63k_ids\x18\x02 \x03(\t\"\xa4\x01\n\x14StreamingPullRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63k_ids\x18\x02 \x03(\t\x12\x1f\n\x17modify_deadline_seconds\x18\x03 \x03(\x05\x12\x1f\n\x17modify_deadline_ack_ids\x18\x04 \x03(\t\x12#\n\x1bstream_ack_deadline_seconds\x18\x05 \x01(\x05\"U\n\x15StreamingPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage\"\xaf\x01\n\x15\x43reateSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\x12\x43\n\x06labels\x18\x03 \x03(\x0b\x32\x33.google.pubsub.v1.CreateSnapshotRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"v\n\x15UpdateSnapshotRequest\x12,\n\x08snapshot\x18\x01 \x01(\x0b\x32\x1a.google.pubsub.v1.Snapshot\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xbf\x01\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x06labels\x18\x04 \x03(\x0b\x32&.google.pubsub.v1.Snapshot.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"&\n\x12GetSnapshotRequest\x12\x10\n\x08snapshot\x18\x01 \x01(\t\"N\n\x14ListSnapshotsRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"_\n\x15ListSnapshotsResponse\x12-\n\tsnapshots\x18\x01 \x03(\x0b\x32\x1a.google.pubsub.v1.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\")\n\x15\x44\x65leteSnapshotRequest\x12\x10\n\x08snapshot\x18\x01 \x01(\t\"m\n\x0bSeekRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12*\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x12\n\x08snapshot\x18\x03 \x01(\tH\x00\x42\x08\n\x06target\"\x0e\n\x0cSeekResponse2\xbf\x08\n\tPublisher\x12j\n\x0b\x43reateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.google.pubsub.v1.Topic\")\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/topics/*}:\x01*\x12}\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.Topic\"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\x12\x82\x01\n\x07Publish\x12 .google.pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse\"2\x82\xd3\xe4\x93\x02,\"\'/v1/{topic=projects/*/topics/*}:publish:\x01*\x12o\n\x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topic\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\x12\x80\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.google.pubsub.v1.ListTopicsResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{project=projects/*}/topics\x12\xb2\x01\n\x16ListTopicSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\x30.google.pubsub.v1.ListTopicSubscriptionsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\x12\xa2\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse\"1\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\x12t\n\x0b\x44\x65leteTopic\x12$.google.pubsub.v1.DeleteTopicRequest\x1a\x16.google.protobuf.Empty\"\'\x82\xd3\xe4\x93\x02!*\x1f/v1/{topic=projects/*/topics/*}2\xf9\x11\n\nSubscriber\x12\x86\x01\n\x12\x43reateSubscription\x12\x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\"0\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\x12\x92\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/subscriptions/*}\x12\xa0\x01\n\x12UpdateSubscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription\"=\x82\xd3\xe4\x93\x02\x37\x32\x32/v1/{subscription.name=projects/*/subscriptions/*}:\x01*\x12\x9c\x01\n\x11ListSubscriptions\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscriptionsResponse\".\x82\xd3\xe4\x93\x02(\x12&/v1/{project=projects/*}/subscriptions\x12\x90\x01\n\x12\x44\x65leteSubscription\x12+.google.pubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\x12\xa3\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\x1a\x16.google.protobuf.Empty\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\x12\x91\x01\n\x0b\x41\x63knowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\x01*\x12\x84\x01\n\x04Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\x12\x66\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a\'.google.pubsub.v1.StreamingPullResponse\"\x00(\x01\x30\x01\x12\xa0\x01\n\x10ModifyPushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty\"I\x82\xd3\xe4\x93\x02\x43\">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\x01*\x12~\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"-\x82\xd3\xe4\x93\x02\'\x12%/v1/{snapshot=projects/*/snapshots/*}\x12\x8c\x01\n\rListSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a\'.google.pubsub.v1.ListSnapshotsResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=projects/*}/snapshots\x12\x83\x01\n\x0e\x43reateSnapshot\x12\'.google.pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\",\x82\xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\x12\x8c\x01\n\x0eUpdateSnapshot\x12\'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"5\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\x12\x80\x01\n\x0e\x44\x65leteSnapshot\x12\'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\x93\x02\'*%/v1/{snapshot=projects/*/snapshots/*}\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*B\x92\x01\n\x14\x63om.google.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/pubsub_v1/proto/pubsub.proto", + package="google.pubsub.v1", + syntax="proto3", + serialized_pb=_b( + '\n)google/cloud/pubsub_v1/proto/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto";\n\x14MessageStoragePolicy\x12#\n\x1b\x61llowed_persistence_regions\x18\x01 \x03(\t"\xc1\x01\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x06labels\x18\x02 \x03(\x0b\x32#.google.pubsub.v1.Topic.LabelsEntry\x12\x46\n\x16message_storage_policy\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.MessageStoragePolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xdb\x01\n\rPubsubMessage\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x43\n\nattributes\x18\x02 \x03(\x0b\x32/.google.pubsub.v1.PubsubMessage.AttributesEntry\x12\x12\n\nmessage_id\x18\x03 \x01(\t\x12\x30\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01" \n\x0fGetTopicRequest\x12\r\n\x05topic\x18\x01 \x01(\t"m\n\x12UpdateTopicRequest\x12&\n\x05topic\x18\x01 \x01(\x0b\x32\x17.google.pubsub.v1.Topic\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"R\n\x0ePublishRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x31\n\x08messages\x18\x02 \x03(\x0b\x32\x1f.google.pubsub.v1.PubsubMessage"&\n\x0fPublishResponse\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t"K\n\x11ListTopicsRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"V\n\x12ListTopicsResponse\x12\'\n\x06topics\x18\x01 \x03(\x0b\x32\x17.google.pubsub.v1.Topic\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"U\n\x1dListTopicSubscriptionsRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"P\n\x1eListTopicSubscriptionsResponse\x12\x15\n\rsubscriptions\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"Q\n\x19ListTopicSnapshotsRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"H\n\x1aListTopicSnapshotsResponse\x12\x11\n\tsnapshots\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"#\n\x12\x44\x65leteTopicRequest\x12\r\n\x05topic\x18\x01 \x01(\t"\x84\x03\n\x0cSubscription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x31\n\x0bpush_config\x18\x04 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfig\x12\x1c\n\x14\x61\x63k_deadline_seconds\x18\x05 \x01(\x05\x12\x1d\n\x15retain_acked_messages\x18\x07 \x01(\x08\x12=\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x06labels\x18\t \x03(\x0b\x32*.google.pubsub.v1.Subscription.LabelsEntry\x12=\n\x11\x65xpiration_policy\x18\x0b \x01(\x0b\x32".google.pubsub.v1.ExpirationPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01":\n\x10\x45xpirationPolicy\x12&\n\x03ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration"\x98\x01\n\nPushConfig\x12\x15\n\rpush_endpoint\x18\x01 \x01(\t\x12@\n\nattributes\x18\x02 \x03(\x0b\x32,.google.pubsub.v1.PushConfig.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"S\n\x0fReceivedMessage\x12\x0e\n\x06\x61\x63k_id\x18\x01 \x01(\t\x12\x30\n\x07message\x18\x02 \x01(\x0b\x32\x1f.google.pubsub.v1.PubsubMessage".\n\x16GetSubscriptionRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t"\x82\x01\n\x19UpdateSubscriptionRequest\x12\x34\n\x0csubscription\x18\x01 \x01(\x0b\x32\x1e.google.pubsub.v1.Subscription\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"R\n\x18ListSubscriptionsRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"k\n\x19ListSubscriptionsResponse\x12\x35\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x1e.google.pubsub.v1.Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"1\n\x19\x44\x65leteSubscriptionRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t"b\n\x17ModifyPushConfigRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x31\n\x0bpush_config\x18\x02 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfig"U\n\x0bPullRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x1a\n\x12return_immediately\x18\x02 \x01(\x08\x12\x14\n\x0cmax_messages\x18\x03 \x01(\x05"L\n\x0cPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage"_\n\x18ModifyAckDeadlineRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63k_ids\x18\x04 \x03(\t\x12\x1c\n\x14\x61\x63k_deadline_seconds\x18\x03 \x01(\x05";\n\x12\x41\x63knowledgeRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63k_ids\x18\x02 \x03(\t"\xa4\x01\n\x14StreamingPullRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63k_ids\x18\x02 \x03(\t\x12\x1f\n\x17modify_deadline_seconds\x18\x03 \x03(\x05\x12\x1f\n\x17modify_deadline_ack_ids\x18\x04 \x03(\t\x12#\n\x1bstream_ack_deadline_seconds\x18\x05 \x01(\x05"U\n\x15StreamingPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage"\xaf\x01\n\x15\x43reateSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\x12\x43\n\x06labels\x18\x03 \x03(\x0b\x32\x33.google.pubsub.v1.CreateSnapshotRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"v\n\x15UpdateSnapshotRequest\x12,\n\x08snapshot\x18\x01 \x01(\x0b\x32\x1a.google.pubsub.v1.Snapshot\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xbf\x01\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x06labels\x18\x04 \x03(\x0b\x32&.google.pubsub.v1.Snapshot.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"&\n\x12GetSnapshotRequest\x12\x10\n\x08snapshot\x18\x01 \x01(\t"N\n\x14ListSnapshotsRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"_\n\x15ListSnapshotsResponse\x12-\n\tsnapshots\x18\x01 \x03(\x0b\x32\x1a.google.pubsub.v1.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t")\n\x15\x44\x65leteSnapshotRequest\x12\x10\n\x08snapshot\x18\x01 \x01(\t"m\n\x0bSeekRequest\x12\x14\n\x0csubscription\x18\x01 \x01(\t\x12*\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x12\n\x08snapshot\x18\x03 \x01(\tH\x00\x42\x08\n\x06target"\x0e\n\x0cSeekResponse2\xbf\x08\n\tPublisher\x12j\n\x0b\x43reateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.google.pubsub.v1.Topic")\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/topics/*}:\x01*\x12}\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.Topic"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\x12\x82\x01\n\x07Publish\x12 .google.pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse"2\x82\xd3\xe4\x93\x02,"\'/v1/{topic=projects/*/topics/*}:publish:\x01*\x12o\n\x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topic"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\x12\x80\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.google.pubsub.v1.ListTopicsResponse"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{project=projects/*}/topics\x12\xb2\x01\n\x16ListTopicSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\x30.google.pubsub.v1.ListTopicSubscriptionsResponse"5\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\x12\xa2\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse"1\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\x12t\n\x0b\x44\x65leteTopic\x12$.google.pubsub.v1.DeleteTopicRequest\x1a\x16.google.protobuf.Empty"\'\x82\xd3\xe4\x93\x02!*\x1f/v1/{topic=projects/*/topics/*}2\xf9\x11\n\nSubscriber\x12\x86\x01\n\x12\x43reateSubscription\x12\x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription"0\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\x12\x92\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription"5\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/subscriptions/*}\x12\xa0\x01\n\x12UpdateSubscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription"=\x82\xd3\xe4\x93\x02\x37\x32\x32/v1/{subscription.name=projects/*/subscriptions/*}:\x01*\x12\x9c\x01\n\x11ListSubscriptions\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscriptionsResponse".\x82\xd3\xe4\x93\x02(\x12&/v1/{project=projects/*}/subscriptions\x12\x90\x01\n\x12\x44\x65leteSubscription\x12+.google.pubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty"5\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\x12\xa3\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\x1a\x16.google.protobuf.Empty"J\x82\xd3\xe4\x93\x02\x44"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\x12\x91\x01\n\x0b\x41\x63knowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobuf.Empty"D\x82\xd3\xe4\x93\x02>"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\x01*\x12\x84\x01\n\x04Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse"=\x82\xd3\xe4\x93\x02\x37"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\x12\x66\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a\'.google.pubsub.v1.StreamingPullResponse"\x00(\x01\x30\x01\x12\xa0\x01\n\x10ModifyPushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty"I\x82\xd3\xe4\x93\x02\x43">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\x01*\x12~\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"-\x82\xd3\xe4\x93\x02\'\x12%/v1/{snapshot=projects/*/snapshots/*}\x12\x8c\x01\n\rListSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a\'.google.pubsub.v1.ListSnapshotsResponse"*\x82\xd3\xe4\x93\x02$\x12"/v1/{project=projects/*}/snapshots\x12\x83\x01\n\x0e\x43reateSnapshot\x12\'.google.pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot",\x82\xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\x12\x8c\x01\n\x0eUpdateSnapshot\x12\'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"5\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\x12\x80\x01\n\x0e\x44\x65leteSnapshot\x12\'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty"-\x82\xd3\xe4\x93\x02\'*%/v1/{snapshot=projects/*/snapshots/*}\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse"=\x82\xd3\xe4\x93\x02\x37"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*B\x92\x01\n\x14\x63om.google.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _MESSAGESTORAGEPOLICY = _descriptor.Descriptor( - name='MessageStoragePolicy', - full_name='google.pubsub.v1.MessageStoragePolicy', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='allowed_persistence_regions', full_name='google.pubsub.v1.MessageStoragePolicy.allowed_persistence_regions', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=221, - serialized_end=280, + name="MessageStoragePolicy", + full_name="google.pubsub.v1.MessageStoragePolicy", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="allowed_persistence_regions", + full_name="google.pubsub.v1.MessageStoragePolicy.allowed_persistence_regions", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=221, + serialized_end=280, ) _TOPIC_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.pubsub.v1.Topic.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.pubsub.v1.Topic.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.pubsub.v1.Topic.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=431, - serialized_end=476, + name="LabelsEntry", + full_name="google.pubsub.v1.Topic.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.pubsub.v1.Topic.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.pubsub.v1.Topic.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=431, + serialized_end=476, ) _TOPIC = _descriptor.Descriptor( - name='Topic', - full_name='google.pubsub.v1.Topic', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.pubsub.v1.Topic.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.pubsub.v1.Topic.labels', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_storage_policy', full_name='google.pubsub.v1.Topic.message_storage_policy', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TOPIC_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=283, - serialized_end=476, + name="Topic", + full_name="google.pubsub.v1.Topic", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.pubsub.v1.Topic.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.pubsub.v1.Topic.labels", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message_storage_policy", + full_name="google.pubsub.v1.Topic.message_storage_policy", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_TOPIC_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=283, + serialized_end=476, ) _PUBSUBMESSAGE_ATTRIBUTESENTRY = _descriptor.Descriptor( - name='AttributesEntry', - full_name='google.pubsub.v1.PubsubMessage.AttributesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.pubsub.v1.PubsubMessage.AttributesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.pubsub.v1.PubsubMessage.AttributesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=649, - serialized_end=698, + name="AttributesEntry", + full_name="google.pubsub.v1.PubsubMessage.AttributesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.pubsub.v1.PubsubMessage.AttributesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.pubsub.v1.PubsubMessage.AttributesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=649, + serialized_end=698, ) _PUBSUBMESSAGE = _descriptor.Descriptor( - name='PubsubMessage', - full_name='google.pubsub.v1.PubsubMessage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='google.pubsub.v1.PubsubMessage.data', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.pubsub.v1.PubsubMessage.attributes', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_id', full_name='google.pubsub.v1.PubsubMessage.message_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='publish_time', full_name='google.pubsub.v1.PubsubMessage.publish_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PUBSUBMESSAGE_ATTRIBUTESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=479, - serialized_end=698, + name="PubsubMessage", + full_name="google.pubsub.v1.PubsubMessage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="data", + full_name="google.pubsub.v1.PubsubMessage.data", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.pubsub.v1.PubsubMessage.attributes", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message_id", + full_name="google.pubsub.v1.PubsubMessage.message_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="publish_time", + full_name="google.pubsub.v1.PubsubMessage.publish_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PUBSUBMESSAGE_ATTRIBUTESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=479, + serialized_end=698, ) _GETTOPICREQUEST = _descriptor.Descriptor( - name='GetTopicRequest', - full_name='google.pubsub.v1.GetTopicRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.GetTopicRequest.topic', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=700, - serialized_end=732, + name="GetTopicRequest", + full_name="google.pubsub.v1.GetTopicRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.GetTopicRequest.topic", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=700, + serialized_end=732, ) _UPDATETOPICREQUEST = _descriptor.Descriptor( - name='UpdateTopicRequest', - full_name='google.pubsub.v1.UpdateTopicRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.UpdateTopicRequest.topic', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.pubsub.v1.UpdateTopicRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=734, - serialized_end=843, + name="UpdateTopicRequest", + full_name="google.pubsub.v1.UpdateTopicRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.UpdateTopicRequest.topic", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.pubsub.v1.UpdateTopicRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=734, + serialized_end=843, ) _PUBLISHREQUEST = _descriptor.Descriptor( - name='PublishRequest', - full_name='google.pubsub.v1.PublishRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.PublishRequest.topic', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='messages', full_name='google.pubsub.v1.PublishRequest.messages', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=845, - serialized_end=927, + name="PublishRequest", + full_name="google.pubsub.v1.PublishRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.PublishRequest.topic", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="messages", + full_name="google.pubsub.v1.PublishRequest.messages", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=845, + serialized_end=927, ) _PUBLISHRESPONSE = _descriptor.Descriptor( - name='PublishResponse', - full_name='google.pubsub.v1.PublishResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='message_ids', full_name='google.pubsub.v1.PublishResponse.message_ids', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=929, - serialized_end=967, + name="PublishResponse", + full_name="google.pubsub.v1.PublishResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="message_ids", + full_name="google.pubsub.v1.PublishResponse.message_ids", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=929, + serialized_end=967, ) _LISTTOPICSREQUEST = _descriptor.Descriptor( - name='ListTopicsRequest', - full_name='google.pubsub.v1.ListTopicsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project', full_name='google.pubsub.v1.ListTopicsRequest.project', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.pubsub.v1.ListTopicsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.pubsub.v1.ListTopicsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=969, - serialized_end=1044, + name="ListTopicsRequest", + full_name="google.pubsub.v1.ListTopicsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project", + full_name="google.pubsub.v1.ListTopicsRequest.project", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.pubsub.v1.ListTopicsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.pubsub.v1.ListTopicsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=969, + serialized_end=1044, ) _LISTTOPICSRESPONSE = _descriptor.Descriptor( - name='ListTopicsResponse', - full_name='google.pubsub.v1.ListTopicsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topics', full_name='google.pubsub.v1.ListTopicsResponse.topics', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.pubsub.v1.ListTopicsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1046, - serialized_end=1132, + name="ListTopicsResponse", + full_name="google.pubsub.v1.ListTopicsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topics", + full_name="google.pubsub.v1.ListTopicsResponse.topics", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.pubsub.v1.ListTopicsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1046, + serialized_end=1132, ) _LISTTOPICSUBSCRIPTIONSREQUEST = _descriptor.Descriptor( - name='ListTopicSubscriptionsRequest', - full_name='google.pubsub.v1.ListTopicSubscriptionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.ListTopicSubscriptionsRequest.topic', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.pubsub.v1.ListTopicSubscriptionsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.pubsub.v1.ListTopicSubscriptionsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1134, - serialized_end=1219, + name="ListTopicSubscriptionsRequest", + full_name="google.pubsub.v1.ListTopicSubscriptionsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.ListTopicSubscriptionsRequest.topic", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.pubsub.v1.ListTopicSubscriptionsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.pubsub.v1.ListTopicSubscriptionsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1134, + serialized_end=1219, ) _LISTTOPICSUBSCRIPTIONSRESPONSE = _descriptor.Descriptor( - name='ListTopicSubscriptionsResponse', - full_name='google.pubsub.v1.ListTopicSubscriptionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscriptions', full_name='google.pubsub.v1.ListTopicSubscriptionsResponse.subscriptions', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.pubsub.v1.ListTopicSubscriptionsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1221, - serialized_end=1301, + name="ListTopicSubscriptionsResponse", + full_name="google.pubsub.v1.ListTopicSubscriptionsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscriptions", + full_name="google.pubsub.v1.ListTopicSubscriptionsResponse.subscriptions", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.pubsub.v1.ListTopicSubscriptionsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1221, + serialized_end=1301, ) _LISTTOPICSNAPSHOTSREQUEST = _descriptor.Descriptor( - name='ListTopicSnapshotsRequest', - full_name='google.pubsub.v1.ListTopicSnapshotsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.ListTopicSnapshotsRequest.topic', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.pubsub.v1.ListTopicSnapshotsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.pubsub.v1.ListTopicSnapshotsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1303, - serialized_end=1384, + name="ListTopicSnapshotsRequest", + full_name="google.pubsub.v1.ListTopicSnapshotsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.ListTopicSnapshotsRequest.topic", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.pubsub.v1.ListTopicSnapshotsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.pubsub.v1.ListTopicSnapshotsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1303, + serialized_end=1384, ) _LISTTOPICSNAPSHOTSRESPONSE = _descriptor.Descriptor( - name='ListTopicSnapshotsResponse', - full_name='google.pubsub.v1.ListTopicSnapshotsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshots', full_name='google.pubsub.v1.ListTopicSnapshotsResponse.snapshots', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.pubsub.v1.ListTopicSnapshotsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1386, - serialized_end=1458, + name="ListTopicSnapshotsResponse", + full_name="google.pubsub.v1.ListTopicSnapshotsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshots", + full_name="google.pubsub.v1.ListTopicSnapshotsResponse.snapshots", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.pubsub.v1.ListTopicSnapshotsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1386, + serialized_end=1458, ) _DELETETOPICREQUEST = _descriptor.Descriptor( - name='DeleteTopicRequest', - full_name='google.pubsub.v1.DeleteTopicRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.DeleteTopicRequest.topic', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1460, - serialized_end=1495, + name="DeleteTopicRequest", + full_name="google.pubsub.v1.DeleteTopicRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.DeleteTopicRequest.topic", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1460, + serialized_end=1495, ) _SUBSCRIPTION_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.pubsub.v1.Subscription.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.pubsub.v1.Subscription.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.pubsub.v1.Subscription.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=431, - serialized_end=476, + name="LabelsEntry", + full_name="google.pubsub.v1.Subscription.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.pubsub.v1.Subscription.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.pubsub.v1.Subscription.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=431, + serialized_end=476, ) _SUBSCRIPTION = _descriptor.Descriptor( - name='Subscription', - full_name='google.pubsub.v1.Subscription', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.pubsub.v1.Subscription.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.Subscription.topic', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='push_config', full_name='google.pubsub.v1.Subscription.push_config', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ack_deadline_seconds', full_name='google.pubsub.v1.Subscription.ack_deadline_seconds', index=3, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='retain_acked_messages', full_name='google.pubsub.v1.Subscription.retain_acked_messages', index=4, - number=7, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_retention_duration', full_name='google.pubsub.v1.Subscription.message_retention_duration', index=5, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.pubsub.v1.Subscription.labels', index=6, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expiration_policy', full_name='google.pubsub.v1.Subscription.expiration_policy', index=7, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SUBSCRIPTION_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1498, - serialized_end=1886, + name="Subscription", + full_name="google.pubsub.v1.Subscription", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.pubsub.v1.Subscription.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.Subscription.topic", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="push_config", + full_name="google.pubsub.v1.Subscription.push_config", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ack_deadline_seconds", + full_name="google.pubsub.v1.Subscription.ack_deadline_seconds", + index=3, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="retain_acked_messages", + full_name="google.pubsub.v1.Subscription.retain_acked_messages", + index=4, + number=7, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message_retention_duration", + full_name="google.pubsub.v1.Subscription.message_retention_duration", + index=5, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.pubsub.v1.Subscription.labels", + index=6, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expiration_policy", + full_name="google.pubsub.v1.Subscription.expiration_policy", + index=7, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SUBSCRIPTION_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1498, + serialized_end=1886, ) _EXPIRATIONPOLICY = _descriptor.Descriptor( - name='ExpirationPolicy', - full_name='google.pubsub.v1.ExpirationPolicy', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ttl', full_name='google.pubsub.v1.ExpirationPolicy.ttl', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1888, - serialized_end=1946, + name="ExpirationPolicy", + full_name="google.pubsub.v1.ExpirationPolicy", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="ttl", + full_name="google.pubsub.v1.ExpirationPolicy.ttl", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1888, + serialized_end=1946, ) _PUSHCONFIG_ATTRIBUTESENTRY = _descriptor.Descriptor( - name='AttributesEntry', - full_name='google.pubsub.v1.PushConfig.AttributesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.pubsub.v1.PushConfig.AttributesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.pubsub.v1.PushConfig.AttributesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=649, - serialized_end=698, + name="AttributesEntry", + full_name="google.pubsub.v1.PushConfig.AttributesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.pubsub.v1.PushConfig.AttributesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.pubsub.v1.PushConfig.AttributesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=649, + serialized_end=698, ) _PUSHCONFIG = _descriptor.Descriptor( - name='PushConfig', - full_name='google.pubsub.v1.PushConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='push_endpoint', full_name='google.pubsub.v1.PushConfig.push_endpoint', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.pubsub.v1.PushConfig.attributes', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PUSHCONFIG_ATTRIBUTESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1949, - serialized_end=2101, + name="PushConfig", + full_name="google.pubsub.v1.PushConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="push_endpoint", + full_name="google.pubsub.v1.PushConfig.push_endpoint", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.pubsub.v1.PushConfig.attributes", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PUSHCONFIG_ATTRIBUTESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1949, + serialized_end=2101, ) _RECEIVEDMESSAGE = _descriptor.Descriptor( - name='ReceivedMessage', - full_name='google.pubsub.v1.ReceivedMessage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ack_id', full_name='google.pubsub.v1.ReceivedMessage.ack_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='google.pubsub.v1.ReceivedMessage.message', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2103, - serialized_end=2186, + name="ReceivedMessage", + full_name="google.pubsub.v1.ReceivedMessage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="ack_id", + full_name="google.pubsub.v1.ReceivedMessage.ack_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message", + full_name="google.pubsub.v1.ReceivedMessage.message", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2103, + serialized_end=2186, ) _GETSUBSCRIPTIONREQUEST = _descriptor.Descriptor( - name='GetSubscriptionRequest', - full_name='google.pubsub.v1.GetSubscriptionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.GetSubscriptionRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2188, - serialized_end=2234, + name="GetSubscriptionRequest", + full_name="google.pubsub.v1.GetSubscriptionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.GetSubscriptionRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2188, + serialized_end=2234, ) _UPDATESUBSCRIPTIONREQUEST = _descriptor.Descriptor( - name='UpdateSubscriptionRequest', - full_name='google.pubsub.v1.UpdateSubscriptionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.UpdateSubscriptionRequest.subscription', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.pubsub.v1.UpdateSubscriptionRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2237, - serialized_end=2367, + name="UpdateSubscriptionRequest", + full_name="google.pubsub.v1.UpdateSubscriptionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.UpdateSubscriptionRequest.subscription", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.pubsub.v1.UpdateSubscriptionRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2237, + serialized_end=2367, ) _LISTSUBSCRIPTIONSREQUEST = _descriptor.Descriptor( - name='ListSubscriptionsRequest', - full_name='google.pubsub.v1.ListSubscriptionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project', full_name='google.pubsub.v1.ListSubscriptionsRequest.project', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.pubsub.v1.ListSubscriptionsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.pubsub.v1.ListSubscriptionsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2369, - serialized_end=2451, + name="ListSubscriptionsRequest", + full_name="google.pubsub.v1.ListSubscriptionsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project", + full_name="google.pubsub.v1.ListSubscriptionsRequest.project", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.pubsub.v1.ListSubscriptionsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.pubsub.v1.ListSubscriptionsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2369, + serialized_end=2451, ) _LISTSUBSCRIPTIONSRESPONSE = _descriptor.Descriptor( - name='ListSubscriptionsResponse', - full_name='google.pubsub.v1.ListSubscriptionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscriptions', full_name='google.pubsub.v1.ListSubscriptionsResponse.subscriptions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.pubsub.v1.ListSubscriptionsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2453, - serialized_end=2560, + name="ListSubscriptionsResponse", + full_name="google.pubsub.v1.ListSubscriptionsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscriptions", + full_name="google.pubsub.v1.ListSubscriptionsResponse.subscriptions", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.pubsub.v1.ListSubscriptionsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2453, + serialized_end=2560, ) _DELETESUBSCRIPTIONREQUEST = _descriptor.Descriptor( - name='DeleteSubscriptionRequest', - full_name='google.pubsub.v1.DeleteSubscriptionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.DeleteSubscriptionRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2562, - serialized_end=2611, + name="DeleteSubscriptionRequest", + full_name="google.pubsub.v1.DeleteSubscriptionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.DeleteSubscriptionRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2562, + serialized_end=2611, ) _MODIFYPUSHCONFIGREQUEST = _descriptor.Descriptor( - name='ModifyPushConfigRequest', - full_name='google.pubsub.v1.ModifyPushConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.ModifyPushConfigRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='push_config', full_name='google.pubsub.v1.ModifyPushConfigRequest.push_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2613, - serialized_end=2711, + name="ModifyPushConfigRequest", + full_name="google.pubsub.v1.ModifyPushConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.ModifyPushConfigRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="push_config", + full_name="google.pubsub.v1.ModifyPushConfigRequest.push_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2613, + serialized_end=2711, ) _PULLREQUEST = _descriptor.Descriptor( - name='PullRequest', - full_name='google.pubsub.v1.PullRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.PullRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='return_immediately', full_name='google.pubsub.v1.PullRequest.return_immediately', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_messages', full_name='google.pubsub.v1.PullRequest.max_messages', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2713, - serialized_end=2798, + name="PullRequest", + full_name="google.pubsub.v1.PullRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.PullRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="return_immediately", + full_name="google.pubsub.v1.PullRequest.return_immediately", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_messages", + full_name="google.pubsub.v1.PullRequest.max_messages", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2713, + serialized_end=2798, ) _PULLRESPONSE = _descriptor.Descriptor( - name='PullResponse', - full_name='google.pubsub.v1.PullResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='received_messages', full_name='google.pubsub.v1.PullResponse.received_messages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2800, - serialized_end=2876, + name="PullResponse", + full_name="google.pubsub.v1.PullResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="received_messages", + full_name="google.pubsub.v1.PullResponse.received_messages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2800, + serialized_end=2876, ) _MODIFYACKDEADLINEREQUEST = _descriptor.Descriptor( - name='ModifyAckDeadlineRequest', - full_name='google.pubsub.v1.ModifyAckDeadlineRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.ModifyAckDeadlineRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ack_ids', full_name='google.pubsub.v1.ModifyAckDeadlineRequest.ack_ids', index=1, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ack_deadline_seconds', full_name='google.pubsub.v1.ModifyAckDeadlineRequest.ack_deadline_seconds', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2878, - serialized_end=2973, + name="ModifyAckDeadlineRequest", + full_name="google.pubsub.v1.ModifyAckDeadlineRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.ModifyAckDeadlineRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ack_ids", + full_name="google.pubsub.v1.ModifyAckDeadlineRequest.ack_ids", + index=1, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ack_deadline_seconds", + full_name="google.pubsub.v1.ModifyAckDeadlineRequest.ack_deadline_seconds", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2878, + serialized_end=2973, ) _ACKNOWLEDGEREQUEST = _descriptor.Descriptor( - name='AcknowledgeRequest', - full_name='google.pubsub.v1.AcknowledgeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.AcknowledgeRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ack_ids', full_name='google.pubsub.v1.AcknowledgeRequest.ack_ids', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2975, - serialized_end=3034, + name="AcknowledgeRequest", + full_name="google.pubsub.v1.AcknowledgeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.AcknowledgeRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ack_ids", + full_name="google.pubsub.v1.AcknowledgeRequest.ack_ids", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2975, + serialized_end=3034, ) _STREAMINGPULLREQUEST = _descriptor.Descriptor( - name='StreamingPullRequest', - full_name='google.pubsub.v1.StreamingPullRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.StreamingPullRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ack_ids', full_name='google.pubsub.v1.StreamingPullRequest.ack_ids', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='modify_deadline_seconds', full_name='google.pubsub.v1.StreamingPullRequest.modify_deadline_seconds', index=2, - number=3, type=5, cpp_type=1, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='modify_deadline_ack_ids', full_name='google.pubsub.v1.StreamingPullRequest.modify_deadline_ack_ids', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stream_ack_deadline_seconds', full_name='google.pubsub.v1.StreamingPullRequest.stream_ack_deadline_seconds', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3037, - serialized_end=3201, + name="StreamingPullRequest", + full_name="google.pubsub.v1.StreamingPullRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.StreamingPullRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ack_ids", + full_name="google.pubsub.v1.StreamingPullRequest.ack_ids", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="modify_deadline_seconds", + full_name="google.pubsub.v1.StreamingPullRequest.modify_deadline_seconds", + index=2, + number=3, + type=5, + cpp_type=1, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="modify_deadline_ack_ids", + full_name="google.pubsub.v1.StreamingPullRequest.modify_deadline_ack_ids", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stream_ack_deadline_seconds", + full_name="google.pubsub.v1.StreamingPullRequest.stream_ack_deadline_seconds", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3037, + serialized_end=3201, ) _STREAMINGPULLRESPONSE = _descriptor.Descriptor( - name='StreamingPullResponse', - full_name='google.pubsub.v1.StreamingPullResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='received_messages', full_name='google.pubsub.v1.StreamingPullResponse.received_messages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3203, - serialized_end=3288, + name="StreamingPullResponse", + full_name="google.pubsub.v1.StreamingPullResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="received_messages", + full_name="google.pubsub.v1.StreamingPullResponse.received_messages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3203, + serialized_end=3288, ) _CREATESNAPSHOTREQUEST_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.pubsub.v1.CreateSnapshotRequest.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.pubsub.v1.CreateSnapshotRequest.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.pubsub.v1.CreateSnapshotRequest.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=431, - serialized_end=476, + name="LabelsEntry", + full_name="google.pubsub.v1.CreateSnapshotRequest.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.pubsub.v1.CreateSnapshotRequest.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.pubsub.v1.CreateSnapshotRequest.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=431, + serialized_end=476, ) _CREATESNAPSHOTREQUEST = _descriptor.Descriptor( - name='CreateSnapshotRequest', - full_name='google.pubsub.v1.CreateSnapshotRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.pubsub.v1.CreateSnapshotRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.CreateSnapshotRequest.subscription', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.pubsub.v1.CreateSnapshotRequest.labels', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CREATESNAPSHOTREQUEST_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3291, - serialized_end=3466, + name="CreateSnapshotRequest", + full_name="google.pubsub.v1.CreateSnapshotRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.pubsub.v1.CreateSnapshotRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.CreateSnapshotRequest.subscription", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.pubsub.v1.CreateSnapshotRequest.labels", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_CREATESNAPSHOTREQUEST_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3291, + serialized_end=3466, ) _UPDATESNAPSHOTREQUEST = _descriptor.Descriptor( - name='UpdateSnapshotRequest', - full_name='google.pubsub.v1.UpdateSnapshotRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshot', full_name='google.pubsub.v1.UpdateSnapshotRequest.snapshot', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.pubsub.v1.UpdateSnapshotRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3468, - serialized_end=3586, + name="UpdateSnapshotRequest", + full_name="google.pubsub.v1.UpdateSnapshotRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshot", + full_name="google.pubsub.v1.UpdateSnapshotRequest.snapshot", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.pubsub.v1.UpdateSnapshotRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3468, + serialized_end=3586, ) _SNAPSHOT_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.pubsub.v1.Snapshot.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.pubsub.v1.Snapshot.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.pubsub.v1.Snapshot.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=431, - serialized_end=476, + name="LabelsEntry", + full_name="google.pubsub.v1.Snapshot.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.pubsub.v1.Snapshot.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.pubsub.v1.Snapshot.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=431, + serialized_end=476, ) _SNAPSHOT = _descriptor.Descriptor( - name='Snapshot', - full_name='google.pubsub.v1.Snapshot', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.pubsub.v1.Snapshot.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topic', full_name='google.pubsub.v1.Snapshot.topic', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expire_time', full_name='google.pubsub.v1.Snapshot.expire_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.pubsub.v1.Snapshot.labels', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SNAPSHOT_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3589, - serialized_end=3780, + name="Snapshot", + full_name="google.pubsub.v1.Snapshot", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.pubsub.v1.Snapshot.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="topic", + full_name="google.pubsub.v1.Snapshot.topic", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expire_time", + full_name="google.pubsub.v1.Snapshot.expire_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.pubsub.v1.Snapshot.labels", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SNAPSHOT_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3589, + serialized_end=3780, ) _GETSNAPSHOTREQUEST = _descriptor.Descriptor( - name='GetSnapshotRequest', - full_name='google.pubsub.v1.GetSnapshotRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshot', full_name='google.pubsub.v1.GetSnapshotRequest.snapshot', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3782, - serialized_end=3820, + name="GetSnapshotRequest", + full_name="google.pubsub.v1.GetSnapshotRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshot", + full_name="google.pubsub.v1.GetSnapshotRequest.snapshot", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3782, + serialized_end=3820, ) _LISTSNAPSHOTSREQUEST = _descriptor.Descriptor( - name='ListSnapshotsRequest', - full_name='google.pubsub.v1.ListSnapshotsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project', full_name='google.pubsub.v1.ListSnapshotsRequest.project', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.pubsub.v1.ListSnapshotsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.pubsub.v1.ListSnapshotsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3822, - serialized_end=3900, + name="ListSnapshotsRequest", + full_name="google.pubsub.v1.ListSnapshotsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project", + full_name="google.pubsub.v1.ListSnapshotsRequest.project", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.pubsub.v1.ListSnapshotsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.pubsub.v1.ListSnapshotsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3822, + serialized_end=3900, ) _LISTSNAPSHOTSRESPONSE = _descriptor.Descriptor( - name='ListSnapshotsResponse', - full_name='google.pubsub.v1.ListSnapshotsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshots', full_name='google.pubsub.v1.ListSnapshotsResponse.snapshots', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.pubsub.v1.ListSnapshotsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3902, - serialized_end=3997, + name="ListSnapshotsResponse", + full_name="google.pubsub.v1.ListSnapshotsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshots", + full_name="google.pubsub.v1.ListSnapshotsResponse.snapshots", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.pubsub.v1.ListSnapshotsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3902, + serialized_end=3997, ) _DELETESNAPSHOTREQUEST = _descriptor.Descriptor( - name='DeleteSnapshotRequest', - full_name='google.pubsub.v1.DeleteSnapshotRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='snapshot', full_name='google.pubsub.v1.DeleteSnapshotRequest.snapshot', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3999, - serialized_end=4040, + name="DeleteSnapshotRequest", + full_name="google.pubsub.v1.DeleteSnapshotRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="snapshot", + full_name="google.pubsub.v1.DeleteSnapshotRequest.snapshot", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3999, + serialized_end=4040, ) _SEEKREQUEST = _descriptor.Descriptor( - name='SeekRequest', - full_name='google.pubsub.v1.SeekRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscription', full_name='google.pubsub.v1.SeekRequest.subscription', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time', full_name='google.pubsub.v1.SeekRequest.time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='snapshot', full_name='google.pubsub.v1.SeekRequest.snapshot', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target', full_name='google.pubsub.v1.SeekRequest.target', - index=0, containing_type=None, fields=[]), - ], - serialized_start=4042, - serialized_end=4151, + name="SeekRequest", + full_name="google.pubsub.v1.SeekRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscription", + full_name="google.pubsub.v1.SeekRequest.subscription", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time", + full_name="google.pubsub.v1.SeekRequest.time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="snapshot", + full_name="google.pubsub.v1.SeekRequest.snapshot", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="target", + full_name="google.pubsub.v1.SeekRequest.target", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=4042, + serialized_end=4151, ) _SEEKRESPONSE = _descriptor.Descriptor( - name='SeekResponse', - full_name='google.pubsub.v1.SeekResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4153, - serialized_end=4167, + name="SeekResponse", + full_name="google.pubsub.v1.SeekResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4153, + serialized_end=4167, ) _TOPIC_LABELSENTRY.containing_type = _TOPIC -_TOPIC.fields_by_name['labels'].message_type = _TOPIC_LABELSENTRY -_TOPIC.fields_by_name['message_storage_policy'].message_type = _MESSAGESTORAGEPOLICY +_TOPIC.fields_by_name["labels"].message_type = _TOPIC_LABELSENTRY +_TOPIC.fields_by_name["message_storage_policy"].message_type = _MESSAGESTORAGEPOLICY _PUBSUBMESSAGE_ATTRIBUTESENTRY.containing_type = _PUBSUBMESSAGE -_PUBSUBMESSAGE.fields_by_name['attributes'].message_type = _PUBSUBMESSAGE_ATTRIBUTESENTRY -_PUBSUBMESSAGE.fields_by_name['publish_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATETOPICREQUEST.fields_by_name['topic'].message_type = _TOPIC -_UPDATETOPICREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_PUBLISHREQUEST.fields_by_name['messages'].message_type = _PUBSUBMESSAGE -_LISTTOPICSRESPONSE.fields_by_name['topics'].message_type = _TOPIC +_PUBSUBMESSAGE.fields_by_name[ + "attributes" +].message_type = _PUBSUBMESSAGE_ATTRIBUTESENTRY +_PUBSUBMESSAGE.fields_by_name[ + "publish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATETOPICREQUEST.fields_by_name["topic"].message_type = _TOPIC +_UPDATETOPICREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_PUBLISHREQUEST.fields_by_name["messages"].message_type = _PUBSUBMESSAGE +_LISTTOPICSRESPONSE.fields_by_name["topics"].message_type = _TOPIC _SUBSCRIPTION_LABELSENTRY.containing_type = _SUBSCRIPTION -_SUBSCRIPTION.fields_by_name['push_config'].message_type = _PUSHCONFIG -_SUBSCRIPTION.fields_by_name['message_retention_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_SUBSCRIPTION.fields_by_name['labels'].message_type = _SUBSCRIPTION_LABELSENTRY -_SUBSCRIPTION.fields_by_name['expiration_policy'].message_type = _EXPIRATIONPOLICY -_EXPIRATIONPOLICY.fields_by_name['ttl'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_SUBSCRIPTION.fields_by_name["push_config"].message_type = _PUSHCONFIG +_SUBSCRIPTION.fields_by_name[ + "message_retention_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_SUBSCRIPTION.fields_by_name["labels"].message_type = _SUBSCRIPTION_LABELSENTRY +_SUBSCRIPTION.fields_by_name["expiration_policy"].message_type = _EXPIRATIONPOLICY +_EXPIRATIONPOLICY.fields_by_name[ + "ttl" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _PUSHCONFIG_ATTRIBUTESENTRY.containing_type = _PUSHCONFIG -_PUSHCONFIG.fields_by_name['attributes'].message_type = _PUSHCONFIG_ATTRIBUTESENTRY -_RECEIVEDMESSAGE.fields_by_name['message'].message_type = _PUBSUBMESSAGE -_UPDATESUBSCRIPTIONREQUEST.fields_by_name['subscription'].message_type = _SUBSCRIPTION -_UPDATESUBSCRIPTIONREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTSUBSCRIPTIONSRESPONSE.fields_by_name['subscriptions'].message_type = _SUBSCRIPTION -_MODIFYPUSHCONFIGREQUEST.fields_by_name['push_config'].message_type = _PUSHCONFIG -_PULLRESPONSE.fields_by_name['received_messages'].message_type = _RECEIVEDMESSAGE -_STREAMINGPULLRESPONSE.fields_by_name['received_messages'].message_type = _RECEIVEDMESSAGE +_PUSHCONFIG.fields_by_name["attributes"].message_type = _PUSHCONFIG_ATTRIBUTESENTRY +_RECEIVEDMESSAGE.fields_by_name["message"].message_type = _PUBSUBMESSAGE +_UPDATESUBSCRIPTIONREQUEST.fields_by_name["subscription"].message_type = _SUBSCRIPTION +_UPDATESUBSCRIPTIONREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTSUBSCRIPTIONSRESPONSE.fields_by_name["subscriptions"].message_type = _SUBSCRIPTION +_MODIFYPUSHCONFIGREQUEST.fields_by_name["push_config"].message_type = _PUSHCONFIG +_PULLRESPONSE.fields_by_name["received_messages"].message_type = _RECEIVEDMESSAGE +_STREAMINGPULLRESPONSE.fields_by_name[ + "received_messages" +].message_type = _RECEIVEDMESSAGE _CREATESNAPSHOTREQUEST_LABELSENTRY.containing_type = _CREATESNAPSHOTREQUEST -_CREATESNAPSHOTREQUEST.fields_by_name['labels'].message_type = _CREATESNAPSHOTREQUEST_LABELSENTRY -_UPDATESNAPSHOTREQUEST.fields_by_name['snapshot'].message_type = _SNAPSHOT -_UPDATESNAPSHOTREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CREATESNAPSHOTREQUEST.fields_by_name[ + "labels" +].message_type = _CREATESNAPSHOTREQUEST_LABELSENTRY +_UPDATESNAPSHOTREQUEST.fields_by_name["snapshot"].message_type = _SNAPSHOT +_UPDATESNAPSHOTREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK _SNAPSHOT_LABELSENTRY.containing_type = _SNAPSHOT -_SNAPSHOT.fields_by_name['expire_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SNAPSHOT.fields_by_name['labels'].message_type = _SNAPSHOT_LABELSENTRY -_LISTSNAPSHOTSRESPONSE.fields_by_name['snapshots'].message_type = _SNAPSHOT -_SEEKREQUEST.fields_by_name['time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SEEKREQUEST.oneofs_by_name['target'].fields.append( - _SEEKREQUEST.fields_by_name['time']) -_SEEKREQUEST.fields_by_name['time'].containing_oneof = _SEEKREQUEST.oneofs_by_name['target'] -_SEEKREQUEST.oneofs_by_name['target'].fields.append( - _SEEKREQUEST.fields_by_name['snapshot']) -_SEEKREQUEST.fields_by_name['snapshot'].containing_oneof = _SEEKREQUEST.oneofs_by_name['target'] -DESCRIPTOR.message_types_by_name['MessageStoragePolicy'] = _MESSAGESTORAGEPOLICY -DESCRIPTOR.message_types_by_name['Topic'] = _TOPIC -DESCRIPTOR.message_types_by_name['PubsubMessage'] = _PUBSUBMESSAGE -DESCRIPTOR.message_types_by_name['GetTopicRequest'] = _GETTOPICREQUEST -DESCRIPTOR.message_types_by_name['UpdateTopicRequest'] = _UPDATETOPICREQUEST -DESCRIPTOR.message_types_by_name['PublishRequest'] = _PUBLISHREQUEST -DESCRIPTOR.message_types_by_name['PublishResponse'] = _PUBLISHRESPONSE -DESCRIPTOR.message_types_by_name['ListTopicsRequest'] = _LISTTOPICSREQUEST -DESCRIPTOR.message_types_by_name['ListTopicsResponse'] = _LISTTOPICSRESPONSE -DESCRIPTOR.message_types_by_name['ListTopicSubscriptionsRequest'] = _LISTTOPICSUBSCRIPTIONSREQUEST -DESCRIPTOR.message_types_by_name['ListTopicSubscriptionsResponse'] = _LISTTOPICSUBSCRIPTIONSRESPONSE -DESCRIPTOR.message_types_by_name['ListTopicSnapshotsRequest'] = _LISTTOPICSNAPSHOTSREQUEST -DESCRIPTOR.message_types_by_name['ListTopicSnapshotsResponse'] = _LISTTOPICSNAPSHOTSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteTopicRequest'] = _DELETETOPICREQUEST -DESCRIPTOR.message_types_by_name['Subscription'] = _SUBSCRIPTION -DESCRIPTOR.message_types_by_name['ExpirationPolicy'] = _EXPIRATIONPOLICY -DESCRIPTOR.message_types_by_name['PushConfig'] = _PUSHCONFIG -DESCRIPTOR.message_types_by_name['ReceivedMessage'] = _RECEIVEDMESSAGE -DESCRIPTOR.message_types_by_name['GetSubscriptionRequest'] = _GETSUBSCRIPTIONREQUEST -DESCRIPTOR.message_types_by_name['UpdateSubscriptionRequest'] = _UPDATESUBSCRIPTIONREQUEST -DESCRIPTOR.message_types_by_name['ListSubscriptionsRequest'] = _LISTSUBSCRIPTIONSREQUEST -DESCRIPTOR.message_types_by_name['ListSubscriptionsResponse'] = _LISTSUBSCRIPTIONSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteSubscriptionRequest'] = _DELETESUBSCRIPTIONREQUEST -DESCRIPTOR.message_types_by_name['ModifyPushConfigRequest'] = _MODIFYPUSHCONFIGREQUEST -DESCRIPTOR.message_types_by_name['PullRequest'] = _PULLREQUEST -DESCRIPTOR.message_types_by_name['PullResponse'] = _PULLRESPONSE -DESCRIPTOR.message_types_by_name['ModifyAckDeadlineRequest'] = _MODIFYACKDEADLINEREQUEST -DESCRIPTOR.message_types_by_name['AcknowledgeRequest'] = _ACKNOWLEDGEREQUEST -DESCRIPTOR.message_types_by_name['StreamingPullRequest'] = _STREAMINGPULLREQUEST -DESCRIPTOR.message_types_by_name['StreamingPullResponse'] = _STREAMINGPULLRESPONSE -DESCRIPTOR.message_types_by_name['CreateSnapshotRequest'] = _CREATESNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name['UpdateSnapshotRequest'] = _UPDATESNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name['Snapshot'] = _SNAPSHOT -DESCRIPTOR.message_types_by_name['GetSnapshotRequest'] = _GETSNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name['ListSnapshotsRequest'] = _LISTSNAPSHOTSREQUEST -DESCRIPTOR.message_types_by_name['ListSnapshotsResponse'] = _LISTSNAPSHOTSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteSnapshotRequest'] = _DELETESNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name['SeekRequest'] = _SEEKREQUEST -DESCRIPTOR.message_types_by_name['SeekResponse'] = _SEEKRESPONSE +_SNAPSHOT.fields_by_name[ + "expire_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SNAPSHOT.fields_by_name["labels"].message_type = _SNAPSHOT_LABELSENTRY +_LISTSNAPSHOTSRESPONSE.fields_by_name["snapshots"].message_type = _SNAPSHOT +_SEEKREQUEST.fields_by_name[ + "time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SEEKREQUEST.oneofs_by_name["target"].fields.append(_SEEKREQUEST.fields_by_name["time"]) +_SEEKREQUEST.fields_by_name["time"].containing_oneof = _SEEKREQUEST.oneofs_by_name[ + "target" +] +_SEEKREQUEST.oneofs_by_name["target"].fields.append( + _SEEKREQUEST.fields_by_name["snapshot"] +) +_SEEKREQUEST.fields_by_name["snapshot"].containing_oneof = _SEEKREQUEST.oneofs_by_name[ + "target" +] +DESCRIPTOR.message_types_by_name["MessageStoragePolicy"] = _MESSAGESTORAGEPOLICY +DESCRIPTOR.message_types_by_name["Topic"] = _TOPIC +DESCRIPTOR.message_types_by_name["PubsubMessage"] = _PUBSUBMESSAGE +DESCRIPTOR.message_types_by_name["GetTopicRequest"] = _GETTOPICREQUEST +DESCRIPTOR.message_types_by_name["UpdateTopicRequest"] = _UPDATETOPICREQUEST +DESCRIPTOR.message_types_by_name["PublishRequest"] = _PUBLISHREQUEST +DESCRIPTOR.message_types_by_name["PublishResponse"] = _PUBLISHRESPONSE +DESCRIPTOR.message_types_by_name["ListTopicsRequest"] = _LISTTOPICSREQUEST +DESCRIPTOR.message_types_by_name["ListTopicsResponse"] = _LISTTOPICSRESPONSE +DESCRIPTOR.message_types_by_name[ + "ListTopicSubscriptionsRequest" +] = _LISTTOPICSUBSCRIPTIONSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListTopicSubscriptionsResponse" +] = _LISTTOPICSUBSCRIPTIONSRESPONSE +DESCRIPTOR.message_types_by_name[ + "ListTopicSnapshotsRequest" +] = _LISTTOPICSNAPSHOTSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListTopicSnapshotsResponse" +] = _LISTTOPICSNAPSHOTSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteTopicRequest"] = _DELETETOPICREQUEST +DESCRIPTOR.message_types_by_name["Subscription"] = _SUBSCRIPTION +DESCRIPTOR.message_types_by_name["ExpirationPolicy"] = _EXPIRATIONPOLICY +DESCRIPTOR.message_types_by_name["PushConfig"] = _PUSHCONFIG +DESCRIPTOR.message_types_by_name["ReceivedMessage"] = _RECEIVEDMESSAGE +DESCRIPTOR.message_types_by_name["GetSubscriptionRequest"] = _GETSUBSCRIPTIONREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateSubscriptionRequest" +] = _UPDATESUBSCRIPTIONREQUEST +DESCRIPTOR.message_types_by_name["ListSubscriptionsRequest"] = _LISTSUBSCRIPTIONSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListSubscriptionsResponse" +] = _LISTSUBSCRIPTIONSRESPONSE +DESCRIPTOR.message_types_by_name[ + "DeleteSubscriptionRequest" +] = _DELETESUBSCRIPTIONREQUEST +DESCRIPTOR.message_types_by_name["ModifyPushConfigRequest"] = _MODIFYPUSHCONFIGREQUEST +DESCRIPTOR.message_types_by_name["PullRequest"] = _PULLREQUEST +DESCRIPTOR.message_types_by_name["PullResponse"] = _PULLRESPONSE +DESCRIPTOR.message_types_by_name["ModifyAckDeadlineRequest"] = _MODIFYACKDEADLINEREQUEST +DESCRIPTOR.message_types_by_name["AcknowledgeRequest"] = _ACKNOWLEDGEREQUEST +DESCRIPTOR.message_types_by_name["StreamingPullRequest"] = _STREAMINGPULLREQUEST +DESCRIPTOR.message_types_by_name["StreamingPullResponse"] = _STREAMINGPULLRESPONSE +DESCRIPTOR.message_types_by_name["CreateSnapshotRequest"] = _CREATESNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["UpdateSnapshotRequest"] = _UPDATESNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["Snapshot"] = _SNAPSHOT +DESCRIPTOR.message_types_by_name["GetSnapshotRequest"] = _GETSNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["ListSnapshotsRequest"] = _LISTSNAPSHOTSREQUEST +DESCRIPTOR.message_types_by_name["ListSnapshotsResponse"] = _LISTSNAPSHOTSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteSnapshotRequest"] = _DELETESNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["SeekRequest"] = _SEEKREQUEST +DESCRIPTOR.message_types_by_name["SeekResponse"] = _SEEKRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -MessageStoragePolicy = _reflection.GeneratedProtocolMessageType('MessageStoragePolicy', (_message.Message,), dict( - DESCRIPTOR = _MESSAGESTORAGEPOLICY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """A message storage policy. +MessageStoragePolicy = _reflection.GeneratedProtocolMessageType( + "MessageStoragePolicy", + (_message.Message,), + dict( + DESCRIPTOR=_MESSAGESTORAGEPOLICY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""A message storage policy. Attributes: @@ -1905,22 +2924,27 @@ misconfiguration at the project or organization level, which will result in all Publish operations failing. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageStoragePolicy) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageStoragePolicy) + ), +) _sym_db.RegisterMessage(MessageStoragePolicy) -Topic = _reflection.GeneratedProtocolMessageType('Topic', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _TOPIC_LABELSENTRY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - # @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic.LabelsEntry) - )) - , - DESCRIPTOR = _TOPIC, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """A topic resource. +Topic = _reflection.GeneratedProtocolMessageType( + "Topic", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_TOPIC_LABELSENTRY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + # @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic.LabelsEntry) + ), + ), + DESCRIPTOR=_TOPIC, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""A topic resource. Attributes: @@ -1943,23 +2967,28 @@ CreateTopic, and UpdateTopic: if not present in the response, then no constraints are in effect. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic) + ), +) _sym_db.RegisterMessage(Topic) _sym_db.RegisterMessage(Topic.LabelsEntry) -PubsubMessage = _reflection.GeneratedProtocolMessageType('PubsubMessage', (_message.Message,), dict( - - AttributesEntry = _reflection.GeneratedProtocolMessageType('AttributesEntry', (_message.Message,), dict( - DESCRIPTOR = _PUBSUBMESSAGE_ATTRIBUTESENTRY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage.AttributesEntry) - )) - , - DESCRIPTOR = _PUBSUBMESSAGE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """A message that is published by publishers and consumed by subscribers. +PubsubMessage = _reflection.GeneratedProtocolMessageType( + "PubsubMessage", + (_message.Message,), + dict( + AttributesEntry=_reflection.GeneratedProtocolMessageType( + "AttributesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PUBSUBMESSAGE_ATTRIBUTESENTRY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage.AttributesEntry) + ), + ), + DESCRIPTOR=_PUBSUBMESSAGE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. See Quotas and limits for more information about message limits. @@ -1982,16 +3011,19 @@ server when it receives the ``Publish`` call. It must not be populated by the publisher in a ``Publish`` call. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage) + ), +) _sym_db.RegisterMessage(PubsubMessage) _sym_db.RegisterMessage(PubsubMessage.AttributesEntry) -GetTopicRequest = _reflection.GeneratedProtocolMessageType('GetTopicRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTOPICREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the GetTopic method. +GetTopicRequest = _reflection.GeneratedProtocolMessageType( + "GetTopicRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTOPICREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the GetTopic method. Attributes: @@ -1999,15 +3031,18 @@ The name of the topic to get. Format is ``projects/{project}/topics/{topic}``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetTopicRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetTopicRequest) + ), +) _sym_db.RegisterMessage(GetTopicRequest) -UpdateTopicRequest = _reflection.GeneratedProtocolMessageType('UpdateTopicRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATETOPICREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the UpdateTopic method. +UpdateTopicRequest = _reflection.GeneratedProtocolMessageType( + "UpdateTopicRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATETOPICREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the UpdateTopic method. Attributes: @@ -2021,15 +3056,18 @@ organization level. The ``message_storage_policy`` must not be set in the ``topic`` provided above. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateTopicRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateTopicRequest) + ), +) _sym_db.RegisterMessage(UpdateTopicRequest) -PublishRequest = _reflection.GeneratedProtocolMessageType('PublishRequest', (_message.Message,), dict( - DESCRIPTOR = _PUBLISHREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the Publish method. +PublishRequest = _reflection.GeneratedProtocolMessageType( + "PublishRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PUBLISHREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the Publish method. Attributes: @@ -2039,15 +3077,18 @@ messages: The messages to publish. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishRequest) + ), +) _sym_db.RegisterMessage(PublishRequest) -PublishResponse = _reflection.GeneratedProtocolMessageType('PublishResponse', (_message.Message,), dict( - DESCRIPTOR = _PUBLISHRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``Publish`` method. +PublishResponse = _reflection.GeneratedProtocolMessageType( + "PublishResponse", + (_message.Message,), + dict( + DESCRIPTOR=_PUBLISHRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``Publish`` method. Attributes: @@ -2056,15 +3097,18 @@ order as the messages in the request. IDs are guaranteed to be unique within the topic. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishResponse) + ), +) _sym_db.RegisterMessage(PublishResponse) -ListTopicsRequest = _reflection.GeneratedProtocolMessageType('ListTopicsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTOPICSREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``ListTopics`` method. +ListTopicsRequest = _reflection.GeneratedProtocolMessageType( + "ListTopicsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTOPICSREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``ListTopics`` method. Attributes: @@ -2079,15 +3123,18 @@ ``ListTopics`` call, and that the system should return the next page of data. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsRequest) + ), +) _sym_db.RegisterMessage(ListTopicsRequest) -ListTopicsResponse = _reflection.GeneratedProtocolMessageType('ListTopicsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTOPICSRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``ListTopics`` method. +ListTopicsResponse = _reflection.GeneratedProtocolMessageType( + "ListTopicsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTOPICSRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``ListTopics`` method. Attributes: @@ -2098,15 +3145,18 @@ match the request; this value should be passed in a new ``ListTopicsRequest``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsResponse) + ), +) _sym_db.RegisterMessage(ListTopicsResponse) -ListTopicSubscriptionsRequest = _reflection.GeneratedProtocolMessageType('ListTopicSubscriptionsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTOPICSUBSCRIPTIONSREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``ListTopicSubscriptions`` method. +ListTopicSubscriptionsRequest = _reflection.GeneratedProtocolMessageType( + "ListTopicSubscriptionsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTOPICSUBSCRIPTIONSREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``ListTopicSubscriptions`` method. Attributes: @@ -2121,15 +3171,18 @@ continuation of a prior ``ListTopicSubscriptions`` call, and that the system should return the next page of data. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) + ), +) _sym_db.RegisterMessage(ListTopicSubscriptionsRequest) -ListTopicSubscriptionsResponse = _reflection.GeneratedProtocolMessageType('ListTopicSubscriptionsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTOPICSUBSCRIPTIONSRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``ListTopicSubscriptions`` method. +ListTopicSubscriptionsResponse = _reflection.GeneratedProtocolMessageType( + "ListTopicSubscriptionsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTOPICSUBSCRIPTIONSRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``ListTopicSubscriptions`` method. Attributes: @@ -2140,15 +3193,18 @@ that match the request; this value should be passed in a new ``ListTopicSubscriptionsRequest`` to get more subscriptions. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) + ), +) _sym_db.RegisterMessage(ListTopicSubscriptionsResponse) -ListTopicSnapshotsRequest = _reflection.GeneratedProtocolMessageType('ListTopicSnapshotsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTOPICSNAPSHOTSREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``ListTopicSnapshots`` method. ALPHA: This feature is +ListTopicSnapshotsRequest = _reflection.GeneratedProtocolMessageType( + "ListTopicSnapshotsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTOPICSNAPSHOTSREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``ListTopicSnapshots`` method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2166,15 +3222,18 @@ ``ListTopicSnapshots`` call, and that the system should return the next page of data. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsRequest) + ), +) _sym_db.RegisterMessage(ListTopicSnapshotsRequest) -ListTopicSnapshotsResponse = _reflection.GeneratedProtocolMessageType('ListTopicSnapshotsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTOPICSNAPSHOTSRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``ListTopicSnapshots`` method. ALPHA: This feature is +ListTopicSnapshotsResponse = _reflection.GeneratedProtocolMessageType( + "ListTopicSnapshotsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTOPICSNAPSHOTSRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``ListTopicSnapshots`` method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2188,15 +3247,18 @@ match the request; this value should be passed in a new ``ListTopicSnapshotsRequest`` to get more snapshots. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsResponse) + ), +) _sym_db.RegisterMessage(ListTopicSnapshotsResponse) -DeleteTopicRequest = _reflection.GeneratedProtocolMessageType('DeleteTopicRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETETOPICREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``DeleteTopic`` method. +DeleteTopicRequest = _reflection.GeneratedProtocolMessageType( + "DeleteTopicRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETETOPICREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``DeleteTopic`` method. Attributes: @@ -2204,22 +3266,27 @@ Name of the topic to delete. Format is ``projects/{project}/topics/{topic}``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteTopicRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteTopicRequest) + ), +) _sym_db.RegisterMessage(DeleteTopicRequest) -Subscription = _reflection.GeneratedProtocolMessageType('Subscription', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _SUBSCRIPTION_LABELSENTRY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - # @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription.LabelsEntry) - )) - , - DESCRIPTOR = _SUBSCRIPTION, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """A subscription resource. +Subscription = _reflection.GeneratedProtocolMessageType( + "Subscription", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SUBSCRIPTION_LABELSENTRY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + # @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription.LabelsEntry) + ), + ), + DESCRIPTOR=_SUBSCRIPTION, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""A subscription resource. Attributes: @@ -2293,16 +3360,19 @@ incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription) + ), +) _sym_db.RegisterMessage(Subscription) _sym_db.RegisterMessage(Subscription.LabelsEntry) -ExpirationPolicy = _reflection.GeneratedProtocolMessageType('ExpirationPolicy', (_message.Message,), dict( - DESCRIPTOR = _EXPIRATIONPOLICY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """A policy that specifies the conditions for resource expiration (i.e., +ExpirationPolicy = _reflection.GeneratedProtocolMessageType( + "ExpirationPolicy", + (_message.Message,), + dict( + DESCRIPTOR=_EXPIRATIONPOLICY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""A policy that specifies the conditions for resource expiration (i.e., automatic resource deletion). @@ -2316,22 +3386,27 @@ associated resource, as well. If ``ttl`` is not set, the associated resource never expires. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ExpirationPolicy) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ExpirationPolicy) + ), +) _sym_db.RegisterMessage(ExpirationPolicy) -PushConfig = _reflection.GeneratedProtocolMessageType('PushConfig', (_message.Message,), dict( - - AttributesEntry = _reflection.GeneratedProtocolMessageType('AttributesEntry', (_message.Message,), dict( - DESCRIPTOR = _PUSHCONFIG_ATTRIBUTESENTRY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.AttributesEntry) - )) - , - DESCRIPTOR = _PUSHCONFIG, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Configuration for a push delivery endpoint. +PushConfig = _reflection.GeneratedProtocolMessageType( + "PushConfig", + (_message.Message,), + dict( + AttributesEntry=_reflection.GeneratedProtocolMessageType( + "AttributesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PUSHCONFIG_ATTRIBUTESENTRY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.AttributesEntry) + ), + ), + DESCRIPTOR=_PUSHCONFIG, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Configuration for a push delivery endpoint. Attributes: @@ -2359,16 +3434,19 @@ ``v1`` or ``v1beta2``: uses the push format defined in the v1 Pub/Sub API. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig) + ), +) _sym_db.RegisterMessage(PushConfig) _sym_db.RegisterMessage(PushConfig.AttributesEntry) -ReceivedMessage = _reflection.GeneratedProtocolMessageType('ReceivedMessage', (_message.Message,), dict( - DESCRIPTOR = _RECEIVEDMESSAGE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """A message and its corresponding acknowledgment ID. +ReceivedMessage = _reflection.GeneratedProtocolMessageType( + "ReceivedMessage", + (_message.Message,), + dict( + DESCRIPTOR=_RECEIVEDMESSAGE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""A message and its corresponding acknowledgment ID. Attributes: @@ -2377,15 +3455,18 @@ message: The message. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ReceivedMessage) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ReceivedMessage) + ), +) _sym_db.RegisterMessage(ReceivedMessage) -GetSubscriptionRequest = _reflection.GeneratedProtocolMessageType('GetSubscriptionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSUBSCRIPTIONREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the GetSubscription method. +GetSubscriptionRequest = _reflection.GeneratedProtocolMessageType( + "GetSubscriptionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSUBSCRIPTIONREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the GetSubscription method. Attributes: @@ -2393,15 +3474,18 @@ The name of the subscription to get. Format is ``projects/{project}/subscriptions/{sub}``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSubscriptionRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSubscriptionRequest) + ), +) _sym_db.RegisterMessage(GetSubscriptionRequest) -UpdateSubscriptionRequest = _reflection.GeneratedProtocolMessageType('UpdateSubscriptionRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATESUBSCRIPTIONREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the UpdateSubscription method. +UpdateSubscriptionRequest = _reflection.GeneratedProtocolMessageType( + "UpdateSubscriptionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATESUBSCRIPTIONREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the UpdateSubscription method. Attributes: @@ -2411,15 +3495,18 @@ Indicates which fields in the provided subscription to update. Must be specified and non-empty. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSubscriptionRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSubscriptionRequest) + ), +) _sym_db.RegisterMessage(UpdateSubscriptionRequest) -ListSubscriptionsRequest = _reflection.GeneratedProtocolMessageType('ListSubscriptionsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTSUBSCRIPTIONSREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``ListSubscriptions`` method. +ListSubscriptionsRequest = _reflection.GeneratedProtocolMessageType( + "ListSubscriptionsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSUBSCRIPTIONSREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``ListSubscriptions`` method. Attributes: @@ -2434,15 +3521,18 @@ ``ListSubscriptions`` call, and that the system should return the next page of data. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsRequest) + ), +) _sym_db.RegisterMessage(ListSubscriptionsRequest) -ListSubscriptionsResponse = _reflection.GeneratedProtocolMessageType('ListSubscriptionsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTSUBSCRIPTIONSRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``ListSubscriptions`` method. +ListSubscriptionsResponse = _reflection.GeneratedProtocolMessageType( + "ListSubscriptionsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSUBSCRIPTIONSRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``ListSubscriptions`` method. Attributes: @@ -2453,15 +3543,18 @@ that match the request; this value should be passed in a new ``ListSubscriptionsRequest`` to get more subscriptions. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsResponse) + ), +) _sym_db.RegisterMessage(ListSubscriptionsResponse) -DeleteSubscriptionRequest = _reflection.GeneratedProtocolMessageType('DeleteSubscriptionRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETESUBSCRIPTIONREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the DeleteSubscription method. +DeleteSubscriptionRequest = _reflection.GeneratedProtocolMessageType( + "DeleteSubscriptionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESUBSCRIPTIONREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the DeleteSubscription method. Attributes: @@ -2469,15 +3562,18 @@ The subscription to delete. Format is ``projects/{project}/subscriptions/{sub}``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSubscriptionRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSubscriptionRequest) + ), +) _sym_db.RegisterMessage(DeleteSubscriptionRequest) -ModifyPushConfigRequest = _reflection.GeneratedProtocolMessageType('ModifyPushConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _MODIFYPUSHCONFIGREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ModifyPushConfig method. +ModifyPushConfigRequest = _reflection.GeneratedProtocolMessageType( + "ModifyPushConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_MODIFYPUSHCONFIGREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ModifyPushConfig method. Attributes: @@ -2492,15 +3588,18 @@ the subscription if ``Pull`` or ``StreamingPull`` is not called. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest) + ), +) _sym_db.RegisterMessage(ModifyPushConfigRequest) -PullRequest = _reflection.GeneratedProtocolMessageType('PullRequest', (_message.Message,), dict( - DESCRIPTOR = _PULLREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``Pull`` method. +PullRequest = _reflection.GeneratedProtocolMessageType( + "PullRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PULLREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``Pull`` method. Attributes: @@ -2517,15 +3616,18 @@ The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PullRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PullRequest) + ), +) _sym_db.RegisterMessage(PullRequest) -PullResponse = _reflection.GeneratedProtocolMessageType('PullResponse', (_message.Message,), dict( - DESCRIPTOR = _PULLRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``Pull`` method. +PullResponse = _reflection.GeneratedProtocolMessageType( + "PullResponse", + (_message.Message,), + dict( + DESCRIPTOR=_PULLRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``Pull`` method. Attributes: @@ -2536,15 +3638,18 @@ fewer than the ``maxMessages`` requested even if there are more messages available in the backlog. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.PullResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.PullResponse) + ), +) _sym_db.RegisterMessage(PullResponse) -ModifyAckDeadlineRequest = _reflection.GeneratedProtocolMessageType('ModifyAckDeadlineRequest', (_message.Message,), dict( - DESCRIPTOR = _MODIFYACKDEADLINEREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ModifyAckDeadline method. +ModifyAckDeadlineRequest = _reflection.GeneratedProtocolMessageType( + "ModifyAckDeadlineRequest", + (_message.Message,), + dict( + DESCRIPTOR=_MODIFYACKDEADLINEREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ModifyAckDeadline method. Attributes: @@ -2563,15 +3668,18 @@ The maximum deadline you can specify is 600 seconds (10 minutes). """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyAckDeadlineRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyAckDeadlineRequest) + ), +) _sym_db.RegisterMessage(ModifyAckDeadlineRequest) -AcknowledgeRequest = _reflection.GeneratedProtocolMessageType('AcknowledgeRequest', (_message.Message,), dict( - DESCRIPTOR = _ACKNOWLEDGEREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the Acknowledge method. +AcknowledgeRequest = _reflection.GeneratedProtocolMessageType( + "AcknowledgeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ACKNOWLEDGEREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the Acknowledge method. Attributes: @@ -2583,15 +3691,18 @@ was returned by the Pub/Sub system in the ``Pull`` response. Must not be empty. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.AcknowledgeRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.AcknowledgeRequest) + ), +) _sym_db.RegisterMessage(AcknowledgeRequest) -StreamingPullRequest = _reflection.GeneratedProtocolMessageType('StreamingPullRequest', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGPULLREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``StreamingPull`` streaming RPC method. This request is +StreamingPullRequest = _reflection.GeneratedProtocolMessageType( + "StreamingPullRequest", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGPULLREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``StreamingPull`` streaming RPC method. This request is used to establish the initial stream as well as to stream acknowledgements and ack deadline modifications from the client to the server. @@ -2639,15 +3750,18 @@ deadline you can specify is 10 seconds. The maximum deadline you can specify is 600 seconds (10 minutes). """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest) + ), +) _sym_db.RegisterMessage(StreamingPullRequest) -StreamingPullResponse = _reflection.GeneratedProtocolMessageType('StreamingPullResponse', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGPULLRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``StreamingPull`` method. This response is used to +StreamingPullResponse = _reflection.GeneratedProtocolMessageType( + "StreamingPullResponse", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGPULLRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``StreamingPull`` method. This response is used to stream messages from the server to the client. @@ -2655,22 +3769,27 @@ received_messages: Received Pub/Sub messages. This will not be empty. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse) + ), +) _sym_db.RegisterMessage(StreamingPullResponse) -CreateSnapshotRequest = _reflection.GeneratedProtocolMessageType('CreateSnapshotRequest', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _CREATESNAPSHOTREQUEST_LABELSENTRY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - # @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest.LabelsEntry) - )) - , - DESCRIPTOR = _CREATESNAPSHOTREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``CreateSnapshot`` method. ALPHA: This feature is part +CreateSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "CreateSnapshotRequest", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_CREATESNAPSHOTREQUEST_LABELSENTRY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + # @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest.LabelsEntry) + ), + ), + DESCRIPTOR=_CREATESNAPSHOTREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``CreateSnapshot`` method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2697,16 +3816,19 @@ labels: See Creating and managing labels. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest) + ), +) _sym_db.RegisterMessage(CreateSnapshotRequest) _sym_db.RegisterMessage(CreateSnapshotRequest.LabelsEntry) -UpdateSnapshotRequest = _reflection.GeneratedProtocolMessageType('UpdateSnapshotRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATESNAPSHOTREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the UpdateSnapshot method. ALPHA: This feature is part of an +UpdateSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "UpdateSnapshotRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATESNAPSHOTREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the UpdateSnapshot method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2719,22 +3841,27 @@ Indicates which fields in the provided snapshot to update. Must be specified and non-empty. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSnapshotRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSnapshotRequest) + ), +) _sym_db.RegisterMessage(UpdateSnapshotRequest) -Snapshot = _reflection.GeneratedProtocolMessageType('Snapshot', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _SNAPSHOT_LABELSENTRY, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - # @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot.LabelsEntry) - )) - , - DESCRIPTOR = _SNAPSHOT, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """A snapshot resource. ALPHA: This feature is part of an alpha release. +Snapshot = _reflection.GeneratedProtocolMessageType( + "Snapshot", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SNAPSHOT_LABELSENTRY, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + # @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot.LabelsEntry) + ), + ), + DESCRIPTOR=_SNAPSHOT, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""A snapshot resource. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2762,16 +3889,19 @@ labels: See Creating and managing labels. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot) + ), +) _sym_db.RegisterMessage(Snapshot) _sym_db.RegisterMessage(Snapshot.LabelsEntry) -GetSnapshotRequest = _reflection.GeneratedProtocolMessageType('GetSnapshotRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSNAPSHOTREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the GetSnapshot method. ALPHA: This feature is part of an +GetSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "GetSnapshotRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSNAPSHOTREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the GetSnapshot method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2782,15 +3912,18 @@ The name of the snapshot to get. Format is ``projects/{project}/snapshots/{snap}``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSnapshotRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSnapshotRequest) + ), +) _sym_db.RegisterMessage(GetSnapshotRequest) -ListSnapshotsRequest = _reflection.GeneratedProtocolMessageType('ListSnapshotsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTSNAPSHOTSREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``ListSnapshots`` method. ALPHA: This feature is part of +ListSnapshotsRequest = _reflection.GeneratedProtocolMessageType( + "ListSnapshotsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSNAPSHOTSREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``ListSnapshots`` method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2808,15 +3941,18 @@ ``ListSnapshots`` call, and that the system should return the next page of data. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsRequest) + ), +) _sym_db.RegisterMessage(ListSnapshotsRequest) -ListSnapshotsResponse = _reflection.GeneratedProtocolMessageType('ListSnapshotsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTSNAPSHOTSRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``ListSnapshots`` method. ALPHA: This feature is part +ListSnapshotsResponse = _reflection.GeneratedProtocolMessageType( + "ListSnapshotsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSNAPSHOTSRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``ListSnapshots`` method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2830,15 +3966,18 @@ match the request; this value should be passed in a new ``ListSnapshotsRequest``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsResponse) + ), +) _sym_db.RegisterMessage(ListSnapshotsResponse) -DeleteSnapshotRequest = _reflection.GeneratedProtocolMessageType('DeleteSnapshotRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETESNAPSHOTREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``DeleteSnapshot`` method. ALPHA: This feature is part +DeleteSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "DeleteSnapshotRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESNAPSHOTREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``DeleteSnapshot`` method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2849,15 +3988,18 @@ The name of the snapshot to delete. Format is ``projects/{project}/snapshots/{snap}``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSnapshotRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSnapshotRequest) + ), +) _sym_db.RegisterMessage(DeleteSnapshotRequest) -SeekRequest = _reflection.GeneratedProtocolMessageType('SeekRequest', (_message.Message,), dict( - DESCRIPTOR = _SEEKREQUEST, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Request for the ``Seek`` method. ALPHA: This feature is part of an alpha +SeekRequest = _reflection.GeneratedProtocolMessageType( + "SeekRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SEEKREQUEST, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Request for the ``Seek`` method. ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -2884,279 +4026,397 @@ as that of the provided subscription. Format is ``projects/{project}/snapshots/{snap}``. """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekRequest) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekRequest) + ), +) _sym_db.RegisterMessage(SeekRequest) -SeekResponse = _reflection.GeneratedProtocolMessageType('SeekResponse', (_message.Message,), dict( - DESCRIPTOR = _SEEKRESPONSE, - __module__ = 'google.cloud.pubsub_v1.proto.pubsub_pb2' - , - __doc__ = """Response for the ``Seek`` method (this response is empty). +SeekResponse = _reflection.GeneratedProtocolMessageType( + "SeekResponse", + (_message.Message,), + dict( + DESCRIPTOR=_SEEKRESPONSE, + __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", + __doc__="""Response for the ``Seek`` method (this response is empty). """, - # @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekResponse) - )) + # @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekResponse) + ), +) _sym_db.RegisterMessage(SeekResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1" + ), +) _TOPIC_LABELSENTRY.has_options = True -_TOPIC_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_TOPIC_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PUBSUBMESSAGE_ATTRIBUTESENTRY.has_options = True -_PUBSUBMESSAGE_ATTRIBUTESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PUBSUBMESSAGE_ATTRIBUTESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SUBSCRIPTION_LABELSENTRY.has_options = True -_SUBSCRIPTION_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SUBSCRIPTION_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PUSHCONFIG_ATTRIBUTESENTRY.has_options = True -_PUSHCONFIG_ATTRIBUTESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PUSHCONFIG_ATTRIBUTESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CREATESNAPSHOTREQUEST_LABELSENTRY.has_options = True -_CREATESNAPSHOTREQUEST_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CREATESNAPSHOTREQUEST_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SNAPSHOT_LABELSENTRY.has_options = True -_SNAPSHOT_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SNAPSHOT_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PUBLISHER = _descriptor.ServiceDescriptor( - name='Publisher', - full_name='google.pubsub.v1.Publisher', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4170, - serialized_end=5257, - methods=[ - _descriptor.MethodDescriptor( - name='CreateTopic', - full_name='google.pubsub.v1.Publisher.CreateTopic', + name="Publisher", + full_name="google.pubsub.v1.Publisher", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_TOPIC, - output_type=_TOPIC, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateTopic', - full_name='google.pubsub.v1.Publisher.UpdateTopic', - index=1, - containing_service=None, - input_type=_UPDATETOPICREQUEST, - output_type=_TOPIC, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='Publish', - full_name='google.pubsub.v1.Publisher.Publish', - index=2, - containing_service=None, - input_type=_PUBLISHREQUEST, - output_type=_PUBLISHRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetTopic', - full_name='google.pubsub.v1.Publisher.GetTopic', - index=3, - containing_service=None, - input_type=_GETTOPICREQUEST, - output_type=_TOPIC, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}')), - ), - _descriptor.MethodDescriptor( - name='ListTopics', - full_name='google.pubsub.v1.Publisher.ListTopics', - index=4, - containing_service=None, - input_type=_LISTTOPICSREQUEST, - output_type=_LISTTOPICSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics')), - ), - _descriptor.MethodDescriptor( - name='ListTopicSubscriptions', - full_name='google.pubsub.v1.Publisher.ListTopicSubscriptions', - index=5, - containing_service=None, - input_type=_LISTTOPICSUBSCRIPTIONSREQUEST, - output_type=_LISTTOPICSUBSCRIPTIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions')), - ), - _descriptor.MethodDescriptor( - name='ListTopicSnapshots', - full_name='google.pubsub.v1.Publisher.ListTopicSnapshots', - index=6, - containing_service=None, - input_type=_LISTTOPICSNAPSHOTSREQUEST, - output_type=_LISTTOPICSNAPSHOTSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots')), - ), - _descriptor.MethodDescriptor( - name='DeleteTopic', - full_name='google.pubsub.v1.Publisher.DeleteTopic', - index=7, - containing_service=None, - input_type=_DELETETOPICREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}')), - ), -]) + options=None, + serialized_start=4170, + serialized_end=5257, + methods=[ + _descriptor.MethodDescriptor( + name="CreateTopic", + full_name="google.pubsub.v1.Publisher.CreateTopic", + index=0, + containing_service=None, + input_type=_TOPIC, + output_type=_TOPIC, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*"), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateTopic", + full_name="google.pubsub.v1.Publisher.UpdateTopic", + index=1, + containing_service=None, + input_type=_UPDATETOPICREQUEST, + output_type=_TOPIC, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*"), + ), + ), + _descriptor.MethodDescriptor( + name="Publish", + full_name="google.pubsub.v1.Publisher.Publish", + index=2, + containing_service=None, + input_type=_PUBLISHREQUEST, + output_type=_PUBLISHRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\"'/v1/{topic=projects/*/topics/*}:publish:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetTopic", + full_name="google.pubsub.v1.Publisher.GetTopic", + index=3, + containing_service=None, + input_type=_GETTOPICREQUEST, + output_type=_TOPIC, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListTopics", + full_name="google.pubsub.v1.Publisher.ListTopics", + index=4, + containing_service=None, + input_type=_LISTTOPICSREQUEST, + output_type=_LISTTOPICSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics"), + ), + ), + _descriptor.MethodDescriptor( + name="ListTopicSubscriptions", + full_name="google.pubsub.v1.Publisher.ListTopicSubscriptions", + index=5, + containing_service=None, + input_type=_LISTTOPICSUBSCRIPTIONSREQUEST, + output_type=_LISTTOPICSUBSCRIPTIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListTopicSnapshots", + full_name="google.pubsub.v1.Publisher.ListTopicSnapshots", + index=6, + containing_service=None, + input_type=_LISTTOPICSNAPSHOTSREQUEST, + output_type=_LISTTOPICSNAPSHOTSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteTopic", + full_name="google.pubsub.v1.Publisher.DeleteTopic", + index=7, + containing_service=None, + input_type=_DELETETOPICREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}"), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_PUBLISHER) -DESCRIPTOR.services_by_name['Publisher'] = _PUBLISHER +DESCRIPTOR.services_by_name["Publisher"] = _PUBLISHER _SUBSCRIBER = _descriptor.ServiceDescriptor( - name='Subscriber', - full_name='google.pubsub.v1.Subscriber', - file=DESCRIPTOR, - index=1, - options=None, - serialized_start=5260, - serialized_end=7557, - methods=[ - _descriptor.MethodDescriptor( - name='CreateSubscription', - full_name='google.pubsub.v1.Subscriber.CreateSubscription', - index=0, - containing_service=None, - input_type=_SUBSCRIPTION, - output_type=_SUBSCRIPTION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetSubscription', - full_name='google.pubsub.v1.Subscriber.GetSubscription', + name="Subscriber", + full_name="google.pubsub.v1.Subscriber", + file=DESCRIPTOR, index=1, - containing_service=None, - input_type=_GETSUBSCRIPTIONREQUEST, - output_type=_SUBSCRIPTION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{subscription=projects/*/subscriptions/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateSubscription', - full_name='google.pubsub.v1.Subscriber.UpdateSubscription', - index=2, - containing_service=None, - input_type=_UPDATESUBSCRIPTIONREQUEST, - output_type=_SUBSCRIPTION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListSubscriptions', - full_name='google.pubsub.v1.Subscriber.ListSubscriptions', - index=3, - containing_service=None, - input_type=_LISTSUBSCRIPTIONSREQUEST, - output_type=_LISTSUBSCRIPTIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions')), - ), - _descriptor.MethodDescriptor( - name='DeleteSubscription', - full_name='google.pubsub.v1.Subscriber.DeleteSubscription', - index=4, - containing_service=None, - input_type=_DELETESUBSCRIPTIONREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/*-/v1/{subscription=projects/*/subscriptions/*}')), - ), - _descriptor.MethodDescriptor( - name='ModifyAckDeadline', - full_name='google.pubsub.v1.Subscriber.ModifyAckDeadline', - index=5, - containing_service=None, - input_type=_MODIFYACKDEADLINEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002D\"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*')), - ), - _descriptor.MethodDescriptor( - name='Acknowledge', - full_name='google.pubsub.v1.Subscriber.Acknowledge', - index=6, - containing_service=None, - input_type=_ACKNOWLEDGEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*')), - ), - _descriptor.MethodDescriptor( - name='Pull', - full_name='google.pubsub.v1.Subscriber.Pull', - index=7, - containing_service=None, - input_type=_PULLREQUEST, - output_type=_PULLRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\001*')), - ), - _descriptor.MethodDescriptor( - name='StreamingPull', - full_name='google.pubsub.v1.Subscriber.StreamingPull', - index=8, - containing_service=None, - input_type=_STREAMINGPULLREQUEST, - output_type=_STREAMINGPULLRESPONSE, options=None, - ), - _descriptor.MethodDescriptor( - name='ModifyPushConfig', - full_name='google.pubsub.v1.Subscriber.ModifyPushConfig', - index=9, - containing_service=None, - input_type=_MODIFYPUSHCONFIGREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002C\">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetSnapshot', - full_name='google.pubsub.v1.Subscriber.GetSnapshot', - index=10, - containing_service=None, - input_type=_GETSNAPSHOTREQUEST, - output_type=_SNAPSHOT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}')), - ), - _descriptor.MethodDescriptor( - name='ListSnapshots', - full_name='google.pubsub.v1.Subscriber.ListSnapshots', - index=11, - containing_service=None, - input_type=_LISTSNAPSHOTSREQUEST, - output_type=_LISTSNAPSHOTSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots')), - ), - _descriptor.MethodDescriptor( - name='CreateSnapshot', - full_name='google.pubsub.v1.Subscriber.CreateSnapshot', - index=12, - containing_service=None, - input_type=_CREATESNAPSHOTREQUEST, - output_type=_SNAPSHOT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateSnapshot', - full_name='google.pubsub.v1.Subscriber.UpdateSnapshot', - index=13, - containing_service=None, - input_type=_UPDATESNAPSHOTREQUEST, - output_type=_SNAPSHOT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeleteSnapshot', - full_name='google.pubsub.v1.Subscriber.DeleteSnapshot', - index=14, - containing_service=None, - input_type=_DELETESNAPSHOTREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}')), - ), - _descriptor.MethodDescriptor( - name='Seek', - full_name='google.pubsub.v1.Subscriber.Seek', - index=15, - containing_service=None, - input_type=_SEEKREQUEST, - output_type=_SEEKRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"2/v1/{subscription=projects/*/subscriptions/*}:seek:\001*')), - ), -]) + serialized_start=5260, + serialized_end=7557, + methods=[ + _descriptor.MethodDescriptor( + name="CreateSubscription", + full_name="google.pubsub.v1.Subscriber.CreateSubscription", + index=0, + containing_service=None, + input_type=_SUBSCRIPTION, + output_type=_SUBSCRIPTION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetSubscription", + full_name="google.pubsub.v1.Subscriber.GetSubscription", + index=1, + containing_service=None, + input_type=_GETSUBSCRIPTIONREQUEST, + output_type=_SUBSCRIPTION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1/{subscription=projects/*/subscriptions/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateSubscription", + full_name="google.pubsub.v1.Subscriber.UpdateSubscription", + index=2, + containing_service=None, + input_type=_UPDATESUBSCRIPTIONREQUEST, + output_type=_SUBSCRIPTION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListSubscriptions", + full_name="google.pubsub.v1.Subscriber.ListSubscriptions", + index=3, + containing_service=None, + input_type=_LISTSUBSCRIPTIONSREQUEST, + output_type=_LISTSUBSCRIPTIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions"), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteSubscription", + full_name="google.pubsub.v1.Subscriber.DeleteSubscription", + index=4, + containing_service=None, + input_type=_DELETESUBSCRIPTIONREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/*-/v1/{subscription=projects/*/subscriptions/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ModifyAckDeadline", + full_name="google.pubsub.v1.Subscriber.ModifyAckDeadline", + index=5, + containing_service=None, + input_type=_MODIFYACKDEADLINEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002D"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="Acknowledge", + full_name="google.pubsub.v1.Subscriber.Acknowledge", + index=6, + containing_service=None, + input_type=_ACKNOWLEDGEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002>"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="Pull", + full_name="google.pubsub.v1.Subscriber.Pull", + index=7, + containing_service=None, + input_type=_PULLREQUEST, + output_type=_PULLRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027"2/v1/{subscription=projects/*/subscriptions/*}:pull:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="StreamingPull", + full_name="google.pubsub.v1.Subscriber.StreamingPull", + index=8, + containing_service=None, + input_type=_STREAMINGPULLREQUEST, + output_type=_STREAMINGPULLRESPONSE, + options=None, + ), + _descriptor.MethodDescriptor( + name="ModifyPushConfig", + full_name="google.pubsub.v1.Subscriber.ModifyPushConfig", + index=9, + containing_service=None, + input_type=_MODIFYPUSHCONFIGREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002C">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetSnapshot", + full_name="google.pubsub.v1.Subscriber.GetSnapshot", + index=10, + containing_service=None, + input_type=_GETSNAPSHOTREQUEST, + output_type=_SNAPSHOT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002'\022%/v1/{snapshot=projects/*/snapshots/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListSnapshots", + full_name="google.pubsub.v1.Subscriber.ListSnapshots", + index=11, + containing_service=None, + input_type=_LISTSNAPSHOTSREQUEST, + output_type=_LISTSNAPSHOTSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002$\022"/v1/{project=projects/*}/snapshots'), + ), + ), + _descriptor.MethodDescriptor( + name="CreateSnapshot", + full_name="google.pubsub.v1.Subscriber.CreateSnapshot", + index=12, + containing_service=None, + input_type=_CREATESNAPSHOTREQUEST, + output_type=_SNAPSHOT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*"), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateSnapshot", + full_name="google.pubsub.v1.Subscriber.UpdateSnapshot", + index=13, + containing_service=None, + input_type=_UPDATESNAPSHOTREQUEST, + output_type=_SNAPSHOT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteSnapshot", + full_name="google.pubsub.v1.Subscriber.DeleteSnapshot", + index=14, + containing_service=None, + input_type=_DELETESNAPSHOTREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002'*%/v1/{snapshot=projects/*/snapshots/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="Seek", + full_name="google.pubsub.v1.Subscriber.Seek", + index=15, + containing_service=None, + input_type=_SEEKREQUEST, + output_type=_SEEKRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027"2/v1/{subscription=projects/*/subscriptions/*}:seek:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_SUBSCRIBER) -DESCRIPTOR.services_by_name['Subscriber'] = _SUBSCRIBER +DESCRIPTOR.services_by_name["Subscriber"] = _SUBSCRIBER # @@protoc_insertion_point(module_scope) diff --git a/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2_grpc.py b/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2_grpc.py index 98f878c83b0a6..2a13a9d7b12c8 100644 --- a/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2_grpc.py +++ b/pubsub/google/cloud/pubsub_v1/proto/pubsub_pb2_grpc.py @@ -1,285 +1,288 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.pubsub_v1.proto import pubsub_pb2 as google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2 +from google.cloud.pubsub_v1.proto import ( + pubsub_pb2 as google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class PublisherStub(object): - """The service that an application uses to manipulate topics, and to send + """The service that an application uses to manipulate topics, and to send messages to a topic. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateTopic = channel.unary_unary( - '/google.pubsub.v1.Publisher/CreateTopic', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, + self.CreateTopic = channel.unary_unary( + "/google.pubsub.v1.Publisher/CreateTopic", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, ) - self.UpdateTopic = channel.unary_unary( - '/google.pubsub.v1.Publisher/UpdateTopic', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateTopicRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, + self.UpdateTopic = channel.unary_unary( + "/google.pubsub.v1.Publisher/UpdateTopic", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateTopicRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, ) - self.Publish = channel.unary_unary( - '/google.pubsub.v1.Publisher/Publish', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishResponse.FromString, + self.Publish = channel.unary_unary( + "/google.pubsub.v1.Publisher/Publish", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishResponse.FromString, ) - self.GetTopic = channel.unary_unary( - '/google.pubsub.v1.Publisher/GetTopic', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetTopicRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, + self.GetTopic = channel.unary_unary( + "/google.pubsub.v1.Publisher/GetTopic", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetTopicRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, ) - self.ListTopics = channel.unary_unary( - '/google.pubsub.v1.Publisher/ListTopics', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsResponse.FromString, + self.ListTopics = channel.unary_unary( + "/google.pubsub.v1.Publisher/ListTopics", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsResponse.FromString, ) - self.ListTopicSubscriptions = channel.unary_unary( - '/google.pubsub.v1.Publisher/ListTopicSubscriptions', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsResponse.FromString, + self.ListTopicSubscriptions = channel.unary_unary( + "/google.pubsub.v1.Publisher/ListTopicSubscriptions", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsResponse.FromString, ) - self.ListTopicSnapshots = channel.unary_unary( - '/google.pubsub.v1.Publisher/ListTopicSnapshots', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsResponse.FromString, + self.ListTopicSnapshots = channel.unary_unary( + "/google.pubsub.v1.Publisher/ListTopicSnapshots", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsResponse.FromString, ) - self.DeleteTopic = channel.unary_unary( - '/google.pubsub.v1.Publisher/DeleteTopic', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteTopicRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteTopic = channel.unary_unary( + "/google.pubsub.v1.Publisher/DeleteTopic", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteTopicRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class PublisherServicer(object): - """The service that an application uses to manipulate topics, and to send + """The service that an application uses to manipulate topics, and to send messages to a topic. """ - def CreateTopic(self, request, context): - """Creates the given topic with the given name. See the + def CreateTopic(self, request, context): + """Creates the given topic with the given name. See the resource name rules. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateTopic(self, request, context): - """Updates an existing topic. Note that certain properties of a + def UpdateTopic(self, request, context): + """Updates an existing topic. Note that certain properties of a topic are not modifiable. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Publish(self, request, context): - """Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic + def Publish(self, request, context): + """Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTopic(self, request, context): - """Gets the configuration of a topic. + def GetTopic(self, request, context): + """Gets the configuration of a topic. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTopics(self, request, context): - """Lists matching topics. + def ListTopics(self, request, context): + """Lists matching topics. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTopicSubscriptions(self, request, context): - """Lists the names of the subscriptions on this topic. + def ListTopicSubscriptions(self, request, context): + """Lists the names of the subscriptions on this topic. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTopicSnapshots(self, request, context): - """Lists the names of the snapshots on this topic.

+ def ListTopicSnapshots(self, request, context): + """Lists the names of the snapshots on this topic.

ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteTopic(self, request, context): - """Deletes the topic with the given name. Returns `NOT_FOUND` if the topic + def DeleteTopic(self, request, context): + """Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_PublisherServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateTopic': grpc.unary_unary_rpc_method_handler( - servicer.CreateTopic, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, - ), - 'UpdateTopic': grpc.unary_unary_rpc_method_handler( - servicer.UpdateTopic, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateTopicRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, - ), - 'Publish': grpc.unary_unary_rpc_method_handler( - servicer.Publish, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishResponse.SerializeToString, - ), - 'GetTopic': grpc.unary_unary_rpc_method_handler( - servicer.GetTopic, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetTopicRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, - ), - 'ListTopics': grpc.unary_unary_rpc_method_handler( - servicer.ListTopics, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsResponse.SerializeToString, - ), - 'ListTopicSubscriptions': grpc.unary_unary_rpc_method_handler( - servicer.ListTopicSubscriptions, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsResponse.SerializeToString, - ), - 'ListTopicSnapshots': grpc.unary_unary_rpc_method_handler( - servicer.ListTopicSnapshots, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsResponse.SerializeToString, - ), - 'DeleteTopic': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTopic, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteTopicRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.pubsub.v1.Publisher', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateTopic": grpc.unary_unary_rpc_method_handler( + servicer.CreateTopic, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, + ), + "UpdateTopic": grpc.unary_unary_rpc_method_handler( + servicer.UpdateTopic, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateTopicRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, + ), + "Publish": grpc.unary_unary_rpc_method_handler( + servicer.Publish, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PublishResponse.SerializeToString, + ), + "GetTopic": grpc.unary_unary_rpc_method_handler( + servicer.GetTopic, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetTopicRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Topic.SerializeToString, + ), + "ListTopics": grpc.unary_unary_rpc_method_handler( + servicer.ListTopics, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicsResponse.SerializeToString, + ), + "ListTopicSubscriptions": grpc.unary_unary_rpc_method_handler( + servicer.ListTopicSubscriptions, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSubscriptionsResponse.SerializeToString, + ), + "ListTopicSnapshots": grpc.unary_unary_rpc_method_handler( + servicer.ListTopicSnapshots, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListTopicSnapshotsResponse.SerializeToString, + ), + "DeleteTopic": grpc.unary_unary_rpc_method_handler( + servicer.DeleteTopic, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteTopicRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.pubsub.v1.Publisher", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) class SubscriberStub(object): - """The service that an application uses to manipulate subscriptions and to + """The service that an application uses to manipulate subscriptions and to consume messages from a subscription via the `Pull` method or by establishing a bi-directional stream using the `StreamingPull` method. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateSubscription = channel.unary_unary( - '/google.pubsub.v1.Subscriber/CreateSubscription', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, + self.CreateSubscription = channel.unary_unary( + "/google.pubsub.v1.Subscriber/CreateSubscription", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, ) - self.GetSubscription = channel.unary_unary( - '/google.pubsub.v1.Subscriber/GetSubscription', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSubscriptionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, + self.GetSubscription = channel.unary_unary( + "/google.pubsub.v1.Subscriber/GetSubscription", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSubscriptionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, ) - self.UpdateSubscription = channel.unary_unary( - '/google.pubsub.v1.Subscriber/UpdateSubscription', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSubscriptionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, + self.UpdateSubscription = channel.unary_unary( + "/google.pubsub.v1.Subscriber/UpdateSubscription", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSubscriptionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, ) - self.ListSubscriptions = channel.unary_unary( - '/google.pubsub.v1.Subscriber/ListSubscriptions', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsResponse.FromString, + self.ListSubscriptions = channel.unary_unary( + "/google.pubsub.v1.Subscriber/ListSubscriptions", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsResponse.FromString, ) - self.DeleteSubscription = channel.unary_unary( - '/google.pubsub.v1.Subscriber/DeleteSubscription', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSubscriptionRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteSubscription = channel.unary_unary( + "/google.pubsub.v1.Subscriber/DeleteSubscription", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSubscriptionRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ModifyAckDeadline = channel.unary_unary( - '/google.pubsub.v1.Subscriber/ModifyAckDeadline', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyAckDeadlineRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.ModifyAckDeadline = channel.unary_unary( + "/google.pubsub.v1.Subscriber/ModifyAckDeadline", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyAckDeadlineRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.Acknowledge = channel.unary_unary( - '/google.pubsub.v1.Subscriber/Acknowledge', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.AcknowledgeRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.Acknowledge = channel.unary_unary( + "/google.pubsub.v1.Subscriber/Acknowledge", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.AcknowledgeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.Pull = channel.unary_unary( - '/google.pubsub.v1.Subscriber/Pull', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullResponse.FromString, + self.Pull = channel.unary_unary( + "/google.pubsub.v1.Subscriber/Pull", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullResponse.FromString, ) - self.StreamingPull = channel.stream_stream( - '/google.pubsub.v1.Subscriber/StreamingPull', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullResponse.FromString, + self.StreamingPull = channel.stream_stream( + "/google.pubsub.v1.Subscriber/StreamingPull", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullResponse.FromString, ) - self.ModifyPushConfig = channel.unary_unary( - '/google.pubsub.v1.Subscriber/ModifyPushConfig', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyPushConfigRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.ModifyPushConfig = channel.unary_unary( + "/google.pubsub.v1.Subscriber/ModifyPushConfig", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyPushConfigRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetSnapshot = channel.unary_unary( - '/google.pubsub.v1.Subscriber/GetSnapshot', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSnapshotRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.FromString, + self.GetSnapshot = channel.unary_unary( + "/google.pubsub.v1.Subscriber/GetSnapshot", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSnapshotRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.FromString, ) - self.ListSnapshots = channel.unary_unary( - '/google.pubsub.v1.Subscriber/ListSnapshots', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsResponse.FromString, + self.ListSnapshots = channel.unary_unary( + "/google.pubsub.v1.Subscriber/ListSnapshots", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsResponse.FromString, ) - self.CreateSnapshot = channel.unary_unary( - '/google.pubsub.v1.Subscriber/CreateSnapshot', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.CreateSnapshotRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.FromString, + self.CreateSnapshot = channel.unary_unary( + "/google.pubsub.v1.Subscriber/CreateSnapshot", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.CreateSnapshotRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.FromString, ) - self.UpdateSnapshot = channel.unary_unary( - '/google.pubsub.v1.Subscriber/UpdateSnapshot', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSnapshotRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.FromString, + self.UpdateSnapshot = channel.unary_unary( + "/google.pubsub.v1.Subscriber/UpdateSnapshot", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSnapshotRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.FromString, ) - self.DeleteSnapshot = channel.unary_unary( - '/google.pubsub.v1.Subscriber/DeleteSnapshot', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSnapshotRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteSnapshot = channel.unary_unary( + "/google.pubsub.v1.Subscriber/DeleteSnapshot", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSnapshotRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.Seek = channel.unary_unary( - '/google.pubsub.v1.Subscriber/Seek', - request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekResponse.FromString, + self.Seek = channel.unary_unary( + "/google.pubsub.v1.Subscriber/Seek", + request_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekResponse.FromString, ) class SubscriberServicer(object): - """The service that an application uses to manipulate subscriptions and to + """The service that an application uses to manipulate subscriptions and to consume messages from a subscription via the `Pull` method or by establishing a bi-directional stream using the `StreamingPull` method. """ - def CreateSubscription(self, request, context): - """Creates a subscription to a given topic. See the + def CreateSubscription(self, request, context): + """Creates a subscription to a given topic. See the resource name rules. If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. @@ -291,56 +294,56 @@ def CreateSubscription(self, request, context): The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetSubscription(self, request, context): - """Gets the configuration details of a subscription. + def GetSubscription(self, request, context): + """Gets the configuration details of a subscription. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateSubscription(self, request, context): - """Updates an existing subscription. Note that certain properties of a + def UpdateSubscription(self, request, context): + """Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListSubscriptions(self, request, context): - """Lists matching subscriptions. + def ListSubscriptions(self, request, context): + """Lists matching subscriptions. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteSubscription(self, request, context): - """Deletes an existing subscription. All messages retained in the subscription + def DeleteSubscription(self, request, context): + """Deletes an existing subscription. All messages retained in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription or its topic unless the same topic is specified. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ModifyAckDeadline(self, request, context): - """Modifies the ack deadline for a specific message. This method is useful + def ModifyAckDeadline(self, request, context): + """Modifies the ack deadline for a specific message. This method is useful to indicate that more time is needed to process a message by the subscriber, or to make the message available for redelivery if the processing was interrupted. Note that this does not modify the subscription-level `ackDeadlineSeconds` used for subsequent messages. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Acknowledge(self, request, context): - """Acknowledges the messages associated with the `ack_ids` in the + def Acknowledge(self, request, context): + """Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. @@ -348,21 +351,21 @@ def Acknowledge(self, request, context): but such a message may be redelivered later. Acknowledging a message more than once will not result in an error. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Pull(self, request, context): - """Pulls messages from the server. The server may return `UNAVAILABLE` if + def Pull(self, request, context): + """Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def StreamingPull(self, request_iterator, context): - """Establishes a stream with the server, which sends messages down to the + def StreamingPull(self, request_iterator, context): + """Establishes a stream with the server, which sends messages down to the client. The client streams acknowledgements and ack deadline modifications back to the server. The server will close the stream and return the status on any error. The server may close the stream with status `UNAVAILABLE` to @@ -370,44 +373,44 @@ def StreamingPull(self, request_iterator, context): re-establish the stream. Flow control can be achieved by configuring the underlying RPC channel. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ModifyPushConfig(self, request, context): - """Modifies the `PushConfig` for a specified subscription. + def ModifyPushConfig(self, request, context): + """Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetSnapshot(self, request, context): - """Gets the configuration details of a snapshot.

+ def GetSnapshot(self, request, context): + """Gets the configuration details of a snapshot.

ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListSnapshots(self, request, context): - """Lists the existing snapshots.

+ def ListSnapshots(self, request, context): + """Lists the existing snapshots.

ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateSnapshot(self, request, context): - """Creates a snapshot from the requested subscription.

+ def CreateSnapshot(self, request, context): + """Creates a snapshot from the requested subscription.

ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.

@@ -423,23 +426,23 @@ def CreateSnapshot(self, request, context): name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateSnapshot(self, request, context): - """Updates an existing snapshot.

+ def UpdateSnapshot(self, request, context): + """Updates an existing snapshot.

ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. Note that certain properties of a snapshot are not modifiable. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteSnapshot(self, request, context): - """Removes an existing snapshot.

+ def DeleteSnapshot(self, request, context): + """Removes an existing snapshot.

ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. @@ -448,105 +451,106 @@ def DeleteSnapshot(self, request, context): created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Seek(self, request, context): - """Seeks an existing subscription to a point in time or to a given snapshot, + def Seek(self, request, context): + """Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided in the request.

ALPHA: This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_SubscriberServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateSubscription': grpc.unary_unary_rpc_method_handler( - servicer.CreateSubscription, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, - ), - 'GetSubscription': grpc.unary_unary_rpc_method_handler( - servicer.GetSubscription, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSubscriptionRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, - ), - 'UpdateSubscription': grpc.unary_unary_rpc_method_handler( - servicer.UpdateSubscription, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSubscriptionRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, - ), - 'ListSubscriptions': grpc.unary_unary_rpc_method_handler( - servicer.ListSubscriptions, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsResponse.SerializeToString, - ), - 'DeleteSubscription': grpc.unary_unary_rpc_method_handler( - servicer.DeleteSubscription, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSubscriptionRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ModifyAckDeadline': grpc.unary_unary_rpc_method_handler( - servicer.ModifyAckDeadline, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyAckDeadlineRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Acknowledge': grpc.unary_unary_rpc_method_handler( - servicer.Acknowledge, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.AcknowledgeRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Pull': grpc.unary_unary_rpc_method_handler( - servicer.Pull, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullResponse.SerializeToString, - ), - 'StreamingPull': grpc.stream_stream_rpc_method_handler( - servicer.StreamingPull, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullResponse.SerializeToString, - ), - 'ModifyPushConfig': grpc.unary_unary_rpc_method_handler( - servicer.ModifyPushConfig, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyPushConfigRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetSnapshot': grpc.unary_unary_rpc_method_handler( - servicer.GetSnapshot, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSnapshotRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.SerializeToString, - ), - 'ListSnapshots': grpc.unary_unary_rpc_method_handler( - servicer.ListSnapshots, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsResponse.SerializeToString, - ), - 'CreateSnapshot': grpc.unary_unary_rpc_method_handler( - servicer.CreateSnapshot, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.CreateSnapshotRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.SerializeToString, - ), - 'UpdateSnapshot': grpc.unary_unary_rpc_method_handler( - servicer.UpdateSnapshot, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSnapshotRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.SerializeToString, - ), - 'DeleteSnapshot': grpc.unary_unary_rpc_method_handler( - servicer.DeleteSnapshot, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSnapshotRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Seek': grpc.unary_unary_rpc_method_handler( - servicer.Seek, - request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekRequest.FromString, - response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.pubsub.v1.Subscriber', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateSubscription": grpc.unary_unary_rpc_method_handler( + servicer.CreateSubscription, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, + ), + "GetSubscription": grpc.unary_unary_rpc_method_handler( + servicer.GetSubscription, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSubscriptionRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, + ), + "UpdateSubscription": grpc.unary_unary_rpc_method_handler( + servicer.UpdateSubscription, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSubscriptionRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Subscription.SerializeToString, + ), + "ListSubscriptions": grpc.unary_unary_rpc_method_handler( + servicer.ListSubscriptions, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSubscriptionsResponse.SerializeToString, + ), + "DeleteSubscription": grpc.unary_unary_rpc_method_handler( + servicer.DeleteSubscription, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSubscriptionRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ModifyAckDeadline": grpc.unary_unary_rpc_method_handler( + servicer.ModifyAckDeadline, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyAckDeadlineRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "Acknowledge": grpc.unary_unary_rpc_method_handler( + servicer.Acknowledge, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.AcknowledgeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "Pull": grpc.unary_unary_rpc_method_handler( + servicer.Pull, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.PullResponse.SerializeToString, + ), + "StreamingPull": grpc.stream_stream_rpc_method_handler( + servicer.StreamingPull, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.StreamingPullResponse.SerializeToString, + ), + "ModifyPushConfig": grpc.unary_unary_rpc_method_handler( + servicer.ModifyPushConfig, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ModifyPushConfigRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetSnapshot": grpc.unary_unary_rpc_method_handler( + servicer.GetSnapshot, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.GetSnapshotRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.SerializeToString, + ), + "ListSnapshots": grpc.unary_unary_rpc_method_handler( + servicer.ListSnapshots, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.ListSnapshotsResponse.SerializeToString, + ), + "CreateSnapshot": grpc.unary_unary_rpc_method_handler( + servicer.CreateSnapshot, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.CreateSnapshotRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.SerializeToString, + ), + "UpdateSnapshot": grpc.unary_unary_rpc_method_handler( + servicer.UpdateSnapshot, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.UpdateSnapshotRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.Snapshot.SerializeToString, + ), + "DeleteSnapshot": grpc.unary_unary_rpc_method_handler( + servicer.DeleteSnapshot, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.DeleteSnapshotRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "Seek": grpc.unary_unary_rpc_method_handler( + servicer.Seek, + request_deserializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekRequest.FromString, + response_serializer=google_dot_cloud_dot_pubsub__v1_dot_proto_dot_pubsub__pb2.SeekResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.pubsub.v1.Subscriber", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/redis/google/cloud/redis_v1/proto/cloud_redis_pb2.py b/redis/google/cloud/redis_v1/proto/cloud_redis_pb2.py index e6bb0932b8771..44af3be7e3806 100644 --- a/redis/google/cloud/redis_v1/proto/cloud_redis_pb2.py +++ b/redis/google/cloud/redis_v1/proto/cloud_redis_pb2.py @@ -2,762 +2,1211 @@ # source: google/cloud/redis_v1/proto/cloud_redis.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/redis_v1/proto/cloud_redis.proto', - package='google.cloud.redis.v1', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/redis_v1/proto/cloud_redis.proto\x12\x15google.cloud.redis.v1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x06\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x06labels\x18\x03 \x03(\x0b\x32+.google.cloud.redis.v1.Instance.LabelsEntry\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\x12\x1f\n\x17\x61lternative_location_id\x18\x05 \x01(\t\x12\x15\n\rredis_version\x18\x07 \x01(\t\x12\x19\n\x11reserved_ip_range\x18\t \x01(\t\x12\x0c\n\x04host\x18\n \x01(\t\x12\x0c\n\x04port\x18\x0b \x01(\x05\x12\x1b\n\x13\x63urrent_location_id\x18\x0c \x01(\t\x12/\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x05state\x18\x0e \x01(\x0e\x32%.google.cloud.redis.v1.Instance.State\x12\x16\n\x0estatus_message\x18\x0f \x01(\t\x12H\n\rredis_configs\x18\x10 \x03(\x0b\x32\x31.google.cloud.redis.v1.Instance.RedisConfigsEntry\x12\x32\n\x04tier\x18\x11 \x01(\x0e\x32$.google.cloud.redis.v1.Instance.Tier\x12\x16\n\x0ememory_size_gb\x18\x12 \x01(\x05\x12\x1a\n\x12\x61uthorized_network\x18\x14 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\r\n\tREPAIRING\x10\x05\x12\x0f\n\x0bMAINTENANCE\x10\x06\"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0f\n\x0bSTANDARD_HA\x10\x03\"M\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"d\n\x15ListInstancesResponse\x12\x32\n\tinstances\x18\x01 \x03(\x0b\x32\x1f.google.cloud.redis.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\"\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"o\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x31\n\x08instance\x18\x03 \x01(\x0b\x32\x1f.google.cloud.redis.v1.Instance\"{\n\x15UpdateInstanceRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x31\n\x08instance\x18\x02 \x01(\x0b\x32\x1f.google.cloud.redis.v1.Instance\"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xd6\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x18\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\"\xc4\x01\n\x10LocationMetadata\x12T\n\x0f\x61vailable_zones\x18\x01 \x03(\x0b\x32;.google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry\x1aZ\n\x13\x41vailableZonesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.google.cloud.redis.v1.ZoneMetadata:\x02\x38\x01\"\x0e\n\x0cZoneMetadata2\xa5\x06\n\nCloudRedis\x12\xa1\x01\n\rListInstances\x12+.google.cloud.redis.v1.ListInstancesRequest\x1a,.google.cloud.redis.v1.ListInstancesResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\x12\x90\x01\n\x0bGetInstance\x12).google.cloud.redis.v1.GetInstanceRequest\x1a\x1f.google.cloud.redis.v1.Instance\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\x12\x9e\x01\n\x0e\x43reateInstance\x12,.google.cloud.redis.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"?\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\x12\xa7\x01\n\x0eUpdateInstance\x12,.google.cloud.redis.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"H\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\x94\x01\n\x0e\x44\x65leteInstance\x12,.google.cloud.redis.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"5\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}Bs\n\x19\x63om.google.cloud.redis.v1B\x18\x43loudRedisServiceV1ProtoP\x01Z:google.golang.org/genproto/googleapis/cloud/redis/v1;redisb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/redis_v1/proto/cloud_redis.proto", + package="google.cloud.redis.v1", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/redis_v1/proto/cloud_redis.proto\x12\x15google.cloud.redis.v1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd0\x06\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x06labels\x18\x03 \x03(\x0b\x32+.google.cloud.redis.v1.Instance.LabelsEntry\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\x12\x1f\n\x17\x61lternative_location_id\x18\x05 \x01(\t\x12\x15\n\rredis_version\x18\x07 \x01(\t\x12\x19\n\x11reserved_ip_range\x18\t \x01(\t\x12\x0c\n\x04host\x18\n \x01(\t\x12\x0c\n\x04port\x18\x0b \x01(\x05\x12\x1b\n\x13\x63urrent_location_id\x18\x0c \x01(\t\x12/\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x05state\x18\x0e \x01(\x0e\x32%.google.cloud.redis.v1.Instance.State\x12\x16\n\x0estatus_message\x18\x0f \x01(\t\x12H\n\rredis_configs\x18\x10 \x03(\x0b\x32\x31.google.cloud.redis.v1.Instance.RedisConfigsEntry\x12\x32\n\x04tier\x18\x11 \x01(\x0e\x32$.google.cloud.redis.v1.Instance.Tier\x12\x16\n\x0ememory_size_gb\x18\x12 \x01(\x05\x12\x1a\n\x12\x61uthorized_network\x18\x14 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\r\n\tREPAIRING\x10\x05\x12\x0f\n\x0bMAINTENANCE\x10\x06"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0f\n\x0bSTANDARD_HA\x10\x03"M\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"d\n\x15ListInstancesResponse\x12\x32\n\tinstances\x18\x01 \x03(\x0b\x32\x1f.google.cloud.redis.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t""\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"o\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x31\n\x08instance\x18\x03 \x01(\x0b\x32\x1f.google.cloud.redis.v1.Instance"{\n\x15UpdateInstanceRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x31\n\x08instance\x18\x02 \x01(\x0b\x32\x1f.google.cloud.redis.v1.Instance"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd6\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x18\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t"\xc4\x01\n\x10LocationMetadata\x12T\n\x0f\x61vailable_zones\x18\x01 \x03(\x0b\x32;.google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry\x1aZ\n\x13\x41vailableZonesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.google.cloud.redis.v1.ZoneMetadata:\x02\x38\x01"\x0e\n\x0cZoneMetadata2\xa5\x06\n\nCloudRedis\x12\xa1\x01\n\rListInstances\x12+.google.cloud.redis.v1.ListInstancesRequest\x1a,.google.cloud.redis.v1.ListInstancesResponse"5\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\x12\x90\x01\n\x0bGetInstance\x12).google.cloud.redis.v1.GetInstanceRequest\x1a\x1f.google.cloud.redis.v1.Instance"5\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\x12\x9e\x01\n\x0e\x43reateInstance\x12,.google.cloud.redis.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation"?\x82\xd3\xe4\x93\x02\x39"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\x12\xa7\x01\n\x0eUpdateInstance\x12,.google.cloud.redis.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation"H\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\x94\x01\n\x0e\x44\x65leteInstance\x12,.google.cloud.redis.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation"5\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}Bs\n\x19\x63om.google.cloud.redis.v1B\x18\x43loudRedisServiceV1ProtoP\x01Z:google.golang.org/genproto/googleapis/cloud/redis/v1;redisb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _INSTANCE_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.redis.v1.Instance.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPDATING', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETING', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REPAIRING', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MAINTENANCE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=882, - serialized_end=997, + name="State", + full_name="google.cloud.redis.v1.Instance.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPDATING", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETING", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REPAIRING", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MAINTENANCE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=882, + serialized_end=997, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_STATE) _INSTANCE_TIER = _descriptor.EnumDescriptor( - name='Tier', - full_name='google.cloud.redis.v1.Instance.Tier', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TIER_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BASIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STANDARD_HA', index=2, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=999, - serialized_end=1055, + name="Tier", + full_name="google.cloud.redis.v1.Instance.Tier", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TIER_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BASIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STANDARD_HA", index=2, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=999, + serialized_end=1055, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_TIER) _INSTANCE_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.redis.v1.Instance.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.redis.v1.Instance.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.redis.v1.Instance.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=782, - serialized_end=827, + name="LabelsEntry", + full_name="google.cloud.redis.v1.Instance.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.redis.v1.Instance.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.redis.v1.Instance.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=782, + serialized_end=827, ) _INSTANCE_REDISCONFIGSENTRY = _descriptor.Descriptor( - name='RedisConfigsEntry', - full_name='google.cloud.redis.v1.Instance.RedisConfigsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.redis.v1.Instance.RedisConfigsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.redis.v1.Instance.RedisConfigsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=829, - serialized_end=880, + name="RedisConfigsEntry", + full_name="google.cloud.redis.v1.Instance.RedisConfigsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.redis.v1.Instance.RedisConfigsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.redis.v1.Instance.RedisConfigsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=829, + serialized_end=880, ) _INSTANCE = _descriptor.Descriptor( - name='Instance', - full_name='google.cloud.redis.v1.Instance', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.redis.v1.Instance.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.redis.v1.Instance.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.redis.v1.Instance.labels', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_id', full_name='google.cloud.redis.v1.Instance.location_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alternative_location_id', full_name='google.cloud.redis.v1.Instance.alternative_location_id', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='redis_version', full_name='google.cloud.redis.v1.Instance.redis_version', index=5, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reserved_ip_range', full_name='google.cloud.redis.v1.Instance.reserved_ip_range', index=6, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='google.cloud.redis.v1.Instance.host', index=7, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='port', full_name='google.cloud.redis.v1.Instance.port', index=8, - number=11, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_location_id', full_name='google.cloud.redis.v1.Instance.current_location_id', index=9, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.redis.v1.Instance.create_time', index=10, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.redis.v1.Instance.state', index=11, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_message', full_name='google.cloud.redis.v1.Instance.status_message', index=12, - number=15, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='redis_configs', full_name='google.cloud.redis.v1.Instance.redis_configs', index=13, - number=16, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tier', full_name='google.cloud.redis.v1.Instance.tier', index=14, - number=17, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='memory_size_gb', full_name='google.cloud.redis.v1.Instance.memory_size_gb', index=15, - number=18, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authorized_network', full_name='google.cloud.redis.v1.Instance.authorized_network', index=16, - number=20, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSTANCE_LABELSENTRY, _INSTANCE_REDISCONFIGSENTRY, ], - enum_types=[ - _INSTANCE_STATE, - _INSTANCE_TIER, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=207, - serialized_end=1055, + name="Instance", + full_name="google.cloud.redis.v1.Instance", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.redis.v1.Instance.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.redis.v1.Instance.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.redis.v1.Instance.labels", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location_id", + full_name="google.cloud.redis.v1.Instance.location_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alternative_location_id", + full_name="google.cloud.redis.v1.Instance.alternative_location_id", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="redis_version", + full_name="google.cloud.redis.v1.Instance.redis_version", + index=5, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reserved_ip_range", + full_name="google.cloud.redis.v1.Instance.reserved_ip_range", + index=6, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="host", + full_name="google.cloud.redis.v1.Instance.host", + index=7, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="port", + full_name="google.cloud.redis.v1.Instance.port", + index=8, + number=11, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="current_location_id", + full_name="google.cloud.redis.v1.Instance.current_location_id", + index=9, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.redis.v1.Instance.create_time", + index=10, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.redis.v1.Instance.state", + index=11, + number=14, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_message", + full_name="google.cloud.redis.v1.Instance.status_message", + index=12, + number=15, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="redis_configs", + full_name="google.cloud.redis.v1.Instance.redis_configs", + index=13, + number=16, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tier", + full_name="google.cloud.redis.v1.Instance.tier", + index=14, + number=17, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="memory_size_gb", + full_name="google.cloud.redis.v1.Instance.memory_size_gb", + index=15, + number=18, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="authorized_network", + full_name="google.cloud.redis.v1.Instance.authorized_network", + index=16, + number=20, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_INSTANCE_LABELSENTRY, _INSTANCE_REDISCONFIGSENTRY], + enum_types=[_INSTANCE_STATE, _INSTANCE_TIER], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=207, + serialized_end=1055, ) _LISTINSTANCESREQUEST = _descriptor.Descriptor( - name='ListInstancesRequest', - full_name='google.cloud.redis.v1.ListInstancesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.redis.v1.ListInstancesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.redis.v1.ListInstancesRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.redis.v1.ListInstancesRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1057, - serialized_end=1134, + name="ListInstancesRequest", + full_name="google.cloud.redis.v1.ListInstancesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.redis.v1.ListInstancesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.redis.v1.ListInstancesRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.redis.v1.ListInstancesRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1057, + serialized_end=1134, ) _LISTINSTANCESRESPONSE = _descriptor.Descriptor( - name='ListInstancesResponse', - full_name='google.cloud.redis.v1.ListInstancesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instances', full_name='google.cloud.redis.v1.ListInstancesResponse.instances', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.redis.v1.ListInstancesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1136, - serialized_end=1236, + name="ListInstancesResponse", + full_name="google.cloud.redis.v1.ListInstancesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instances", + full_name="google.cloud.redis.v1.ListInstancesResponse.instances", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.redis.v1.ListInstancesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1136, + serialized_end=1236, ) _GETINSTANCEREQUEST = _descriptor.Descriptor( - name='GetInstanceRequest', - full_name='google.cloud.redis.v1.GetInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.redis.v1.GetInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1238, - serialized_end=1272, + name="GetInstanceRequest", + full_name="google.cloud.redis.v1.GetInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.redis.v1.GetInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1238, + serialized_end=1272, ) _CREATEINSTANCEREQUEST = _descriptor.Descriptor( - name='CreateInstanceRequest', - full_name='google.cloud.redis.v1.CreateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.redis.v1.CreateInstanceRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_id', full_name='google.cloud.redis.v1.CreateInstanceRequest.instance_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.cloud.redis.v1.CreateInstanceRequest.instance', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1274, - serialized_end=1385, + name="CreateInstanceRequest", + full_name="google.cloud.redis.v1.CreateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.redis.v1.CreateInstanceRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_id", + full_name="google.cloud.redis.v1.CreateInstanceRequest.instance_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.cloud.redis.v1.CreateInstanceRequest.instance", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1274, + serialized_end=1385, ) _UPDATEINSTANCEREQUEST = _descriptor.Descriptor( - name='UpdateInstanceRequest', - full_name='google.cloud.redis.v1.UpdateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.redis.v1.UpdateInstanceRequest.update_mask', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.cloud.redis.v1.UpdateInstanceRequest.instance', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1387, - serialized_end=1510, + name="UpdateInstanceRequest", + full_name="google.cloud.redis.v1.UpdateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.redis.v1.UpdateInstanceRequest.update_mask", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.cloud.redis.v1.UpdateInstanceRequest.instance", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1387, + serialized_end=1510, ) _DELETEINSTANCEREQUEST = _descriptor.Descriptor( - name='DeleteInstanceRequest', - full_name='google.cloud.redis.v1.DeleteInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.redis.v1.DeleteInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1512, - serialized_end=1549, + name="DeleteInstanceRequest", + full_name="google.cloud.redis.v1.DeleteInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.redis.v1.DeleteInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1512, + serialized_end=1549, ) _OPERATIONMETADATA = _descriptor.Descriptor( - name='OperationMetadata', - full_name='google.cloud.redis.v1.OperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.redis.v1.OperationMetadata.create_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.redis.v1.OperationMetadata.end_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target', full_name='google.cloud.redis.v1.OperationMetadata.target', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='verb', full_name='google.cloud.redis.v1.OperationMetadata.verb', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_detail', full_name='google.cloud.redis.v1.OperationMetadata.status_detail', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cancel_requested', full_name='google.cloud.redis.v1.OperationMetadata.cancel_requested', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='api_version', full_name='google.cloud.redis.v1.OperationMetadata.api_version', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1552, - serialized_end=1766, + name="OperationMetadata", + full_name="google.cloud.redis.v1.OperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.redis.v1.OperationMetadata.create_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.redis.v1.OperationMetadata.end_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="target", + full_name="google.cloud.redis.v1.OperationMetadata.target", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="verb", + full_name="google.cloud.redis.v1.OperationMetadata.verb", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_detail", + full_name="google.cloud.redis.v1.OperationMetadata.status_detail", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cancel_requested", + full_name="google.cloud.redis.v1.OperationMetadata.cancel_requested", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="api_version", + full_name="google.cloud.redis.v1.OperationMetadata.api_version", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1552, + serialized_end=1766, ) _LOCATIONMETADATA_AVAILABLEZONESENTRY = _descriptor.Descriptor( - name='AvailableZonesEntry', - full_name='google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1875, - serialized_end=1965, + name="AvailableZonesEntry", + full_name="google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1875, + serialized_end=1965, ) _LOCATIONMETADATA = _descriptor.Descriptor( - name='LocationMetadata', - full_name='google.cloud.redis.v1.LocationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='available_zones', full_name='google.cloud.redis.v1.LocationMetadata.available_zones', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_LOCATIONMETADATA_AVAILABLEZONESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1769, - serialized_end=1965, + name="LocationMetadata", + full_name="google.cloud.redis.v1.LocationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="available_zones", + full_name="google.cloud.redis.v1.LocationMetadata.available_zones", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_LOCATIONMETADATA_AVAILABLEZONESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1769, + serialized_end=1965, ) _ZONEMETADATA = _descriptor.Descriptor( - name='ZoneMetadata', - full_name='google.cloud.redis.v1.ZoneMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1967, - serialized_end=1981, + name="ZoneMetadata", + full_name="google.cloud.redis.v1.ZoneMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1967, + serialized_end=1981, ) _INSTANCE_LABELSENTRY.containing_type = _INSTANCE _INSTANCE_REDISCONFIGSENTRY.containing_type = _INSTANCE -_INSTANCE.fields_by_name['labels'].message_type = _INSTANCE_LABELSENTRY -_INSTANCE.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_INSTANCE.fields_by_name['state'].enum_type = _INSTANCE_STATE -_INSTANCE.fields_by_name['redis_configs'].message_type = _INSTANCE_REDISCONFIGSENTRY -_INSTANCE.fields_by_name['tier'].enum_type = _INSTANCE_TIER +_INSTANCE.fields_by_name["labels"].message_type = _INSTANCE_LABELSENTRY +_INSTANCE.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_INSTANCE.fields_by_name["state"].enum_type = _INSTANCE_STATE +_INSTANCE.fields_by_name["redis_configs"].message_type = _INSTANCE_REDISCONFIGSENTRY +_INSTANCE.fields_by_name["tier"].enum_type = _INSTANCE_TIER _INSTANCE_STATE.containing_type = _INSTANCE _INSTANCE_TIER.containing_type = _INSTANCE -_LISTINSTANCESRESPONSE.fields_by_name['instances'].message_type = _INSTANCE -_CREATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE -_UPDATEINSTANCEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE -_OPERATIONMETADATA.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_OPERATIONMETADATA.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LOCATIONMETADATA_AVAILABLEZONESENTRY.fields_by_name['value'].message_type = _ZONEMETADATA +_LISTINSTANCESRESPONSE.fields_by_name["instances"].message_type = _INSTANCE +_CREATEINSTANCEREQUEST.fields_by_name["instance"].message_type = _INSTANCE +_UPDATEINSTANCEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATEINSTANCEREQUEST.fields_by_name["instance"].message_type = _INSTANCE +_OPERATIONMETADATA.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_OPERATIONMETADATA.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LOCATIONMETADATA_AVAILABLEZONESENTRY.fields_by_name[ + "value" +].message_type = _ZONEMETADATA _LOCATIONMETADATA_AVAILABLEZONESENTRY.containing_type = _LOCATIONMETADATA -_LOCATIONMETADATA.fields_by_name['available_zones'].message_type = _LOCATIONMETADATA_AVAILABLEZONESENTRY -DESCRIPTOR.message_types_by_name['Instance'] = _INSTANCE -DESCRIPTOR.message_types_by_name['ListInstancesRequest'] = _LISTINSTANCESREQUEST -DESCRIPTOR.message_types_by_name['ListInstancesResponse'] = _LISTINSTANCESRESPONSE -DESCRIPTOR.message_types_by_name['GetInstanceRequest'] = _GETINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['CreateInstanceRequest'] = _CREATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['UpdateInstanceRequest'] = _UPDATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['DeleteInstanceRequest'] = _DELETEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['OperationMetadata'] = _OPERATIONMETADATA -DESCRIPTOR.message_types_by_name['LocationMetadata'] = _LOCATIONMETADATA -DESCRIPTOR.message_types_by_name['ZoneMetadata'] = _ZONEMETADATA +_LOCATIONMETADATA.fields_by_name[ + "available_zones" +].message_type = _LOCATIONMETADATA_AVAILABLEZONESENTRY +DESCRIPTOR.message_types_by_name["Instance"] = _INSTANCE +DESCRIPTOR.message_types_by_name["ListInstancesRequest"] = _LISTINSTANCESREQUEST +DESCRIPTOR.message_types_by_name["ListInstancesResponse"] = _LISTINSTANCESRESPONSE +DESCRIPTOR.message_types_by_name["GetInstanceRequest"] = _GETINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["CreateInstanceRequest"] = _CREATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["UpdateInstanceRequest"] = _UPDATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["DeleteInstanceRequest"] = _DELETEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["OperationMetadata"] = _OPERATIONMETADATA +DESCRIPTOR.message_types_by_name["LocationMetadata"] = _LOCATIONMETADATA +DESCRIPTOR.message_types_by_name["ZoneMetadata"] = _ZONEMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Instance = _reflection.GeneratedProtocolMessageType('Instance', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _INSTANCE_LABELSENTRY, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance.LabelsEntry) - )) - , - - RedisConfigsEntry = _reflection.GeneratedProtocolMessageType('RedisConfigsEntry', (_message.Message,), dict( - DESCRIPTOR = _INSTANCE_REDISCONFIGSENTRY, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance.RedisConfigsEntry) - )) - , - DESCRIPTOR = _INSTANCE, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """A Google Cloud Redis instance. +Instance = _reflection.GeneratedProtocolMessageType( + "Instance", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCE_LABELSENTRY, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance.LabelsEntry) + ), + ), + RedisConfigsEntry=_reflection.GeneratedProtocolMessageType( + "RedisConfigsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCE_REDISCONFIGSENTRY, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance.RedisConfigsEntry) + ), + ), + DESCRIPTOR=_INSTANCE, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""A Google Cloud Redis instance. Attributes: @@ -832,17 +1281,20 @@ the instance is connected. If left unspecified, the ``default`` network will be used. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance) + ), +) _sym_db.RegisterMessage(Instance) _sym_db.RegisterMessage(Instance.LabelsEntry) _sym_db.RegisterMessage(Instance.RedisConfigsEntry) -ListInstancesRequest = _reflection.GeneratedProtocolMessageType('ListInstancesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESREQUEST, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +ListInstancesRequest = _reflection.GeneratedProtocolMessageType( + "ListInstancesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESREQUEST, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. @@ -862,15 +1314,18 @@ The next\_page\_token value returned from a previous List request, if any. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesRequest) + ), +) _sym_db.RegisterMessage(ListInstancesRequest) -ListInstancesResponse = _reflection.GeneratedProtocolMessageType('ListInstancesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESRESPONSE, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Response for +ListInstancesResponse = _reflection.GeneratedProtocolMessageType( + "ListInstancesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESRESPONSE, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. @@ -890,15 +1345,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesResponse) + ), +) _sym_db.RegisterMessage(ListInstancesResponse) -GetInstanceRequest = _reflection.GeneratedProtocolMessageType('GetInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance]. +GetInstanceRequest = _reflection.GeneratedProtocolMessageType( + "GetInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETINSTANCEREQUEST, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance]. Attributes: @@ -907,15 +1365,18 @@ cts/{project_id}/locations/{location_id}/instances/{instance_i d}`` where ``location_id`` refers to a GCP region """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceRequest) + ), +) _sym_db.RegisterMessage(GetInstanceRequest) -CreateInstanceRequest = _reflection.GeneratedProtocolMessageType('CreateInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +CreateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "CreateInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEINSTANCEREQUEST, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance]. @@ -934,15 +1395,18 @@ instance: Required. A Redis [Instance] resource """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.CreateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.CreateInstanceRequest) + ), +) _sym_db.RegisterMessage(CreateInstanceRequest) -UpdateInstanceRequest = _reflection.GeneratedProtocolMessageType('UpdateInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +UpdateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "UpdateInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEINSTANCEREQUEST, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance]. @@ -957,15 +1421,18 @@ Required. Update description. Only fields specified in update\_mask are updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpdateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpdateInstanceRequest) + ), +) _sym_db.RegisterMessage(UpdateInstanceRequest) -DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType('DeleteInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType( + "DeleteInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEINSTANCEREQUEST, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance]. @@ -975,15 +1442,18 @@ cts/{project_id}/locations/{location_id}/instances/{instance_i d}`` where ``location_id`` refers to a GCP region """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.DeleteInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.DeleteInstanceRequest) + ), +) _sym_db.RegisterMessage(DeleteInstanceRequest) -OperationMetadata = _reflection.GeneratedProtocolMessageType('OperationMetadata', (_message.Message,), dict( - DESCRIPTOR = _OPERATIONMETADATA, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Represents the v1 metadata of the long-running operation. +OperationMetadata = _reflection.GeneratedProtocolMessageType( + "OperationMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_OPERATIONMETADATA, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Represents the v1 metadata of the long-running operation. Attributes: @@ -1002,22 +1472,27 @@ api_version: API version. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OperationMetadata) + ), +) _sym_db.RegisterMessage(OperationMetadata) -LocationMetadata = _reflection.GeneratedProtocolMessageType('LocationMetadata', (_message.Message,), dict( - - AvailableZonesEntry = _reflection.GeneratedProtocolMessageType('AvailableZonesEntry', (_message.Message,), dict( - DESCRIPTOR = _LOCATIONMETADATA_AVAILABLEZONESENTRY, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry) - )) - , - DESCRIPTOR = _LOCATIONMETADATA, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """This location metadata represents additional configuration options for a +LocationMetadata = _reflection.GeneratedProtocolMessageType( + "LocationMetadata", + (_message.Message,), + dict( + AvailableZonesEntry=_reflection.GeneratedProtocolMessageType( + "AvailableZonesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_LOCATIONMETADATA_AVAILABLEZONESENTRY, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry) + ), + ), + DESCRIPTOR=_LOCATIONMETADATA, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""This location metadata represents additional configuration options for a given location where a Redis instance may be created. All fields are output only. It is returned as content of the ``google.cloud.location.Location.metadata`` field. @@ -1031,89 +1506,130 @@ ``alternative_location_id`` fields when creating a Redis instance. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.LocationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.LocationMetadata) + ), +) _sym_db.RegisterMessage(LocationMetadata) _sym_db.RegisterMessage(LocationMetadata.AvailableZonesEntry) -ZoneMetadata = _reflection.GeneratedProtocolMessageType('ZoneMetadata', (_message.Message,), dict( - DESCRIPTOR = _ZONEMETADATA, - __module__ = 'google.cloud.redis_v1.proto.cloud_redis_pb2' - , - __doc__ = """Defines specific information for a particular zone. Currently empty and +ZoneMetadata = _reflection.GeneratedProtocolMessageType( + "ZoneMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_ZONEMETADATA, + __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", + __doc__="""Defines specific information for a particular zone. Currently empty and reserved for future use only. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ZoneMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ZoneMetadata) + ), +) _sym_db.RegisterMessage(ZoneMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\031com.google.cloud.redis.v1B\030CloudRedisServiceV1ProtoP\001Z:google.golang.org/genproto/googleapis/cloud/redis/v1;redis')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\031com.google.cloud.redis.v1B\030CloudRedisServiceV1ProtoP\001Z:google.golang.org/genproto/googleapis/cloud/redis/v1;redis" + ), +) _INSTANCE_LABELSENTRY.has_options = True -_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _INSTANCE_REDISCONFIGSENTRY.has_options = True -_INSTANCE_REDISCONFIGSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_INSTANCE_REDISCONFIGSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _LOCATIONMETADATA_AVAILABLEZONESENTRY.has_options = True -_LOCATIONMETADATA_AVAILABLEZONESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_LOCATIONMETADATA_AVAILABLEZONESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLOUDREDIS = _descriptor.ServiceDescriptor( - name='CloudRedis', - full_name='google.cloud.redis.v1.CloudRedis', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1984, - serialized_end=2789, - methods=[ - _descriptor.MethodDescriptor( - name='ListInstances', - full_name='google.cloud.redis.v1.CloudRedis.ListInstances', + name="CloudRedis", + full_name="google.cloud.redis.v1.CloudRedis", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTINSTANCESREQUEST, - output_type=_LISTINSTANCESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/instances')), - ), - _descriptor.MethodDescriptor( - name='GetInstance', - full_name='google.cloud.redis.v1.CloudRedis.GetInstance', - index=1, - containing_service=None, - input_type=_GETINSTANCEREQUEST, - output_type=_INSTANCE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/instances/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateInstance', - full_name='google.cloud.redis.v1.CloudRedis.CreateInstance', - index=2, - containing_service=None, - input_type=_CREATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\"-/v1/{parent=projects/*/locations/*}/instances:\010instance')), - ), - _descriptor.MethodDescriptor( - name='UpdateInstance', - full_name='google.cloud.redis.v1.CloudRedis.UpdateInstance', - index=3, - containing_service=None, - input_type=_UPDATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B26/v1/{instance.name=projects/*/locations/*/instances/*}:\010instance')), - ), - _descriptor.MethodDescriptor( - name='DeleteInstance', - full_name='google.cloud.redis.v1.CloudRedis.DeleteInstance', - index=4, - containing_service=None, - input_type=_DELETEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/*-/v1/{name=projects/*/locations/*/instances/*}')), - ), -]) + options=None, + serialized_start=1984, + serialized_end=2789, + methods=[ + _descriptor.MethodDescriptor( + name="ListInstances", + full_name="google.cloud.redis.v1.CloudRedis.ListInstances", + index=0, + containing_service=None, + input_type=_LISTINSTANCESREQUEST, + output_type=_LISTINSTANCESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/instances" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetInstance", + full_name="google.cloud.redis.v1.CloudRedis.GetInstance", + index=1, + containing_service=None, + input_type=_GETINSTANCEREQUEST, + output_type=_INSTANCE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/instances/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateInstance", + full_name="google.cloud.redis.v1.CloudRedis.CreateInstance", + index=2, + containing_service=None, + input_type=_CREATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0029"-/v1/{parent=projects/*/locations/*}/instances:\010instance' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateInstance", + full_name="google.cloud.redis.v1.CloudRedis.UpdateInstance", + index=3, + containing_service=None, + input_type=_UPDATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002B26/v1/{instance.name=projects/*/locations/*/instances/*}:\010instance" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteInstance", + full_name="google.cloud.redis.v1.CloudRedis.DeleteInstance", + index=4, + containing_service=None, + input_type=_DELETEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/*-/v1/{name=projects/*/locations/*/instances/*}" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLOUDREDIS) -DESCRIPTOR.services_by_name['CloudRedis'] = _CLOUDREDIS +DESCRIPTOR.services_by_name["CloudRedis"] = _CLOUDREDIS # @@protoc_insertion_point(module_scope) diff --git a/redis/google/cloud/redis_v1/proto/cloud_redis_pb2_grpc.py b/redis/google/cloud/redis_v1/proto/cloud_redis_pb2_grpc.py index ad325a717831f..b7f6f482b0d29 100644 --- a/redis/google/cloud/redis_v1/proto/cloud_redis_pb2_grpc.py +++ b/redis/google/cloud/redis_v1/proto/cloud_redis_pb2_grpc.py @@ -1,12 +1,16 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.redis_v1.proto import cloud_redis_pb2 as google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.redis_v1.proto import ( + cloud_redis_pb2 as google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class CloudRedisStub(object): - """Configures and manages Cloud Memorystore for Redis instances + """Configures and manages Cloud Memorystore for Redis instances Google Cloud Memorystore for Redis v1 @@ -23,41 +27,41 @@ class CloudRedisStub(object): * `projects/redpepper-1290/locations/us-central1/instances/my-redis` """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListInstances = channel.unary_unary( - '/google.cloud.redis.v1.CloudRedis/ListInstances', - request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.FromString, + self.ListInstances = channel.unary_unary( + "/google.cloud.redis.v1.CloudRedis/ListInstances", + request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.FromString, ) - self.GetInstance = channel.unary_unary( - '/google.cloud.redis.v1.CloudRedis/GetInstance', - request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.Instance.FromString, + self.GetInstance = channel.unary_unary( + "/google.cloud.redis.v1.CloudRedis/GetInstance", + request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.Instance.FromString, ) - self.CreateInstance = channel.unary_unary( - '/google.cloud.redis.v1.CloudRedis/CreateInstance', - request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateInstance = channel.unary_unary( + "/google.cloud.redis.v1.CloudRedis/CreateInstance", + request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.UpdateInstance = channel.unary_unary( - '/google.cloud.redis.v1.CloudRedis/UpdateInstance', - request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateInstance = channel.unary_unary( + "/google.cloud.redis.v1.CloudRedis/UpdateInstance", + request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteInstance = channel.unary_unary( - '/google.cloud.redis.v1.CloudRedis/DeleteInstance', - request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.DeleteInstance = channel.unary_unary( + "/google.cloud.redis.v1.CloudRedis/DeleteInstance", + request_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class CloudRedisServicer(object): - """Configures and manages Cloud Memorystore for Redis instances + """Configures and manages Cloud Memorystore for Redis instances Google Cloud Memorystore for Redis v1 @@ -74,8 +78,8 @@ class CloudRedisServicer(object): * `projects/redpepper-1290/locations/us-central1/instances/my-redis` """ - def ListInstances(self, request, context): - """Lists all Redis instances owned by a project in either the specified + def ListInstances(self, request, context): + """Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: @@ -84,19 +88,19 @@ def ListInstances(self, request, context): If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetInstance(self, request, context): - """Gets the details of a specific Redis instance. + def GetInstance(self, request, context): + """Gets the details of a specific Redis instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateInstance(self, request, context): - """Creates a Redis instance based on the specified tier and memory size. + def CreateInstance(self, request, context): + """Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](/compute/docs/networks-and-firewalls#networks). @@ -109,58 +113,59 @@ def CreateInstance(self, request, context): The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateInstance(self, request, context): - """Updates the metadata and configuration of a specific Redis instance. + def UpdateInstance(self, request, context): + """Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteInstance(self, request, context): - """Deletes a specific Redis instance. Instance stops serving and data is + def DeleteInstance(self, request, context): + """Deletes a specific Redis instance. Instance stops serving and data is deleted. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_CloudRedisServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListInstances': grpc.unary_unary_rpc_method_handler( - servicer.ListInstances, - request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.FromString, - response_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.SerializeToString, - ), - 'GetInstance': grpc.unary_unary_rpc_method_handler( - servicer.GetInstance, - request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.FromString, - response_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.Instance.SerializeToString, - ), - 'CreateInstance': grpc.unary_unary_rpc_method_handler( - servicer.CreateInstance, - request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'UpdateInstance': grpc.unary_unary_rpc_method_handler( - servicer.UpdateInstance, - request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteInstance': grpc.unary_unary_rpc_method_handler( - servicer.DeleteInstance, - request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.redis.v1.CloudRedis', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListInstances": grpc.unary_unary_rpc_method_handler( + servicer.ListInstances, + request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.FromString, + response_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.SerializeToString, + ), + "GetInstance": grpc.unary_unary_rpc_method_handler( + servicer.GetInstance, + request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.FromString, + response_serializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.Instance.SerializeToString, + ), + "CreateInstance": grpc.unary_unary_rpc_method_handler( + servicer.CreateInstance, + request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "UpdateInstance": grpc.unary_unary_rpc_method_handler( + servicer.UpdateInstance, + request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteInstance": grpc.unary_unary_rpc_method_handler( + servicer.DeleteInstance, + request_deserializer=google_dot_cloud_dot_redis__v1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.redis.v1.CloudRedis", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py b/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py index f9e658b005a99..416ed3ba62c4d 100644 --- a/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py +++ b/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py @@ -2,686 +2,1057 @@ # source: google/cloud/redis_v1beta1/proto/cloud_redis.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/redis_v1beta1/proto/cloud_redis.proto', - package='google.cloud.redis.v1beta1', - syntax='proto3', - serialized_pb=_b('\n2google/cloud/redis_v1beta1/proto/cloud_redis.proto\x12\x1agoogle.cloud.redis.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe4\x06\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12@\n\x06labels\x18\x03 \x03(\x0b\x32\x30.google.cloud.redis.v1beta1.Instance.LabelsEntry\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\x12\x1f\n\x17\x61lternative_location_id\x18\x05 \x01(\t\x12\x15\n\rredis_version\x18\x07 \x01(\t\x12\x19\n\x11reserved_ip_range\x18\t \x01(\t\x12\x0c\n\x04host\x18\n \x01(\t\x12\x0c\n\x04port\x18\x0b \x01(\x05\x12\x1b\n\x13\x63urrent_location_id\x18\x0c \x01(\t\x12/\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x05state\x18\x0e \x01(\x0e\x32*.google.cloud.redis.v1beta1.Instance.State\x12\x16\n\x0estatus_message\x18\x0f \x01(\t\x12M\n\rredis_configs\x18\x10 \x03(\x0b\x32\x36.google.cloud.redis.v1beta1.Instance.RedisConfigsEntry\x12\x37\n\x04tier\x18\x11 \x01(\x0e\x32).google.cloud.redis.v1beta1.Instance.Tier\x12\x16\n\x0ememory_size_gb\x18\x12 \x01(\x05\x12\x1a\n\x12\x61uthorized_network\x18\x14 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\r\n\tREPAIRING\x10\x05\x12\x0f\n\x0bMAINTENANCE\x10\x06\"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0f\n\x0bSTANDARD_HA\x10\x03\"M\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x15ListInstancesResponse\x12\x37\n\tinstances\x18\x01 \x03(\x0b\x32$.google.cloud.redis.v1beta1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\"\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"t\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x36\n\x08instance\x18\x03 \x01(\x0b\x32$.google.cloud.redis.v1beta1.Instance\"\x80\x01\n\x15UpdateInstanceRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x36\n\x08instance\x18\x02 \x01(\x0b\x32$.google.cloud.redis.v1beta1.Instance\"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xce\x01\n\x10LocationMetadata\x12Y\n\x0f\x61vailable_zones\x18\x01 \x03(\x0b\x32@.google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry\x1a_\n\x13\x41vailableZonesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.google.cloud.redis.v1beta1.ZoneMetadata:\x02\x38\x01\"\x0e\n\x0cZoneMetadata2\xe1\x06\n\nCloudRedis\x12\xb0\x01\n\rListInstances\x12\x30.google.cloud.redis.v1beta1.ListInstancesRequest\x1a\x31.google.cloud.redis.v1beta1.ListInstancesResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{parent=projects/*/locations/*}/instances\x12\x9f\x01\n\x0bGetInstance\x12..google.cloud.redis.v1beta1.GetInstanceRequest\x1a$.google.cloud.redis.v1beta1.Instance\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{name=projects/*/locations/*/instances/*}\x12\xa8\x01\n\x0e\x43reateInstance\x12\x31.google.cloud.redis.v1beta1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"D\x82\xd3\xe4\x93\x02>\"2/v1beta1/{parent=projects/*/locations/*}/instances:\x08instance\x12\xb1\x01\n\x0eUpdateInstance\x12\x31.google.cloud.redis.v1beta1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"M\x82\xd3\xe4\x93\x02G2;/v1beta1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\x9e\x01\n\x0e\x44\x65leteInstance\x12\x31.google.cloud.redis.v1beta1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\":\x82\xd3\xe4\x93\x02\x34*2/v1beta1/{name=projects/*/locations/*/instances/*}B\x7f\n\x1e\x63om.google.cloud.redis.v1beta1B\x1a\x43loudRedisServiceBetaProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/redis/v1beta1;redisb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/redis_v1beta1/proto/cloud_redis.proto", + package="google.cloud.redis.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n2google/cloud/redis_v1beta1/proto/cloud_redis.proto\x12\x1agoogle.cloud.redis.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xe4\x06\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12@\n\x06labels\x18\x03 \x03(\x0b\x32\x30.google.cloud.redis.v1beta1.Instance.LabelsEntry\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\x12\x1f\n\x17\x61lternative_location_id\x18\x05 \x01(\t\x12\x15\n\rredis_version\x18\x07 \x01(\t\x12\x19\n\x11reserved_ip_range\x18\t \x01(\t\x12\x0c\n\x04host\x18\n \x01(\t\x12\x0c\n\x04port\x18\x0b \x01(\x05\x12\x1b\n\x13\x63urrent_location_id\x18\x0c \x01(\t\x12/\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x05state\x18\x0e \x01(\x0e\x32*.google.cloud.redis.v1beta1.Instance.State\x12\x16\n\x0estatus_message\x18\x0f \x01(\t\x12M\n\rredis_configs\x18\x10 \x03(\x0b\x32\x36.google.cloud.redis.v1beta1.Instance.RedisConfigsEntry\x12\x37\n\x04tier\x18\x11 \x01(\x0e\x32).google.cloud.redis.v1beta1.Instance.Tier\x12\x16\n\x0ememory_size_gb\x18\x12 \x01(\x05\x12\x1a\n\x12\x61uthorized_network\x18\x14 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\r\n\tREPAIRING\x10\x05\x12\x0f\n\x0bMAINTENANCE\x10\x06"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0f\n\x0bSTANDARD_HA\x10\x03"M\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x15ListInstancesResponse\x12\x37\n\tinstances\x18\x01 \x03(\x0b\x32$.google.cloud.redis.v1beta1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t""\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"t\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x36\n\x08instance\x18\x03 \x01(\x0b\x32$.google.cloud.redis.v1beta1.Instance"\x80\x01\n\x15UpdateInstanceRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x36\n\x08instance\x18\x02 \x01(\x0b\x32$.google.cloud.redis.v1beta1.Instance"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xce\x01\n\x10LocationMetadata\x12Y\n\x0f\x61vailable_zones\x18\x01 \x03(\x0b\x32@.google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry\x1a_\n\x13\x41vailableZonesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.google.cloud.redis.v1beta1.ZoneMetadata:\x02\x38\x01"\x0e\n\x0cZoneMetadata2\xe1\x06\n\nCloudRedis\x12\xb0\x01\n\rListInstances\x12\x30.google.cloud.redis.v1beta1.ListInstancesRequest\x1a\x31.google.cloud.redis.v1beta1.ListInstancesResponse":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{parent=projects/*/locations/*}/instances\x12\x9f\x01\n\x0bGetInstance\x12..google.cloud.redis.v1beta1.GetInstanceRequest\x1a$.google.cloud.redis.v1beta1.Instance":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{name=projects/*/locations/*/instances/*}\x12\xa8\x01\n\x0e\x43reateInstance\x12\x31.google.cloud.redis.v1beta1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation"D\x82\xd3\xe4\x93\x02>"2/v1beta1/{parent=projects/*/locations/*}/instances:\x08instance\x12\xb1\x01\n\x0eUpdateInstance\x12\x31.google.cloud.redis.v1beta1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation"M\x82\xd3\xe4\x93\x02G2;/v1beta1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\x9e\x01\n\x0e\x44\x65leteInstance\x12\x31.google.cloud.redis.v1beta1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation":\x82\xd3\xe4\x93\x02\x34*2/v1beta1/{name=projects/*/locations/*/instances/*}B\x7f\n\x1e\x63om.google.cloud.redis.v1beta1B\x1a\x43loudRedisServiceBetaProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/redis/v1beta1;redisb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _INSTANCE_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.redis.v1beta1.Instance.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPDATING', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETING', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REPAIRING', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MAINTENANCE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=912, - serialized_end=1027, + name="State", + full_name="google.cloud.redis.v1beta1.Instance.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPDATING", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETING", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REPAIRING", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MAINTENANCE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=912, + serialized_end=1027, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_STATE) _INSTANCE_TIER = _descriptor.EnumDescriptor( - name='Tier', - full_name='google.cloud.redis.v1beta1.Instance.Tier', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TIER_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BASIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STANDARD_HA', index=2, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1029, - serialized_end=1085, + name="Tier", + full_name="google.cloud.redis.v1beta1.Instance.Tier", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TIER_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BASIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STANDARD_HA", index=2, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1029, + serialized_end=1085, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_TIER) _INSTANCE_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.cloud.redis.v1beta1.Instance.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.redis.v1beta1.Instance.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.redis.v1beta1.Instance.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=812, - serialized_end=857, + name="LabelsEntry", + full_name="google.cloud.redis.v1beta1.Instance.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.redis.v1beta1.Instance.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.redis.v1beta1.Instance.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=812, + serialized_end=857, ) _INSTANCE_REDISCONFIGSENTRY = _descriptor.Descriptor( - name='RedisConfigsEntry', - full_name='google.cloud.redis.v1beta1.Instance.RedisConfigsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.redis.v1beta1.Instance.RedisConfigsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.redis.v1beta1.Instance.RedisConfigsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=859, - serialized_end=910, + name="RedisConfigsEntry", + full_name="google.cloud.redis.v1beta1.Instance.RedisConfigsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.redis.v1beta1.Instance.RedisConfigsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.redis.v1beta1.Instance.RedisConfigsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=859, + serialized_end=910, ) _INSTANCE = _descriptor.Descriptor( - name='Instance', - full_name='google.cloud.redis.v1beta1.Instance', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.redis.v1beta1.Instance.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.redis.v1beta1.Instance.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.cloud.redis.v1beta1.Instance.labels', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_id', full_name='google.cloud.redis.v1beta1.Instance.location_id', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alternative_location_id', full_name='google.cloud.redis.v1beta1.Instance.alternative_location_id', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='redis_version', full_name='google.cloud.redis.v1beta1.Instance.redis_version', index=5, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reserved_ip_range', full_name='google.cloud.redis.v1beta1.Instance.reserved_ip_range', index=6, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='google.cloud.redis.v1beta1.Instance.host', index=7, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='port', full_name='google.cloud.redis.v1beta1.Instance.port', index=8, - number=11, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_location_id', full_name='google.cloud.redis.v1beta1.Instance.current_location_id', index=9, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.redis.v1beta1.Instance.create_time', index=10, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.redis.v1beta1.Instance.state', index=11, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status_message', full_name='google.cloud.redis.v1beta1.Instance.status_message', index=12, - number=15, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='redis_configs', full_name='google.cloud.redis.v1beta1.Instance.redis_configs', index=13, - number=16, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tier', full_name='google.cloud.redis.v1beta1.Instance.tier', index=14, - number=17, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='memory_size_gb', full_name='google.cloud.redis.v1beta1.Instance.memory_size_gb', index=15, - number=18, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authorized_network', full_name='google.cloud.redis.v1beta1.Instance.authorized_network', index=16, - number=20, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSTANCE_LABELSENTRY, _INSTANCE_REDISCONFIGSENTRY, ], - enum_types=[ - _INSTANCE_STATE, - _INSTANCE_TIER, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=217, - serialized_end=1085, + name="Instance", + full_name="google.cloud.redis.v1beta1.Instance", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.redis.v1beta1.Instance.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.redis.v1beta1.Instance.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.cloud.redis.v1beta1.Instance.labels", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location_id", + full_name="google.cloud.redis.v1beta1.Instance.location_id", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alternative_location_id", + full_name="google.cloud.redis.v1beta1.Instance.alternative_location_id", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="redis_version", + full_name="google.cloud.redis.v1beta1.Instance.redis_version", + index=5, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reserved_ip_range", + full_name="google.cloud.redis.v1beta1.Instance.reserved_ip_range", + index=6, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="host", + full_name="google.cloud.redis.v1beta1.Instance.host", + index=7, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="port", + full_name="google.cloud.redis.v1beta1.Instance.port", + index=8, + number=11, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="current_location_id", + full_name="google.cloud.redis.v1beta1.Instance.current_location_id", + index=9, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.redis.v1beta1.Instance.create_time", + index=10, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.redis.v1beta1.Instance.state", + index=11, + number=14, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status_message", + full_name="google.cloud.redis.v1beta1.Instance.status_message", + index=12, + number=15, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="redis_configs", + full_name="google.cloud.redis.v1beta1.Instance.redis_configs", + index=13, + number=16, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tier", + full_name="google.cloud.redis.v1beta1.Instance.tier", + index=14, + number=17, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="memory_size_gb", + full_name="google.cloud.redis.v1beta1.Instance.memory_size_gb", + index=15, + number=18, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="authorized_network", + full_name="google.cloud.redis.v1beta1.Instance.authorized_network", + index=16, + number=20, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_INSTANCE_LABELSENTRY, _INSTANCE_REDISCONFIGSENTRY], + enum_types=[_INSTANCE_STATE, _INSTANCE_TIER], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=217, + serialized_end=1085, ) _LISTINSTANCESREQUEST = _descriptor.Descriptor( - name='ListInstancesRequest', - full_name='google.cloud.redis.v1beta1.ListInstancesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.redis.v1beta1.ListInstancesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.redis.v1beta1.ListInstancesRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.redis.v1beta1.ListInstancesRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1087, - serialized_end=1164, + name="ListInstancesRequest", + full_name="google.cloud.redis.v1beta1.ListInstancesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.redis.v1beta1.ListInstancesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.redis.v1beta1.ListInstancesRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.redis.v1beta1.ListInstancesRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1087, + serialized_end=1164, ) _LISTINSTANCESRESPONSE = _descriptor.Descriptor( - name='ListInstancesResponse', - full_name='google.cloud.redis.v1beta1.ListInstancesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instances', full_name='google.cloud.redis.v1beta1.ListInstancesResponse.instances', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.redis.v1beta1.ListInstancesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1166, - serialized_end=1271, + name="ListInstancesResponse", + full_name="google.cloud.redis.v1beta1.ListInstancesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instances", + full_name="google.cloud.redis.v1beta1.ListInstancesResponse.instances", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.redis.v1beta1.ListInstancesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1166, + serialized_end=1271, ) _GETINSTANCEREQUEST = _descriptor.Descriptor( - name='GetInstanceRequest', - full_name='google.cloud.redis.v1beta1.GetInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.redis.v1beta1.GetInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1273, - serialized_end=1307, + name="GetInstanceRequest", + full_name="google.cloud.redis.v1beta1.GetInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.redis.v1beta1.GetInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1273, + serialized_end=1307, ) _CREATEINSTANCEREQUEST = _descriptor.Descriptor( - name='CreateInstanceRequest', - full_name='google.cloud.redis.v1beta1.CreateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.redis.v1beta1.CreateInstanceRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_id', full_name='google.cloud.redis.v1beta1.CreateInstanceRequest.instance_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.cloud.redis.v1beta1.CreateInstanceRequest.instance', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1309, - serialized_end=1425, + name="CreateInstanceRequest", + full_name="google.cloud.redis.v1beta1.CreateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.redis.v1beta1.CreateInstanceRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_id", + full_name="google.cloud.redis.v1beta1.CreateInstanceRequest.instance_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.cloud.redis.v1beta1.CreateInstanceRequest.instance", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1309, + serialized_end=1425, ) _UPDATEINSTANCEREQUEST = _descriptor.Descriptor( - name='UpdateInstanceRequest', - full_name='google.cloud.redis.v1beta1.UpdateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.redis.v1beta1.UpdateInstanceRequest.update_mask', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.cloud.redis.v1beta1.UpdateInstanceRequest.instance', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1428, - serialized_end=1556, + name="UpdateInstanceRequest", + full_name="google.cloud.redis.v1beta1.UpdateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.redis.v1beta1.UpdateInstanceRequest.update_mask", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.cloud.redis.v1beta1.UpdateInstanceRequest.instance", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1428, + serialized_end=1556, ) _DELETEINSTANCEREQUEST = _descriptor.Descriptor( - name='DeleteInstanceRequest', - full_name='google.cloud.redis.v1beta1.DeleteInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.redis.v1beta1.DeleteInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1558, - serialized_end=1595, + name="DeleteInstanceRequest", + full_name="google.cloud.redis.v1beta1.DeleteInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.redis.v1beta1.DeleteInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1558, + serialized_end=1595, ) _LOCATIONMETADATA_AVAILABLEZONESENTRY = _descriptor.Descriptor( - name='AvailableZonesEntry', - full_name='google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1709, - serialized_end=1804, + name="AvailableZonesEntry", + full_name="google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1709, + serialized_end=1804, ) _LOCATIONMETADATA = _descriptor.Descriptor( - name='LocationMetadata', - full_name='google.cloud.redis.v1beta1.LocationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='available_zones', full_name='google.cloud.redis.v1beta1.LocationMetadata.available_zones', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_LOCATIONMETADATA_AVAILABLEZONESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1598, - serialized_end=1804, + name="LocationMetadata", + full_name="google.cloud.redis.v1beta1.LocationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="available_zones", + full_name="google.cloud.redis.v1beta1.LocationMetadata.available_zones", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_LOCATIONMETADATA_AVAILABLEZONESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1598, + serialized_end=1804, ) _ZONEMETADATA = _descriptor.Descriptor( - name='ZoneMetadata', - full_name='google.cloud.redis.v1beta1.ZoneMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1806, - serialized_end=1820, + name="ZoneMetadata", + full_name="google.cloud.redis.v1beta1.ZoneMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1806, + serialized_end=1820, ) _INSTANCE_LABELSENTRY.containing_type = _INSTANCE _INSTANCE_REDISCONFIGSENTRY.containing_type = _INSTANCE -_INSTANCE.fields_by_name['labels'].message_type = _INSTANCE_LABELSENTRY -_INSTANCE.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_INSTANCE.fields_by_name['state'].enum_type = _INSTANCE_STATE -_INSTANCE.fields_by_name['redis_configs'].message_type = _INSTANCE_REDISCONFIGSENTRY -_INSTANCE.fields_by_name['tier'].enum_type = _INSTANCE_TIER +_INSTANCE.fields_by_name["labels"].message_type = _INSTANCE_LABELSENTRY +_INSTANCE.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_INSTANCE.fields_by_name["state"].enum_type = _INSTANCE_STATE +_INSTANCE.fields_by_name["redis_configs"].message_type = _INSTANCE_REDISCONFIGSENTRY +_INSTANCE.fields_by_name["tier"].enum_type = _INSTANCE_TIER _INSTANCE_STATE.containing_type = _INSTANCE _INSTANCE_TIER.containing_type = _INSTANCE -_LISTINSTANCESRESPONSE.fields_by_name['instances'].message_type = _INSTANCE -_CREATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE -_UPDATEINSTANCEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE -_LOCATIONMETADATA_AVAILABLEZONESENTRY.fields_by_name['value'].message_type = _ZONEMETADATA +_LISTINSTANCESRESPONSE.fields_by_name["instances"].message_type = _INSTANCE +_CREATEINSTANCEREQUEST.fields_by_name["instance"].message_type = _INSTANCE +_UPDATEINSTANCEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATEINSTANCEREQUEST.fields_by_name["instance"].message_type = _INSTANCE +_LOCATIONMETADATA_AVAILABLEZONESENTRY.fields_by_name[ + "value" +].message_type = _ZONEMETADATA _LOCATIONMETADATA_AVAILABLEZONESENTRY.containing_type = _LOCATIONMETADATA -_LOCATIONMETADATA.fields_by_name['available_zones'].message_type = _LOCATIONMETADATA_AVAILABLEZONESENTRY -DESCRIPTOR.message_types_by_name['Instance'] = _INSTANCE -DESCRIPTOR.message_types_by_name['ListInstancesRequest'] = _LISTINSTANCESREQUEST -DESCRIPTOR.message_types_by_name['ListInstancesResponse'] = _LISTINSTANCESRESPONSE -DESCRIPTOR.message_types_by_name['GetInstanceRequest'] = _GETINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['CreateInstanceRequest'] = _CREATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['UpdateInstanceRequest'] = _UPDATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['DeleteInstanceRequest'] = _DELETEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['LocationMetadata'] = _LOCATIONMETADATA -DESCRIPTOR.message_types_by_name['ZoneMetadata'] = _ZONEMETADATA +_LOCATIONMETADATA.fields_by_name[ + "available_zones" +].message_type = _LOCATIONMETADATA_AVAILABLEZONESENTRY +DESCRIPTOR.message_types_by_name["Instance"] = _INSTANCE +DESCRIPTOR.message_types_by_name["ListInstancesRequest"] = _LISTINSTANCESREQUEST +DESCRIPTOR.message_types_by_name["ListInstancesResponse"] = _LISTINSTANCESRESPONSE +DESCRIPTOR.message_types_by_name["GetInstanceRequest"] = _GETINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["CreateInstanceRequest"] = _CREATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["UpdateInstanceRequest"] = _UPDATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["DeleteInstanceRequest"] = _DELETEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["LocationMetadata"] = _LOCATIONMETADATA +DESCRIPTOR.message_types_by_name["ZoneMetadata"] = _ZONEMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Instance = _reflection.GeneratedProtocolMessageType('Instance', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _INSTANCE_LABELSENTRY, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance.LabelsEntry) - )) - , - - RedisConfigsEntry = _reflection.GeneratedProtocolMessageType('RedisConfigsEntry', (_message.Message,), dict( - DESCRIPTOR = _INSTANCE_REDISCONFIGSENTRY, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance.RedisConfigsEntry) - )) - , - DESCRIPTOR = _INSTANCE, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """A Google Cloud Redis instance. +Instance = _reflection.GeneratedProtocolMessageType( + "Instance", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCE_LABELSENTRY, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance.LabelsEntry) + ), + ), + RedisConfigsEntry=_reflection.GeneratedProtocolMessageType( + "RedisConfigsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCE_REDISCONFIGSENTRY, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance.RedisConfigsEntry) + ), + ), + DESCRIPTOR=_INSTANCE, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""A Google Cloud Redis instance. Attributes: @@ -754,17 +1125,20 @@ the instance is connected. If left unspecified, the ``default`` network will be used. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.Instance) + ), +) _sym_db.RegisterMessage(Instance) _sym_db.RegisterMessage(Instance.LabelsEntry) _sym_db.RegisterMessage(Instance.RedisConfigsEntry) -ListInstancesRequest = _reflection.GeneratedProtocolMessageType('ListInstancesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESREQUEST, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +ListInstancesRequest = _reflection.GeneratedProtocolMessageType( + "ListInstancesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESREQUEST, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. @@ -784,15 +1158,18 @@ The next\_page\_token value returned from a previous List request, if any. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesRequest) + ), +) _sym_db.RegisterMessage(ListInstancesRequest) -ListInstancesResponse = _reflection.GeneratedProtocolMessageType('ListInstancesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESRESPONSE, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """Response for +ListInstancesResponse = _reflection.GeneratedProtocolMessageType( + "ListInstancesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESRESPONSE, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. @@ -812,15 +1189,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ListInstancesResponse) + ), +) _sym_db.RegisterMessage(ListInstancesResponse) -GetInstanceRequest = _reflection.GeneratedProtocolMessageType('GetInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +GetInstanceRequest = _reflection.GeneratedProtocolMessageType( + "GetInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETINSTANCEREQUEST, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""Request for [GetInstance][google.cloud.redis.v1beta1.CloudRedis.GetInstance]. @@ -830,15 +1210,18 @@ cts/{project_id}/locations/{location_id}/instances/{instance_i d}`` where ``location_id`` refers to a GCP region """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GetInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GetInstanceRequest) + ), +) _sym_db.RegisterMessage(GetInstanceRequest) -CreateInstanceRequest = _reflection.GeneratedProtocolMessageType('CreateInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +CreateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "CreateInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEINSTANCEREQUEST, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance]. @@ -857,15 +1240,18 @@ instance: Required. A Redis [Instance] resource """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.CreateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.CreateInstanceRequest) + ), +) _sym_db.RegisterMessage(CreateInstanceRequest) -UpdateInstanceRequest = _reflection.GeneratedProtocolMessageType('UpdateInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +UpdateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "UpdateInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEINSTANCEREQUEST, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance]. @@ -880,15 +1266,18 @@ Required. Update description. Only fields specified in update\_mask are updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.UpdateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.UpdateInstanceRequest) + ), +) _sym_db.RegisterMessage(UpdateInstanceRequest) -DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType('DeleteInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEINSTANCEREQUEST, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """Request for +DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType( + "DeleteInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEINSTANCEREQUEST, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance]. @@ -898,22 +1287,27 @@ cts/{project_id}/locations/{location_id}/instances/{instance_i d}`` where ``location_id`` refers to a GCP region """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.DeleteInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.DeleteInstanceRequest) + ), +) _sym_db.RegisterMessage(DeleteInstanceRequest) -LocationMetadata = _reflection.GeneratedProtocolMessageType('LocationMetadata', (_message.Message,), dict( - - AvailableZonesEntry = _reflection.GeneratedProtocolMessageType('AvailableZonesEntry', (_message.Message,), dict( - DESCRIPTOR = _LOCATIONMETADATA_AVAILABLEZONESENTRY, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry) - )) - , - DESCRIPTOR = _LOCATIONMETADATA, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """This location metadata represents additional configuration options for a +LocationMetadata = _reflection.GeneratedProtocolMessageType( + "LocationMetadata", + (_message.Message,), + dict( + AvailableZonesEntry=_reflection.GeneratedProtocolMessageType( + "AvailableZonesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_LOCATIONMETADATA_AVAILABLEZONESENTRY, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry) + ), + ), + DESCRIPTOR=_LOCATIONMETADATA, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""This location metadata represents additional configuration options for a given location where a Redis instance may be created. All fields are output only. It is returned as content of the ``google.cloud.location.Location.metadata`` field. @@ -927,89 +1321,130 @@ ``alternative_location_id`` fields when creating a Redis instance. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.LocationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.LocationMetadata) + ), +) _sym_db.RegisterMessage(LocationMetadata) _sym_db.RegisterMessage(LocationMetadata.AvailableZonesEntry) -ZoneMetadata = _reflection.GeneratedProtocolMessageType('ZoneMetadata', (_message.Message,), dict( - DESCRIPTOR = _ZONEMETADATA, - __module__ = 'google.cloud.redis_v1beta1.proto.cloud_redis_pb2' - , - __doc__ = """Defines specific information for a particular zone. Currently empty and +ZoneMetadata = _reflection.GeneratedProtocolMessageType( + "ZoneMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_ZONEMETADATA, + __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", + __doc__="""Defines specific information for a particular zone. Currently empty and reserved for future use only. """, - # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ZoneMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ZoneMetadata) + ), +) _sym_db.RegisterMessage(ZoneMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.redis.v1beta1B\032CloudRedisServiceBetaProtoP\001Z?google.golang.org/genproto/googleapis/cloud/redis/v1beta1;redis')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.redis.v1beta1B\032CloudRedisServiceBetaProtoP\001Z?google.golang.org/genproto/googleapis/cloud/redis/v1beta1;redis" + ), +) _INSTANCE_LABELSENTRY.has_options = True -_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _INSTANCE_REDISCONFIGSENTRY.has_options = True -_INSTANCE_REDISCONFIGSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_INSTANCE_REDISCONFIGSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _LOCATIONMETADATA_AVAILABLEZONESENTRY.has_options = True -_LOCATIONMETADATA_AVAILABLEZONESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_LOCATIONMETADATA_AVAILABLEZONESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _CLOUDREDIS = _descriptor.ServiceDescriptor( - name='CloudRedis', - full_name='google.cloud.redis.v1beta1.CloudRedis', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1823, - serialized_end=2688, - methods=[ - _descriptor.MethodDescriptor( - name='ListInstances', - full_name='google.cloud.redis.v1beta1.CloudRedis.ListInstances', + name="CloudRedis", + full_name="google.cloud.redis.v1beta1.CloudRedis", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTINSTANCESREQUEST, - output_type=_LISTINSTANCESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\0222/v1beta1/{parent=projects/*/locations/*}/instances')), - ), - _descriptor.MethodDescriptor( - name='GetInstance', - full_name='google.cloud.redis.v1beta1.CloudRedis.GetInstance', - index=1, - containing_service=None, - input_type=_GETINSTANCEREQUEST, - output_type=_INSTANCE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\0222/v1beta1/{name=projects/*/locations/*/instances/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateInstance', - full_name='google.cloud.redis.v1beta1.CloudRedis.CreateInstance', - index=2, - containing_service=None, - input_type=_CREATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>\"2/v1beta1/{parent=projects/*/locations/*}/instances:\010instance')), - ), - _descriptor.MethodDescriptor( - name='UpdateInstance', - full_name='google.cloud.redis.v1beta1.CloudRedis.UpdateInstance', - index=3, - containing_service=None, - input_type=_UPDATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G2;/v1beta1/{instance.name=projects/*/locations/*/instances/*}:\010instance')), - ), - _descriptor.MethodDescriptor( - name='DeleteInstance', - full_name='google.cloud.redis.v1beta1.CloudRedis.DeleteInstance', - index=4, - containing_service=None, - input_type=_DELETEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024*2/v1beta1/{name=projects/*/locations/*/instances/*}')), - ), -]) + options=None, + serialized_start=1823, + serialized_end=2688, + methods=[ + _descriptor.MethodDescriptor( + name="ListInstances", + full_name="google.cloud.redis.v1beta1.CloudRedis.ListInstances", + index=0, + containing_service=None, + input_type=_LISTINSTANCESREQUEST, + output_type=_LISTINSTANCESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0024\0222/v1beta1/{parent=projects/*/locations/*}/instances" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetInstance", + full_name="google.cloud.redis.v1beta1.CloudRedis.GetInstance", + index=1, + containing_service=None, + input_type=_GETINSTANCEREQUEST, + output_type=_INSTANCE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0024\0222/v1beta1/{name=projects/*/locations/*/instances/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateInstance", + full_name="google.cloud.redis.v1beta1.CloudRedis.CreateInstance", + index=2, + containing_service=None, + input_type=_CREATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002>"2/v1beta1/{parent=projects/*/locations/*}/instances:\010instance' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateInstance", + full_name="google.cloud.redis.v1beta1.CloudRedis.UpdateInstance", + index=3, + containing_service=None, + input_type=_UPDATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002G2;/v1beta1/{instance.name=projects/*/locations/*/instances/*}:\010instance" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteInstance", + full_name="google.cloud.redis.v1beta1.CloudRedis.DeleteInstance", + index=4, + containing_service=None, + input_type=_DELETEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0024*2/v1beta1/{name=projects/*/locations/*/instances/*}" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLOUDREDIS) -DESCRIPTOR.services_by_name['CloudRedis'] = _CLOUDREDIS +DESCRIPTOR.services_by_name["CloudRedis"] = _CLOUDREDIS # @@protoc_insertion_point(module_scope) diff --git a/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2_grpc.py b/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2_grpc.py index 616a9f05e25e8..1e27074c65d0f 100644 --- a/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2_grpc.py +++ b/redis/google/cloud/redis_v1beta1/proto/cloud_redis_pb2_grpc.py @@ -1,12 +1,16 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.redis_v1beta1.proto import cloud_redis_pb2 as google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.redis_v1beta1.proto import ( + cloud_redis_pb2 as google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class CloudRedisStub(object): - """Configures and manages Cloud Memorystore for Redis instances + """Configures and manages Cloud Memorystore for Redis instances Google Cloud Memorystore for Redis v1beta1 @@ -23,41 +27,41 @@ class CloudRedisStub(object): * `projects/redpepper-1290/locations/us-central1/instances/my-redis` """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListInstances = channel.unary_unary( - '/google.cloud.redis.v1beta1.CloudRedis/ListInstances', - request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.FromString, + self.ListInstances = channel.unary_unary( + "/google.cloud.redis.v1beta1.CloudRedis/ListInstances", + request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.FromString, ) - self.GetInstance = channel.unary_unary( - '/google.cloud.redis.v1beta1.CloudRedis/GetInstance', - request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.Instance.FromString, + self.GetInstance = channel.unary_unary( + "/google.cloud.redis.v1beta1.CloudRedis/GetInstance", + request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.Instance.FromString, ) - self.CreateInstance = channel.unary_unary( - '/google.cloud.redis.v1beta1.CloudRedis/CreateInstance', - request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateInstance = channel.unary_unary( + "/google.cloud.redis.v1beta1.CloudRedis/CreateInstance", + request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.UpdateInstance = channel.unary_unary( - '/google.cloud.redis.v1beta1.CloudRedis/UpdateInstance', - request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateInstance = channel.unary_unary( + "/google.cloud.redis.v1beta1.CloudRedis/UpdateInstance", + request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteInstance = channel.unary_unary( - '/google.cloud.redis.v1beta1.CloudRedis/DeleteInstance', - request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.DeleteInstance = channel.unary_unary( + "/google.cloud.redis.v1beta1.CloudRedis/DeleteInstance", + request_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class CloudRedisServicer(object): - """Configures and manages Cloud Memorystore for Redis instances + """Configures and manages Cloud Memorystore for Redis instances Google Cloud Memorystore for Redis v1beta1 @@ -74,8 +78,8 @@ class CloudRedisServicer(object): * `projects/redpepper-1290/locations/us-central1/instances/my-redis` """ - def ListInstances(self, request, context): - """Lists all Redis instances owned by a project in either the specified + def ListInstances(self, request, context): + """Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: @@ -84,19 +88,19 @@ def ListInstances(self, request, context): If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetInstance(self, request, context): - """Gets the details of a specific Redis instance. + def GetInstance(self, request, context): + """Gets the details of a specific Redis instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateInstance(self, request, context): - """Creates a Redis instance based on the specified tier and memory size. + def CreateInstance(self, request, context): + """Creates a Redis instance based on the specified tier and memory size. By default, the instance is peered to the project's [default network](/compute/docs/networks-and-firewalls#networks). @@ -109,58 +113,59 @@ def CreateInstance(self, request, context): The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateInstance(self, request, context): - """Updates the metadata and configuration of a specific Redis instance. + def UpdateInstance(self, request, context): + """Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteInstance(self, request, context): - """Deletes a specific Redis instance. Instance stops serving and data is + def DeleteInstance(self, request, context): + """Deletes a specific Redis instance. Instance stops serving and data is deleted. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_CloudRedisServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListInstances': grpc.unary_unary_rpc_method_handler( - servicer.ListInstances, - request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.FromString, - response_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.SerializeToString, - ), - 'GetInstance': grpc.unary_unary_rpc_method_handler( - servicer.GetInstance, - request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.FromString, - response_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.Instance.SerializeToString, - ), - 'CreateInstance': grpc.unary_unary_rpc_method_handler( - servicer.CreateInstance, - request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'UpdateInstance': grpc.unary_unary_rpc_method_handler( - servicer.UpdateInstance, - request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteInstance': grpc.unary_unary_rpc_method_handler( - servicer.DeleteInstance, - request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.redis.v1beta1.CloudRedis', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListInstances": grpc.unary_unary_rpc_method_handler( + servicer.ListInstances, + request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesRequest.FromString, + response_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.ListInstancesResponse.SerializeToString, + ), + "GetInstance": grpc.unary_unary_rpc_method_handler( + servicer.GetInstance, + request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.GetInstanceRequest.FromString, + response_serializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.Instance.SerializeToString, + ), + "CreateInstance": grpc.unary_unary_rpc_method_handler( + servicer.CreateInstance, + request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.CreateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "UpdateInstance": grpc.unary_unary_rpc_method_handler( + servicer.UpdateInstance, + request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.UpdateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteInstance": grpc.unary_unary_rpc_method_handler( + servicer.DeleteInstance, + request_deserializer=google_dot_cloud_dot_redis__v1beta1_dot_proto_dot_cloud__redis__pb2.DeleteInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.redis.v1beta1.CloudRedis", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py b/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py index 2e0a00a0c36e8..ab223dc921f56 100644 --- a/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py +++ b/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2.py @@ -2,367 +2,513 @@ # source: google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.scheduler_v1beta1.proto import job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2 +from google.cloud.scheduler_v1beta1.proto import ( + job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto', - package='google.cloud.scheduler.v1beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a.google/cloud/scheduler_v1beta1/proto/job.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"H\n\x0fListJobsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"^\n\x10ListJobsResponse\x12\x31\n\x04jobs\x18\x01 \x03(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1d\n\rGetJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"T\n\x10\x43reateJobRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x03job\x18\x02 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\"u\n\x10UpdateJobRequest\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\" \n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1f\n\x0fPauseJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\" \n\x10ResumeJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1d\n\rRunJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t2\x88\n\n\x0e\x43loudScheduler\x12\xa4\x01\n\x08ListJobs\x12/.google.cloud.scheduler.v1beta1.ListJobsRequest\x1a\x30.google.cloud.scheduler.v1beta1.ListJobsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{parent=projects/*/locations/*}/jobs\x12\x93\x01\n\x06GetJob\x12-.google.cloud.scheduler.v1beta1.GetJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\x9e\x01\n\tCreateJob\x12\x30.google.cloud.scheduler.v1beta1.CreateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\":\x82\xd3\xe4\x93\x02\x34\"-/v1beta1/{parent=projects/*/locations/*}/jobs:\x03job\x12\xa2\x01\n\tUpdateJob\x12\x30.google.cloud.scheduler.v1beta1.UpdateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\">\x82\xd3\xe4\x93\x02\x38\x32\x31/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\x03job\x12\x8c\x01\n\tDeleteJob\x12\x30.google.cloud.scheduler.v1beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/*-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\xa0\x01\n\x08PauseJob\x12/.google.cloud.scheduler.v1beta1.PauseJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\">\x82\xd3\xe4\x93\x02\x38\"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\x01*\x12\xa3\x01\n\tResumeJob\x12\x30.google.cloud.scheduler.v1beta1.ResumeJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\"?\x82\xd3\xe4\x93\x02\x39\"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\x01*\x12\x9a\x01\n\x06RunJob\x12-.google.cloud.scheduler.v1beta1.RunJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job\"<\x82\xd3\xe4\x93\x02\x36\"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\x01*B\x7f\n\"com.google.cloud.scheduler.v1beta1B\x0eSchedulerProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto", + package="google.cloud.scheduler.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/scheduler_v1beta1/proto/cloudscheduler.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a.google/cloud/scheduler_v1beta1/proto/job.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"H\n\x0fListJobsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t"^\n\x10ListJobsResponse\x12\x31\n\x04jobs\x18\x01 \x03(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x1d\n\rGetJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"T\n\x10\x43reateJobRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x03job\x18\x02 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job"u\n\x10UpdateJobRequest\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.google.cloud.scheduler.v1beta1.Job\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask" \n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1f\n\x0fPauseJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t" \n\x10ResumeJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1d\n\rRunJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t2\x88\n\n\x0e\x43loudScheduler\x12\xa4\x01\n\x08ListJobs\x12/.google.cloud.scheduler.v1beta1.ListJobsRequest\x1a\x30.google.cloud.scheduler.v1beta1.ListJobsResponse"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{parent=projects/*/locations/*}/jobs\x12\x93\x01\n\x06GetJob\x12-.google.cloud.scheduler.v1beta1.GetJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job"5\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\x9e\x01\n\tCreateJob\x12\x30.google.cloud.scheduler.v1beta1.CreateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job":\x82\xd3\xe4\x93\x02\x34"-/v1beta1/{parent=projects/*/locations/*}/jobs:\x03job\x12\xa2\x01\n\tUpdateJob\x12\x30.google.cloud.scheduler.v1beta1.UpdateJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job">\x82\xd3\xe4\x93\x02\x38\x32\x31/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\x03job\x12\x8c\x01\n\tDeleteJob\x12\x30.google.cloud.scheduler.v1beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty"5\x82\xd3\xe4\x93\x02/*-/v1beta1/{name=projects/*/locations/*/jobs/*}\x12\xa0\x01\n\x08PauseJob\x12/.google.cloud.scheduler.v1beta1.PauseJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job">\x82\xd3\xe4\x93\x02\x38"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\x01*\x12\xa3\x01\n\tResumeJob\x12\x30.google.cloud.scheduler.v1beta1.ResumeJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job"?\x82\xd3\xe4\x93\x02\x39"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\x01*\x12\x9a\x01\n\x06RunJob\x12-.google.cloud.scheduler.v1beta1.RunJobRequest\x1a#.google.cloud.scheduler.v1beta1.Job"<\x82\xd3\xe4\x93\x02\x36"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\x01*B\x7f\n"com.google.cloud.scheduler.v1beta1B\x0eSchedulerProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _LISTJOBSREQUEST = _descriptor.Descriptor( - name='ListJobsRequest', - full_name='google.cloud.scheduler.v1beta1.ListJobsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.scheduler.v1beta1.ListJobsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.scheduler.v1beta1.ListJobsRequest.page_size', index=1, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.scheduler.v1beta1.ListJobsRequest.page_token', index=2, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=234, - serialized_end=306, + name="ListJobsRequest", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest.page_size", + index=1, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.scheduler.v1beta1.ListJobsRequest.page_token", + index=2, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=234, + serialized_end=306, ) _LISTJOBSRESPONSE = _descriptor.Descriptor( - name='ListJobsResponse', - full_name='google.cloud.scheduler.v1beta1.ListJobsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='jobs', full_name='google.cloud.scheduler.v1beta1.ListJobsResponse.jobs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.scheduler.v1beta1.ListJobsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=308, - serialized_end=402, + name="ListJobsResponse", + full_name="google.cloud.scheduler.v1beta1.ListJobsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="jobs", + full_name="google.cloud.scheduler.v1beta1.ListJobsResponse.jobs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.scheduler.v1beta1.ListJobsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=308, + serialized_end=402, ) _GETJOBREQUEST = _descriptor.Descriptor( - name='GetJobRequest', - full_name='google.cloud.scheduler.v1beta1.GetJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.GetJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=404, - serialized_end=433, + name="GetJobRequest", + full_name="google.cloud.scheduler.v1beta1.GetJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.GetJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=404, + serialized_end=433, ) _CREATEJOBREQUEST = _descriptor.Descriptor( - name='CreateJobRequest', - full_name='google.cloud.scheduler.v1beta1.CreateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.scheduler.v1beta1.CreateJobRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.scheduler.v1beta1.CreateJobRequest.job', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=435, - serialized_end=519, + name="CreateJobRequest", + full_name="google.cloud.scheduler.v1beta1.CreateJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.scheduler.v1beta1.CreateJobRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.scheduler.v1beta1.CreateJobRequest.job", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=435, + serialized_end=519, ) _UPDATEJOBREQUEST = _descriptor.Descriptor( - name='UpdateJobRequest', - full_name='google.cloud.scheduler.v1beta1.UpdateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='job', full_name='google.cloud.scheduler.v1beta1.UpdateJobRequest.job', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.scheduler.v1beta1.UpdateJobRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=521, - serialized_end=638, + name="UpdateJobRequest", + full_name="google.cloud.scheduler.v1beta1.UpdateJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="job", + full_name="google.cloud.scheduler.v1beta1.UpdateJobRequest.job", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.scheduler.v1beta1.UpdateJobRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=521, + serialized_end=638, ) _DELETEJOBREQUEST = _descriptor.Descriptor( - name='DeleteJobRequest', - full_name='google.cloud.scheduler.v1beta1.DeleteJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.DeleteJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=640, - serialized_end=672, + name="DeleteJobRequest", + full_name="google.cloud.scheduler.v1beta1.DeleteJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.DeleteJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=640, + serialized_end=672, ) _PAUSEJOBREQUEST = _descriptor.Descriptor( - name='PauseJobRequest', - full_name='google.cloud.scheduler.v1beta1.PauseJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.PauseJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=674, - serialized_end=705, + name="PauseJobRequest", + full_name="google.cloud.scheduler.v1beta1.PauseJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.PauseJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=674, + serialized_end=705, ) _RESUMEJOBREQUEST = _descriptor.Descriptor( - name='ResumeJobRequest', - full_name='google.cloud.scheduler.v1beta1.ResumeJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.ResumeJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=707, - serialized_end=739, + name="ResumeJobRequest", + full_name="google.cloud.scheduler.v1beta1.ResumeJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.ResumeJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=707, + serialized_end=739, ) _RUNJOBREQUEST = _descriptor.Descriptor( - name='RunJobRequest', - full_name='google.cloud.scheduler.v1beta1.RunJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.RunJobRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=741, - serialized_end=770, + name="RunJobRequest", + full_name="google.cloud.scheduler.v1beta1.RunJobRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.RunJobRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=741, + serialized_end=770, ) -_LISTJOBSRESPONSE.fields_by_name['jobs'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB -_CREATEJOBREQUEST.fields_by_name['job'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB -_UPDATEJOBREQUEST.fields_by_name['job'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB -_UPDATEJOBREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name['ListJobsRequest'] = _LISTJOBSREQUEST -DESCRIPTOR.message_types_by_name['ListJobsResponse'] = _LISTJOBSRESPONSE -DESCRIPTOR.message_types_by_name['GetJobRequest'] = _GETJOBREQUEST -DESCRIPTOR.message_types_by_name['CreateJobRequest'] = _CREATEJOBREQUEST -DESCRIPTOR.message_types_by_name['UpdateJobRequest'] = _UPDATEJOBREQUEST -DESCRIPTOR.message_types_by_name['DeleteJobRequest'] = _DELETEJOBREQUEST -DESCRIPTOR.message_types_by_name['PauseJobRequest'] = _PAUSEJOBREQUEST -DESCRIPTOR.message_types_by_name['ResumeJobRequest'] = _RESUMEJOBREQUEST -DESCRIPTOR.message_types_by_name['RunJobRequest'] = _RUNJOBREQUEST +_LISTJOBSRESPONSE.fields_by_name[ + "jobs" +].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB +_CREATEJOBREQUEST.fields_by_name[ + "job" +].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB +_UPDATEJOBREQUEST.fields_by_name[ + "job" +].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB +_UPDATEJOBREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name["ListJobsRequest"] = _LISTJOBSREQUEST +DESCRIPTOR.message_types_by_name["ListJobsResponse"] = _LISTJOBSRESPONSE +DESCRIPTOR.message_types_by_name["GetJobRequest"] = _GETJOBREQUEST +DESCRIPTOR.message_types_by_name["CreateJobRequest"] = _CREATEJOBREQUEST +DESCRIPTOR.message_types_by_name["UpdateJobRequest"] = _UPDATEJOBREQUEST +DESCRIPTOR.message_types_by_name["DeleteJobRequest"] = _DELETEJOBREQUEST +DESCRIPTOR.message_types_by_name["PauseJobRequest"] = _PAUSEJOBREQUEST +DESCRIPTOR.message_types_by_name["ResumeJobRequest"] = _RESUMEJOBREQUEST +DESCRIPTOR.message_types_by_name["RunJobRequest"] = _RUNJOBREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListJobsRequest = _reflection.GeneratedProtocolMessageType('ListJobsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for listing jobs using +ListJobsRequest = _reflection.GeneratedProtocolMessageType( + "ListJobsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. @@ -387,15 +533,18 @@ r\_by][google.cloud.scheduler.v1beta1.ListJobsRequest.order\_b y] while iterating through pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsRequest) + ), +) _sym_db.RegisterMessage(ListJobsRequest) -ListJobsResponse = _reflection.GeneratedProtocolMessageType('ListJobsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTJOBSRESPONSE, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Response message for listing jobs using +ListJobsResponse = _reflection.GeneratedProtocolMessageType( + "ListJobsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTJOBSRESPONSE, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. @@ -411,15 +560,18 @@ indicates that there are no more results through which to paginate. The page token is valid for only 2 hours. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsResponse) + ), +) _sym_db.RegisterMessage(ListJobsResponse) -GetJobRequest = _reflection.GeneratedProtocolMessageType('GetJobRequest', (_message.Message,), dict( - DESCRIPTOR = _GETJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +GetJobRequest = _reflection.GeneratedProtocolMessageType( + "GetJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [GetJob][google.cloud.scheduler.v1beta1.CloudScheduler.GetJob]. @@ -428,15 +580,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.GetJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.GetJobRequest) + ), +) _sym_db.RegisterMessage(GetJobRequest) -CreateJobRequest = _reflection.GeneratedProtocolMessageType('CreateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +CreateJobRequest = _reflection.GeneratedProtocolMessageType( + "CreateJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [CreateJob][google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob]. @@ -454,15 +609,18 @@ returned ([name][google.cloud.scheduler.v1beta1.Job.name]) in the response. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.CreateJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.CreateJobRequest) + ), +) _sym_db.RegisterMessage(CreateJobRequest) -UpdateJobRequest = _reflection.GeneratedProtocolMessageType('UpdateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +UpdateJobRequest = _reflection.GeneratedProtocolMessageType( + "UpdateJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob]. @@ -477,15 +635,18 @@ A mask used to specify which fields of the job are being updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.UpdateJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.UpdateJobRequest) + ), +) _sym_db.RegisterMessage(UpdateJobRequest) -DeleteJobRequest = _reflection.GeneratedProtocolMessageType('DeleteJobRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for deleting a job using +DeleteJobRequest = _reflection.GeneratedProtocolMessageType( + "DeleteJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for deleting a job using [DeleteJob][google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob]. @@ -494,15 +655,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.DeleteJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.DeleteJobRequest) + ), +) _sym_db.RegisterMessage(DeleteJobRequest) -PauseJobRequest = _reflection.GeneratedProtocolMessageType('PauseJobRequest', (_message.Message,), dict( - DESCRIPTOR = _PAUSEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +PauseJobRequest = _reflection.GeneratedProtocolMessageType( + "PauseJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PAUSEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [PauseJob][google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob]. @@ -511,15 +675,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PauseJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PauseJobRequest) + ), +) _sym_db.RegisterMessage(PauseJobRequest) -ResumeJobRequest = _reflection.GeneratedProtocolMessageType('ResumeJobRequest', (_message.Message,), dict( - DESCRIPTOR = _RESUMEJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for +ResumeJobRequest = _reflection.GeneratedProtocolMessageType( + "ResumeJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RESUMEJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. @@ -528,15 +695,18 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ResumeJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ResumeJobRequest) + ), +) _sym_db.RegisterMessage(ResumeJobRequest) -RunJobRequest = _reflection.GeneratedProtocolMessageType('RunJobRequest', (_message.Message,), dict( - DESCRIPTOR = _RUNJOBREQUEST, - __module__ = 'google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2' - , - __doc__ = """Request message for forcing a job to run now using +RunJobRequest = _reflection.GeneratedProtocolMessageType( + "RunJobRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RUNJOBREQUEST, + __module__="google.cloud.scheduler_v1beta1.proto.cloudscheduler_pb2", + __doc__="""Request message for forcing a job to run now using [RunJob][google.cloud.scheduler.v1beta1.CloudScheduler.RunJob]. @@ -545,98 +715,145 @@ Required. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RunJobRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RunJobRequest) + ), +) _sym_db.RegisterMessage(RunJobRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.cloud.scheduler.v1beta1B\016SchedulerProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + '\n"com.google.cloud.scheduler.v1beta1B\016SchedulerProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler' + ), +) _CLOUDSCHEDULER = _descriptor.ServiceDescriptor( - name='CloudScheduler', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=773, - serialized_end=2061, - methods=[ - _descriptor.MethodDescriptor( - name='ListJobs', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs', + name="CloudScheduler", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTJOBSREQUEST, - output_type=_LISTJOBSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1beta1/{parent=projects/*/locations/*}/jobs')), - ), - _descriptor.MethodDescriptor( - name='GetJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.GetJob', - index=1, - containing_service=None, - input_type=_GETJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1beta1/{name=projects/*/locations/*/jobs/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob', - index=2, - containing_service=None, - input_type=_CREATEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\"-/v1beta1/{parent=projects/*/locations/*}/jobs:\003job')), - ), - _descriptor.MethodDescriptor( - name='UpdateJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob', - index=3, - containing_service=None, - input_type=_UPDATEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002821/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\003job')), - ), - _descriptor.MethodDescriptor( - name='DeleteJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob', - index=4, - containing_service=None, - input_type=_DELETEJOBREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/*-/v1beta1/{name=projects/*/locations/*/jobs/*}')), - ), - _descriptor.MethodDescriptor( - name='PauseJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob', - index=5, - containing_service=None, - input_type=_PAUSEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\001*')), - ), - _descriptor.MethodDescriptor( - name='ResumeJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob', - index=6, - containing_service=None, - input_type=_RESUMEJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\001*')), - ), - _descriptor.MethodDescriptor( - name='RunJob', - full_name='google.cloud.scheduler.v1beta1.CloudScheduler.RunJob', - index=7, - containing_service=None, - input_type=_RUNJOBREQUEST, - output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\001*')), - ), -]) + options=None, + serialized_start=773, + serialized_end=2061, + methods=[ + _descriptor.MethodDescriptor( + name="ListJobs", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", + index=0, + containing_service=None, + input_type=_LISTJOBSREQUEST, + output_type=_LISTJOBSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1beta1/{parent=projects/*/locations/*}/jobs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", + index=1, + containing_service=None, + input_type=_GETJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1beta1/{name=projects/*/locations/*/jobs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", + index=2, + containing_service=None, + input_type=_CREATEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0024"-/v1beta1/{parent=projects/*/locations/*}/jobs:\003job' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", + index=3, + containing_service=None, + input_type=_UPDATEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002821/v1beta1/{job.name=projects/*/locations/*/jobs/*}:\003job" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", + index=4, + containing_service=None, + input_type=_DELETEJOBREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/*-/v1beta1/{name=projects/*/locations/*/jobs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="PauseJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", + index=5, + containing_service=None, + input_type=_PAUSEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028"3/v1beta1/{name=projects/*/locations/*/jobs/*}:pause:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ResumeJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", + index=6, + containing_service=None, + input_type=_RESUMEJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0029"4/v1beta1/{name=projects/*/locations/*/jobs/*}:resume:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="RunJob", + full_name="google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", + index=7, + containing_service=None, + input_type=_RUNJOBREQUEST, + output_type=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2._JOB, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0026"1/v1beta1/{name=projects/*/locations/*/jobs/*}:run:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLOUDSCHEDULER) -DESCRIPTOR.services_by_name['CloudScheduler'] = _CLOUDSCHEDULER +DESCRIPTOR.services_by_name["CloudScheduler"] = _CLOUDSCHEDULER # @@protoc_insertion_point(module_scope) diff --git a/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py b/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py index a41d39b75e730..fca5a0d9d8eca 100644 --- a/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py +++ b/scheduler/google/cloud/scheduler_v1beta1/proto/cloudscheduler_pb2_grpc.py @@ -1,92 +1,96 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.scheduler_v1beta1.proto import cloudscheduler_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2 -from google.cloud.scheduler_v1beta1.proto import job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2 +from google.cloud.scheduler_v1beta1.proto import ( + cloudscheduler_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2, +) +from google.cloud.scheduler_v1beta1.proto import ( + job_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class CloudSchedulerStub(object): - """The Cloud Scheduler API allows external entities to reliably + """The Cloud Scheduler API allows external entities to reliably schedule asynchronous jobs. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListJobs = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/ListJobs', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.FromString, + self.ListJobs = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/ListJobs", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.FromString, ) - self.GetJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/GetJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.GetJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/GetJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.CreateJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/CreateJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.CreateJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/CreateJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.UpdateJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/UpdateJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.UpdateJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/UpdateJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.DeleteJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/DeleteJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/DeleteJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.PauseJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/PauseJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.PauseJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/PauseJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.ResumeJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/ResumeJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.ResumeJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/ResumeJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) - self.RunJob = channel.unary_unary( - '/google.cloud.scheduler.v1beta1.CloudScheduler/RunJob', - request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, + self.RunJob = channel.unary_unary( + "/google.cloud.scheduler.v1beta1.CloudScheduler/RunJob", + request_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.FromString, ) class CloudSchedulerServicer(object): - """The Cloud Scheduler API allows external entities to reliably + """The Cloud Scheduler API allows external entities to reliably schedule asynchronous jobs. """ - def ListJobs(self, request, context): - """Lists jobs. + def ListJobs(self, request, context): + """Lists jobs. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetJob(self, request, context): - """Gets a job. + def GetJob(self, request, context): + """Gets a job. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateJob(self, request, context): - """Creates a job. + def CreateJob(self, request, context): + """Creates a job. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateJob(self, request, context): - """Updates a job. + def UpdateJob(self, request, context): + """Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. @@ -96,19 +100,19 @@ def UpdateJob(self, request, context): not be executed. If this happens, retry the UpdateJob request until a successful response is received. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteJob(self, request, context): - """Deletes a job. + def DeleteJob(self, request, context): + """Deletes a job. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PauseJob(self, request, context): - """Pauses a job. + def PauseJob(self, request, context): + """Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The @@ -116,76 +120,77 @@ def PauseJob(self, request, context): will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] to be paused. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ResumeJob(self, request, context): - """Resume a job. + def ResumeJob(self, request, context): + """Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RunJob(self, request, context): - """Forces a job to run now. + def RunJob(self, request, context): + """Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_CloudSchedulerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListJobs': grpc.unary_unary_rpc_method_handler( - servicer.ListJobs, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.SerializeToString, - ), - 'GetJob': grpc.unary_unary_rpc_method_handler( - servicer.GetJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'CreateJob': grpc.unary_unary_rpc_method_handler( - servicer.CreateJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'UpdateJob': grpc.unary_unary_rpc_method_handler( - servicer.UpdateJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'DeleteJob': grpc.unary_unary_rpc_method_handler( - servicer.DeleteJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'PauseJob': grpc.unary_unary_rpc_method_handler( - servicer.PauseJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'ResumeJob': grpc.unary_unary_rpc_method_handler( - servicer.ResumeJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - 'RunJob': grpc.unary_unary_rpc_method_handler( - servicer.RunJob, - request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.FromString, - response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.scheduler.v1beta1.CloudScheduler', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListJobs": grpc.unary_unary_rpc_method_handler( + servicer.ListJobs, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ListJobsResponse.SerializeToString, + ), + "GetJob": grpc.unary_unary_rpc_method_handler( + servicer.GetJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.GetJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "CreateJob": grpc.unary_unary_rpc_method_handler( + servicer.CreateJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.CreateJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "UpdateJob": grpc.unary_unary_rpc_method_handler( + servicer.UpdateJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.UpdateJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "DeleteJob": grpc.unary_unary_rpc_method_handler( + servicer.DeleteJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.DeleteJobRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "PauseJob": grpc.unary_unary_rpc_method_handler( + servicer.PauseJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.PauseJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "ResumeJob": grpc.unary_unary_rpc_method_handler( + servicer.ResumeJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.ResumeJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + "RunJob": grpc.unary_unary_rpc_method_handler( + servicer.RunJob, + request_deserializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_cloudscheduler__pb2.RunJobRequest.FromString, + response_serializer=google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_job__pb2.Job.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.scheduler.v1beta1.CloudScheduler", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py b/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py index 1092e557c8384..ad656ece07dfa 100644 --- a/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py +++ b/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2.py @@ -2,277 +2,506 @@ # source: google/cloud/scheduler_v1beta1/proto/job.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.scheduler_v1beta1.proto import target_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2 +from google.cloud.scheduler_v1beta1.proto import ( + target_pb2 as google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/scheduler_v1beta1/proto/job.proto', - package='google.cloud.scheduler.v1beta1', - syntax='proto3', - serialized_pb=_b('\n.google/cloud/scheduler_v1beta1/proto/job.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x31google/cloud/scheduler_v1beta1/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xd3\x05\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x45\n\rpubsub_target\x18\x04 \x01(\x0b\x32,.google.cloud.scheduler.v1beta1.PubsubTargetH\x00\x12U\n\x16\x61pp_engine_http_target\x18\x05 \x01(\x0b\x32\x33.google.cloud.scheduler.v1beta1.AppEngineHttpTargetH\x00\x12\x41\n\x0bhttp_target\x18\x06 \x01(\x0b\x32*.google.cloud.scheduler.v1beta1.HttpTargetH\x00\x12\x10\n\x08schedule\x18\x14 \x01(\t\x12\x11\n\ttime_zone\x18\x15 \x01(\t\x12\x34\n\x10user_update_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x05state\x18\n \x01(\x0e\x32).google.cloud.scheduler.v1beta1.Job.State\x12\"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x31\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_attempt_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0cretry_config\x18\x13 \x01(\x0b\x32+.google.cloud.scheduler.v1beta1.RetryConfig\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04\x42\x08\n\x06target\"\xe2\x01\n\x0bRetryConfig\x12\x13\n\x0bretry_count\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14min_backoff_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14max_backoff_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42y\n\"com.google.cloud.scheduler.v1beta1B\x08JobProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/scheduler_v1beta1/proto/job.proto", + package="google.cloud.scheduler.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n.google/cloud/scheduler_v1beta1/proto/job.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x31google/cloud/scheduler_v1beta1/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xd3\x05\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x45\n\rpubsub_target\x18\x04 \x01(\x0b\x32,.google.cloud.scheduler.v1beta1.PubsubTargetH\x00\x12U\n\x16\x61pp_engine_http_target\x18\x05 \x01(\x0b\x32\x33.google.cloud.scheduler.v1beta1.AppEngineHttpTargetH\x00\x12\x41\n\x0bhttp_target\x18\x06 \x01(\x0b\x32*.google.cloud.scheduler.v1beta1.HttpTargetH\x00\x12\x10\n\x08schedule\x18\x14 \x01(\t\x12\x11\n\ttime_zone\x18\x15 \x01(\t\x12\x34\n\x10user_update_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x05state\x18\n \x01(\x0e\x32).google.cloud.scheduler.v1beta1.Job.State\x12"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x31\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_attempt_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0cretry_config\x18\x13 \x01(\x0b\x32+.google.cloud.scheduler.v1beta1.RetryConfig"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04\x42\x08\n\x06target"\xe2\x01\n\x0bRetryConfig\x12\x13\n\x0bretry_count\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14min_backoff_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14max_backoff_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42y\n"com.google.cloud.scheduler.v1beta1B\x08JobProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _JOB_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.scheduler.v1beta1.Job.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAUSED', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISABLED', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPDATE_FAILED', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=879, - serialized_end=967, + name="State", + full_name="google.cloud.scheduler.v1beta1.Job.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ENABLED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PAUSED", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISABLED", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPDATE_FAILED", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=879, + serialized_end=967, ) _sym_db.RegisterEnumDescriptor(_JOB_STATE) _JOB = _descriptor.Descriptor( - name='Job', - full_name='google.cloud.scheduler.v1beta1.Job', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.scheduler.v1beta1.Job.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.scheduler.v1beta1.Job.description', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pubsub_target', full_name='google.cloud.scheduler.v1beta1.Job.pubsub_target', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_http_target', full_name='google.cloud.scheduler.v1beta1.Job.app_engine_http_target', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_target', full_name='google.cloud.scheduler.v1beta1.Job.http_target', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule', full_name='google.cloud.scheduler.v1beta1.Job.schedule', index=5, - number=20, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_zone', full_name='google.cloud.scheduler.v1beta1.Job.time_zone', index=6, - number=21, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_update_time', full_name='google.cloud.scheduler.v1beta1.Job.user_update_time', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.scheduler.v1beta1.Job.state', index=8, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.scheduler.v1beta1.Job.status', index=9, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.scheduler.v1beta1.Job.schedule_time', index=10, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_attempt_time', full_name='google.cloud.scheduler.v1beta1.Job.last_attempt_time', index=11, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='retry_config', full_name='google.cloud.scheduler.v1beta1.Job.retry_config', index=12, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _JOB_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target', full_name='google.cloud.scheduler.v1beta1.Job.target', - index=0, containing_type=None, fields=[]), - ], - serialized_start=254, - serialized_end=977, + name="Job", + full_name="google.cloud.scheduler.v1beta1.Job", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.scheduler.v1beta1.Job.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.scheduler.v1beta1.Job.description", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pubsub_target", + full_name="google.cloud.scheduler.v1beta1.Job.pubsub_target", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_http_target", + full_name="google.cloud.scheduler.v1beta1.Job.app_engine_http_target", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="http_target", + full_name="google.cloud.scheduler.v1beta1.Job.http_target", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule", + full_name="google.cloud.scheduler.v1beta1.Job.schedule", + index=5, + number=20, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_zone", + full_name="google.cloud.scheduler.v1beta1.Job.time_zone", + index=6, + number=21, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_update_time", + full_name="google.cloud.scheduler.v1beta1.Job.user_update_time", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.scheduler.v1beta1.Job.state", + index=8, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.scheduler.v1beta1.Job.status", + index=9, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.scheduler.v1beta1.Job.schedule_time", + index=10, + number=17, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_attempt_time", + full_name="google.cloud.scheduler.v1beta1.Job.last_attempt_time", + index=11, + number=18, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="retry_config", + full_name="google.cloud.scheduler.v1beta1.Job.retry_config", + index=12, + number=19, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_JOB_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="target", + full_name="google.cloud.scheduler.v1beta1.Job.target", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=254, + serialized_end=977, ) _RETRYCONFIG = _descriptor.Descriptor( - name='RetryConfig', - full_name='google.cloud.scheduler.v1beta1.RetryConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='retry_count', full_name='google.cloud.scheduler.v1beta1.RetryConfig.retry_count', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_retry_duration', full_name='google.cloud.scheduler.v1beta1.RetryConfig.max_retry_duration', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_backoff_duration', full_name='google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_backoff_duration', full_name='google.cloud.scheduler.v1beta1.RetryConfig.max_backoff_duration', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_doublings', full_name='google.cloud.scheduler.v1beta1.RetryConfig.max_doublings', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=980, - serialized_end=1206, + name="RetryConfig", + full_name="google.cloud.scheduler.v1beta1.RetryConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="retry_count", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.retry_count", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_retry_duration", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.max_retry_duration", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="min_backoff_duration", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_backoff_duration", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.max_backoff_duration", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_doublings", + full_name="google.cloud.scheduler.v1beta1.RetryConfig.max_doublings", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=980, + serialized_end=1206, ) -_JOB.fields_by_name['pubsub_target'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._PUBSUBTARGET -_JOB.fields_by_name['app_engine_http_target'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._APPENGINEHTTPTARGET -_JOB.fields_by_name['http_target'].message_type = google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._HTTPTARGET -_JOB.fields_by_name['user_update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOB.fields_by_name['state'].enum_type = _JOB_STATE -_JOB.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_JOB.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOB.fields_by_name['last_attempt_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_JOB.fields_by_name['retry_config'].message_type = _RETRYCONFIG +_JOB.fields_by_name[ + "pubsub_target" +].message_type = ( + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._PUBSUBTARGET +) +_JOB.fields_by_name[ + "app_engine_http_target" +].message_type = ( + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._APPENGINEHTTPTARGET +) +_JOB.fields_by_name[ + "http_target" +].message_type = ( + google_dot_cloud_dot_scheduler__v1beta1_dot_proto_dot_target__pb2._HTTPTARGET +) +_JOB.fields_by_name[ + "user_update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOB.fields_by_name["state"].enum_type = _JOB_STATE +_JOB.fields_by_name["status"].message_type = google_dot_rpc_dot_status__pb2._STATUS +_JOB.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOB.fields_by_name[ + "last_attempt_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_JOB.fields_by_name["retry_config"].message_type = _RETRYCONFIG _JOB_STATE.containing_type = _JOB -_JOB.oneofs_by_name['target'].fields.append( - _JOB.fields_by_name['pubsub_target']) -_JOB.fields_by_name['pubsub_target'].containing_oneof = _JOB.oneofs_by_name['target'] -_JOB.oneofs_by_name['target'].fields.append( - _JOB.fields_by_name['app_engine_http_target']) -_JOB.fields_by_name['app_engine_http_target'].containing_oneof = _JOB.oneofs_by_name['target'] -_JOB.oneofs_by_name['target'].fields.append( - _JOB.fields_by_name['http_target']) -_JOB.fields_by_name['http_target'].containing_oneof = _JOB.oneofs_by_name['target'] -_RETRYCONFIG.fields_by_name['max_retry_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['min_backoff_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['max_backoff_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -DESCRIPTOR.message_types_by_name['Job'] = _JOB -DESCRIPTOR.message_types_by_name['RetryConfig'] = _RETRYCONFIG +_JOB.oneofs_by_name["target"].fields.append(_JOB.fields_by_name["pubsub_target"]) +_JOB.fields_by_name["pubsub_target"].containing_oneof = _JOB.oneofs_by_name["target"] +_JOB.oneofs_by_name["target"].fields.append( + _JOB.fields_by_name["app_engine_http_target"] +) +_JOB.fields_by_name["app_engine_http_target"].containing_oneof = _JOB.oneofs_by_name[ + "target" +] +_JOB.oneofs_by_name["target"].fields.append(_JOB.fields_by_name["http_target"]) +_JOB.fields_by_name["http_target"].containing_oneof = _JOB.oneofs_by_name["target"] +_RETRYCONFIG.fields_by_name[ + "max_retry_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "min_backoff_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "max_backoff_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name["Job"] = _JOB +DESCRIPTOR.message_types_by_name["RetryConfig"] = _RETRYCONFIG _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Job = _reflection.GeneratedProtocolMessageType('Job', (_message.Message,), dict( - DESCRIPTOR = _JOB, - __module__ = 'google.cloud.scheduler_v1beta1.proto.job_pb2' - , - __doc__ = """Configuration for a job. The maximum allowed size for a job is 100KB. +Job = _reflection.GeneratedProtocolMessageType( + "Job", + (_message.Message,), + dict( + DESCRIPTOR=_JOB, + __module__="google.cloud.scheduler_v1beta1.proto.job_pb2", + __doc__="""Configuration for a job. The maximum allowed size for a job is 100KB. Attributes: @@ -349,15 +578,18 @@ retry_config: Settings that determine the retry behavior. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.Job) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.Job) + ), +) _sym_db.RegisterMessage(Job) -RetryConfig = _reflection.GeneratedProtocolMessageType('RetryConfig', (_message.Message,), dict( - DESCRIPTOR = _RETRYCONFIG, - __module__ = 'google.cloud.scheduler_v1beta1.proto.job_pb2' - , - __doc__ = """Settings that determine the retry behavior. +RetryConfig = _reflection.GeneratedProtocolMessageType( + "RetryConfig", + (_message.Message,), + dict( + DESCRIPTOR=_RETRYCONFIG, + __module__="google.cloud.scheduler_v1beta1.proto.job_pb2", + __doc__="""Settings that determine the retry behavior. By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be @@ -414,11 +646,17 @@ requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... The default value of this field is 5. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RetryConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.RetryConfig) + ), +) _sym_db.RegisterMessage(RetryConfig) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.cloud.scheduler.v1beta1B\010JobProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + '\n"com.google.cloud.scheduler.v1beta1B\010JobProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler' + ), +) # @@protoc_insertion_point(module_scope) diff --git a/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py b/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py +++ b/scheduler/google/cloud/scheduler_v1beta1/proto/job_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py b/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py index f6a58881547a6..9c2ecd2782730 100644 --- a/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py +++ b/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/scheduler_v1beta1/proto/target.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,56 +21,53 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/scheduler_v1beta1/proto/target.proto', - package='google.cloud.scheduler.v1beta1', - syntax='proto3', - serialized_pb=_b('\n1google/cloud/scheduler_v1beta1/proto/target.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\"\xe2\x01\n\nHttpTarget\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12?\n\x0bhttp_method\x18\x02 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12H\n\x07headers\x18\x03 \x03(\x0b\x32\x37.google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcb\x02\n\x13\x41ppEngineHttpTarget\x12?\n\x0bhttp_method\x18\x01 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12L\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32\x30.google.cloud.scheduler.v1beta1.AppEngineRouting\x12\x14\n\x0crelative_uri\x18\x03 \x01(\t\x12Q\n\x07headers\x18\x04 \x03(\x0b\x32@.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb5\x01\n\x0cPubsubTarget\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12P\n\nattributes\x18\x04 \x03(\x0b\x32<.google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*s\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x12\t\n\x05PATCH\x10\x06\x12\x0b\n\x07OPTIONS\x10\x07\x42|\n\"com.google.cloud.scheduler.v1beta1B\x0bTargetProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) + name="google/cloud/scheduler_v1beta1/proto/target.proto", + package="google.cloud.scheduler.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n1google/cloud/scheduler_v1beta1/proto/target.proto\x12\x1egoogle.cloud.scheduler.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto"\xe2\x01\n\nHttpTarget\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12?\n\x0bhttp_method\x18\x02 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12H\n\x07headers\x18\x03 \x03(\x0b\x32\x37.google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xcb\x02\n\x13\x41ppEngineHttpTarget\x12?\n\x0bhttp_method\x18\x01 \x01(\x0e\x32*.google.cloud.scheduler.v1beta1.HttpMethod\x12L\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32\x30.google.cloud.scheduler.v1beta1.AppEngineRouting\x12\x14\n\x0crelative_uri\x18\x03 \x01(\t\x12Q\n\x07headers\x18\x04 \x03(\x0b\x32@.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb5\x01\n\x0cPubsubTarget\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12P\n\nattributes\x18\x04 \x03(\x0b\x32<.google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*s\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x12\t\n\x05PATCH\x10\x06\x12\x0b\n\x07OPTIONS\x10\x07\x42|\n"com.google.cloud.scheduler.v1beta1B\x0bTargetProtoP\x01ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;schedulerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_any__pb2.DESCRIPTOR, + ], +) _HTTPMETHOD = _descriptor.EnumDescriptor( - name='HttpMethod', - full_name='google.cloud.scheduler.v1beta1.HttpMethod', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='HTTP_METHOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POST', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GET', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEAD', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PATCH', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OPTIONS', index=7, number=7, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=975, - serialized_end=1090, + name="HttpMethod", + full_name="google.cloud.scheduler.v1beta1.HttpMethod", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="HTTP_METHOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POST", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GET", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEAD", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PUT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PATCH", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OPTIONS", index=7, number=7, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=975, + serialized_end=1090, ) _sym_db.RegisterEnumDescriptor(_HTTPMETHOD) @@ -83,353 +82,581 @@ OPTIONS = 7 - _HTTPTARGET_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=323, - serialized_end=369, + name="HeadersEntry", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=323, + serialized_end=369, ) _HTTPTARGET = _descriptor.Descriptor( - name='HttpTarget', - full_name='google.cloud.scheduler.v1beta1.HttpTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.scheduler.v1beta1.HttpTarget.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_method', full_name='google.cloud.scheduler.v1beta1.HttpTarget.http_method', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headers', full_name='google.cloud.scheduler.v1beta1.HttpTarget.headers', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='google.cloud.scheduler.v1beta1.HttpTarget.body', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_HTTPTARGET_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=143, - serialized_end=369, + name="HttpTarget", + full_name="google.cloud.scheduler.v1beta1.HttpTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="http_method", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.http_method", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.headers", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="body", + full_name="google.cloud.scheduler.v1beta1.HttpTarget.body", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_HTTPTARGET_HEADERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=143, + serialized_end=369, ) _APPENGINEHTTPTARGET_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=323, - serialized_end=369, + name="HeadersEntry", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=323, + serialized_end=369, ) _APPENGINEHTTPTARGET = _descriptor.Descriptor( - name='AppEngineHttpTarget', - full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_method', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_routing', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.app_engine_routing', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relative_uri', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.relative_uri', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headers', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.headers', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body', index=4, - number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_APPENGINEHTTPTARGET_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=372, - serialized_end=703, + name="AppEngineHttpTarget", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="http_method", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_routing", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.app_engine_routing", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="relative_uri", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.relative_uri", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.headers", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="body", + full_name="google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body", + index=4, + number=5, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_APPENGINEHTTPTARGET_HEADERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=372, + serialized_end=703, ) _PUBSUBTARGET_ATTRIBUTESENTRY = _descriptor.Descriptor( - name='AttributesEntry', - full_name='google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=838, - serialized_end=887, + name="AttributesEntry", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=838, + serialized_end=887, ) _PUBSUBTARGET = _descriptor.Descriptor( - name='PubsubTarget', - full_name='google.cloud.scheduler.v1beta1.PubsubTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic_name', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.topic_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.data', index=1, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.cloud.scheduler.v1beta1.PubsubTarget.attributes', index=2, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PUBSUBTARGET_ATTRIBUTESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=706, - serialized_end=887, + name="PubsubTarget", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="topic_name", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.topic_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.data", + index=1, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.cloud.scheduler.v1beta1.PubsubTarget.attributes", + index=2, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PUBSUBTARGET_ATTRIBUTESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=706, + serialized_end=887, ) _APPENGINEROUTING = _descriptor.Descriptor( - name='AppEngineRouting', - full_name='google.cloud.scheduler.v1beta1.AppEngineRouting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='service', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.service', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.version', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.instance', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='google.cloud.scheduler.v1beta1.AppEngineRouting.host', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=889, - serialized_end=973, + name="AppEngineRouting", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="service", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.service", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.version", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.instance", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="host", + full_name="google.cloud.scheduler.v1beta1.AppEngineRouting.host", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=889, + serialized_end=973, ) _HTTPTARGET_HEADERSENTRY.containing_type = _HTTPTARGET -_HTTPTARGET.fields_by_name['http_method'].enum_type = _HTTPMETHOD -_HTTPTARGET.fields_by_name['headers'].message_type = _HTTPTARGET_HEADERSENTRY +_HTTPTARGET.fields_by_name["http_method"].enum_type = _HTTPMETHOD +_HTTPTARGET.fields_by_name["headers"].message_type = _HTTPTARGET_HEADERSENTRY _APPENGINEHTTPTARGET_HEADERSENTRY.containing_type = _APPENGINEHTTPTARGET -_APPENGINEHTTPTARGET.fields_by_name['http_method'].enum_type = _HTTPMETHOD -_APPENGINEHTTPTARGET.fields_by_name['app_engine_routing'].message_type = _APPENGINEROUTING -_APPENGINEHTTPTARGET.fields_by_name['headers'].message_type = _APPENGINEHTTPTARGET_HEADERSENTRY +_APPENGINEHTTPTARGET.fields_by_name["http_method"].enum_type = _HTTPMETHOD +_APPENGINEHTTPTARGET.fields_by_name[ + "app_engine_routing" +].message_type = _APPENGINEROUTING +_APPENGINEHTTPTARGET.fields_by_name[ + "headers" +].message_type = _APPENGINEHTTPTARGET_HEADERSENTRY _PUBSUBTARGET_ATTRIBUTESENTRY.containing_type = _PUBSUBTARGET -_PUBSUBTARGET.fields_by_name['attributes'].message_type = _PUBSUBTARGET_ATTRIBUTESENTRY -DESCRIPTOR.message_types_by_name['HttpTarget'] = _HTTPTARGET -DESCRIPTOR.message_types_by_name['AppEngineHttpTarget'] = _APPENGINEHTTPTARGET -DESCRIPTOR.message_types_by_name['PubsubTarget'] = _PUBSUBTARGET -DESCRIPTOR.message_types_by_name['AppEngineRouting'] = _APPENGINEROUTING -DESCRIPTOR.enum_types_by_name['HttpMethod'] = _HTTPMETHOD +_PUBSUBTARGET.fields_by_name["attributes"].message_type = _PUBSUBTARGET_ATTRIBUTESENTRY +DESCRIPTOR.message_types_by_name["HttpTarget"] = _HTTPTARGET +DESCRIPTOR.message_types_by_name["AppEngineHttpTarget"] = _APPENGINEHTTPTARGET +DESCRIPTOR.message_types_by_name["PubsubTarget"] = _PUBSUBTARGET +DESCRIPTOR.message_types_by_name["AppEngineRouting"] = _APPENGINEROUTING +DESCRIPTOR.enum_types_by_name["HttpMethod"] = _HTTPMETHOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -HttpTarget = _reflection.GeneratedProtocolMessageType('HttpTarget', (_message.Message,), dict( - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _HTTPTARGET_HEADERSENTRY, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry) - )) - , - DESCRIPTOR = _HTTPTARGET, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """Http target. The job will be pushed to the job handler by means of an +HttpTarget = _reflection.GeneratedProtocolMessageType( + "HttpTarget", + (_message.Message,), + dict( + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_HTTPTARGET_HEADERSENTRY, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry) + ), + ), + DESCRIPTOR=_HTTPTARGET, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""Http target. The job will be pushed to the job handler by means of an HTTP request via an [http\_method][google.cloud.scheduler.v1beta1.HttpTarget.http\_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an @@ -471,23 +698,28 @@ job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget) + ), +) _sym_db.RegisterMessage(HttpTarget) _sym_db.RegisterMessage(HttpTarget.HeadersEntry) -AppEngineHttpTarget = _reflection.GeneratedProtocolMessageType('AppEngineHttpTarget', (_message.Message,), dict( - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEHTTPTARGET_HEADERSENTRY, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry) - )) - , - DESCRIPTOR = _APPENGINEHTTPTARGET, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """App Engine target. The job will be pushed to a job handler by means of +AppEngineHttpTarget = _reflection.GeneratedProtocolMessageType( + "AppEngineHttpTarget", + (_message.Message,), + dict( + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEHTTPTARGET_HEADERSENTRY, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry) + ), + ), + DESCRIPTOR=_APPENGINEHTTPTARGET, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""App Engine target. The job will be pushed to a job handler by means of an HTTP request via an [http\_method][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http\_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an @@ -546,23 +778,28 @@ argument error to set a body on a job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget) + ), +) _sym_db.RegisterMessage(AppEngineHttpTarget) _sym_db.RegisterMessage(AppEngineHttpTarget.HeadersEntry) -PubsubTarget = _reflection.GeneratedProtocolMessageType('PubsubTarget', (_message.Message,), dict( - - AttributesEntry = _reflection.GeneratedProtocolMessageType('AttributesEntry', (_message.Message,), dict( - DESCRIPTOR = _PUBSUBTARGET_ATTRIBUTESENTRY, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry) - )) - , - DESCRIPTOR = _PUBSUBTARGET, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """Pub/Sub target. The job will be delivered by publishing a message to the +PubsubTarget = _reflection.GeneratedProtocolMessageType( + "PubsubTarget", + (_message.Message,), + dict( + AttributesEntry=_reflection.GeneratedProtocolMessageType( + "AttributesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PUBSUBTARGET_ATTRIBUTESENTRY, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry) + ), + ), + DESCRIPTOR=_PUBSUBTARGET, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic. @@ -582,16 +819,19 @@ Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PubsubTarget) + ), +) _sym_db.RegisterMessage(PubsubTarget) _sym_db.RegisterMessage(PubsubTarget.AttributesEntry) -AppEngineRouting = _reflection.GeneratedProtocolMessageType('AppEngineRouting', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEROUTING, - __module__ = 'google.cloud.scheduler_v1beta1.proto.target_pb2' - , - __doc__ = """App Engine Routing. +AppEngineRouting = _reflection.GeneratedProtocolMessageType( + "AppEngineRouting", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEROUTING, + __module__="google.cloud.scheduler_v1beta1.proto.target_pb2", + __doc__="""App Engine Routing. For more information about services, versions, and instances see `An Overview of App @@ -674,17 +914,29 @@ will be sent to the default version of the default service when the job is attempted. """, - # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineRouting) - )) + # @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineRouting) + ), +) _sym_db.RegisterMessage(AppEngineRouting) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.cloud.scheduler.v1beta1B\013TargetProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + '\n"com.google.cloud.scheduler.v1beta1B\013TargetProtoP\001ZGgoogle.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler' + ), +) _HTTPTARGET_HEADERSENTRY.has_options = True -_HTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _APPENGINEHTTPTARGET_HEADERSENTRY.has_options = True -_APPENGINEHTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_APPENGINEHTTPTARGET_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PUBSUBTARGET_ATTRIBUTESENTRY.has_options = True -_PUBSUBTARGET_ATTRIBUTESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PUBSUBTARGET_ATTRIBUTESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py b/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py +++ b/scheduler/google/cloud/scheduler_v1beta1/proto/target_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2.py index 022b5bb8ac03c..ecac0a3fe2ba4 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2.py @@ -3,212 +3,373 @@ # source: google/cloud/securitycenter_v1beta1/proto/asset.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.securitycenter_v1beta1.proto import security_marks_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2 +from google.cloud.securitycenter_v1beta1.proto import ( + security_marks_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2, +) from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/securitycenter_v1beta1/proto/asset.proto', - package='google.cloud.securitycenter.v1beta1', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/securitycenter_v1beta1/proto/asset.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf7\x04\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12g\n\x1asecurity_center_properties\x18\x02 \x01(\x0b\x32\x43.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties\x12_\n\x13resource_properties\x18\x07 \x03(\x0b\x32\x42.google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry\x12J\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1beta1.SecurityMarks\x12/\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x94\x01\n\x18SecurityCenterProperties\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12\x17\n\x0fresource_parent\x18\x03 \x01(\t\x12\x18\n\x10resource_project\x18\x04 \x01(\t\x12\x17\n\x0fresource_owners\x18\x05 \x03(\t\x1aQ\n\x17ResourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x42~\n\'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/securitycenter_v1beta1/proto/asset.proto", + package="google.cloud.securitycenter.v1beta1", + syntax="proto3", + serialized_pb=_b( + "\n5google/cloud/securitycenter_v1beta1/proto/asset.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf7\x04\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12g\n\x1asecurity_center_properties\x18\x02 \x01(\x0b\x32\x43.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties\x12_\n\x13resource_properties\x18\x07 \x03(\x0b\x32\x42.google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry\x12J\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1beta1.SecurityMarks\x12/\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x94\x01\n\x18SecurityCenterProperties\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12\x17\n\x0fresource_parent\x18\x03 \x01(\t\x12\x18\n\x10resource_project\x18\x04 \x01(\t\x12\x17\n\x0fresource_owners\x18\x05 \x03(\t\x1aQ\n\x17ResourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x42~\n'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3" + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _ASSET_SECURITYCENTERPROPERTIES = _descriptor.Descriptor( - name='SecurityCenterProperties', - full_name='google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_type', full_name='google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_parent', full_name='google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_parent', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_project', full_name='google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_project', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_owners', full_name='google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_owners', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=652, - serialized_end=800, + name="SecurityCenterProperties", + full_name="google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="resource_name", + full_name="google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_type", + full_name="google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_parent", + full_name="google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_parent", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_project", + full_name="google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_project", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_owners", + full_name="google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.resource_owners", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=652, + serialized_end=800, ) _ASSET_RESOURCEPROPERTIESENTRY = _descriptor.Descriptor( - name='ResourcePropertiesEntry', - full_name='google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=802, - serialized_end=883, + name="ResourcePropertiesEntry", + full_name="google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=802, + serialized_end=883, ) _ASSET = _descriptor.Descriptor( - name='Asset', - full_name='google.cloud.securitycenter.v1beta1.Asset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.securitycenter.v1beta1.Asset.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='security_center_properties', full_name='google.cloud.securitycenter.v1beta1.Asset.security_center_properties', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_properties', full_name='google.cloud.securitycenter.v1beta1.Asset.resource_properties', index=2, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='security_marks', full_name='google.cloud.securitycenter.v1beta1.Asset.security_marks', index=3, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.securitycenter.v1beta1.Asset.create_time', index=4, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.securitycenter.v1beta1.Asset.update_time', index=5, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ASSET_SECURITYCENTERPROPERTIES, _ASSET_RESOURCEPROPERTIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=252, - serialized_end=883, + name="Asset", + full_name="google.cloud.securitycenter.v1beta1.Asset", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.securitycenter.v1beta1.Asset.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="security_center_properties", + full_name="google.cloud.securitycenter.v1beta1.Asset.security_center_properties", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_properties", + full_name="google.cloud.securitycenter.v1beta1.Asset.resource_properties", + index=2, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="security_marks", + full_name="google.cloud.securitycenter.v1beta1.Asset.security_marks", + index=3, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.securitycenter.v1beta1.Asset.create_time", + index=4, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.securitycenter.v1beta1.Asset.update_time", + index=5, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ASSET_SECURITYCENTERPROPERTIES, _ASSET_RESOURCEPROPERTIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=252, + serialized_end=883, ) _ASSET_SECURITYCENTERPROPERTIES.containing_type = _ASSET -_ASSET_RESOURCEPROPERTIESENTRY.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE +_ASSET_RESOURCEPROPERTIESENTRY.fields_by_name[ + "value" +].message_type = google_dot_protobuf_dot_struct__pb2._VALUE _ASSET_RESOURCEPROPERTIESENTRY.containing_type = _ASSET -_ASSET.fields_by_name['security_center_properties'].message_type = _ASSET_SECURITYCENTERPROPERTIES -_ASSET.fields_by_name['resource_properties'].message_type = _ASSET_RESOURCEPROPERTIESENTRY -_ASSET.fields_by_name['security_marks'].message_type = google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2._SECURITYMARKS -_ASSET.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ASSET.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['Asset'] = _ASSET +_ASSET.fields_by_name[ + "security_center_properties" +].message_type = _ASSET_SECURITYCENTERPROPERTIES +_ASSET.fields_by_name[ + "resource_properties" +].message_type = _ASSET_RESOURCEPROPERTIESENTRY +_ASSET.fields_by_name[ + "security_marks" +].message_type = ( + google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2._SECURITYMARKS +) +_ASSET.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ASSET.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["Asset"] = _ASSET _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Asset = _reflection.GeneratedProtocolMessageType('Asset', (_message.Message,), dict( - - SecurityCenterProperties = _reflection.GeneratedProtocolMessageType('SecurityCenterProperties', (_message.Message,), dict( - DESCRIPTOR = _ASSET_SECURITYCENTERPROPERTIES, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.asset_pb2' - , - __doc__ = """Cloud SCC managed properties. These properties are managed by Cloud SCC +Asset = _reflection.GeneratedProtocolMessageType( + "Asset", + (_message.Message,), + dict( + SecurityCenterProperties=_reflection.GeneratedProtocolMessageType( + "SecurityCenterProperties", + (_message.Message,), + dict( + DESCRIPTOR=_ASSET_SECURITYCENTERPROPERTIES, + __module__="google.cloud.securitycenter_v1beta1.proto.asset_pb2", + __doc__="""Cloud SCC managed properties. These properties are managed by Cloud SCC and cannot be modified by the user. @@ -234,20 +395,21 @@ resource_owners: Owners of the Google Cloud resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) - )) - , - - ResourcePropertiesEntry = _reflection.GeneratedProtocolMessageType('ResourcePropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _ASSET_RESOURCEPROPERTIESENTRY, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.asset_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry) - )) - , - DESCRIPTOR = _ASSET, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.asset_pb2' - , - __doc__ = """Cloud Security Command Center's (Cloud SCC) representation of a Google + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) + ), + ), + ResourcePropertiesEntry=_reflection.GeneratedProtocolMessageType( + "ResourcePropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_ASSET_RESOURCEPROPERTIESENTRY, + __module__="google.cloud.securitycenter_v1beta1.proto.asset_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry) + ), + ), + DESCRIPTOR=_ASSET, + __module__="google.cloud.securitycenter_v1beta1.proto.asset_pb2", + __doc__="""Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud Platform (GCP) resource. The Asset is a Cloud SCC resource that captures information about a @@ -277,15 +439,23 @@ The time at which the asset was last updated, added, or deleted in Cloud SCC. """, - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset) - )) + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset) + ), +) _sym_db.RegisterMessage(Asset) _sym_db.RegisterMessage(Asset.SecurityCenterProperties) _sym_db.RegisterMessage(Asset.ResourcePropertiesEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter" + ), +) _ASSET_RESOURCEPROPERTIESENTRY.has_options = True -_ASSET_RESOURCEPROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ASSET_RESOURCEPROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2_grpc.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2_grpc.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/asset_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2.py index 10813a60fd4d4..d83889fca3d41 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2.py @@ -3,214 +3,362 @@ # source: google/cloud/securitycenter_v1beta1/proto/finding.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.securitycenter_v1beta1.proto import security_marks_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2 +from google.cloud.securitycenter_v1beta1.proto import ( + security_marks_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2, +) from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/securitycenter_v1beta1/proto/finding.proto', - package='google.cloud.securitycenter.v1beta1', - syntax='proto3', - serialized_pb=_b('\n7google/cloud/securitycenter_v1beta1/proto/finding.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x04\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x15\n\rresource_name\x18\x03 \x01(\t\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.securitycenter.v1beta1.Finding.State\x12\x10\n\x08\x63\x61tegory\x18\x05 \x01(\t\x12\x14\n\x0c\x65xternal_uri\x18\x06 \x01(\t\x12]\n\x11source_properties\x18\x07 \x03(\x0b\x32\x42.google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry\x12J\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1beta1.SecurityMarks\x12.\n\nevent_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1aO\n\x15SourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"8\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x42~\n\'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/securitycenter_v1beta1/proto/finding.proto", + package="google.cloud.securitycenter.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n7google/cloud/securitycenter_v1beta1/proto/finding.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a>google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc0\x04\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x15\n\rresource_name\x18\x03 \x01(\t\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.securitycenter.v1beta1.Finding.State\x12\x10\n\x08\x63\x61tegory\x18\x05 \x01(\t\x12\x14\n\x0c\x65xternal_uri\x18\x06 \x01(\t\x12]\n\x11source_properties\x18\x07 \x03(\x0b\x32\x42.google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry\x12J\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1beta1.SecurityMarks\x12.\n\nevent_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1aO\n\x15SourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"8\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x42~\n\'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _FINDING_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.securitycenter.v1beta1.Finding.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACTIVE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INACTIVE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=774, - serialized_end=830, + name="State", + full_name="google.cloud.securitycenter.v1beta1.Finding.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ACTIVE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INACTIVE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=774, + serialized_end=830, ) _sym_db.RegisterEnumDescriptor(_FINDING_STATE) _FINDING_SOURCEPROPERTIESENTRY = _descriptor.Descriptor( - name='SourcePropertiesEntry', - full_name='google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=693, - serialized_end=772, + name="SourcePropertiesEntry", + full_name="google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=693, + serialized_end=772, ) _FINDING = _descriptor.Descriptor( - name='Finding', - full_name='google.cloud.securitycenter.v1beta1.Finding', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.securitycenter.v1beta1.Finding.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.securitycenter.v1beta1.Finding.parent', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.cloud.securitycenter.v1beta1.Finding.resource_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.securitycenter.v1beta1.Finding.state', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category', full_name='google.cloud.securitycenter.v1beta1.Finding.category', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='external_uri', full_name='google.cloud.securitycenter.v1beta1.Finding.external_uri', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_properties', full_name='google.cloud.securitycenter.v1beta1.Finding.source_properties', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='security_marks', full_name='google.cloud.securitycenter.v1beta1.Finding.security_marks', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='event_time', full_name='google.cloud.securitycenter.v1beta1.Finding.event_time', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.securitycenter.v1beta1.Finding.create_time', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_FINDING_SOURCEPROPERTIESENTRY, ], - enum_types=[ - _FINDING_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=254, - serialized_end=830, + name="Finding", + full_name="google.cloud.securitycenter.v1beta1.Finding", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.securitycenter.v1beta1.Finding.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.securitycenter.v1beta1.Finding.parent", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_name", + full_name="google.cloud.securitycenter.v1beta1.Finding.resource_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.securitycenter.v1beta1.Finding.state", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="category", + full_name="google.cloud.securitycenter.v1beta1.Finding.category", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="external_uri", + full_name="google.cloud.securitycenter.v1beta1.Finding.external_uri", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source_properties", + full_name="google.cloud.securitycenter.v1beta1.Finding.source_properties", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="security_marks", + full_name="google.cloud.securitycenter.v1beta1.Finding.security_marks", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="event_time", + full_name="google.cloud.securitycenter.v1beta1.Finding.event_time", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.securitycenter.v1beta1.Finding.create_time", + index=9, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_FINDING_SOURCEPROPERTIESENTRY], + enum_types=[_FINDING_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=254, + serialized_end=830, ) -_FINDING_SOURCEPROPERTIESENTRY.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE +_FINDING_SOURCEPROPERTIESENTRY.fields_by_name[ + "value" +].message_type = google_dot_protobuf_dot_struct__pb2._VALUE _FINDING_SOURCEPROPERTIESENTRY.containing_type = _FINDING -_FINDING.fields_by_name['state'].enum_type = _FINDING_STATE -_FINDING.fields_by_name['source_properties'].message_type = _FINDING_SOURCEPROPERTIESENTRY -_FINDING.fields_by_name['security_marks'].message_type = google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2._SECURITYMARKS -_FINDING.fields_by_name['event_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_FINDING.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_FINDING.fields_by_name["state"].enum_type = _FINDING_STATE +_FINDING.fields_by_name[ + "source_properties" +].message_type = _FINDING_SOURCEPROPERTIESENTRY +_FINDING.fields_by_name[ + "security_marks" +].message_type = ( + google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2._SECURITYMARKS +) +_FINDING.fields_by_name[ + "event_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_FINDING.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _FINDING_STATE.containing_type = _FINDING -DESCRIPTOR.message_types_by_name['Finding'] = _FINDING +DESCRIPTOR.message_types_by_name["Finding"] = _FINDING _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Finding = _reflection.GeneratedProtocolMessageType('Finding', (_message.Message,), dict( - - SourcePropertiesEntry = _reflection.GeneratedProtocolMessageType('SourcePropertiesEntry', (_message.Message,), dict( - DESCRIPTOR = _FINDING_SOURCEPROPERTIESENTRY, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.finding_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry) - )) - , - DESCRIPTOR = _FINDING, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.finding_pb2' - , - __doc__ = """Cloud Security Command Center (Cloud SCC) finding. +Finding = _reflection.GeneratedProtocolMessageType( + "Finding", + (_message.Message,), + dict( + SourcePropertiesEntry=_reflection.GeneratedProtocolMessageType( + "SourcePropertiesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_FINDING_SOURCEPROPERTIESENTRY, + __module__="google.cloud.securitycenter_v1beta1.proto.finding_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Finding.SourcePropertiesEntry) + ), + ), + DESCRIPTOR=_FINDING, + __module__="google.cloud.securitycenter_v1beta1.proto.finding_pb2", + __doc__="""Cloud Security Command Center (Cloud SCC) finding. A finding is a record of assessment data (security, risk, health or privacy) ingested into Cloud SCC for presentation, notification, @@ -258,14 +406,22 @@ create_time: The time at which the finding was created in Cloud SCC. """, - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Finding) - )) + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Finding) + ), +) _sym_db.RegisterMessage(Finding) _sym_db.RegisterMessage(Finding.SourcePropertiesEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter" + ), +) _FINDING_SOURCEPROPERTIESENTRY.has_options = True -_FINDING_SOURCEPROPERTIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_FINDING_SOURCEPROPERTIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2_grpc.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2_grpc.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/finding_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2.py index 747e6373e61e3..d1521dff5ea3f 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2.py @@ -3,12 +3,14 @@ # source: google/cloud/securitycenter_v1beta1/proto/organization_settings.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,138 +20,198 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/securitycenter_v1beta1/proto/organization_settings.proto', - package='google.cloud.securitycenter.v1beta1', - syntax='proto3', - serialized_pb=_b('\nEgoogle/cloud/securitycenter_v1beta1/proto/organization_settings.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\"\xa8\x03\n\x14OrganizationSettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x16\x65nable_asset_discovery\x18\x02 \x01(\x08\x12n\n\x16\x61sset_discovery_config\x18\x03 \x01(\x0b\x32N.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig\x1a\xf1\x01\n\x14\x41ssetDiscoveryConfig\x12\x13\n\x0bproject_ids\x18\x01 \x03(\t\x12t\n\x0einclusion_mode\x18\x02 \x01(\x0e\x32\\.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode\"N\n\rInclusionMode\x12\x1e\n\x1aINCLUSION_MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINCLUDE_ONLY\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02\x42~\n\'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - + name="google/cloud/securitycenter_v1beta1/proto/organization_settings.proto", + package="google.cloud.securitycenter.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\nEgoogle/cloud/securitycenter_v1beta1/proto/organization_settings.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto"\xa8\x03\n\x14OrganizationSettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x16\x65nable_asset_discovery\x18\x02 \x01(\x08\x12n\n\x16\x61sset_discovery_config\x18\x03 \x01(\x0b\x32N.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig\x1a\xf1\x01\n\x14\x41ssetDiscoveryConfig\x12\x13\n\x0bproject_ids\x18\x01 \x03(\t\x12t\n\x0einclusion_mode\x18\x02 \x01(\x0e\x32\\.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode"N\n\rInclusionMode\x12\x1e\n\x1aINCLUSION_MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINCLUDE_ONLY\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02\x42~\n\'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE = _descriptor.EnumDescriptor( - name='InclusionMode', - full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='INCLUSION_MODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INCLUDE_ONLY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXCLUDE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=487, - serialized_end=565, + name="InclusionMode", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="INCLUSION_MODE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="INCLUDE_ONLY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXCLUDE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=487, + serialized_end=565, ) _sym_db.RegisterEnumDescriptor(_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE) _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG = _descriptor.Descriptor( - name='AssetDiscoveryConfig', - full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_ids', full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.project_ids', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inclusion_mode', full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.inclusion_mode', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=324, - serialized_end=565, + name="AssetDiscoveryConfig", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_ids", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.project_ids", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="inclusion_mode", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.inclusion_mode", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=324, + serialized_end=565, ) _ORGANIZATIONSETTINGS = _descriptor.Descriptor( - name='OrganizationSettings', - full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_asset_discovery', full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings.enable_asset_discovery', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset_discovery_config', full_name='google.cloud.securitycenter.v1beta1.OrganizationSettings.asset_discovery_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=141, - serialized_end=565, + name="OrganizationSettings", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_asset_discovery", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings.enable_asset_discovery", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="asset_discovery_config", + full_name="google.cloud.securitycenter.v1beta1.OrganizationSettings.asset_discovery_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=141, + serialized_end=565, ) -_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG.fields_by_name['inclusion_mode'].enum_type = _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE +_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG.fields_by_name[ + "inclusion_mode" +].enum_type = _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG.containing_type = _ORGANIZATIONSETTINGS -_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE.containing_type = _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG -_ORGANIZATIONSETTINGS.fields_by_name['asset_discovery_config'].message_type = _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG -DESCRIPTOR.message_types_by_name['OrganizationSettings'] = _ORGANIZATIONSETTINGS +_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG_INCLUSIONMODE.containing_type = ( + _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG +) +_ORGANIZATIONSETTINGS.fields_by_name[ + "asset_discovery_config" +].message_type = _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG +DESCRIPTOR.message_types_by_name["OrganizationSettings"] = _ORGANIZATIONSETTINGS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -OrganizationSettings = _reflection.GeneratedProtocolMessageType('OrganizationSettings', (_message.Message,), dict( - - AssetDiscoveryConfig = _reflection.GeneratedProtocolMessageType('AssetDiscoveryConfig', (_message.Message,), dict( - DESCRIPTOR = _ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.organization_settings_pb2' - , - __doc__ = """The configuration used for Asset Discovery runs. +OrganizationSettings = _reflection.GeneratedProtocolMessageType( + "OrganizationSettings", + (_message.Message,), + dict( + AssetDiscoveryConfig=_reflection.GeneratedProtocolMessageType( + "AssetDiscoveryConfig", + (_message.Message,), + dict( + DESCRIPTOR=_ORGANIZATIONSETTINGS_ASSETDISCOVERYCONFIG, + __module__="google.cloud.securitycenter_v1beta1.proto.organization_settings_pb2", + __doc__="""The configuration used for Asset Discovery runs. Attributes: @@ -158,13 +220,12 @@ inclusion_mode: The mode to use for filtering asset discovery. """, - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) - )) - , - DESCRIPTOR = _ORGANIZATIONSETTINGS, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.organization_settings_pb2' - , - __doc__ = """User specified settings that are attached to the Cloud Security Command + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) + ), + ), + DESCRIPTOR=_ORGANIZATIONSETTINGS, + __module__="google.cloud.securitycenter_v1beta1.proto.organization_settings_pb2", + __doc__="""User specified settings that are attached to the Cloud Security Command Center (Cloud SCC) organization. @@ -181,12 +242,18 @@ asset_discovery_config: The configuration used for Asset Discovery runs. """, - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings) - )) + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings) + ), +) _sym_db.RegisterMessage(OrganizationSettings) _sym_db.RegisterMessage(OrganizationSettings.AssetDiscoveryConfig) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2_grpc.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2_grpc.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/organization_settings_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2.py index a172c18c417fb..3e89a356adfcd 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2.py @@ -3,12 +3,14 @@ # source: google/cloud/securitycenter_v1beta1/proto/security_marks.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,107 +20,149 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/securitycenter_v1beta1/proto/security_marks.proto', - package='google.cloud.securitycenter.v1beta1', - syntax='proto3', - serialized_pb=_b('\n>google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\"\x99\x01\n\rSecurityMarks\x12\x0c\n\x04name\x18\x01 \x01(\t\x12L\n\x05marks\x18\x02 \x03(\x0b\x32=.google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry\x1a,\n\nMarksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42~\n\'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/securitycenter_v1beta1/proto/security_marks.proto", + package="google.cloud.securitycenter.v1beta1", + syntax="proto3", + serialized_pb=_b( + "\n>google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\"\x99\x01\n\rSecurityMarks\x12\x0c\n\x04name\x18\x01 \x01(\t\x12L\n\x05marks\x18\x02 \x03(\x0b\x32=.google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry\x1a,\n\nMarksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42~\n'com.google.cloud.securitycenter.v1beta1P\x01ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenterb\x06proto3" + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _SECURITYMARKS_MARKSENTRY = _descriptor.Descriptor( - name='MarksEntry', - full_name='google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=243, - serialized_end=287, + name="MarksEntry", + full_name="google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=243, + serialized_end=287, ) _SECURITYMARKS = _descriptor.Descriptor( - name='SecurityMarks', - full_name='google.cloud.securitycenter.v1beta1.SecurityMarks', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.securitycenter.v1beta1.SecurityMarks.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='marks', full_name='google.cloud.securitycenter.v1beta1.SecurityMarks.marks', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SECURITYMARKS_MARKSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=134, - serialized_end=287, + name="SecurityMarks", + full_name="google.cloud.securitycenter.v1beta1.SecurityMarks", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.securitycenter.v1beta1.SecurityMarks.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="marks", + full_name="google.cloud.securitycenter.v1beta1.SecurityMarks.marks", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SECURITYMARKS_MARKSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=134, + serialized_end=287, ) _SECURITYMARKS_MARKSENTRY.containing_type = _SECURITYMARKS -_SECURITYMARKS.fields_by_name['marks'].message_type = _SECURITYMARKS_MARKSENTRY -DESCRIPTOR.message_types_by_name['SecurityMarks'] = _SECURITYMARKS +_SECURITYMARKS.fields_by_name["marks"].message_type = _SECURITYMARKS_MARKSENTRY +DESCRIPTOR.message_types_by_name["SecurityMarks"] = _SECURITYMARKS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -SecurityMarks = _reflection.GeneratedProtocolMessageType('SecurityMarks', (_message.Message,), dict( - - MarksEntry = _reflection.GeneratedProtocolMessageType('MarksEntry', (_message.Message,), dict( - DESCRIPTOR = _SECURITYMARKS_MARKSENTRY, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.security_marks_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry) - )) - , - DESCRIPTOR = _SECURITYMARKS, - __module__ = 'google.cloud.securitycenter_v1beta1.proto.security_marks_pb2' - , - __doc__ = """User specified security marks that are attached to the parent Cloud +SecurityMarks = _reflection.GeneratedProtocolMessageType( + "SecurityMarks", + (_message.Message,), + dict( + MarksEntry=_reflection.GeneratedProtocolMessageType( + "MarksEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SECURITYMARKS_MARKSENTRY, + __module__="google.cloud.securitycenter_v1beta1.proto.security_marks_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry) + ), + ), + DESCRIPTOR=_SECURITYMARKS, + __module__="google.cloud.securitycenter_v1beta1.proto.security_marks_pb2", + __doc__="""User specified security marks that are attached to the parent Cloud Security Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud SCC organization -- they can be modified and viewed by all users who have proper permissions on the organization. @@ -138,14 +182,22 @@ and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive) """, - # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SecurityMarks) - )) + # @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SecurityMarks) + ), +) _sym_db.RegisterMessage(SecurityMarks) _sym_db.RegisterMessage(SecurityMarks.MarksEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n'com.google.cloud.securitycenter.v1beta1P\001ZQgoogle.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter" + ), +) _SECURITYMARKS_MARKSENTRY.has_options = True -_SECURITYMARKS_MARKSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SECURITYMARKS_MARKSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2_grpc.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2_grpc.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/security_marks_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/securitycenter/google/cloud/securitycenter_v1beta1/proto/securitycenter_service_pb2.py b/securitycenter/google/cloud/securitycenter_v1beta1/proto/securitycenter_service_pb2.py index 173f7614bc67b..7902487f555dc 100644 --- a/securitycenter/google/cloud/securitycenter_v1beta1/proto/securitycenter_service_pb2.py +++ b/securitycenter/google/cloud/securitycenter_v1beta1/proto/securitycenter_service_pb2.py @@ -3,26 +3,40 @@ # source: google/cloud/securitycenter_v1beta1/proto/securitycenter_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.securitycenter_v1beta1.proto import asset_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_asset__pb2 -from google.cloud.securitycenter_v1beta1.proto import finding_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_finding__pb2 -from google.cloud.securitycenter_v1beta1.proto import organization_settings_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_organization__settings__pb2 -from google.cloud.securitycenter_v1beta1.proto import security_marks_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2 -from google.cloud.securitycenter_v1beta1.proto import source_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_source__pb2 +from google.cloud.securitycenter_v1beta1.proto import ( + asset_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_asset__pb2, +) +from google.cloud.securitycenter_v1beta1.proto import ( + finding_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_finding__pb2, +) +from google.cloud.securitycenter_v1beta1.proto import ( + organization_settings_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_organization__settings__pb2, +) +from google.cloud.securitycenter_v1beta1.proto import ( + security_marks_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_security__marks__pb2, +) +from google.cloud.securitycenter_v1beta1.proto import ( + source_pb2 as google_dot_cloud_dot_securitycenter__v1beta1_dot_proto_dot_source__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 @@ -31,1176 +45,2012 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/securitycenter_v1beta1/proto/securitycenter_service.proto', - package='google.cloud.securitycenter.v1beta1', - syntax='proto3', - serialized_pb=_b('\nFgoogle/cloud/securitycenter_v1beta1/proto/securitycenter_service.proto\x12#google.cloud.securitycenter.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x35google/cloud/securitycenter_v1beta1/proto/asset.proto\x1a\x37google/cloud/securitycenter_v1beta1/proto/finding.proto\x1a\x45google/cloud/securitycenter_v1beta1/proto/organization_settings.proto\x1a>google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x1a\x36google/cloud/securitycenter_v1beta1/proto/source.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"y\n\x14\x43reateFindingRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\nfinding_id\x18\x02 \x01(\t\x12=\n\x07\x66inding\x18\x03 \x01(\x0b\x32,.google.cloud.securitycenter.v1beta1.Finding\"b\n\x13\x43reateSourceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12;\n\x06source\x18\x02 \x01(\x0b\x32+.google.cloud.securitycenter.v1beta1.Source\".\n\x1eGetOrganizationSettingsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\" \n\x10GetSourceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xd1\x01\n\x12GroupAssetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08group_by\x18\x03 \x01(\t\x12\x33\n\x10\x63ompare_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\tread_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\npage_token\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x08 \x01(\x05\"\xa9\x01\n\x13GroupAssetsResponse\x12J\n\x10group_by_results\x18\x01 \x03(\x0b\x32\x30.google.cloud.securitycenter.v1beta1.GroupResult\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x9e\x01\n\x14GroupFindingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08group_by\x18\x03 \x01(\t\x12-\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\npage_token\x18\x05 \x01(\t\x12\x11\n\tpage_size\x18\x06 \x01(\x05\"\xab\x01\n\x15GroupFindingsResponse\x12J\n\x10group_by_results\x18\x01 \x03(\x0b\x32\x30.google.cloud.securitycenter.v1beta1.GroupResult\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\xbd\x01\n\x0bGroupResult\x12T\n\nproperties\x18\x01 \x03(\x0b\x32@.google.cloud.securitycenter.v1beta1.GroupResult.PropertiesEntry\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x1aI\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"K\n\x12ListSourcesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x07 \x01(\x05\"l\n\x13ListSourcesResponse\x12<\n\x07sources\x18\x01 \x03(\x0b\x32+.google.cloud.securitycenter.v1beta1.Source\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x80\x02\n\x11ListAssetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12-\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x10\x63ompare_duration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\nfield_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\npage_token\x18\x08 \x01(\t\x12\x11\n\tpage_size\x18\t \x01(\x05\"\xd6\x03\n\x12ListAssetsResponse\x12\x65\n\x13list_assets_results\x18\x01 \x03(\x0b\x32H.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\x1a\xfc\x01\n\x10ListAssetsResult\x12\x39\n\x05\x61sset\x18\x01 \x01(\x0b\x32*.google.cloud.securitycenter.v1beta1.Asset\x12]\n\x05state\x18\x02 \x01(\x0e\x32N.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State\"N\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06UNUSED\x10\x01\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\n\n\x06\x41\x43TIVE\x10\x04\"\xcd\x01\n\x13ListFindingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12-\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nfield_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\npage_token\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x07 \x01(\x05\"\xb2\x01\n\x14ListFindingsResponse\x12>\n\x08\x66indings\x18\x01 \x03(\x0b\x32,.google.cloud.securitycenter.v1beta1.Finding\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\"\x99\x01\n\x16SetFindingStateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x05state\x18\x02 \x01(\x0e\x32\x32.google.cloud.securitycenter.v1beta1.Finding.State\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"*\n\x18RunAssetDiscoveryRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\"\x86\x01\n\x14UpdateFindingRequest\x12=\n\x07\x66inding\x18\x01 \x01(\x0b\x32,.google.cloud.securitycenter.v1beta1.Finding\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xae\x01\n!UpdateOrganizationSettingsRequest\x12X\n\x15organization_settings\x18\x01 \x01(\x0b\x32\x39.google.cloud.securitycenter.v1beta1.OrganizationSettings\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x83\x01\n\x13UpdateSourceRequest\x12;\n\x06source\x18\x01 \x01(\x0b\x32+.google.cloud.securitycenter.v1beta1.Source\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xc9\x01\n\x1aUpdateSecurityMarksRequest\x12J\n\x0esecurity_marks\x18\x01 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1beta1.SecurityMarks\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\x80\x1c\n\x0eSecurityCenter\x12\xb0\x01\n\x0c\x43reateSource\x12\x38.google.cloud.securitycenter.v1beta1.CreateSourceRequest\x1a+.google.cloud.securitycenter.v1beta1.Source\"9\x82\xd3\xe4\x93\x02\x33\")/v1beta1/{parent=organizations/*}/sources:\x06source\x12\xbf\x01\n\rCreateFinding\x12\x39.google.cloud.securitycenter.v1beta1.CreateFindingRequest\x1a,.google.cloud.securitycenter.v1beta1.Finding\"E\x82\xd3\xe4\x93\x02?\"4/v1beta1/{parent=organizations/*/sources/*}/findings:\x07\x66inding\x12\x90\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"E\x82\xd3\xe4\x93\x02?\":/v1beta1/{resource=organizations/*/sources/*}:getIamPolicy:\x01*\x12\xd7\x01\n\x17GetOrganizationSettings\x12\x43.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest\x1a\x39.google.cloud.securitycenter.v1beta1.OrganizationSettings\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{name=organizations/*/organizationSettings}\x12\xa2\x01\n\tGetSource\x12\x35.google.cloud.securitycenter.v1beta1.GetSourceRequest\x1a+.google.cloud.securitycenter.v1beta1.Source\"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{name=organizations/*/sources/*}\x12\xbb\x01\n\x0bGroupAssets\x12\x37.google.cloud.securitycenter.v1beta1.GroupAssetsRequest\x1a\x38.google.cloud.securitycenter.v1beta1.GroupAssetsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v1beta1/{parent=organizations/*}/assets:group:\x01*\x12\xcd\x01\n\rGroupFindings\x12\x39.google.cloud.securitycenter.v1beta1.GroupFindingsRequest\x1a:.google.cloud.securitycenter.v1beta1.GroupFindingsResponse\"E\x82\xd3\xe4\x93\x02?\":/v1beta1/{parent=organizations/*/sources/*}/findings:group:\x01*\x12\xaf\x01\n\nListAssets\x12\x36.google.cloud.securitycenter.v1beta1.ListAssetsRequest\x1a\x37.google.cloud.securitycenter.v1beta1.ListAssetsResponse\"0\x82\xd3\xe4\x93\x02*\x12(/v1beta1/{parent=organizations/*}/assets\x12\xc1\x01\n\x0cListFindings\x12\x38.google.cloud.securitycenter.v1beta1.ListFindingsRequest\x1a\x39.google.cloud.securitycenter.v1beta1.ListFindingsResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{parent=organizations/*/sources/*}/findings\x12\xb3\x01\n\x0bListSources\x12\x37.google.cloud.securitycenter.v1beta1.ListSourcesRequest\x1a\x38.google.cloud.securitycenter.v1beta1.ListSourcesResponse\"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{parent=organizations/*}/sources\x12\xb3\x01\n\x11RunAssetDiscovery\x12=.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest\x1a\x1d.google.longrunning.Operation\"@\x82\xd3\xe4\x93\x02:\"5/v1beta1/{parent=organizations/*}/assets:runDiscovery:\x01*\x12\xc6\x01\n\x0fSetFindingState\x12;.google.cloud.securitycenter.v1beta1.SetFindingStateRequest\x1a,.google.cloud.securitycenter.v1beta1.Finding\"H\x82\xd3\xe4\x93\x02\x42\"=/v1beta1/{name=organizations/*/sources/*/findings/*}:setState:\x01*\x12\x90\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"E\x82\xd3\xe4\x93\x02?\":/v1beta1/{resource=organizations/*/sources/*}:setIamPolicy:\x01*\x12\xb6\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v1beta1/{resource=organizations/*/sources/*}:testIamPermissions:\x01*\x12\xc7\x01\n\rUpdateFinding\x12\x39.google.cloud.securitycenter.v1beta1.UpdateFindingRequest\x1a,.google.cloud.securitycenter.v1beta1.Finding\"M\x82\xd3\xe4\x93\x02G2google/cloud/securitycenter_v1beta1/proto/security_marks.proto\x1a\x36google/cloud/securitycenter_v1beta1/proto/source.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"y\n\x14\x43reateFindingRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\nfinding_id\x18\x02 \x01(\t\x12=\n\x07\x66inding\x18\x03 \x01(\x0b\x32,.google.cloud.securitycenter.v1beta1.Finding"b\n\x13\x43reateSourceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12;\n\x06source\x18\x02 \x01(\x0b\x32+.google.cloud.securitycenter.v1beta1.Source".\n\x1eGetOrganizationSettingsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t" \n\x10GetSourceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd1\x01\n\x12GroupAssetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08group_by\x18\x03 \x01(\t\x12\x33\n\x10\x63ompare_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\tread_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\npage_token\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x08 \x01(\x05"\xa9\x01\n\x13GroupAssetsResponse\x12J\n\x10group_by_results\x18\x01 \x03(\x0b\x32\x30.google.cloud.securitycenter.v1beta1.GroupResult\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"\x9e\x01\n\x14GroupFindingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08group_by\x18\x03 \x01(\t\x12-\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\npage_token\x18\x05 \x01(\t\x12\x11\n\tpage_size\x18\x06 \x01(\x05"\xab\x01\n\x15GroupFindingsResponse\x12J\n\x10group_by_results\x18\x01 \x03(\x0b\x32\x30.google.cloud.securitycenter.v1beta1.GroupResult\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"\xbd\x01\n\x0bGroupResult\x12T\n\nproperties\x18\x01 \x03(\x0b\x32@.google.cloud.securitycenter.v1beta1.GroupResult.PropertiesEntry\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x1aI\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"K\n\x12ListSourcesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x07 \x01(\x05"l\n\x13ListSourcesResponse\x12<\n\x07sources\x18\x01 \x03(\x0b\x32+.google.cloud.securitycenter.v1beta1.Source\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x80\x02\n\x11ListAssetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12-\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x10\x63ompare_duration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\nfield_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\npage_token\x18\x08 \x01(\t\x12\x11\n\tpage_size\x18\t \x01(\x05"\xd6\x03\n\x12ListAssetsResponse\x12\x65\n\x13list_assets_results\x18\x01 \x03(\x0b\x32H.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\x1a\xfc\x01\n\x10ListAssetsResult\x12\x39\n\x05\x61sset\x18\x01 \x01(\x0b\x32*.google.cloud.securitycenter.v1beta1.Asset\x12]\n\x05state\x18\x02 \x01(\x0e\x32N.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State"N\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06UNUSED\x10\x01\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\n\n\x06\x41\x43TIVE\x10\x04"\xcd\x01\n\x13ListFindingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12-\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nfield_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\npage_token\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x07 \x01(\x05"\xb2\x01\n\x14ListFindingsResponse\x12>\n\x08\x66indings\x18\x01 \x03(\x0b\x32,.google.cloud.securitycenter.v1beta1.Finding\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05"\x99\x01\n\x16SetFindingStateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x05state\x18\x02 \x01(\x0e\x32\x32.google.cloud.securitycenter.v1beta1.Finding.State\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"*\n\x18RunAssetDiscoveryRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"\x86\x01\n\x14UpdateFindingRequest\x12=\n\x07\x66inding\x18\x01 \x01(\x0b\x32,.google.cloud.securitycenter.v1beta1.Finding\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xae\x01\n!UpdateOrganizationSettingsRequest\x12X\n\x15organization_settings\x18\x01 \x01(\x0b\x32\x39.google.cloud.securitycenter.v1beta1.OrganizationSettings\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\x83\x01\n\x13UpdateSourceRequest\x12;\n\x06source\x18\x01 \x01(\x0b\x32+.google.cloud.securitycenter.v1beta1.Source\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xc9\x01\n\x1aUpdateSecurityMarksRequest\x12J\n\x0esecurity_marks\x18\x01 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1beta1.SecurityMarks\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\x80\x1c\n\x0eSecurityCenter\x12\xb0\x01\n\x0c\x43reateSource\x12\x38.google.cloud.securitycenter.v1beta1.CreateSourceRequest\x1a+.google.cloud.securitycenter.v1beta1.Source"9\x82\xd3\xe4\x93\x02\x33")/v1beta1/{parent=organizations/*}/sources:\x06source\x12\xbf\x01\n\rCreateFinding\x12\x39.google.cloud.securitycenter.v1beta1.CreateFindingRequest\x1a,.google.cloud.securitycenter.v1beta1.Finding"E\x82\xd3\xe4\x93\x02?"4/v1beta1/{parent=organizations/*/sources/*}/findings:\x07\x66inding\x12\x90\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"E\x82\xd3\xe4\x93\x02?":/v1beta1/{resource=organizations/*/sources/*}:getIamPolicy:\x01*\x12\xd7\x01\n\x17GetOrganizationSettings\x12\x43.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest\x1a\x39.google.cloud.securitycenter.v1beta1.OrganizationSettings"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{name=organizations/*/organizationSettings}\x12\xa2\x01\n\tGetSource\x12\x35.google.cloud.securitycenter.v1beta1.GetSourceRequest\x1a+.google.cloud.securitycenter.v1beta1.Source"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{name=organizations/*/sources/*}\x12\xbb\x01\n\x0bGroupAssets\x12\x37.google.cloud.securitycenter.v1beta1.GroupAssetsRequest\x1a\x38.google.cloud.securitycenter.v1beta1.GroupAssetsResponse"9\x82\xd3\xe4\x93\x02\x33"./v1beta1/{parent=organizations/*}/assets:group:\x01*\x12\xcd\x01\n\rGroupFindings\x12\x39.google.cloud.securitycenter.v1beta1.GroupFindingsRequest\x1a:.google.cloud.securitycenter.v1beta1.GroupFindingsResponse"E\x82\xd3\xe4\x93\x02?":/v1beta1/{parent=organizations/*/sources/*}/findings:group:\x01*\x12\xaf\x01\n\nListAssets\x12\x36.google.cloud.securitycenter.v1beta1.ListAssetsRequest\x1a\x37.google.cloud.securitycenter.v1beta1.ListAssetsResponse"0\x82\xd3\xe4\x93\x02*\x12(/v1beta1/{parent=organizations/*}/assets\x12\xc1\x01\n\x0cListFindings\x12\x38.google.cloud.securitycenter.v1beta1.ListFindingsRequest\x1a\x39.google.cloud.securitycenter.v1beta1.ListFindingsResponse"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{parent=organizations/*/sources/*}/findings\x12\xb3\x01\n\x0bListSources\x12\x37.google.cloud.securitycenter.v1beta1.ListSourcesRequest\x1a\x38.google.cloud.securitycenter.v1beta1.ListSourcesResponse"1\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{parent=organizations/*}/sources\x12\xb3\x01\n\x11RunAssetDiscovery\x12=.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest\x1a\x1d.google.longrunning.Operation"@\x82\xd3\xe4\x93\x02:"5/v1beta1/{parent=organizations/*}/assets:runDiscovery:\x01*\x12\xc6\x01\n\x0fSetFindingState\x12;.google.cloud.securitycenter.v1beta1.SetFindingStateRequest\x1a,.google.cloud.securitycenter.v1beta1.Finding"H\x82\xd3\xe4\x93\x02\x42"=/v1beta1/{name=organizations/*/sources/*/findings/*}:setState:\x01*\x12\x90\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"E\x82\xd3\xe4\x93\x02?":/v1beta1/{resource=organizations/*/sources/*}:setIamPolicy:\x01*\x12\xb6\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"K\x82\xd3\xe4\x93\x02\x45"@/v1beta1/{resource=organizations/*/sources/*}:testIamPermissions:\x01*\x12\xc7\x01\n\rUpdateFinding\x12\x39.google.cloud.securitycenter.v1beta1.UpdateFindingRequest\x1a,.google.cloud.securitycenter.v1beta1.Finding"M\x82\xd3\xe4\x93\x02G2/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy:\x01*\x12\x94\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\">/v1/{resource=projects/*/instances/*/databases/*}:getIamPolicy:\x01*\x12\xba\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions:\x01*B\xdf\x01\n$com.google.spanner.admin.database.v1B\x19SpannerDatabaseAdminProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admin/database/v1;database\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/spanner/admin/database_v1/proto/spanner_database_admin.proto", + package="google.spanner.admin.database.v1", + syntax="proto3", + serialized_pb=_b( + '\nIgoogle/cloud/spanner/admin/database_v1/proto/spanner_database_admin.proto\x12 google.spanner.admin.database.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x92\x01\n\x08\x44\x61tabase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x05state\x18\x02 \x01(\x0e\x32\x30.google.spanner.admin.database.v1.Database.State"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02"M\n\x14ListDatabasesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"o\n\x15ListDatabasesResponse\x12=\n\tdatabases\x18\x01 \x03(\x0b\x32*.google.spanner.admin.database.v1.Database\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"[\n\x15\x43reateDatabaseRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x18\n\x10\x63reate_statement\x18\x02 \x01(\t\x12\x18\n\x10\x65xtra_statements\x18\x03 \x03(\t"*\n\x16\x43reateDatabaseMetadata\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t""\n\x12GetDatabaseRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"V\n\x18UpdateDatabaseDdlRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\nstatements\x18\x02 \x03(\t\x12\x14\n\x0coperation_id\x18\x03 \x01(\t"x\n\x19UpdateDatabaseDdlMetadata\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\nstatements\x18\x02 \x03(\t\x12\x35\n\x11\x63ommit_timestamps\x18\x03 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"\'\n\x13\x44ropDatabaseRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t")\n\x15GetDatabaseDdlRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t",\n\x16GetDatabaseDdlResponse\x12\x12\n\nstatements\x18\x01 \x03(\t2\x95\x0c\n\rDatabaseAdmin\x12\xb7\x01\n\rListDatabases\x12\x36.google.spanner.admin.database.v1.ListDatabasesRequest\x1a\x37.google.spanner.admin.database.v1.ListDatabasesResponse"5\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/instances/*}/databases\x12\xa2\x01\n\x0e\x43reateDatabase\x12\x37.google.spanner.admin.database.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operation"8\x82\xd3\xe4\x93\x02\x32"-/v1/{parent=projects/*/instances/*}/databases:\x01*\x12\xa6\x01\n\x0bGetDatabase\x12\x34.google.spanner.admin.database.v1.GetDatabaseRequest\x1a*.google.spanner.admin.database.v1.Database"5\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/instances/*/databases/*}\x12\xb0\x01\n\x11UpdateDatabaseDdl\x12:.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest\x1a\x1d.google.longrunning.Operation"@\x82\xd3\xe4\x93\x02:25/v1/{database=projects/*/instances/*/databases/*}/ddl:\x01*\x12\x98\x01\n\x0c\x44ropDatabase\x12\x35.google.spanner.admin.database.v1.DropDatabaseRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02\x33*1/v1/{database=projects/*/instances/*/databases/*}\x12\xc2\x01\n\x0eGetDatabaseDdl\x12\x37.google.spanner.admin.database.v1.GetDatabaseDdlRequest\x1a\x38.google.spanner.admin.database.v1.GetDatabaseDdlResponse"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{database=projects/*/instances/*/databases/*}/ddl\x12\x94\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"I\x82\xd3\xe4\x93\x02\x43">/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy:\x01*\x12\x94\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"I\x82\xd3\xe4\x93\x02\x43">/v1/{resource=projects/*/instances/*/databases/*}:getIamPolicy:\x01*\x12\xba\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"O\x82\xd3\xe4\x93\x02I"D/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions:\x01*B\xdf\x01\n$com.google.spanner.admin.database.v1B\x19SpannerDatabaseAdminProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admin/database/v1;database\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _DATABASE_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.spanner.admin.database.v1.Database.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=392, - serialized_end=447, + name="State", + full_name="google.spanner.admin.database.v1.Database.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=392, + serialized_end=447, ) _sym_db.RegisterEnumDescriptor(_DATABASE_STATE) _DATABASE = _descriptor.Descriptor( - name='Database', - full_name='google.spanner.admin.database.v1.Database', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.admin.database.v1.Database.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.spanner.admin.database.v1.Database.state', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DATABASE_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=301, - serialized_end=447, + name="Database", + full_name="google.spanner.admin.database.v1.Database", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.admin.database.v1.Database.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.spanner.admin.database.v1.Database.state", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_DATABASE_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=301, + serialized_end=447, ) _LISTDATABASESREQUEST = _descriptor.Descriptor( - name='ListDatabasesRequest', - full_name='google.spanner.admin.database.v1.ListDatabasesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.spanner.admin.database.v1.ListDatabasesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.spanner.admin.database.v1.ListDatabasesRequest.page_size', index=1, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.spanner.admin.database.v1.ListDatabasesRequest.page_token', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=449, - serialized_end=526, + name="ListDatabasesRequest", + full_name="google.spanner.admin.database.v1.ListDatabasesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.spanner.admin.database.v1.ListDatabasesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.spanner.admin.database.v1.ListDatabasesRequest.page_size", + index=1, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.spanner.admin.database.v1.ListDatabasesRequest.page_token", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=449, + serialized_end=526, ) _LISTDATABASESRESPONSE = _descriptor.Descriptor( - name='ListDatabasesResponse', - full_name='google.spanner.admin.database.v1.ListDatabasesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='databases', full_name='google.spanner.admin.database.v1.ListDatabasesResponse.databases', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=528, - serialized_end=639, + name="ListDatabasesResponse", + full_name="google.spanner.admin.database.v1.ListDatabasesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="databases", + full_name="google.spanner.admin.database.v1.ListDatabasesResponse.databases", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=528, + serialized_end=639, ) _CREATEDATABASEREQUEST = _descriptor.Descriptor( - name='CreateDatabaseRequest', - full_name='google.spanner.admin.database.v1.CreateDatabaseRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.spanner.admin.database.v1.CreateDatabaseRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_statement', full_name='google.spanner.admin.database.v1.CreateDatabaseRequest.create_statement', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extra_statements', full_name='google.spanner.admin.database.v1.CreateDatabaseRequest.extra_statements', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=641, - serialized_end=732, + name="CreateDatabaseRequest", + full_name="google.spanner.admin.database.v1.CreateDatabaseRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.spanner.admin.database.v1.CreateDatabaseRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_statement", + full_name="google.spanner.admin.database.v1.CreateDatabaseRequest.create_statement", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extra_statements", + full_name="google.spanner.admin.database.v1.CreateDatabaseRequest.extra_statements", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=641, + serialized_end=732, ) _CREATEDATABASEMETADATA = _descriptor.Descriptor( - name='CreateDatabaseMetadata', - full_name='google.spanner.admin.database.v1.CreateDatabaseMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='database', full_name='google.spanner.admin.database.v1.CreateDatabaseMetadata.database', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=734, - serialized_end=776, + name="CreateDatabaseMetadata", + full_name="google.spanner.admin.database.v1.CreateDatabaseMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="database", + full_name="google.spanner.admin.database.v1.CreateDatabaseMetadata.database", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=734, + serialized_end=776, ) _GETDATABASEREQUEST = _descriptor.Descriptor( - name='GetDatabaseRequest', - full_name='google.spanner.admin.database.v1.GetDatabaseRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.admin.database.v1.GetDatabaseRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=778, - serialized_end=812, + name="GetDatabaseRequest", + full_name="google.spanner.admin.database.v1.GetDatabaseRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.admin.database.v1.GetDatabaseRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=778, + serialized_end=812, ) _UPDATEDATABASEDDLREQUEST = _descriptor.Descriptor( - name='UpdateDatabaseDdlRequest', - full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='database', full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='statements', full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.statements', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation_id', full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=814, - serialized_end=900, + name="UpdateDatabaseDdlRequest", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="database", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="statements", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.statements", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="operation_id", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=814, + serialized_end=900, ) _UPDATEDATABASEDDLMETADATA = _descriptor.Descriptor( - name='UpdateDatabaseDdlMetadata', - full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='database', full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.database', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='statements', full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.statements', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='commit_timestamps', full_name='google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.commit_timestamps', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=902, - serialized_end=1022, + name="UpdateDatabaseDdlMetadata", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="database", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.database", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="statements", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.statements", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="commit_timestamps", + full_name="google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.commit_timestamps", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=902, + serialized_end=1022, ) _DROPDATABASEREQUEST = _descriptor.Descriptor( - name='DropDatabaseRequest', - full_name='google.spanner.admin.database.v1.DropDatabaseRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='database', full_name='google.spanner.admin.database.v1.DropDatabaseRequest.database', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1024, - serialized_end=1063, + name="DropDatabaseRequest", + full_name="google.spanner.admin.database.v1.DropDatabaseRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="database", + full_name="google.spanner.admin.database.v1.DropDatabaseRequest.database", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1024, + serialized_end=1063, ) _GETDATABASEDDLREQUEST = _descriptor.Descriptor( - name='GetDatabaseDdlRequest', - full_name='google.spanner.admin.database.v1.GetDatabaseDdlRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='database', full_name='google.spanner.admin.database.v1.GetDatabaseDdlRequest.database', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1065, - serialized_end=1106, + name="GetDatabaseDdlRequest", + full_name="google.spanner.admin.database.v1.GetDatabaseDdlRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="database", + full_name="google.spanner.admin.database.v1.GetDatabaseDdlRequest.database", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1065, + serialized_end=1106, ) _GETDATABASEDDLRESPONSE = _descriptor.Descriptor( - name='GetDatabaseDdlResponse', - full_name='google.spanner.admin.database.v1.GetDatabaseDdlResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='statements', full_name='google.spanner.admin.database.v1.GetDatabaseDdlResponse.statements', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1108, - serialized_end=1152, + name="GetDatabaseDdlResponse", + full_name="google.spanner.admin.database.v1.GetDatabaseDdlResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="statements", + full_name="google.spanner.admin.database.v1.GetDatabaseDdlResponse.statements", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1108, + serialized_end=1152, ) -_DATABASE.fields_by_name['state'].enum_type = _DATABASE_STATE +_DATABASE.fields_by_name["state"].enum_type = _DATABASE_STATE _DATABASE_STATE.containing_type = _DATABASE -_LISTDATABASESRESPONSE.fields_by_name['databases'].message_type = _DATABASE -_UPDATEDATABASEDDLMETADATA.fields_by_name['commit_timestamps'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['Database'] = _DATABASE -DESCRIPTOR.message_types_by_name['ListDatabasesRequest'] = _LISTDATABASESREQUEST -DESCRIPTOR.message_types_by_name['ListDatabasesResponse'] = _LISTDATABASESRESPONSE -DESCRIPTOR.message_types_by_name['CreateDatabaseRequest'] = _CREATEDATABASEREQUEST -DESCRIPTOR.message_types_by_name['CreateDatabaseMetadata'] = _CREATEDATABASEMETADATA -DESCRIPTOR.message_types_by_name['GetDatabaseRequest'] = _GETDATABASEREQUEST -DESCRIPTOR.message_types_by_name['UpdateDatabaseDdlRequest'] = _UPDATEDATABASEDDLREQUEST -DESCRIPTOR.message_types_by_name['UpdateDatabaseDdlMetadata'] = _UPDATEDATABASEDDLMETADATA -DESCRIPTOR.message_types_by_name['DropDatabaseRequest'] = _DROPDATABASEREQUEST -DESCRIPTOR.message_types_by_name['GetDatabaseDdlRequest'] = _GETDATABASEDDLREQUEST -DESCRIPTOR.message_types_by_name['GetDatabaseDdlResponse'] = _GETDATABASEDDLRESPONSE +_LISTDATABASESRESPONSE.fields_by_name["databases"].message_type = _DATABASE +_UPDATEDATABASEDDLMETADATA.fields_by_name[ + "commit_timestamps" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["Database"] = _DATABASE +DESCRIPTOR.message_types_by_name["ListDatabasesRequest"] = _LISTDATABASESREQUEST +DESCRIPTOR.message_types_by_name["ListDatabasesResponse"] = _LISTDATABASESRESPONSE +DESCRIPTOR.message_types_by_name["CreateDatabaseRequest"] = _CREATEDATABASEREQUEST +DESCRIPTOR.message_types_by_name["CreateDatabaseMetadata"] = _CREATEDATABASEMETADATA +DESCRIPTOR.message_types_by_name["GetDatabaseRequest"] = _GETDATABASEREQUEST +DESCRIPTOR.message_types_by_name["UpdateDatabaseDdlRequest"] = _UPDATEDATABASEDDLREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateDatabaseDdlMetadata" +] = _UPDATEDATABASEDDLMETADATA +DESCRIPTOR.message_types_by_name["DropDatabaseRequest"] = _DROPDATABASEREQUEST +DESCRIPTOR.message_types_by_name["GetDatabaseDdlRequest"] = _GETDATABASEDDLREQUEST +DESCRIPTOR.message_types_by_name["GetDatabaseDdlResponse"] = _GETDATABASEDDLRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Database = _reflection.GeneratedProtocolMessageType('Database', (_message.Message,), dict( - DESCRIPTOR = _DATABASE, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """A Cloud Spanner database. +Database = _reflection.GeneratedProtocolMessageType( + "Database", + (_message.Message,), + dict( + DESCRIPTOR=_DATABASE, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""A Cloud Spanner database. Attributes: @@ -503,15 +715,18 @@ state: Output only. The current database state. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.Database) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.Database) + ), +) _sym_db.RegisterMessage(Database) -ListDatabasesRequest = _reflection.GeneratedProtocolMessageType('ListDatabasesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTDATABASESREQUEST, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """The request for +ListDatabasesRequest = _reflection.GeneratedProtocolMessageType( + "ListDatabasesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDATABASESREQUEST, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""The request for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. @@ -529,15 +744,18 @@ t\_page\_token] from a previous [ListDatabasesResponse][google .spanner.admin.database.v1.ListDatabasesResponse]. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabasesRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabasesRequest) + ), +) _sym_db.RegisterMessage(ListDatabasesRequest) -ListDatabasesResponse = _reflection.GeneratedProtocolMessageType('ListDatabasesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTDATABASESRESPONSE, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """The response for +ListDatabasesResponse = _reflection.GeneratedProtocolMessageType( + "ListDatabasesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTDATABASESRESPONSE, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""The response for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. @@ -549,15 +767,18 @@ ][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases ] call to fetch more of the matching databases. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabasesResponse) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabasesResponse) + ), +) _sym_db.RegisterMessage(ListDatabasesResponse) -CreateDatabaseRequest = _reflection.GeneratedProtocolMessageType('CreateDatabaseRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEDATABASEREQUEST, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """The request for +CreateDatabaseRequest = _reflection.GeneratedProtocolMessageType( + "CreateDatabaseRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEDATABASEREQUEST, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. @@ -580,15 +801,18 @@ database: if there is an error in any statement, the database is not created. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateDatabaseRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateDatabaseRequest) + ), +) _sym_db.RegisterMessage(CreateDatabaseRequest) -CreateDatabaseMetadata = _reflection.GeneratedProtocolMessageType('CreateDatabaseMetadata', (_message.Message,), dict( - DESCRIPTOR = _CREATEDATABASEMETADATA, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """Metadata type for the operation returned by +CreateDatabaseMetadata = _reflection.GeneratedProtocolMessageType( + "CreateDatabaseMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEDATABASEMETADATA, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""Metadata type for the operation returned by [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. @@ -596,15 +820,18 @@ database: The database being created. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateDatabaseMetadata) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateDatabaseMetadata) + ), +) _sym_db.RegisterMessage(CreateDatabaseMetadata) -GetDatabaseRequest = _reflection.GeneratedProtocolMessageType('GetDatabaseRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDATABASEREQUEST, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """The request for +GetDatabaseRequest = _reflection.GeneratedProtocolMessageType( + "GetDatabaseRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDATABASEREQUEST, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""The request for [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase]. @@ -614,15 +841,18 @@ the form ``projects//instances//databases/< database>``. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseRequest) + ), +) _sym_db.RegisterMessage(GetDatabaseRequest) -UpdateDatabaseDdlRequest = _reflection.GeneratedProtocolMessageType('UpdateDatabaseDdlRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEDATABASEDDLREQUEST, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """Enqueues the given DDL statements to be applied, in order but not +UpdateDatabaseDdlRequest = _reflection.GeneratedProtocolMessageType( + "UpdateDatabaseDdlRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEDATABASEDDLREQUEST, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""Enqueues the given DDL statements to be applied, in order but not necessarily all at once, to the database schema at some point (or points) in the future. The server checks that the statements are executable (syntactically valid, name tables that exist, etc.) before @@ -667,15 +897,18 @@ .spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns ``ALREADY_EXISTS``. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) + ), +) _sym_db.RegisterMessage(UpdateDatabaseDdlRequest) -UpdateDatabaseDdlMetadata = _reflection.GeneratedProtocolMessageType('UpdateDatabaseDdlMetadata', (_message.Message,), dict( - DESCRIPTOR = _UPDATEDATABASEDDLMETADATA, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """Metadata type for the operation returned by +UpdateDatabaseDdlMetadata = _reflection.GeneratedProtocolMessageType( + "UpdateDatabaseDdlMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEDATABASEDDLMETADATA, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""Metadata type for the operation returned by [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. @@ -690,15 +923,18 @@ succeeded so far, where ``commit_timestamps[i]`` is the commit timestamp for the statement ``statements[i]``. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) + ), +) _sym_db.RegisterMessage(UpdateDatabaseDdlMetadata) -DropDatabaseRequest = _reflection.GeneratedProtocolMessageType('DropDatabaseRequest', (_message.Message,), dict( - DESCRIPTOR = _DROPDATABASEREQUEST, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """The request for +DropDatabaseRequest = _reflection.GeneratedProtocolMessageType( + "DropDatabaseRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DROPDATABASEREQUEST, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase]. @@ -706,15 +942,18 @@ database: Required. The database to be dropped. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.DropDatabaseRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.DropDatabaseRequest) + ), +) _sym_db.RegisterMessage(DropDatabaseRequest) -GetDatabaseDdlRequest = _reflection.GeneratedProtocolMessageType('GetDatabaseDdlRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDATABASEDDLREQUEST, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """The request for +GetDatabaseDdlRequest = _reflection.GeneratedProtocolMessageType( + "GetDatabaseDdlRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETDATABASEDDLREQUEST, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""The request for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. @@ -722,15 +961,18 @@ database: Required. The database whose schema we wish to get. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseDdlRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseDdlRequest) + ), +) _sym_db.RegisterMessage(GetDatabaseDdlRequest) -GetDatabaseDdlResponse = _reflection.GeneratedProtocolMessageType('GetDatabaseDdlResponse', (_message.Message,), dict( - DESCRIPTOR = _GETDATABASEDDLRESPONSE, - __module__ = 'google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2' - , - __doc__ = """The response for +GetDatabaseDdlResponse = _reflection.GeneratedProtocolMessageType( + "GetDatabaseDdlResponse", + (_message.Message,), + dict( + DESCRIPTOR=_GETDATABASEDDLRESPONSE, + __module__="google.cloud.spanner.admin.database_v1.proto.spanner_database_admin_pb2", + __doc__="""The response for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. @@ -739,107 +981,159 @@ A list of formatted DDL statements defining the schema of the database specified in the request. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseDdlResponse) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseDdlResponse) + ), +) _sym_db.RegisterMessage(GetDatabaseDdlResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.spanner.admin.database.v1B\031SpannerDatabaseAdminProtoP\001ZHgoogle.golang.org/genproto/googleapis/spanner/admin/database/v1;database\252\002&Google.Cloud.Spanner.Admin.Database.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Database\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n$com.google.spanner.admin.database.v1B\031SpannerDatabaseAdminProtoP\001ZHgoogle.golang.org/genproto/googleapis/spanner/admin/database/v1;database\252\002&Google.Cloud.Spanner.Admin.Database.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Database\\V1" + ), +) _DATABASEADMIN = _descriptor.ServiceDescriptor( - name='DatabaseAdmin', - full_name='google.spanner.admin.database.v1.DatabaseAdmin', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1155, - serialized_end=2712, - methods=[ - _descriptor.MethodDescriptor( - name='ListDatabases', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases', + name="DatabaseAdmin", + full_name="google.spanner.admin.database.v1.DatabaseAdmin", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTDATABASESREQUEST, - output_type=_LISTDATABASESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{parent=projects/*/instances/*}/databases')), - ), - _descriptor.MethodDescriptor( - name='CreateDatabase', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase', - index=1, - containing_service=None, - input_type=_CREATEDATABASEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0022\"-/v1/{parent=projects/*/instances/*}/databases:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetDatabase', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase', - index=2, - containing_service=None, - input_type=_GETDATABASEREQUEST, - output_type=_DATABASE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{name=projects/*/instances/*/databases/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateDatabaseDdl', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl', - index=3, - containing_service=None, - input_type=_UPDATEDATABASEDDLREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:25/v1/{database=projects/*/instances/*/databases/*}/ddl:\001*')), - ), - _descriptor.MethodDescriptor( - name='DropDatabase', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase', - index=4, - containing_service=None, - input_type=_DROPDATABASEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0023*1/v1/{database=projects/*/instances/*/databases/*}')), - ), - _descriptor.MethodDescriptor( - name='GetDatabaseDdl', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl', - index=5, - containing_service=None, - input_type=_GETDATABASEDDLREQUEST, - output_type=_GETDATABASEDDLRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\0225/v1/{database=projects/*/instances/*/databases/*}/ddl')), - ), - _descriptor.MethodDescriptor( - name='SetIamPolicy', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.SetIamPolicy', - index=6, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002C\">/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetIamPolicy', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.GetIamPolicy', - index=7, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002C\">/v1/{resource=projects/*/instances/*/databases/*}:getIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='TestIamPermissions', - full_name='google.spanner.admin.database.v1.DatabaseAdmin.TestIamPermissions', - index=8, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, - output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002I\"D/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions:\001*')), - ), -]) + options=None, + serialized_start=1155, + serialized_end=2712, + methods=[ + _descriptor.MethodDescriptor( + name="ListDatabases", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases", + index=0, + containing_service=None, + input_type=_LISTDATABASESREQUEST, + output_type=_LISTDATABASESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1/{parent=projects/*/instances/*}/databases" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateDatabase", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase", + index=1, + containing_service=None, + input_type=_CREATEDATABASEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0022"-/v1/{parent=projects/*/instances/*}/databases:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetDatabase", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase", + index=2, + containing_service=None, + input_type=_GETDATABASEREQUEST, + output_type=_DATABASE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/\022-/v1/{name=projects/*/instances/*/databases/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateDatabaseDdl", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl", + index=3, + containing_service=None, + input_type=_UPDATEDATABASEDDLREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:25/v1/{database=projects/*/instances/*/databases/*}/ddl:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DropDatabase", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase", + index=4, + containing_service=None, + input_type=_DROPDATABASEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0023*1/v1/{database=projects/*/instances/*/databases/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetDatabaseDdl", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl", + index=5, + containing_service=None, + input_type=_GETDATABASEDDLREQUEST, + output_type=_GETDATABASEDDLRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0027\0225/v1/{database=projects/*/instances/*/databases/*}/ddl" + ), + ), + ), + _descriptor.MethodDescriptor( + name="SetIamPolicy", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.SetIamPolicy", + index=6, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002C">/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetIamPolicy", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.GetIamPolicy", + index=7, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002C">/v1/{resource=projects/*/instances/*/databases/*}:getIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="TestIamPermissions", + full_name="google.spanner.admin.database.v1.DatabaseAdmin.TestIamPermissions", + index=8, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, + output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002I"D/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_DATABASEADMIN) -DESCRIPTOR.services_by_name['DatabaseAdmin'] = _DATABASEADMIN +DESCRIPTOR.services_by_name["DatabaseAdmin"] = _DATABASEADMIN # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2_grpc.py b/spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2_grpc.py index 2f6ad29f2734d..523a04f0a85a4 100644 --- a/spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2_grpc.py +++ b/spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2_grpc.py @@ -1,91 +1,95 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.spanner_admin_database_v1.proto import spanner_database_admin_pb2 as google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2 +from google.cloud.spanner_admin_database_v1.proto import ( + spanner_database_admin_pb2 as google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class DatabaseAdminStub(object): - """Cloud Spanner Database Admin API + """Cloud Spanner Database Admin API The Cloud Spanner Database Admin API can be used to create, drop, and list databases. It also enables updating the schema of pre-existing databases. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListDatabases = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabases', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesResponse.FromString, + self.ListDatabases = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabases", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesResponse.FromString, ) - self.CreateDatabase = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/CreateDatabase', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.CreateDatabaseRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateDatabase = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/CreateDatabase", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.CreateDatabaseRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.GetDatabase = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabase', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.Database.FromString, + self.GetDatabase = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabase", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.Database.FromString, ) - self.UpdateDatabaseDdl = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabaseDdl', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.UpdateDatabaseDdlRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateDatabaseDdl = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabaseDdl", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.UpdateDatabaseDdlRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DropDatabase = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/DropDatabase', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.DropDatabaseRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DropDatabase = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/DropDatabase", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.DropDatabaseRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetDatabaseDdl = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabaseDdl', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlResponse.FromString, + self.GetDatabaseDdl = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabaseDdl", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlResponse.FromString, ) - self.SetIamPolicy = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/SetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.SetIamPolicy = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/SetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.GetIamPolicy = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/GetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.GetIamPolicy = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/GetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.TestIamPermissions = channel.unary_unary( - '/google.spanner.admin.database.v1.DatabaseAdmin/TestIamPermissions', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, + self.TestIamPermissions = channel.unary_unary( + "/google.spanner.admin.database.v1.DatabaseAdmin/TestIamPermissions", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, ) class DatabaseAdminServicer(object): - """Cloud Spanner Database Admin API + """Cloud Spanner Database Admin API The Cloud Spanner Database Admin API can be used to create, drop, and list databases. It also enables updating the schema of pre-existing databases. """ - def ListDatabases(self, request, context): - """Lists Cloud Spanner databases. + def ListDatabases(self, request, context): + """Lists Cloud Spanner databases. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateDatabase(self, request, context): - """Creates a new Cloud Spanner database and starts to prepare it for serving. + def CreateDatabase(self, request, context): + """Creates a new Cloud Spanner database and starts to prepare it for serving. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `/operations/` and can be used to track preparation of the database. The @@ -94,19 +98,19 @@ def CreateDatabase(self, request, context): [response][google.longrunning.Operation.response] field type is [Database][google.spanner.admin.database.v1.Database], if successful. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetDatabase(self, request, context): - """Gets the state of a Cloud Spanner database. + def GetDatabase(self, request, context): + """Gets the state of a Cloud Spanner database. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateDatabaseDdl(self, request, context): - """Updates the schema of a Cloud Spanner database by + def UpdateDatabaseDdl(self, request, context): + """Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `/operations/` and can be used to @@ -114,109 +118,110 @@ def UpdateDatabaseDdl(self, request, context): [metadata][google.longrunning.Operation.metadata] field type is [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DropDatabase(self, request, context): - """Drops (aka deletes) a Cloud Spanner database. + def DropDatabase(self, request, context): + """Drops (aka deletes) a Cloud Spanner database. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetDatabaseDdl(self, request, context): - """Returns the schema of a Cloud Spanner database as a list of formatted + def GetDatabaseDdl(self, request, context): + """Returns the schema of a Cloud Spanner database as a list of formatted DDL statements. This method does not show pending schema updates, those may be queried using the [Operations][google.longrunning.Operations] API. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SetIamPolicy(self, request, context): - """Sets the access control policy on a database resource. Replaces any + def SetIamPolicy(self, request, context): + """Sets the access control policy on a database resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on [resource][google.iam.v1.SetIamPolicyRequest.resource]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetIamPolicy(self, request, context): - """Gets the access control policy for a database resource. Returns an empty + def GetIamPolicy(self, request, context): + """Gets the access control policy for a database resource. Returns an empty policy if a database exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on [resource][google.iam.v1.GetIamPolicyRequest.resource]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def TestIamPermissions(self, request, context): - """Returns permissions that the caller has on the specified database resource. + def TestIamPermissions(self, request, context): + """Returns permissions that the caller has on the specified database resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_DatabaseAdminServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListDatabases': grpc.unary_unary_rpc_method_handler( - servicer.ListDatabases, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesResponse.SerializeToString, - ), - 'CreateDatabase': grpc.unary_unary_rpc_method_handler( - servicer.CreateDatabase, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.CreateDatabaseRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'GetDatabase': grpc.unary_unary_rpc_method_handler( - servicer.GetDatabase, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.Database.SerializeToString, - ), - 'UpdateDatabaseDdl': grpc.unary_unary_rpc_method_handler( - servicer.UpdateDatabaseDdl, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.UpdateDatabaseDdlRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DropDatabase': grpc.unary_unary_rpc_method_handler( - servicer.DropDatabase, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.DropDatabaseRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetDatabaseDdl': grpc.unary_unary_rpc_method_handler( - servicer.GetDatabaseDdl, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlResponse.SerializeToString, - ), - 'SetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.SetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'GetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'TestIamPermissions': grpc.unary_unary_rpc_method_handler( - servicer.TestIamPermissions, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.spanner.admin.database.v1.DatabaseAdmin', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListDatabases": grpc.unary_unary_rpc_method_handler( + servicer.ListDatabases, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.ListDatabasesResponse.SerializeToString, + ), + "CreateDatabase": grpc.unary_unary_rpc_method_handler( + servicer.CreateDatabase, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.CreateDatabaseRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "GetDatabase": grpc.unary_unary_rpc_method_handler( + servicer.GetDatabase, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.Database.SerializeToString, + ), + "UpdateDatabaseDdl": grpc.unary_unary_rpc_method_handler( + servicer.UpdateDatabaseDdl, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.UpdateDatabaseDdlRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DropDatabase": grpc.unary_unary_rpc_method_handler( + servicer.DropDatabase, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.DropDatabaseRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetDatabaseDdl": grpc.unary_unary_rpc_method_handler( + servicer.GetDatabaseDdl, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_database__v1_dot_proto_dot_spanner__database__admin__pb2.GetDatabaseDdlResponse.SerializeToString, + ), + "SetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.SetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "GetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "TestIamPermissions": grpc.unary_unary_rpc_method_handler( + servicer.TestIamPermissions, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.spanner.admin.database.v1.DatabaseAdmin", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2.py b/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2.py index 4f8b3dd75318a..7ab1cacf8c59c 100644 --- a/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2.py +++ b/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,680 +18,1074 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.proto', - package='google.spanner.admin.instance.v1', - syntax='proto3', - serialized_pb=_b('\nIgoogle/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.proto\x12 google.spanner.admin.instance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"4\n\x0eInstanceConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\xc3\x02\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12?\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.spanner.admin.instance.v1.Instance.State\x12\x46\n\x06labels\x18\x07 \x03(\x0b\x32\x36.google.spanner.admin.instance.v1.Instance.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"S\n\x1aListInstanceConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1bListInstanceConfigsResponse\x12J\n\x10instance_configs\x18\x01 \x03(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"(\n\x18GetInstanceConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"z\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12<\n\x08instance\x18\x03 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\"]\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"o\n\x15ListInstancesResponse\x12=\n\tinstances\x18\x01 \x03(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x01\n\x15UpdateInstanceRequest\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xe5\x01\n\x16\x43reateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe5\x01\n\x16UpdateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xe6\x0c\n\rInstanceAdmin\x12\xc3\x01\n\x13ListInstanceConfigs\x12<.google.spanner.admin.instance.v1.ListInstanceConfigsRequest\x1a=.google.spanner.admin.instance.v1.ListInstanceConfigsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{parent=projects/*}/instanceConfigs\x12\xb2\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instance.v1.GetInstanceConfigRequest\x1a\x30.google.spanner.admin.instance.v1.InstanceConfig\"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{name=projects/*/instanceConfigs/*}\x12\xab\x01\n\rListInstances\x12\x36.google.spanner.admin.instance.v1.ListInstancesRequest\x1a\x37.google.spanner.admin.instance.v1.ListInstancesResponse\")\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/instances\x12\x9a\x01\n\x0bGetInstance\x12\x34.google.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.instance.v1.Instance\")\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/instances/*}\x12\x96\x01\n\x0e\x43reateInstance\x12\x37.google.spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\",\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/instances:\x01*\x12\x9f\x01\n\x0eUpdateInstance\x12\x37.google.spanner.admin.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"5\x82\xd3\xe4\x93\x02/2*/v1/{instance.name=projects/*/instances/*}:\x01*\x12\x8c\x01\n\x0e\x44\x65leteInstance\x12\x37.google.spanner.admin.instance.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\")\x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\x12\x88\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\x01*\x12\x88\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\x01*\x12\xae\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/instances/*}:testIamPermissions:\x01*B\xdf\x01\n$com.google.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\xaa\x02&Google.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Instance\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.proto", + package="google.spanner.admin.instance.v1", + syntax="proto3", + serialized_pb=_b( + '\nIgoogle/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.proto\x12 google.spanner.admin.instance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"4\n\x0eInstanceConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t"\xc3\x02\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12?\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.spanner.admin.instance.v1.Instance.State\x12\x46\n\x06labels\x18\x07 \x03(\x0b\x32\x36.google.spanner.admin.instance.v1.Instance.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02"S\n\x1aListInstanceConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x82\x01\n\x1bListInstanceConfigsResponse\x12J\n\x10instance_configs\x18\x01 \x03(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"(\n\x18GetInstanceConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t""\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"z\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12<\n\x08instance\x18\x03 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance"]\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t"o\n\x15ListInstancesResponse\x12=\n\tinstances\x18\x01 \x03(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x85\x01\n\x15UpdateInstanceRequest\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xe5\x01\n\x16\x43reateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xe5\x01\n\x16UpdateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xe6\x0c\n\rInstanceAdmin\x12\xc3\x01\n\x13ListInstanceConfigs\x12<.google.spanner.admin.instance.v1.ListInstanceConfigsRequest\x1a=.google.spanner.admin.instance.v1.ListInstanceConfigsResponse"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{parent=projects/*}/instanceConfigs\x12\xb2\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instance.v1.GetInstanceConfigRequest\x1a\x30.google.spanner.admin.instance.v1.InstanceConfig"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{name=projects/*/instanceConfigs/*}\x12\xab\x01\n\rListInstances\x12\x36.google.spanner.admin.instance.v1.ListInstancesRequest\x1a\x37.google.spanner.admin.instance.v1.ListInstancesResponse")\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/instances\x12\x9a\x01\n\x0bGetInstance\x12\x34.google.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.instance.v1.Instance")\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/instances/*}\x12\x96\x01\n\x0e\x43reateInstance\x12\x37.google.spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation",\x82\xd3\xe4\x93\x02&"!/v1/{parent=projects/*}/instances:\x01*\x12\x9f\x01\n\x0eUpdateInstance\x12\x37.google.spanner.admin.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation"5\x82\xd3\xe4\x93\x02/2*/v1/{instance.name=projects/*/instances/*}:\x01*\x12\x8c\x01\n\x0e\x44\x65leteInstance\x12\x37.google.spanner.admin.instance.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty")\x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\x12\x88\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"=\x82\xd3\xe4\x93\x02\x37"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\x01*\x12\x88\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"=\x82\xd3\xe4\x93\x02\x37"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\x01*\x12\xae\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"C\x82\xd3\xe4\x93\x02="8/v1/{resource=projects/*/instances/*}:testIamPermissions:\x01*B\xdf\x01\n$com.google.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\xaa\x02&Google.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Instance\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _INSTANCE_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.spanner.admin.instance.v1.Instance.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='READY', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=657, - serialized_end=712, + name="State", + full_name="google.spanner.admin.instance.v1.Instance.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="READY", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=657, + serialized_end=712, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_STATE) _INSTANCECONFIG = _descriptor.Descriptor( - name='InstanceConfig', - full_name='google.spanner.admin.instance.v1.InstanceConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.admin.instance.v1.InstanceConfig.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.spanner.admin.instance.v1.InstanceConfig.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=334, - serialized_end=386, + name="InstanceConfig", + full_name="google.spanner.admin.instance.v1.InstanceConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.admin.instance.v1.InstanceConfig.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.spanner.admin.instance.v1.InstanceConfig.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=334, + serialized_end=386, ) _INSTANCE_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.spanner.admin.instance.v1.Instance.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.spanner.admin.instance.v1.Instance.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.spanner.admin.instance.v1.Instance.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=610, - serialized_end=655, + name="LabelsEntry", + full_name="google.spanner.admin.instance.v1.Instance.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.spanner.admin.instance.v1.Instance.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.spanner.admin.instance.v1.Instance.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=610, + serialized_end=655, ) _INSTANCE = _descriptor.Descriptor( - name='Instance', - full_name='google.spanner.admin.instance.v1.Instance', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.admin.instance.v1.Instance.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='config', full_name='google.spanner.admin.instance.v1.Instance.config', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.spanner.admin.instance.v1.Instance.display_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='node_count', full_name='google.spanner.admin.instance.v1.Instance.node_count', index=3, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.spanner.admin.instance.v1.Instance.state', index=4, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.spanner.admin.instance.v1.Instance.labels', index=5, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_INSTANCE_LABELSENTRY, ], - enum_types=[ - _INSTANCE_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=389, - serialized_end=712, + name="Instance", + full_name="google.spanner.admin.instance.v1.Instance", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.admin.instance.v1.Instance.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="config", + full_name="google.spanner.admin.instance.v1.Instance.config", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.spanner.admin.instance.v1.Instance.display_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="node_count", + full_name="google.spanner.admin.instance.v1.Instance.node_count", + index=3, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.spanner.admin.instance.v1.Instance.state", + index=4, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.spanner.admin.instance.v1.Instance.labels", + index=5, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_INSTANCE_LABELSENTRY], + enum_types=[_INSTANCE_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=389, + serialized_end=712, ) _LISTINSTANCECONFIGSREQUEST = _descriptor.Descriptor( - name='ListInstanceConfigsRequest', - full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=714, - serialized_end=797, + name="ListInstanceConfigsRequest", + full_name="google.spanner.admin.instance.v1.ListInstanceConfigsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.spanner.admin.instance.v1.ListInstanceConfigsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=714, + serialized_end=797, ) _LISTINSTANCECONFIGSRESPONSE = _descriptor.Descriptor( - name='ListInstanceConfigsResponse', - full_name='google.spanner.admin.instance.v1.ListInstanceConfigsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance_configs', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsResponse.instance_configs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=800, - serialized_end=930, + name="ListInstanceConfigsResponse", + full_name="google.spanner.admin.instance.v1.ListInstanceConfigsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instance_configs", + full_name="google.spanner.admin.instance.v1.ListInstanceConfigsResponse.instance_configs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=800, + serialized_end=930, ) _GETINSTANCECONFIGREQUEST = _descriptor.Descriptor( - name='GetInstanceConfigRequest', - full_name='google.spanner.admin.instance.v1.GetInstanceConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.admin.instance.v1.GetInstanceConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=932, - serialized_end=972, + name="GetInstanceConfigRequest", + full_name="google.spanner.admin.instance.v1.GetInstanceConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.admin.instance.v1.GetInstanceConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=932, + serialized_end=972, ) _GETINSTANCEREQUEST = _descriptor.Descriptor( - name='GetInstanceRequest', - full_name='google.spanner.admin.instance.v1.GetInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.admin.instance.v1.GetInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=974, - serialized_end=1008, + name="GetInstanceRequest", + full_name="google.spanner.admin.instance.v1.GetInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.admin.instance.v1.GetInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=974, + serialized_end=1008, ) _CREATEINSTANCEREQUEST = _descriptor.Descriptor( - name='CreateInstanceRequest', - full_name='google.spanner.admin.instance.v1.CreateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.spanner.admin.instance.v1.CreateInstanceRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_id', full_name='google.spanner.admin.instance.v1.CreateInstanceRequest.instance_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.spanner.admin.instance.v1.CreateInstanceRequest.instance', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1010, - serialized_end=1132, + name="CreateInstanceRequest", + full_name="google.spanner.admin.instance.v1.CreateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.spanner.admin.instance.v1.CreateInstanceRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance_id", + full_name="google.spanner.admin.instance.v1.CreateInstanceRequest.instance_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.spanner.admin.instance.v1.CreateInstanceRequest.instance", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1010, + serialized_end=1132, ) _LISTINSTANCESREQUEST = _descriptor.Descriptor( - name='ListInstancesRequest', - full_name='google.spanner.admin.instance.v1.ListInstancesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.filter', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1134, - serialized_end=1227, + name="ListInstancesRequest", + full_name="google.spanner.admin.instance.v1.ListInstancesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.spanner.admin.instance.v1.ListInstancesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.spanner.admin.instance.v1.ListInstancesRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.spanner.admin.instance.v1.ListInstancesRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.spanner.admin.instance.v1.ListInstancesRequest.filter", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1134, + serialized_end=1227, ) _LISTINSTANCESRESPONSE = _descriptor.Descriptor( - name='ListInstancesResponse', - full_name='google.spanner.admin.instance.v1.ListInstancesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instances', full_name='google.spanner.admin.instance.v1.ListInstancesResponse.instances', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1229, - serialized_end=1340, + name="ListInstancesResponse", + full_name="google.spanner.admin.instance.v1.ListInstancesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instances", + full_name="google.spanner.admin.instance.v1.ListInstancesResponse.instances", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1229, + serialized_end=1340, ) _UPDATEINSTANCEREQUEST = _descriptor.Descriptor( - name='UpdateInstanceRequest', - full_name='google.spanner.admin.instance.v1.UpdateInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance', full_name='google.spanner.admin.instance.v1.UpdateInstanceRequest.instance', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_mask', full_name='google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1343, - serialized_end=1476, + name="UpdateInstanceRequest", + full_name="google.spanner.admin.instance.v1.UpdateInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instance", + full_name="google.spanner.admin.instance.v1.UpdateInstanceRequest.instance", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="field_mask", + full_name="google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1343, + serialized_end=1476, ) _DELETEINSTANCEREQUEST = _descriptor.Descriptor( - name='DeleteInstanceRequest', - full_name='google.spanner.admin.instance.v1.DeleteInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.admin.instance.v1.DeleteInstanceRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1478, - serialized_end=1515, + name="DeleteInstanceRequest", + full_name="google.spanner.admin.instance.v1.DeleteInstanceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.admin.instance.v1.DeleteInstanceRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1478, + serialized_end=1515, ) _CREATEINSTANCEMETADATA = _descriptor.Descriptor( - name='CreateInstanceMetadata', - full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.instance', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.start_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cancel_time', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.cancel_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.end_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1518, - serialized_end=1747, + name="CreateInstanceMetadata", + full_name="google.spanner.admin.instance.v1.CreateInstanceMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instance", + full_name="google.spanner.admin.instance.v1.CreateInstanceMetadata.instance", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.spanner.admin.instance.v1.CreateInstanceMetadata.start_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cancel_time", + full_name="google.spanner.admin.instance.v1.CreateInstanceMetadata.cancel_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.spanner.admin.instance.v1.CreateInstanceMetadata.end_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1518, + serialized_end=1747, ) _UPDATEINSTANCEMETADATA = _descriptor.Descriptor( - name='UpdateInstanceMetadata', - full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.instance', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.start_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cancel_time', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.end_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1750, - serialized_end=1979, + name="UpdateInstanceMetadata", + full_name="google.spanner.admin.instance.v1.UpdateInstanceMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="instance", + full_name="google.spanner.admin.instance.v1.UpdateInstanceMetadata.instance", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.spanner.admin.instance.v1.UpdateInstanceMetadata.start_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cancel_time", + full_name="google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.spanner.admin.instance.v1.UpdateInstanceMetadata.end_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1750, + serialized_end=1979, ) _INSTANCE_LABELSENTRY.containing_type = _INSTANCE -_INSTANCE.fields_by_name['state'].enum_type = _INSTANCE_STATE -_INSTANCE.fields_by_name['labels'].message_type = _INSTANCE_LABELSENTRY +_INSTANCE.fields_by_name["state"].enum_type = _INSTANCE_STATE +_INSTANCE.fields_by_name["labels"].message_type = _INSTANCE_LABELSENTRY _INSTANCE_STATE.containing_type = _INSTANCE -_LISTINSTANCECONFIGSRESPONSE.fields_by_name['instance_configs'].message_type = _INSTANCECONFIG -_CREATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE -_LISTINSTANCESRESPONSE.fields_by_name['instances'].message_type = _INSTANCE -_UPDATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE -_UPDATEINSTANCEREQUEST.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CREATEINSTANCEMETADATA.fields_by_name['instance'].message_type = _INSTANCE -_CREATEINSTANCEMETADATA.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATEINSTANCEMETADATA.fields_by_name['cancel_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATEINSTANCEMETADATA.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATEINSTANCEMETADATA.fields_by_name['instance'].message_type = _INSTANCE -_UPDATEINSTANCEMETADATA.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATEINSTANCEMETADATA.fields_by_name['cancel_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_UPDATEINSTANCEMETADATA.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['InstanceConfig'] = _INSTANCECONFIG -DESCRIPTOR.message_types_by_name['Instance'] = _INSTANCE -DESCRIPTOR.message_types_by_name['ListInstanceConfigsRequest'] = _LISTINSTANCECONFIGSREQUEST -DESCRIPTOR.message_types_by_name['ListInstanceConfigsResponse'] = _LISTINSTANCECONFIGSRESPONSE -DESCRIPTOR.message_types_by_name['GetInstanceConfigRequest'] = _GETINSTANCECONFIGREQUEST -DESCRIPTOR.message_types_by_name['GetInstanceRequest'] = _GETINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['CreateInstanceRequest'] = _CREATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['ListInstancesRequest'] = _LISTINSTANCESREQUEST -DESCRIPTOR.message_types_by_name['ListInstancesResponse'] = _LISTINSTANCESRESPONSE -DESCRIPTOR.message_types_by_name['UpdateInstanceRequest'] = _UPDATEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['DeleteInstanceRequest'] = _DELETEINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['CreateInstanceMetadata'] = _CREATEINSTANCEMETADATA -DESCRIPTOR.message_types_by_name['UpdateInstanceMetadata'] = _UPDATEINSTANCEMETADATA +_LISTINSTANCECONFIGSRESPONSE.fields_by_name[ + "instance_configs" +].message_type = _INSTANCECONFIG +_CREATEINSTANCEREQUEST.fields_by_name["instance"].message_type = _INSTANCE +_LISTINSTANCESRESPONSE.fields_by_name["instances"].message_type = _INSTANCE +_UPDATEINSTANCEREQUEST.fields_by_name["instance"].message_type = _INSTANCE +_UPDATEINSTANCEREQUEST.fields_by_name[ + "field_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CREATEINSTANCEMETADATA.fields_by_name["instance"].message_type = _INSTANCE +_CREATEINSTANCEMETADATA.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATEINSTANCEMETADATA.fields_by_name[ + "cancel_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATEINSTANCEMETADATA.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATEINSTANCEMETADATA.fields_by_name["instance"].message_type = _INSTANCE +_UPDATEINSTANCEMETADATA.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATEINSTANCEMETADATA.fields_by_name[ + "cancel_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATEINSTANCEMETADATA.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["InstanceConfig"] = _INSTANCECONFIG +DESCRIPTOR.message_types_by_name["Instance"] = _INSTANCE +DESCRIPTOR.message_types_by_name[ + "ListInstanceConfigsRequest" +] = _LISTINSTANCECONFIGSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListInstanceConfigsResponse" +] = _LISTINSTANCECONFIGSRESPONSE +DESCRIPTOR.message_types_by_name["GetInstanceConfigRequest"] = _GETINSTANCECONFIGREQUEST +DESCRIPTOR.message_types_by_name["GetInstanceRequest"] = _GETINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["CreateInstanceRequest"] = _CREATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["ListInstancesRequest"] = _LISTINSTANCESREQUEST +DESCRIPTOR.message_types_by_name["ListInstancesResponse"] = _LISTINSTANCESRESPONSE +DESCRIPTOR.message_types_by_name["UpdateInstanceRequest"] = _UPDATEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["DeleteInstanceRequest"] = _DELETEINSTANCEREQUEST +DESCRIPTOR.message_types_by_name["CreateInstanceMetadata"] = _CREATEINSTANCEMETADATA +DESCRIPTOR.message_types_by_name["UpdateInstanceMetadata"] = _UPDATEINSTANCEMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -InstanceConfig = _reflection.GeneratedProtocolMessageType('InstanceConfig', (_message.Message,), dict( - DESCRIPTOR = _INSTANCECONFIG, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """A possible configuration for a Cloud Spanner instance. Configurations +InstanceConfig = _reflection.GeneratedProtocolMessageType( + "InstanceConfig", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCECONFIG, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication. @@ -701,22 +1097,27 @@ display_name: The name of this instance configuration as it appears in UIs. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.InstanceConfig) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.InstanceConfig) + ), +) _sym_db.RegisterMessage(InstanceConfig) -Instance = _reflection.GeneratedProtocolMessageType('Instance', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _INSTANCE_LABELSENTRY, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.Instance.LabelsEntry) - )) - , - DESCRIPTOR = _INSTANCE, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """An isolated set of Cloud Spanner resources on which databases can be +Instance = _reflection.GeneratedProtocolMessageType( + "Instance", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_INSTANCE_LABELSENTRY, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2" + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.Instance.LabelsEntry) + ), + ), + DESCRIPTOR=_INSTANCE, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""An isolated set of Cloud Spanner resources on which databases can be hosted. @@ -774,16 +1175,19 @@ as the string: name + "*" + value would prove problematic if we were to allow "*" in a future release. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.Instance) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.Instance) + ), +) _sym_db.RegisterMessage(Instance) _sym_db.RegisterMessage(Instance.LabelsEntry) -ListInstanceConfigsRequest = _reflection.GeneratedProtocolMessageType('ListInstanceConfigsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCECONFIGSREQUEST, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The request for +ListInstanceConfigsRequest = _reflection.GeneratedProtocolMessageType( + "ListInstanceConfigsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCECONFIGSREQUEST, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The request for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. @@ -803,15 +1207,18 @@ onse][google.spanner.admin.instance.v1.ListInstanceConfigsResp onse]. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) + ), +) _sym_db.RegisterMessage(ListInstanceConfigsRequest) -ListInstanceConfigsResponse = _reflection.GeneratedProtocolMessageType('ListInstanceConfigsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCECONFIGSRESPONSE, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The response for +ListInstanceConfigsResponse = _reflection.GeneratedProtocolMessageType( + "ListInstanceConfigsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCECONFIGSRESPONSE, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The response for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. @@ -824,15 +1231,18 @@ tanceConfigs] call to fetch more of the matching instance configurations. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) + ), +) _sym_db.RegisterMessage(ListInstanceConfigsResponse) -GetInstanceConfigRequest = _reflection.GeneratedProtocolMessageType('GetInstanceConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _GETINSTANCECONFIGREQUEST, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The request for +GetInstanceConfigRequest = _reflection.GeneratedProtocolMessageType( + "GetInstanceConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETINSTANCECONFIGREQUEST, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The request for [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig]. @@ -842,15 +1252,18 @@ Values are of the form ``projects//instanceConfigs/``. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceConfigRequest) + ), +) _sym_db.RegisterMessage(GetInstanceConfigRequest) -GetInstanceRequest = _reflection.GeneratedProtocolMessageType('GetInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETINSTANCEREQUEST, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The request for +GetInstanceRequest = _reflection.GeneratedProtocolMessageType( + "GetInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETINSTANCEREQUEST, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The request for [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance]. @@ -859,15 +1272,18 @@ Required. The name of the requested instance. Values are of the form ``projects//instances/``. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceRequest) + ), +) _sym_db.RegisterMessage(GetInstanceRequest) -CreateInstanceRequest = _reflection.GeneratedProtocolMessageType('CreateInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEINSTANCEREQUEST, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The request for +CreateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "CreateInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEINSTANCEREQUEST, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The request for [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. @@ -883,15 +1299,18 @@ Required. The instance to create. The name may be omitted, but if specified must be ``/instances/``. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceRequest) + ), +) _sym_db.RegisterMessage(CreateInstanceRequest) -ListInstancesRequest = _reflection.GeneratedProtocolMessageType('ListInstancesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESREQUEST, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The request for +ListInstancesRequest = _reflection.GeneratedProtocolMessageType( + "ListInstancesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESREQUEST, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The request for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. @@ -923,15 +1342,18 @@ The instance's name contains "howl" and it has the label "env" with its value containing "dev". """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesRequest) + ), +) _sym_db.RegisterMessage(ListInstancesRequest) -ListInstancesResponse = _reflection.GeneratedProtocolMessageType('ListInstancesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTINSTANCESRESPONSE, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The response for +ListInstancesResponse = _reflection.GeneratedProtocolMessageType( + "ListInstancesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTINSTANCESRESPONSE, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The response for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. @@ -943,15 +1365,18 @@ ][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances ] call to fetch more of the matching instances. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesResponse) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesResponse) + ), +) _sym_db.RegisterMessage(ListInstancesResponse) -UpdateInstanceRequest = _reflection.GeneratedProtocolMessageType('UpdateInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEINSTANCEREQUEST, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The request for +UpdateInstanceRequest = _reflection.GeneratedProtocolMessageType( + "UpdateInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEINSTANCEREQUEST, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The request for [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. @@ -969,15 +1394,18 @@ [][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know about them. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceRequest) + ), +) _sym_db.RegisterMessage(UpdateInstanceRequest) -DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType('DeleteInstanceRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEINSTANCEREQUEST, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """The request for +DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType( + "DeleteInstanceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEINSTANCEREQUEST, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""The request for [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance]. @@ -986,15 +1414,18 @@ Required. The name of the instance to be deleted. Values are of the form ``projects//instances/`` """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.DeleteInstanceRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.DeleteInstanceRequest) + ), +) _sym_db.RegisterMessage(DeleteInstanceRequest) -CreateInstanceMetadata = _reflection.GeneratedProtocolMessageType('CreateInstanceMetadata', (_message.Message,), dict( - DESCRIPTOR = _CREATEINSTANCEMETADATA, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """Metadata type for the operation returned by +CreateInstanceMetadata = _reflection.GeneratedProtocolMessageType( + "CreateInstanceMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEINSTANCEMETADATA, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""Metadata type for the operation returned by [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. @@ -1012,15 +1443,18 @@ The time at which this operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceMetadata) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceMetadata) + ), +) _sym_db.RegisterMessage(CreateInstanceMetadata) -UpdateInstanceMetadata = _reflection.GeneratedProtocolMessageType('UpdateInstanceMetadata', (_message.Message,), dict( - DESCRIPTOR = _UPDATEINSTANCEMETADATA, - __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2' - , - __doc__ = """Metadata type for the operation returned by +UpdateInstanceMetadata = _reflection.GeneratedProtocolMessageType( + "UpdateInstanceMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEINSTANCEMETADATA, + __module__="google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2", + __doc__="""Metadata type for the operation returned by [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. @@ -1038,118 +1472,165 @@ The time at which this operation failed or was completed successfully. """, - # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceMetadata) - )) + # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceMetadata) + ), +) _sym_db.RegisterMessage(UpdateInstanceMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.spanner.admin.instance.v1B\031SpannerInstanceAdminProtoP\001ZHgoogle.golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\252\002&Google.Cloud.Spanner.Admin.Instance.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Instance\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n$com.google.spanner.admin.instance.v1B\031SpannerInstanceAdminProtoP\001ZHgoogle.golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\252\002&Google.Cloud.Spanner.Admin.Instance.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Instance\\V1" + ), +) _INSTANCE_LABELSENTRY.has_options = True -_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_INSTANCE_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _INSTANCEADMIN = _descriptor.ServiceDescriptor( - name='InstanceAdmin', - full_name='google.spanner.admin.instance.v1.InstanceAdmin', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1982, - serialized_end=3620, - methods=[ - _descriptor.MethodDescriptor( - name='ListInstanceConfigs', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs', + name="InstanceAdmin", + full_name="google.spanner.admin.instance.v1.InstanceAdmin", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTINSTANCECONFIGSREQUEST, - output_type=_LISTINSTANCECONFIGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\022\'/v1/{parent=projects/*}/instanceConfigs')), - ), - _descriptor.MethodDescriptor( - name='GetInstanceConfig', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig', - index=1, - containing_service=None, - input_type=_GETINSTANCECONFIGREQUEST, - output_type=_INSTANCECONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\022\'/v1/{name=projects/*/instanceConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='ListInstances', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.ListInstances', - index=2, - containing_service=None, - input_type=_LISTINSTANCESREQUEST, - output_type=_LISTINSTANCESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#\022!/v1/{parent=projects/*}/instances')), - ), - _descriptor.MethodDescriptor( - name='GetInstance', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.GetInstance', - index=3, - containing_service=None, - input_type=_GETINSTANCEREQUEST, - output_type=_INSTANCE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#\022!/v1/{name=projects/*/instances/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateInstance', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance', - index=4, - containing_service=None, - input_type=_CREATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002&\"!/v1/{parent=projects/*}/instances:\001*')), - ), - _descriptor.MethodDescriptor( - name='UpdateInstance', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance', - index=5, - containing_service=None, - input_type=_UPDATEINSTANCEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/2*/v1/{instance.name=projects/*/instances/*}:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeleteInstance', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance', - index=6, - containing_service=None, - input_type=_DELETEINSTANCEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002#*!/v1/{name=projects/*/instances/*}')), - ), - _descriptor.MethodDescriptor( - name='SetIamPolicy', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.SetIamPolicy', - index=7, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetIamPolicy', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.GetIamPolicy', - index=8, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='TestIamPermissions', - full_name='google.spanner.admin.instance.v1.InstanceAdmin.TestIamPermissions', - index=9, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, - output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002=\"8/v1/{resource=projects/*/instances/*}:testIamPermissions:\001*')), - ), -]) + options=None, + serialized_start=1982, + serialized_end=3620, + methods=[ + _descriptor.MethodDescriptor( + name="ListInstanceConfigs", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs", + index=0, + containing_service=None, + input_type=_LISTINSTANCECONFIGSREQUEST, + output_type=_LISTINSTANCECONFIGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002)\022'/v1/{parent=projects/*}/instanceConfigs"), + ), + ), + _descriptor.MethodDescriptor( + name="GetInstanceConfig", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig", + index=1, + containing_service=None, + input_type=_GETINSTANCECONFIGREQUEST, + output_type=_INSTANCECONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002)\022'/v1/{name=projects/*/instanceConfigs/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListInstances", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.ListInstances", + index=2, + containing_service=None, + input_type=_LISTINSTANCESREQUEST, + output_type=_LISTINSTANCESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002#\022!/v1/{parent=projects/*}/instances"), + ), + ), + _descriptor.MethodDescriptor( + name="GetInstance", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.GetInstance", + index=3, + containing_service=None, + input_type=_GETINSTANCEREQUEST, + output_type=_INSTANCE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002#\022!/v1/{name=projects/*/instances/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateInstance", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance", + index=4, + containing_service=None, + input_type=_CREATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002&"!/v1/{parent=projects/*}/instances:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateInstance", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance", + index=5, + containing_service=None, + input_type=_UPDATEINSTANCEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002/2*/v1/{instance.name=projects/*/instances/*}:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteInstance", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance", + index=6, + containing_service=None, + input_type=_DELETEINSTANCEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002#*!/v1/{name=projects/*/instances/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="SetIamPolicy", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.SetIamPolicy", + index=7, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetIamPolicy", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.GetIamPolicy", + index=8, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="TestIamPermissions", + full_name="google.spanner.admin.instance.v1.InstanceAdmin.TestIamPermissions", + index=9, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, + output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002="8/v1/{resource=projects/*/instances/*}:testIamPermissions:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_INSTANCEADMIN) -DESCRIPTOR.services_by_name['InstanceAdmin'] = _INSTANCEADMIN +DESCRIPTOR.services_by_name["InstanceAdmin"] = _INSTANCEADMIN # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2_grpc.py b/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2_grpc.py index 368e0abcf0175..b7276a9f9252d 100644 --- a/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2_grpc.py +++ b/spanner/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2_grpc.py @@ -1,15 +1,19 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.spanner_admin_instance_v1.proto import spanner_instance_admin_pb2 as google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2 +from google.cloud.spanner_admin_instance_v1.proto import ( + spanner_instance_admin_pb2 as google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class InstanceAdminStub(object): - """Cloud Spanner Instance Admin API + """Cloud Spanner Instance Admin API The Cloud Spanner Instance Admin API can be used to create, delete, modify and list instances. Instances are dedicated Cloud Spanner serving @@ -32,66 +36,66 @@ class InstanceAdminStub(object): databases in that instance, and their performance may suffer. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListInstanceConfigs = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/ListInstanceConfigs', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsResponse.FromString, + self.ListInstanceConfigs = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstanceConfigs", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsResponse.FromString, ) - self.GetInstanceConfig = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/GetInstanceConfig', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.InstanceConfig.FromString, + self.GetInstanceConfig = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/GetInstanceConfig", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.InstanceConfig.FromString, ) - self.ListInstances = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/ListInstances', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesResponse.FromString, + self.ListInstances = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstances", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesResponse.FromString, ) - self.GetInstance = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/GetInstance', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.Instance.FromString, + self.GetInstance = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/GetInstance", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.Instance.FromString, ) - self.CreateInstance = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/CreateInstance', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.CreateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.CreateInstance = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/CreateInstance", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.CreateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.UpdateInstance = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/UpdateInstance', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.UpdateInstanceRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.UpdateInstance = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/UpdateInstance", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.UpdateInstanceRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.DeleteInstance = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstance', - request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.DeleteInstanceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteInstance = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstance", + request_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.DeleteInstanceRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.SetIamPolicy = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/SetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.SetIamPolicy = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/SetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.GetIamPolicy = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/GetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.GetIamPolicy = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/GetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.TestIamPermissions = channel.unary_unary( - '/google.spanner.admin.instance.v1.InstanceAdmin/TestIamPermissions', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, + self.TestIamPermissions = channel.unary_unary( + "/google.spanner.admin.instance.v1.InstanceAdmin/TestIamPermissions", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, ) class InstanceAdminServicer(object): - """Cloud Spanner Instance Admin API + """Cloud Spanner Instance Admin API The Cloud Spanner Instance Admin API can be used to create, delete, modify and list instances. Instances are dedicated Cloud Spanner serving @@ -114,36 +118,36 @@ class InstanceAdminServicer(object): databases in that instance, and their performance may suffer. """ - def ListInstanceConfigs(self, request, context): - """Lists the supported instance configurations for a given project. + def ListInstanceConfigs(self, request, context): + """Lists the supported instance configurations for a given project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetInstanceConfig(self, request, context): - """Gets information about a particular instance configuration. + def GetInstanceConfig(self, request, context): + """Gets information about a particular instance configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListInstances(self, request, context): - """Lists all instances in the given project. + def ListInstances(self, request, context): + """Lists all instances in the given project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetInstance(self, request, context): - """Gets information about a particular instance. + def GetInstance(self, request, context): + """Gets information about a particular instance. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateInstance(self, request, context): - """Creates an instance and begins preparing it to begin serving. The + def CreateInstance(self, request, context): + """Creates an instance and begins preparing it to begin serving. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of preparing the new instance. The instance name is assigned by the caller. If the @@ -178,12 +182,12 @@ def CreateInstance(self, request, context): The [response][google.longrunning.Operation.response] field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateInstance(self, request, context): - """Updates an instance, and begins allocating or releasing resources + def UpdateInstance(self, request, context): + """Updates an instance, and begins allocating or releasing resources as requested. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of updating the instance. If the named instance does not @@ -224,12 +228,12 @@ def UpdateInstance(self, request, context): Authorization requires `spanner.instances.update` permission on resource [name][google.spanner.admin.instance.v1.Instance.name]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteInstance(self, request, context): - """Deletes an instance. + def DeleteInstance(self, request, context): + """Deletes an instance. Immediately upon completion of the request: @@ -241,98 +245,99 @@ def DeleteInstance(self, request, context): irrevocably disappear from the API. All data in the databases is permanently deleted. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SetIamPolicy(self, request, context): - """Sets the access control policy on an instance resource. Replaces any + def SetIamPolicy(self, request, context): + """Sets the access control policy on an instance resource. Replaces any existing policy. Authorization requires `spanner.instances.setIamPolicy` on [resource][google.iam.v1.SetIamPolicyRequest.resource]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetIamPolicy(self, request, context): - """Gets the access control policy for an instance resource. Returns an empty + def GetIamPolicy(self, request, context): + """Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set. Authorization requires `spanner.instances.getIamPolicy` on [resource][google.iam.v1.GetIamPolicyRequest.resource]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def TestIamPermissions(self, request, context): - """Returns permissions that the caller has on the specified instance resource. + def TestIamPermissions(self, request, context): + """Returns permissions that the caller has on the specified instance resource. Attempting this RPC on a non-existent Cloud Spanner instance resource will result in a NOT_FOUND error if the user has `spanner.instances.list` permission on the containing Google Cloud Project. Otherwise returns an empty set of permissions. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_InstanceAdminServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListInstanceConfigs': grpc.unary_unary_rpc_method_handler( - servicer.ListInstanceConfigs, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsResponse.SerializeToString, - ), - 'GetInstanceConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetInstanceConfig, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.InstanceConfig.SerializeToString, - ), - 'ListInstances': grpc.unary_unary_rpc_method_handler( - servicer.ListInstances, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesResponse.SerializeToString, - ), - 'GetInstance': grpc.unary_unary_rpc_method_handler( - servicer.GetInstance, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.Instance.SerializeToString, - ), - 'CreateInstance': grpc.unary_unary_rpc_method_handler( - servicer.CreateInstance, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.CreateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'UpdateInstance': grpc.unary_unary_rpc_method_handler( - servicer.UpdateInstance, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.UpdateInstanceRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'DeleteInstance': grpc.unary_unary_rpc_method_handler( - servicer.DeleteInstance, - request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.DeleteInstanceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'SetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.SetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'GetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'TestIamPermissions': grpc.unary_unary_rpc_method_handler( - servicer.TestIamPermissions, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.spanner.admin.instance.v1.InstanceAdmin', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListInstanceConfigs": grpc.unary_unary_rpc_method_handler( + servicer.ListInstanceConfigs, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstanceConfigsResponse.SerializeToString, + ), + "GetInstanceConfig": grpc.unary_unary_rpc_method_handler( + servicer.GetInstanceConfig, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.InstanceConfig.SerializeToString, + ), + "ListInstances": grpc.unary_unary_rpc_method_handler( + servicer.ListInstances, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.ListInstancesResponse.SerializeToString, + ), + "GetInstance": grpc.unary_unary_rpc_method_handler( + servicer.GetInstance, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.GetInstanceRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.Instance.SerializeToString, + ), + "CreateInstance": grpc.unary_unary_rpc_method_handler( + servicer.CreateInstance, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.CreateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "UpdateInstance": grpc.unary_unary_rpc_method_handler( + servicer.UpdateInstance, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.UpdateInstanceRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "DeleteInstance": grpc.unary_unary_rpc_method_handler( + servicer.DeleteInstance, + request_deserializer=google_dot_cloud_dot_spanner_dot_admin_dot_instance__v1_dot_proto_dot_spanner__instance__admin__pb2.DeleteInstanceRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "SetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.SetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "GetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "TestIamPermissions": grpc.unary_unary_rpc_method_handler( + servicer.TestIamPermissions, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.spanner.admin.instance.v1.InstanceAdmin", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/spanner/google/cloud/spanner_v1/proto/keys_pb2.py b/spanner/google/cloud/spanner_v1/proto/keys_pb2.py index 24068c49083f9..028197772d51b 100644 --- a/spanner/google/cloud/spanner_v1/proto/keys_pb2.py +++ b/spanner/google/cloud/spanner_v1/proto/keys_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/spanner_v1/proto/keys.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,145 +20,252 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner_v1/proto/keys.proto', - package='google.spanner.v1', - syntax='proto3', - serialized_pb=_b('\n(google/cloud/spanner_v1/proto/keys.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf4\x01\n\x08KeyRange\x12\x32\n\x0cstart_closed\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x12\x30\n\nstart_open\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x12\x30\n\nend_closed\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x01\x12.\n\x08\x65nd_open\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x01\x42\x10\n\x0estart_key_typeB\x0e\n\x0c\x65nd_key_type\"l\n\x06KeySet\x12(\n\x04keys\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x12+\n\x06ranges\x18\x02 \x03(\x0b\x32\x1b.google.spanner.v1.KeyRange\x12\x0b\n\x03\x61ll\x18\x03 \x01(\x08\x42\x92\x01\n\x15\x63om.google.spanner.v1B\tKeysProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) - - + name="google/cloud/spanner_v1/proto/keys.proto", + package="google.spanner.v1", + syntax="proto3", + serialized_pb=_b( + '\n(google/cloud/spanner_v1/proto/keys.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"\xf4\x01\n\x08KeyRange\x12\x32\n\x0cstart_closed\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x12\x30\n\nstart_open\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x12\x30\n\nend_closed\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x01\x12.\n\x08\x65nd_open\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x01\x42\x10\n\x0estart_key_typeB\x0e\n\x0c\x65nd_key_type"l\n\x06KeySet\x12(\n\x04keys\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x12+\n\x06ranges\x18\x02 \x03(\x0b\x32\x1b.google.spanner.v1.KeyRange\x12\x0b\n\x03\x61ll\x18\x03 \x01(\x08\x42\x92\x01\n\x15\x63om.google.spanner.v1B\tKeysProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + ], +) _KEYRANGE = _descriptor.Descriptor( - name='KeyRange', - full_name='google.spanner.v1.KeyRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_closed', full_name='google.spanner.v1.KeyRange.start_closed', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_open', full_name='google.spanner.v1.KeyRange.start_open', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_closed', full_name='google.spanner.v1.KeyRange.end_closed', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_open', full_name='google.spanner.v1.KeyRange.end_open', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='start_key_type', full_name='google.spanner.v1.KeyRange.start_key_type', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='end_key_type', full_name='google.spanner.v1.KeyRange.end_key_type', - index=1, containing_type=None, fields=[]), - ], - serialized_start=124, - serialized_end=368, + name="KeyRange", + full_name="google.spanner.v1.KeyRange", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_closed", + full_name="google.spanner.v1.KeyRange.start_closed", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_open", + full_name="google.spanner.v1.KeyRange.start_open", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_closed", + full_name="google.spanner.v1.KeyRange.end_closed", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_open", + full_name="google.spanner.v1.KeyRange.end_open", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="start_key_type", + full_name="google.spanner.v1.KeyRange.start_key_type", + index=0, + containing_type=None, + fields=[], + ), + _descriptor.OneofDescriptor( + name="end_key_type", + full_name="google.spanner.v1.KeyRange.end_key_type", + index=1, + containing_type=None, + fields=[], + ), + ], + serialized_start=124, + serialized_end=368, ) _KEYSET = _descriptor.Descriptor( - name='KeySet', - full_name='google.spanner.v1.KeySet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keys', full_name='google.spanner.v1.KeySet.keys', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ranges', full_name='google.spanner.v1.KeySet.ranges', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all', full_name='google.spanner.v1.KeySet.all', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=370, - serialized_end=478, + name="KeySet", + full_name="google.spanner.v1.KeySet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="keys", + full_name="google.spanner.v1.KeySet.keys", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ranges", + full_name="google.spanner.v1.KeySet.ranges", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="all", + full_name="google.spanner.v1.KeySet.all", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=370, + serialized_end=478, ) -_KEYRANGE.fields_by_name['start_closed'].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE -_KEYRANGE.fields_by_name['start_open'].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE -_KEYRANGE.fields_by_name['end_closed'].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE -_KEYRANGE.fields_by_name['end_open'].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE -_KEYRANGE.oneofs_by_name['start_key_type'].fields.append( - _KEYRANGE.fields_by_name['start_closed']) -_KEYRANGE.fields_by_name['start_closed'].containing_oneof = _KEYRANGE.oneofs_by_name['start_key_type'] -_KEYRANGE.oneofs_by_name['start_key_type'].fields.append( - _KEYRANGE.fields_by_name['start_open']) -_KEYRANGE.fields_by_name['start_open'].containing_oneof = _KEYRANGE.oneofs_by_name['start_key_type'] -_KEYRANGE.oneofs_by_name['end_key_type'].fields.append( - _KEYRANGE.fields_by_name['end_closed']) -_KEYRANGE.fields_by_name['end_closed'].containing_oneof = _KEYRANGE.oneofs_by_name['end_key_type'] -_KEYRANGE.oneofs_by_name['end_key_type'].fields.append( - _KEYRANGE.fields_by_name['end_open']) -_KEYRANGE.fields_by_name['end_open'].containing_oneof = _KEYRANGE.oneofs_by_name['end_key_type'] -_KEYSET.fields_by_name['keys'].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE -_KEYSET.fields_by_name['ranges'].message_type = _KEYRANGE -DESCRIPTOR.message_types_by_name['KeyRange'] = _KEYRANGE -DESCRIPTOR.message_types_by_name['KeySet'] = _KEYSET +_KEYRANGE.fields_by_name[ + "start_closed" +].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE +_KEYRANGE.fields_by_name[ + "start_open" +].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE +_KEYRANGE.fields_by_name[ + "end_closed" +].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE +_KEYRANGE.fields_by_name[ + "end_open" +].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE +_KEYRANGE.oneofs_by_name["start_key_type"].fields.append( + _KEYRANGE.fields_by_name["start_closed"] +) +_KEYRANGE.fields_by_name["start_closed"].containing_oneof = _KEYRANGE.oneofs_by_name[ + "start_key_type" +] +_KEYRANGE.oneofs_by_name["start_key_type"].fields.append( + _KEYRANGE.fields_by_name["start_open"] +) +_KEYRANGE.fields_by_name["start_open"].containing_oneof = _KEYRANGE.oneofs_by_name[ + "start_key_type" +] +_KEYRANGE.oneofs_by_name["end_key_type"].fields.append( + _KEYRANGE.fields_by_name["end_closed"] +) +_KEYRANGE.fields_by_name["end_closed"].containing_oneof = _KEYRANGE.oneofs_by_name[ + "end_key_type" +] +_KEYRANGE.oneofs_by_name["end_key_type"].fields.append( + _KEYRANGE.fields_by_name["end_open"] +) +_KEYRANGE.fields_by_name["end_open"].containing_oneof = _KEYRANGE.oneofs_by_name[ + "end_key_type" +] +_KEYSET.fields_by_name[ + "keys" +].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE +_KEYSET.fields_by_name["ranges"].message_type = _KEYRANGE +DESCRIPTOR.message_types_by_name["KeyRange"] = _KEYRANGE +DESCRIPTOR.message_types_by_name["KeySet"] = _KEYSET _sym_db.RegisterFileDescriptor(DESCRIPTOR) -KeyRange = _reflection.GeneratedProtocolMessageType('KeyRange', (_message.Message,), dict( - DESCRIPTOR = _KEYRANGE, - __module__ = 'google.cloud.spanner_v1.proto.keys_pb2' - , - __doc__ = """KeyRange represents a range of rows in a table or index. +KeyRange = _reflection.GeneratedProtocolMessageType( + "KeyRange", + (_message.Message,), + dict( + DESCRIPTOR=_KEYRANGE, + __module__="google.cloud.spanner_v1.proto.keys_pb2", + __doc__="""KeyRange represents a range of rows in a table or index. A range has a start key and an end key. These keys can be open or closed, indicating if the range includes rows with that key. @@ -289,15 +398,18 @@ If the end is open, then the range excludes rows whose first ``len(end_open)`` key columns exactly match ``end_open``. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.KeyRange) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.KeyRange) + ), +) _sym_db.RegisterMessage(KeyRange) -KeySet = _reflection.GeneratedProtocolMessageType('KeySet', (_message.Message,), dict( - DESCRIPTOR = _KEYSET, - __module__ = 'google.cloud.spanner_v1.proto.keys_pb2' - , - __doc__ = """``KeySet`` defines a collection of Cloud Spanner keys and/or key ranges. +KeySet = _reflection.GeneratedProtocolMessageType( + "KeySet", + (_message.Message,), + dict( + DESCRIPTOR=_KEYSET, + __module__="google.cloud.spanner_v1.proto.keys_pb2", + __doc__="""``KeySet`` defines a collection of Cloud Spanner keys and/or key ranges. All the keys are expected to be in the same table or index. The keys need not be sorted in any particular way. @@ -323,11 +435,17 @@ Note that any keys specified in ``keys`` or ``ranges`` are only yielded once. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.KeySet) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.KeySet) + ), +) _sym_db.RegisterMessage(KeySet) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.google.spanner.v1B\tKeysProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\025com.google.spanner.v1B\tKeysProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_v1/proto/keys_pb2_grpc.py b/spanner/google/cloud/spanner_v1/proto/keys_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/spanner/google/cloud/spanner_v1/proto/keys_pb2_grpc.py +++ b/spanner/google/cloud/spanner_v1/proto/keys_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/spanner/google/cloud/spanner_v1/proto/mutation_pb2.py b/spanner/google/cloud/spanner_v1/proto/mutation_pb2.py index a5dd27f52f4de..a31ab1bda4829 100644 --- a/spanner/google/cloud/spanner_v1/proto/mutation_pb2.py +++ b/spanner/google/cloud/spanner_v1/proto/mutation_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/spanner_v1/proto/mutation.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,196 +17,323 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from google.cloud.spanner_v1.proto import keys_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2 +from google.cloud.spanner_v1.proto import ( + keys_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner_v1/proto/mutation.proto', - package='google.spanner.v1', - syntax='proto3', - serialized_pb=_b('\n,google/cloud/spanner_v1/proto/mutation.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a(google/cloud/spanner_v1/proto/keys.proto\"\xc6\x03\n\x08Mutation\x12\x33\n\x06insert\x18\x01 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x33\n\x06update\x18\x02 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12=\n\x10insert_or_update\x18\x03 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x34\n\x07replace\x18\x04 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x34\n\x06\x64\x65lete\x18\x05 \x01(\x0b\x32\".google.spanner.v1.Mutation.DeleteH\x00\x1aS\n\x05Write\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x02 \x03(\t\x12*\n\x06values\x18\x03 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x1a\x43\n\x06\x44\x65lete\x12\r\n\x05table\x18\x01 \x01(\t\x12*\n\x07key_set\x18\x02 \x01(\x0b\x32\x19.google.spanner.v1.KeySetB\x0b\n\toperationB\x96\x01\n\x15\x63om.google.spanner.v1B\rMutationProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2.DESCRIPTOR,]) - - + name="google/cloud/spanner_v1/proto/mutation.proto", + package="google.spanner.v1", + syntax="proto3", + serialized_pb=_b( + '\n,google/cloud/spanner_v1/proto/mutation.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a(google/cloud/spanner_v1/proto/keys.proto"\xc6\x03\n\x08Mutation\x12\x33\n\x06insert\x18\x01 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x33\n\x06update\x18\x02 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12=\n\x10insert_or_update\x18\x03 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x34\n\x07replace\x18\x04 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x34\n\x06\x64\x65lete\x18\x05 \x01(\x0b\x32".google.spanner.v1.Mutation.DeleteH\x00\x1aS\n\x05Write\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x02 \x03(\t\x12*\n\x06values\x18\x03 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x1a\x43\n\x06\x44\x65lete\x12\r\n\x05table\x18\x01 \x01(\t\x12*\n\x07key_set\x18\x02 \x01(\x0b\x32\x19.google.spanner.v1.KeySetB\x0b\n\toperationB\x96\x01\n\x15\x63om.google.spanner.v1B\rMutationProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2.DESCRIPTOR, + ], +) _MUTATION_WRITE = _descriptor.Descriptor( - name='Write', - full_name='google.spanner.v1.Mutation.Write', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table', full_name='google.spanner.v1.Mutation.Write.table', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='columns', full_name='google.spanner.v1.Mutation.Write.columns', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='values', full_name='google.spanner.v1.Mutation.Write.values', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=459, - serialized_end=542, + name="Write", + full_name="google.spanner.v1.Mutation.Write", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table", + full_name="google.spanner.v1.Mutation.Write.table", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="columns", + full_name="google.spanner.v1.Mutation.Write.columns", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="values", + full_name="google.spanner.v1.Mutation.Write.values", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=459, + serialized_end=542, ) _MUTATION_DELETE = _descriptor.Descriptor( - name='Delete', - full_name='google.spanner.v1.Mutation.Delete', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='table', full_name='google.spanner.v1.Mutation.Delete.table', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key_set', full_name='google.spanner.v1.Mutation.Delete.key_set', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=544, - serialized_end=611, + name="Delete", + full_name="google.spanner.v1.Mutation.Delete", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="table", + full_name="google.spanner.v1.Mutation.Delete.table", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="key_set", + full_name="google.spanner.v1.Mutation.Delete.key_set", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=544, + serialized_end=611, ) _MUTATION = _descriptor.Descriptor( - name='Mutation', - full_name='google.spanner.v1.Mutation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='insert', full_name='google.spanner.v1.Mutation.insert', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.spanner.v1.Mutation.update', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='insert_or_update', full_name='google.spanner.v1.Mutation.insert_or_update', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='replace', full_name='google.spanner.v1.Mutation.replace', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete', full_name='google.spanner.v1.Mutation.delete', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_MUTATION_WRITE, _MUTATION_DELETE, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.spanner.v1.Mutation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=170, - serialized_end=624, + name="Mutation", + full_name="google.spanner.v1.Mutation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="insert", + full_name="google.spanner.v1.Mutation.insert", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update", + full_name="google.spanner.v1.Mutation.update", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="insert_or_update", + full_name="google.spanner.v1.Mutation.insert_or_update", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="replace", + full_name="google.spanner.v1.Mutation.replace", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete", + full_name="google.spanner.v1.Mutation.delete", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_MUTATION_WRITE, _MUTATION_DELETE], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="operation", + full_name="google.spanner.v1.Mutation.operation", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=170, + serialized_end=624, ) -_MUTATION_WRITE.fields_by_name['values'].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE +_MUTATION_WRITE.fields_by_name[ + "values" +].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE _MUTATION_WRITE.containing_type = _MUTATION -_MUTATION_DELETE.fields_by_name['key_set'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2._KEYSET +_MUTATION_DELETE.fields_by_name[ + "key_set" +].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2._KEYSET _MUTATION_DELETE.containing_type = _MUTATION -_MUTATION.fields_by_name['insert'].message_type = _MUTATION_WRITE -_MUTATION.fields_by_name['update'].message_type = _MUTATION_WRITE -_MUTATION.fields_by_name['insert_or_update'].message_type = _MUTATION_WRITE -_MUTATION.fields_by_name['replace'].message_type = _MUTATION_WRITE -_MUTATION.fields_by_name['delete'].message_type = _MUTATION_DELETE -_MUTATION.oneofs_by_name['operation'].fields.append( - _MUTATION.fields_by_name['insert']) -_MUTATION.fields_by_name['insert'].containing_oneof = _MUTATION.oneofs_by_name['operation'] -_MUTATION.oneofs_by_name['operation'].fields.append( - _MUTATION.fields_by_name['update']) -_MUTATION.fields_by_name['update'].containing_oneof = _MUTATION.oneofs_by_name['operation'] -_MUTATION.oneofs_by_name['operation'].fields.append( - _MUTATION.fields_by_name['insert_or_update']) -_MUTATION.fields_by_name['insert_or_update'].containing_oneof = _MUTATION.oneofs_by_name['operation'] -_MUTATION.oneofs_by_name['operation'].fields.append( - _MUTATION.fields_by_name['replace']) -_MUTATION.fields_by_name['replace'].containing_oneof = _MUTATION.oneofs_by_name['operation'] -_MUTATION.oneofs_by_name['operation'].fields.append( - _MUTATION.fields_by_name['delete']) -_MUTATION.fields_by_name['delete'].containing_oneof = _MUTATION.oneofs_by_name['operation'] -DESCRIPTOR.message_types_by_name['Mutation'] = _MUTATION +_MUTATION.fields_by_name["insert"].message_type = _MUTATION_WRITE +_MUTATION.fields_by_name["update"].message_type = _MUTATION_WRITE +_MUTATION.fields_by_name["insert_or_update"].message_type = _MUTATION_WRITE +_MUTATION.fields_by_name["replace"].message_type = _MUTATION_WRITE +_MUTATION.fields_by_name["delete"].message_type = _MUTATION_DELETE +_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["insert"]) +_MUTATION.fields_by_name["insert"].containing_oneof = _MUTATION.oneofs_by_name[ + "operation" +] +_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["update"]) +_MUTATION.fields_by_name["update"].containing_oneof = _MUTATION.oneofs_by_name[ + "operation" +] +_MUTATION.oneofs_by_name["operation"].fields.append( + _MUTATION.fields_by_name["insert_or_update"] +) +_MUTATION.fields_by_name[ + "insert_or_update" +].containing_oneof = _MUTATION.oneofs_by_name["operation"] +_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["replace"]) +_MUTATION.fields_by_name["replace"].containing_oneof = _MUTATION.oneofs_by_name[ + "operation" +] +_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["delete"]) +_MUTATION.fields_by_name["delete"].containing_oneof = _MUTATION.oneofs_by_name[ + "operation" +] +DESCRIPTOR.message_types_by_name["Mutation"] = _MUTATION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Mutation = _reflection.GeneratedProtocolMessageType('Mutation', (_message.Message,), dict( - - Write = _reflection.GeneratedProtocolMessageType('Write', (_message.Message,), dict( - DESCRIPTOR = _MUTATION_WRITE, - __module__ = 'google.cloud.spanner_v1.proto.mutation_pb2' - , - __doc__ = """Arguments to [insert][google.spanner.v1.Mutation.insert], +Mutation = _reflection.GeneratedProtocolMessageType( + "Mutation", + (_message.Message,), + dict( + Write=_reflection.GeneratedProtocolMessageType( + "Write", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATION_WRITE, + __module__="google.cloud.spanner_v1.proto.mutation_pb2", + __doc__="""Arguments to [insert][google.spanner.v1.Mutation.insert], [update][google.spanner.v1.Mutation.update], [insert\_or\_update][google.spanner.v1.Mutation.insert\_or\_update], and [replace][google.spanner.v1.Mutation.replace] operations. @@ -232,15 +361,16 @@ Individual values in each list are encoded as described [here][google.spanner.v1.TypeCode]. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation.Write) - )) - , - - Delete = _reflection.GeneratedProtocolMessageType('Delete', (_message.Message,), dict( - DESCRIPTOR = _MUTATION_DELETE, - __module__ = 'google.cloud.spanner_v1.proto.mutation_pb2' - , - __doc__ = """Arguments to [delete][google.spanner.v1.Mutation.delete] operations. + # @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation.Write) + ), + ), + Delete=_reflection.GeneratedProtocolMessageType( + "Delete", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATION_DELETE, + __module__="google.cloud.spanner_v1.proto.mutation_pb2", + __doc__="""Arguments to [delete][google.spanner.v1.Mutation.delete] operations. Attributes: @@ -252,13 +382,12 @@ Delete is idempotent. The transaction will succeed even if some or all rows do not exist. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation.Delete) - )) - , - DESCRIPTOR = _MUTATION, - __module__ = 'google.cloud.spanner_v1.proto.mutation_pb2' - , - __doc__ = """A modification to one or more Cloud Spanner rows. Mutations can be + # @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation.Delete) + ), + ), + DESCRIPTOR=_MUTATION, + __module__="google.cloud.spanner_v1.proto.mutation_pb2", + __doc__="""A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a [Commit][google.spanner.v1.Spanner.Commit] call. @@ -287,13 +416,19 @@ Delete rows from a table. Succeeds whether or not the named rows were present. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation) + ), +) _sym_db.RegisterMessage(Mutation) _sym_db.RegisterMessage(Mutation.Write) _sym_db.RegisterMessage(Mutation.Delete) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.google.spanner.v1B\rMutationProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\025com.google.spanner.v1B\rMutationProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_v1/proto/mutation_pb2_grpc.py b/spanner/google/cloud/spanner_v1/proto/mutation_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/spanner/google/cloud/spanner_v1/proto/mutation_pb2_grpc.py +++ b/spanner/google/cloud/spanner_v1/proto/mutation_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/spanner/google/cloud/spanner_v1/proto/query_plan_pb2.py b/spanner/google/cloud/spanner_v1/proto/query_plan_pb2.py index 0053796baea70..3496692b81187 100644 --- a/spanner/google/cloud/spanner_v1/proto/query_plan_pb2.py +++ b/spanner/google/cloud/spanner_v1/proto/query_plan_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/spanner_v1/proto/query_plan.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,286 +20,450 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner_v1/proto/query_plan.proto', - package='google.spanner.v1', - syntax='proto3', - serialized_pb=_b('\n.google/cloud/spanner_v1/proto/query_plan.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf8\x04\n\x08PlanNode\x12\r\n\x05index\x18\x01 \x01(\x05\x12.\n\x04kind\x18\x02 \x01(\x0e\x32 .google.spanner.v1.PlanNode.Kind\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12:\n\x0b\x63hild_links\x18\x04 \x03(\x0b\x32%.google.spanner.v1.PlanNode.ChildLink\x12M\n\x14short_representation\x18\x05 \x01(\x0b\x32/.google.spanner.v1.PlanNode.ShortRepresentation\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x30\n\x0f\x65xecution_stats\x18\x07 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a@\n\tChildLink\x12\x13\n\x0b\x63hild_index\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x10\n\x08variable\x18\x03 \x01(\t\x1a\xb2\x01\n\x13ShortRepresentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12S\n\nsubqueries\x18\x02 \x03(\x0b\x32?.google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry\x1a\x31\n\x0fSubqueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"8\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRELATIONAL\x10\x01\x12\n\n\x06SCALAR\x10\x02\"<\n\tQueryPlan\x12/\n\nplan_nodes\x18\x01 \x03(\x0b\x32\x1b.google.spanner.v1.PlanNodeB\x97\x01\n\x15\x63om.google.spanner.v1B\x0eQueryPlanProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) - + name="google/cloud/spanner_v1/proto/query_plan.proto", + package="google.spanner.v1", + syntax="proto3", + serialized_pb=_b( + '\n.google/cloud/spanner_v1/proto/query_plan.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"\xf8\x04\n\x08PlanNode\x12\r\n\x05index\x18\x01 \x01(\x05\x12.\n\x04kind\x18\x02 \x01(\x0e\x32 .google.spanner.v1.PlanNode.Kind\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12:\n\x0b\x63hild_links\x18\x04 \x03(\x0b\x32%.google.spanner.v1.PlanNode.ChildLink\x12M\n\x14short_representation\x18\x05 \x01(\x0b\x32/.google.spanner.v1.PlanNode.ShortRepresentation\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x30\n\x0f\x65xecution_stats\x18\x07 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a@\n\tChildLink\x12\x13\n\x0b\x63hild_index\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x10\n\x08variable\x18\x03 \x01(\t\x1a\xb2\x01\n\x13ShortRepresentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12S\n\nsubqueries\x18\x02 \x03(\x0b\x32?.google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry\x1a\x31\n\x0fSubqueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01"8\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRELATIONAL\x10\x01\x12\n\n\x06SCALAR\x10\x02"<\n\tQueryPlan\x12/\n\nplan_nodes\x18\x01 \x03(\x0b\x32\x1b.google.spanner.v1.PlanNodeB\x97\x01\n\x15\x63om.google.spanner.v1B\x0eQueryPlanProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + ], +) _PLANNODE_KIND = _descriptor.EnumDescriptor( - name='Kind', - full_name='google.spanner.v1.PlanNode.Kind', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='KIND_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RELATIONAL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SCALAR', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=706, - serialized_end=762, + name="Kind", + full_name="google.spanner.v1.PlanNode.Kind", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="KIND_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RELATIONAL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SCALAR", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=706, + serialized_end=762, ) _sym_db.RegisterEnumDescriptor(_PLANNODE_KIND) _PLANNODE_CHILDLINK = _descriptor.Descriptor( - name='ChildLink', - full_name='google.spanner.v1.PlanNode.ChildLink', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='child_index', full_name='google.spanner.v1.PlanNode.ChildLink.child_index', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.spanner.v1.PlanNode.ChildLink.type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='variable', full_name='google.spanner.v1.PlanNode.ChildLink.variable', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=459, - serialized_end=523, + name="ChildLink", + full_name="google.spanner.v1.PlanNode.ChildLink", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="child_index", + full_name="google.spanner.v1.PlanNode.ChildLink.child_index", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.spanner.v1.PlanNode.ChildLink.type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="variable", + full_name="google.spanner.v1.PlanNode.ChildLink.variable", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=459, + serialized_end=523, ) _PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY = _descriptor.Descriptor( - name='SubqueriesEntry', - full_name='google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry.value', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=655, - serialized_end=704, + name="SubqueriesEntry", + full_name="google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry.value", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=655, + serialized_end=704, ) _PLANNODE_SHORTREPRESENTATION = _descriptor.Descriptor( - name='ShortRepresentation', - full_name='google.spanner.v1.PlanNode.ShortRepresentation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='description', full_name='google.spanner.v1.PlanNode.ShortRepresentation.description', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subqueries', full_name='google.spanner.v1.PlanNode.ShortRepresentation.subqueries', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=526, - serialized_end=704, + name="ShortRepresentation", + full_name="google.spanner.v1.PlanNode.ShortRepresentation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="description", + full_name="google.spanner.v1.PlanNode.ShortRepresentation.description", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="subqueries", + full_name="google.spanner.v1.PlanNode.ShortRepresentation.subqueries", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=526, + serialized_end=704, ) _PLANNODE = _descriptor.Descriptor( - name='PlanNode', - full_name='google.spanner.v1.PlanNode', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='index', full_name='google.spanner.v1.PlanNode.index', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='kind', full_name='google.spanner.v1.PlanNode.kind', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.spanner.v1.PlanNode.display_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='child_links', full_name='google.spanner.v1.PlanNode.child_links', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='short_representation', full_name='google.spanner.v1.PlanNode.short_representation', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.spanner.v1.PlanNode.metadata', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='execution_stats', full_name='google.spanner.v1.PlanNode.execution_stats', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PLANNODE_CHILDLINK, _PLANNODE_SHORTREPRESENTATION, ], - enum_types=[ - _PLANNODE_KIND, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=130, - serialized_end=762, + name="PlanNode", + full_name="google.spanner.v1.PlanNode", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="index", + full_name="google.spanner.v1.PlanNode.index", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="kind", + full_name="google.spanner.v1.PlanNode.kind", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.spanner.v1.PlanNode.display_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="child_links", + full_name="google.spanner.v1.PlanNode.child_links", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="short_representation", + full_name="google.spanner.v1.PlanNode.short_representation", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.spanner.v1.PlanNode.metadata", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="execution_stats", + full_name="google.spanner.v1.PlanNode.execution_stats", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PLANNODE_CHILDLINK, _PLANNODE_SHORTREPRESENTATION], + enum_types=[_PLANNODE_KIND], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=130, + serialized_end=762, ) _QUERYPLAN = _descriptor.Descriptor( - name='QueryPlan', - full_name='google.spanner.v1.QueryPlan', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='plan_nodes', full_name='google.spanner.v1.QueryPlan.plan_nodes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=764, - serialized_end=824, + name="QueryPlan", + full_name="google.spanner.v1.QueryPlan", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="plan_nodes", + full_name="google.spanner.v1.QueryPlan.plan_nodes", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=764, + serialized_end=824, ) _PLANNODE_CHILDLINK.containing_type = _PLANNODE -_PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY.containing_type = _PLANNODE_SHORTREPRESENTATION -_PLANNODE_SHORTREPRESENTATION.fields_by_name['subqueries'].message_type = _PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY +_PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY.containing_type = ( + _PLANNODE_SHORTREPRESENTATION +) +_PLANNODE_SHORTREPRESENTATION.fields_by_name[ + "subqueries" +].message_type = _PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY _PLANNODE_SHORTREPRESENTATION.containing_type = _PLANNODE -_PLANNODE.fields_by_name['kind'].enum_type = _PLANNODE_KIND -_PLANNODE.fields_by_name['child_links'].message_type = _PLANNODE_CHILDLINK -_PLANNODE.fields_by_name['short_representation'].message_type = _PLANNODE_SHORTREPRESENTATION -_PLANNODE.fields_by_name['metadata'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_PLANNODE.fields_by_name['execution_stats'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_PLANNODE.fields_by_name["kind"].enum_type = _PLANNODE_KIND +_PLANNODE.fields_by_name["child_links"].message_type = _PLANNODE_CHILDLINK +_PLANNODE.fields_by_name[ + "short_representation" +].message_type = _PLANNODE_SHORTREPRESENTATION +_PLANNODE.fields_by_name[ + "metadata" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_PLANNODE.fields_by_name[ + "execution_stats" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT _PLANNODE_KIND.containing_type = _PLANNODE -_QUERYPLAN.fields_by_name['plan_nodes'].message_type = _PLANNODE -DESCRIPTOR.message_types_by_name['PlanNode'] = _PLANNODE -DESCRIPTOR.message_types_by_name['QueryPlan'] = _QUERYPLAN +_QUERYPLAN.fields_by_name["plan_nodes"].message_type = _PLANNODE +DESCRIPTOR.message_types_by_name["PlanNode"] = _PLANNODE +DESCRIPTOR.message_types_by_name["QueryPlan"] = _QUERYPLAN _sym_db.RegisterFileDescriptor(DESCRIPTOR) -PlanNode = _reflection.GeneratedProtocolMessageType('PlanNode', (_message.Message,), dict( - - ChildLink = _reflection.GeneratedProtocolMessageType('ChildLink', (_message.Message,), dict( - DESCRIPTOR = _PLANNODE_CHILDLINK, - __module__ = 'google.cloud.spanner_v1.proto.query_plan_pb2' - , - __doc__ = """Metadata associated with a parent-child relationship appearing in a +PlanNode = _reflection.GeneratedProtocolMessageType( + "PlanNode", + (_message.Message,), + dict( + ChildLink=_reflection.GeneratedProtocolMessageType( + "ChildLink", + (_message.Message,), + dict( + DESCRIPTOR=_PLANNODE_CHILDLINK, + __module__="google.cloud.spanner_v1.proto.query_plan_pb2", + __doc__="""Metadata associated with a parent-child relationship appearing in a [PlanNode][google.spanner.v1.PlanNode]. @@ -320,22 +486,25 @@ operator. The corresponding ``variable`` fields will be set to the variable names assigned to the columns. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode.ChildLink) - )) - , - - ShortRepresentation = _reflection.GeneratedProtocolMessageType('ShortRepresentation', (_message.Message,), dict( - - SubqueriesEntry = _reflection.GeneratedProtocolMessageType('SubqueriesEntry', (_message.Message,), dict( - DESCRIPTOR = _PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY, - __module__ = 'google.cloud.spanner_v1.proto.query_plan_pb2' - # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry) - )) - , - DESCRIPTOR = _PLANNODE_SHORTREPRESENTATION, - __module__ = 'google.cloud.spanner_v1.proto.query_plan_pb2' - , - __doc__ = """Condensed representation of a node and its subtree. Only present for + # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode.ChildLink) + ), + ), + ShortRepresentation=_reflection.GeneratedProtocolMessageType( + "ShortRepresentation", + (_message.Message,), + dict( + SubqueriesEntry=_reflection.GeneratedProtocolMessageType( + "SubqueriesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY, + __module__="google.cloud.spanner_v1.proto.query_plan_pb2" + # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry) + ), + ), + DESCRIPTOR=_PLANNODE_SHORTREPRESENTATION, + __module__="google.cloud.spanner_v1.proto.query_plan_pb2", + __doc__="""Condensed representation of a node and its subtree. Only present for ``SCALAR`` [PlanNode(s)][google.spanner.v1.PlanNode]. @@ -350,13 +519,12 @@ subtree rooted at this node. The referenced ``SCALAR`` subquery may not necessarily be a direct child of this node. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode.ShortRepresentation) - )) - , - DESCRIPTOR = _PLANNODE, - __module__ = 'google.cloud.spanner_v1.proto.query_plan_pb2' - , - __doc__ = """Node information for nodes appearing in a + # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode.ShortRepresentation) + ), + ), + DESCRIPTOR=_PLANNODE, + __module__="google.cloud.spanner_v1.proto.query_plan_pb2", + __doc__="""Node information for nodes appearing in a [QueryPlan.plan\_nodes][google.spanner.v1.QueryPlan.plan\_nodes]. @@ -391,18 +559,21 @@ returned as a result of a profile query. For example, number of executions, number of rows/time per execution etc. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.PlanNode) + ), +) _sym_db.RegisterMessage(PlanNode) _sym_db.RegisterMessage(PlanNode.ChildLink) _sym_db.RegisterMessage(PlanNode.ShortRepresentation) _sym_db.RegisterMessage(PlanNode.ShortRepresentation.SubqueriesEntry) -QueryPlan = _reflection.GeneratedProtocolMessageType('QueryPlan', (_message.Message,), dict( - DESCRIPTOR = _QUERYPLAN, - __module__ = 'google.cloud.spanner_v1.proto.query_plan_pb2' - , - __doc__ = """Contains an ordered list of nodes appearing in the query plan. +QueryPlan = _reflection.GeneratedProtocolMessageType( + "QueryPlan", + (_message.Message,), + dict( + DESCRIPTOR=_QUERYPLAN, + __module__="google.cloud.spanner_v1.proto.query_plan_pb2", + __doc__="""Contains an ordered list of nodes appearing in the query plan. Attributes: @@ -412,13 +583,21 @@ [PlanNode][google.spanner.v1.PlanNode]'s ``id`` corresponds to its index in ``plan_nodes``. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.QueryPlan) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.QueryPlan) + ), +) _sym_db.RegisterMessage(QueryPlan) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.google.spanner.v1B\016QueryPlanProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\025com.google.spanner.v1B\016QueryPlanProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1" + ), +) _PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY.has_options = True -_PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PLANNODE_SHORTREPRESENTATION_SUBQUERIESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_v1/proto/query_plan_pb2_grpc.py b/spanner/google/cloud/spanner_v1/proto/query_plan_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/spanner/google/cloud/spanner_v1/proto/query_plan_pb2_grpc.py +++ b/spanner/google/cloud/spanner_v1/proto/query_plan_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/spanner/google/cloud/spanner_v1/proto/result_set_pb2.py b/spanner/google/cloud/spanner_v1/proto/result_set_pb2.py index c06d54734b4d9..ddf1057c26b34 100644 --- a/spanner/google/cloud/spanner_v1/proto/result_set_pb2.py +++ b/spanner/google/cloud/spanner_v1/proto/result_set_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/spanner_v1/proto/result_set.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,245 +17,428 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from google.cloud.spanner_v1.proto import query_plan_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_query__plan__pb2 -from google.cloud.spanner_v1.proto import transaction_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2 -from google.cloud.spanner_v1.proto import type_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2 +from google.cloud.spanner_v1.proto import ( + query_plan_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_query__plan__pb2, +) +from google.cloud.spanner_v1.proto import ( + transaction_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2, +) +from google.cloud.spanner_v1.proto import ( + type_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner_v1/proto/result_set.proto', - package='google.spanner.v1', - syntax='proto3', - serialized_pb=_b('\n.google/cloud/spanner_v1/proto/result_set.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a.google/cloud/spanner_v1/proto/query_plan.proto\x1a/google/cloud/spanner_v1/proto/transaction.proto\x1a(google/cloud/spanner_v1/proto/type.proto\"\x9f\x01\n\tResultSet\x12\x36\n\x08metadata\x18\x01 \x01(\x0b\x32$.google.spanner.v1.ResultSetMetadata\x12(\n\x04rows\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x12\x30\n\x05stats\x18\x03 \x01(\x0b\x32!.google.spanner.v1.ResultSetStats\"\xd1\x01\n\x10PartialResultSet\x12\x36\n\x08metadata\x18\x01 \x01(\x0b\x32$.google.spanner.v1.ResultSetMetadata\x12&\n\x06values\x18\x02 \x03(\x0b\x32\x16.google.protobuf.Value\x12\x15\n\rchunked_value\x18\x03 \x01(\x08\x12\x14\n\x0cresume_token\x18\x04 \x01(\x0c\x12\x30\n\x05stats\x18\x05 \x01(\x0b\x32!.google.spanner.v1.ResultSetStats\"y\n\x11ResultSetMetadata\x12/\n\x08row_type\x18\x01 \x01(\x0b\x32\x1d.google.spanner.v1.StructType\x12\x33\n\x0btransaction\x18\x02 \x01(\x0b\x32\x1e.google.spanner.v1.Transaction\"\xb9\x01\n\x0eResultSetStats\x12\x30\n\nquery_plan\x18\x01 \x01(\x0b\x32\x1c.google.spanner.v1.QueryPlan\x12,\n\x0bquery_stats\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x19\n\x0frow_count_exact\x18\x03 \x01(\x03H\x00\x12\x1f\n\x15row_count_lower_bound\x18\x04 \x01(\x03H\x00\x42\x0b\n\trow_countB\x9a\x01\n\x15\x63om.google.spanner.v1B\x0eResultSetProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xf8\x01\x01\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_query__plan__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2.DESCRIPTOR,]) - - + name="google/cloud/spanner_v1/proto/result_set.proto", + package="google.spanner.v1", + syntax="proto3", + serialized_pb=_b( + '\n.google/cloud/spanner_v1/proto/result_set.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a.google/cloud/spanner_v1/proto/query_plan.proto\x1a/google/cloud/spanner_v1/proto/transaction.proto\x1a(google/cloud/spanner_v1/proto/type.proto"\x9f\x01\n\tResultSet\x12\x36\n\x08metadata\x18\x01 \x01(\x0b\x32$.google.spanner.v1.ResultSetMetadata\x12(\n\x04rows\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x12\x30\n\x05stats\x18\x03 \x01(\x0b\x32!.google.spanner.v1.ResultSetStats"\xd1\x01\n\x10PartialResultSet\x12\x36\n\x08metadata\x18\x01 \x01(\x0b\x32$.google.spanner.v1.ResultSetMetadata\x12&\n\x06values\x18\x02 \x03(\x0b\x32\x16.google.protobuf.Value\x12\x15\n\rchunked_value\x18\x03 \x01(\x08\x12\x14\n\x0cresume_token\x18\x04 \x01(\x0c\x12\x30\n\x05stats\x18\x05 \x01(\x0b\x32!.google.spanner.v1.ResultSetStats"y\n\x11ResultSetMetadata\x12/\n\x08row_type\x18\x01 \x01(\x0b\x32\x1d.google.spanner.v1.StructType\x12\x33\n\x0btransaction\x18\x02 \x01(\x0b\x32\x1e.google.spanner.v1.Transaction"\xb9\x01\n\x0eResultSetStats\x12\x30\n\nquery_plan\x18\x01 \x01(\x0b\x32\x1c.google.spanner.v1.QueryPlan\x12,\n\x0bquery_stats\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x19\n\x0frow_count_exact\x18\x03 \x01(\x03H\x00\x12\x1f\n\x15row_count_lower_bound\x18\x04 \x01(\x03H\x00\x42\x0b\n\trow_countB\x9a\x01\n\x15\x63om.google.spanner.v1B\x0eResultSetProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xf8\x01\x01\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_query__plan__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2.DESCRIPTOR, + ], +) _RESULTSET = _descriptor.Descriptor( - name='ResultSet', - full_name='google.spanner.v1.ResultSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metadata', full_name='google.spanner.v1.ResultSet.metadata', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rows', full_name='google.spanner.v1.ResultSet.rows', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stats', full_name='google.spanner.v1.ResultSet.stats', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=269, - serialized_end=428, + name="ResultSet", + full_name="google.spanner.v1.ResultSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.spanner.v1.ResultSet.metadata", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rows", + full_name="google.spanner.v1.ResultSet.rows", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stats", + full_name="google.spanner.v1.ResultSet.stats", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=269, + serialized_end=428, ) _PARTIALRESULTSET = _descriptor.Descriptor( - name='PartialResultSet', - full_name='google.spanner.v1.PartialResultSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metadata', full_name='google.spanner.v1.PartialResultSet.metadata', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='values', full_name='google.spanner.v1.PartialResultSet.values', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='chunked_value', full_name='google.spanner.v1.PartialResultSet.chunked_value', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resume_token', full_name='google.spanner.v1.PartialResultSet.resume_token', index=3, - number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stats', full_name='google.spanner.v1.PartialResultSet.stats', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=431, - serialized_end=640, + name="PartialResultSet", + full_name="google.spanner.v1.PartialResultSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.spanner.v1.PartialResultSet.metadata", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="values", + full_name="google.spanner.v1.PartialResultSet.values", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="chunked_value", + full_name="google.spanner.v1.PartialResultSet.chunked_value", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resume_token", + full_name="google.spanner.v1.PartialResultSet.resume_token", + index=3, + number=4, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stats", + full_name="google.spanner.v1.PartialResultSet.stats", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=431, + serialized_end=640, ) _RESULTSETMETADATA = _descriptor.Descriptor( - name='ResultSetMetadata', - full_name='google.spanner.v1.ResultSetMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='row_type', full_name='google.spanner.v1.ResultSetMetadata.row_type', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction', full_name='google.spanner.v1.ResultSetMetadata.transaction', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=642, - serialized_end=763, + name="ResultSetMetadata", + full_name="google.spanner.v1.ResultSetMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="row_type", + full_name="google.spanner.v1.ResultSetMetadata.row_type", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction", + full_name="google.spanner.v1.ResultSetMetadata.transaction", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=642, + serialized_end=763, ) _RESULTSETSTATS = _descriptor.Descriptor( - name='ResultSetStats', - full_name='google.spanner.v1.ResultSetStats', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query_plan', full_name='google.spanner.v1.ResultSetStats.query_plan', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_stats', full_name='google.spanner.v1.ResultSetStats.query_stats', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_count_exact', full_name='google.spanner.v1.ResultSetStats.row_count_exact', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='row_count_lower_bound', full_name='google.spanner.v1.ResultSetStats.row_count_lower_bound', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='row_count', full_name='google.spanner.v1.ResultSetStats.row_count', - index=0, containing_type=None, fields=[]), - ], - serialized_start=766, - serialized_end=951, + name="ResultSetStats", + full_name="google.spanner.v1.ResultSetStats", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="query_plan", + full_name="google.spanner.v1.ResultSetStats.query_plan", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_stats", + full_name="google.spanner.v1.ResultSetStats.query_stats", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_count_exact", + full_name="google.spanner.v1.ResultSetStats.row_count_exact", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="row_count_lower_bound", + full_name="google.spanner.v1.ResultSetStats.row_count_lower_bound", + index=3, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="row_count", + full_name="google.spanner.v1.ResultSetStats.row_count", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=766, + serialized_end=951, ) -_RESULTSET.fields_by_name['metadata'].message_type = _RESULTSETMETADATA -_RESULTSET.fields_by_name['rows'].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE -_RESULTSET.fields_by_name['stats'].message_type = _RESULTSETSTATS -_PARTIALRESULTSET.fields_by_name['metadata'].message_type = _RESULTSETMETADATA -_PARTIALRESULTSET.fields_by_name['values'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE -_PARTIALRESULTSET.fields_by_name['stats'].message_type = _RESULTSETSTATS -_RESULTSETMETADATA.fields_by_name['row_type'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2._STRUCTTYPE -_RESULTSETMETADATA.fields_by_name['transaction'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTION -_RESULTSETSTATS.fields_by_name['query_plan'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_query__plan__pb2._QUERYPLAN -_RESULTSETSTATS.fields_by_name['query_stats'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_RESULTSETSTATS.oneofs_by_name['row_count'].fields.append( - _RESULTSETSTATS.fields_by_name['row_count_exact']) -_RESULTSETSTATS.fields_by_name['row_count_exact'].containing_oneof = _RESULTSETSTATS.oneofs_by_name['row_count'] -_RESULTSETSTATS.oneofs_by_name['row_count'].fields.append( - _RESULTSETSTATS.fields_by_name['row_count_lower_bound']) -_RESULTSETSTATS.fields_by_name['row_count_lower_bound'].containing_oneof = _RESULTSETSTATS.oneofs_by_name['row_count'] -DESCRIPTOR.message_types_by_name['ResultSet'] = _RESULTSET -DESCRIPTOR.message_types_by_name['PartialResultSet'] = _PARTIALRESULTSET -DESCRIPTOR.message_types_by_name['ResultSetMetadata'] = _RESULTSETMETADATA -DESCRIPTOR.message_types_by_name['ResultSetStats'] = _RESULTSETSTATS +_RESULTSET.fields_by_name["metadata"].message_type = _RESULTSETMETADATA +_RESULTSET.fields_by_name[ + "rows" +].message_type = google_dot_protobuf_dot_struct__pb2._LISTVALUE +_RESULTSET.fields_by_name["stats"].message_type = _RESULTSETSTATS +_PARTIALRESULTSET.fields_by_name["metadata"].message_type = _RESULTSETMETADATA +_PARTIALRESULTSET.fields_by_name[ + "values" +].message_type = google_dot_protobuf_dot_struct__pb2._VALUE +_PARTIALRESULTSET.fields_by_name["stats"].message_type = _RESULTSETSTATS +_RESULTSETMETADATA.fields_by_name[ + "row_type" +].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2._STRUCTTYPE +_RESULTSETMETADATA.fields_by_name[ + "transaction" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTION +) +_RESULTSETSTATS.fields_by_name[ + "query_plan" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_query__plan__pb2._QUERYPLAN +) +_RESULTSETSTATS.fields_by_name[ + "query_stats" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_RESULTSETSTATS.oneofs_by_name["row_count"].fields.append( + _RESULTSETSTATS.fields_by_name["row_count_exact"] +) +_RESULTSETSTATS.fields_by_name[ + "row_count_exact" +].containing_oneof = _RESULTSETSTATS.oneofs_by_name["row_count"] +_RESULTSETSTATS.oneofs_by_name["row_count"].fields.append( + _RESULTSETSTATS.fields_by_name["row_count_lower_bound"] +) +_RESULTSETSTATS.fields_by_name[ + "row_count_lower_bound" +].containing_oneof = _RESULTSETSTATS.oneofs_by_name["row_count"] +DESCRIPTOR.message_types_by_name["ResultSet"] = _RESULTSET +DESCRIPTOR.message_types_by_name["PartialResultSet"] = _PARTIALRESULTSET +DESCRIPTOR.message_types_by_name["ResultSetMetadata"] = _RESULTSETMETADATA +DESCRIPTOR.message_types_by_name["ResultSetStats"] = _RESULTSETSTATS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ResultSet = _reflection.GeneratedProtocolMessageType('ResultSet', (_message.Message,), dict( - DESCRIPTOR = _RESULTSET, - __module__ = 'google.cloud.spanner_v1.proto.result_set_pb2' - , - __doc__ = """Results from [Read][google.spanner.v1.Spanner.Read] or +ResultSet = _reflection.GeneratedProtocolMessageType( + "ResultSet", + (_message.Message,), + dict( + DESCRIPTOR=_RESULTSET, + __module__="google.cloud.spanner_v1.proto.result_set_pb2", + __doc__="""Results from [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. @@ -279,15 +464,18 @@ may or may not be populated, based on the [ExecuteSqlRequest.q uery\_mode][google.spanner.v1.ExecuteSqlRequest.query\_mode]. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSet) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSet) + ), +) _sym_db.RegisterMessage(ResultSet) -PartialResultSet = _reflection.GeneratedProtocolMessageType('PartialResultSet', (_message.Message,), dict( - DESCRIPTOR = _PARTIALRESULTSET, - __module__ = 'google.cloud.spanner_v1.proto.result_set_pb2' - , - __doc__ = """Partial results from a streaming read or SQL query. Streaming reads and +PartialResultSet = _reflection.GeneratedProtocolMessageType( + "PartialResultSet", + (_message.Message,), + dict( + DESCRIPTOR=_PARTIALRESULTSET, + __module__="google.cloud.spanner_v1.proto.result_set_pb2", + __doc__="""Partial results from a streaming read or SQL query. Streaming reads and SQL queries better tolerate large result sets, large rows, and large values, but are a little trickier to consume. @@ -362,15 +550,18 @@ last response in the stream. This field will also be present in the last response for DML statements. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PartialResultSet) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.PartialResultSet) + ), +) _sym_db.RegisterMessage(PartialResultSet) -ResultSetMetadata = _reflection.GeneratedProtocolMessageType('ResultSetMetadata', (_message.Message,), dict( - DESCRIPTOR = _RESULTSETMETADATA, - __module__ = 'google.cloud.spanner_v1.proto.result_set_pb2' - , - __doc__ = """Metadata about a [ResultSet][google.spanner.v1.ResultSet] or +ResultSetMetadata = _reflection.GeneratedProtocolMessageType( + "ResultSetMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_RESULTSETMETADATA, + __module__="google.cloud.spanner_v1.proto.result_set_pb2", + __doc__="""Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet]. @@ -386,15 +577,18 @@ If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSetMetadata) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSetMetadata) + ), +) _sym_db.RegisterMessage(ResultSetMetadata) -ResultSetStats = _reflection.GeneratedProtocolMessageType('ResultSetStats', (_message.Message,), dict( - DESCRIPTOR = _RESULTSETSTATS, - __module__ = 'google.cloud.spanner_v1.proto.result_set_pb2' - , - __doc__ = """Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] +ResultSetStats = _reflection.GeneratedProtocolMessageType( + "ResultSetStats", + (_message.Message,), + dict( + DESCRIPTOR=_RESULTSETSTATS, + __module__="google.cloud.spanner_v1.proto.result_set_pb2", + __doc__="""Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet]. @@ -417,11 +611,17 @@ Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSetStats) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSetStats) + ), +) _sym_db.RegisterMessage(ResultSetStats) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.google.spanner.v1B\016ResultSetProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\370\001\001\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\025com.google.spanner.v1B\016ResultSetProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\370\001\001\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_v1/proto/result_set_pb2_grpc.py b/spanner/google/cloud/spanner_v1/proto/result_set_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/spanner/google/cloud/spanner_v1/proto/result_set_pb2_grpc.py +++ b/spanner/google/cloud/spanner_v1/proto/result_set_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/spanner/google/cloud/spanner_v1/proto/spanner_pb2.py b/spanner/google/cloud/spanner_v1/proto/spanner_pb2.py index 19b5a70ffca5d..d189bd21e6546 100644 --- a/spanner/google/cloud/spanner_v1/proto/spanner_pb2.py +++ b/spanner/google/cloud/spanner_v1/proto/spanner_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/spanner_v1/proto/spanner.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,1045 +19,1786 @@ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.cloud.spanner_v1.proto import keys_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2 -from google.cloud.spanner_v1.proto import mutation_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_mutation__pb2 -from google.cloud.spanner_v1.proto import result_set_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2 -from google.cloud.spanner_v1.proto import transaction_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2 -from google.cloud.spanner_v1.proto import type_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2 +from google.cloud.spanner_v1.proto import ( + keys_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2, +) +from google.cloud.spanner_v1.proto import ( + mutation_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_mutation__pb2, +) +from google.cloud.spanner_v1.proto import ( + result_set_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2, +) +from google.cloud.spanner_v1.proto import ( + transaction_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2, +) +from google.cloud.spanner_v1.proto import ( + type_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner_v1/proto/spanner.proto', - package='google.spanner.v1', - syntax='proto3', - serialized_pb=_b('\n+google/cloud/spanner_v1/proto/spanner.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(google/cloud/spanner_v1/proto/keys.proto\x1a,google/cloud/spanner_v1/proto/mutation.proto\x1a.google/cloud/spanner_v1/proto/result_set.proto\x1a/google/cloud/spanner_v1/proto/transaction.proto\x1a(google/cloud/spanner_v1/proto/type.proto\"U\n\x14\x43reateSessionRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12+\n\x07session\x18\x02 \x01(\x0b\x32\x1a.google.spanner.v1.Session\"\xee\x01\n\x07Session\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x06labels\x18\x02 \x03(\x0b\x32&.google.spanner.v1.Session.LabelsEntry\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x19\x61pproximate_last_use_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"!\n\x11GetSessionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"^\n\x13ListSessionsRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"]\n\x14ListSessionsResponse\x12,\n\x08sessions\x18\x01 \x03(\x0b\x32\x1a.google.spanner.v1.Session\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"$\n\x14\x44\x65leteSessionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xe0\x03\n\x11\x45xecuteSqlRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x0b\n\x03sql\x18\x03 \x01(\t\x12\'\n\x06params\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12I\n\x0bparam_types\x18\x05 \x03(\x0b\x32\x34.google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry\x12\x14\n\x0cresume_token\x18\x06 \x01(\x0c\x12\x42\n\nquery_mode\x18\x07 \x01(\x0e\x32..google.spanner.v1.ExecuteSqlRequest.QueryMode\x12\x17\n\x0fpartition_token\x18\x08 \x01(\x0c\x12\r\n\x05seqno\x18\t \x01(\x03\x1aJ\n\x0fParamTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type:\x02\x38\x01\".\n\tQueryMode\x12\n\n\x06NORMAL\x10\x00\x12\x08\n\x04PLAN\x10\x01\x12\x0b\n\x07PROFILE\x10\x02\"H\n\x10PartitionOptions\x12\x1c\n\x14partition_size_bytes\x18\x01 \x01(\x03\x12\x16\n\x0emax_partitions\x18\x02 \x01(\x03\"\xf6\x02\n\x15PartitionQueryRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x0b\n\x03sql\x18\x03 \x01(\t\x12\'\n\x06params\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12M\n\x0bparam_types\x18\x05 \x03(\x0b\x32\x38.google.spanner.v1.PartitionQueryRequest.ParamTypesEntry\x12>\n\x11partition_options\x18\x06 \x01(\x0b\x32#.google.spanner.v1.PartitionOptions\x1aJ\n\x0fParamTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type:\x02\x38\x01\"\xff\x01\n\x14PartitionReadRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\r\n\x05table\x18\x03 \x01(\t\x12\r\n\x05index\x18\x04 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x05 \x03(\t\x12*\n\x07key_set\x18\x06 \x01(\x0b\x32\x19.google.spanner.v1.KeySet\x12>\n\x11partition_options\x18\t \x01(\x0b\x32#.google.spanner.v1.PartitionOptions\"$\n\tPartition\x12\x17\n\x0fpartition_token\x18\x01 \x01(\x0c\"z\n\x11PartitionResponse\x12\x30\n\npartitions\x18\x01 \x03(\x0b\x32\x1c.google.spanner.v1.Partition\x12\x33\n\x0btransaction\x18\x02 \x01(\x0b\x32\x1e.google.spanner.v1.Transaction\"\xf4\x01\n\x0bReadRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\r\n\x05table\x18\x03 \x01(\t\x12\r\n\x05index\x18\x04 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x05 \x03(\t\x12*\n\x07key_set\x18\x06 \x01(\x0b\x32\x19.google.spanner.v1.KeySet\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x14\n\x0cresume_token\x18\t \x01(\x0c\x12\x17\n\x0fpartition_token\x18\n \x01(\x0c\"b\n\x17\x42\x65ginTransactionRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x36\n\x07options\x18\x02 \x01(\x0b\x32%.google.spanner.v1.TransactionOptions\"\xc2\x01\n\rCommitRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x18\n\x0etransaction_id\x18\x02 \x01(\x0cH\x00\x12G\n\x16single_use_transaction\x18\x03 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x12.\n\tmutations\x18\x04 \x03(\x0b\x32\x1b.google.spanner.v1.MutationB\r\n\x0btransaction\"F\n\x0e\x43ommitResponse\x12\x34\n\x10\x63ommit_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\":\n\x0fRollbackRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x16\n\x0etransaction_id\x18\x02 \x01(\x0c\x32\x83\x11\n\x07Spanner\x12\x9b\x01\n\rCreateSession\x12\'.google.spanner.v1.CreateSessionRequest\x1a\x1a.google.spanner.v1.Session\"E\x82\xd3\xe4\x93\x02?\":/v1/{database=projects/*/instances/*/databases/*}/sessions:\x01*\x12\x90\x01\n\nGetSession\x12$.google.spanner.v1.GetSessionRequest\x1a\x1a.google.spanner.v1.Session\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/instances/*/databases/*/sessions/*}\x12\xa3\x01\n\x0cListSessions\x12&.google.spanner.v1.ListSessionsRequest\x1a\'.google.spanner.v1.ListSessionsResponse\"B\x82\xd3\xe4\x93\x02<\x12:/v1/{database=projects/*/instances/*/databases/*}/sessions\x12\x92\x01\n\rDeleteSession\x12\'.google.spanner.v1.DeleteSessionRequest\x1a\x16.google.protobuf.Empty\"@\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/instances/*/databases/*/sessions/*}\x12\xa3\x01\n\nExecuteSql\x12$.google.spanner.v1.ExecuteSqlRequest\x1a\x1c.google.spanner.v1.ResultSet\"Q\x82\xd3\xe4\x93\x02K\"F/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeSql:\x01*\x12\xbe\x01\n\x13\x45xecuteStreamingSql\x12$.google.spanner.v1.ExecuteSqlRequest\x1a#.google.spanner.v1.PartialResultSet\"Z\x82\xd3\xe4\x93\x02T\"O/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeStreamingSql:\x01*0\x01\x12\x91\x01\n\x04Read\x12\x1e.google.spanner.v1.ReadRequest\x1a\x1c.google.spanner.v1.ResultSet\"K\x82\xd3\xe4\x93\x02\x45\"@/v1/{session=projects/*/instances/*/databases/*/sessions/*}:read:\x01*\x12\xac\x01\n\rStreamingRead\x12\x1e.google.spanner.v1.ReadRequest\x1a#.google.spanner.v1.PartialResultSet\"T\x82\xd3\xe4\x93\x02N\"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:streamingRead:\x01*0\x01\x12\xb7\x01\n\x10\x42\x65ginTransaction\x12*.google.spanner.v1.BeginTransactionRequest\x1a\x1e.google.spanner.v1.Transaction\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{session=projects/*/instances/*/databases/*/sessions/*}:beginTransaction:\x01*\x12\x9c\x01\n\x06\x43ommit\x12 .google.spanner.v1.CommitRequest\x1a!.google.spanner.v1.CommitResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{session=projects/*/instances/*/databases/*/sessions/*}:commit:\x01*\x12\x97\x01\n\x08Rollback\x12\".google.spanner.v1.RollbackRequest\x1a\x16.google.protobuf.Empty\"O\x82\xd3\xe4\x93\x02I\"D/v1/{session=projects/*/instances/*/databases/*/sessions/*}:rollback:\x01*\x12\xb7\x01\n\x0ePartitionQuery\x12(.google.spanner.v1.PartitionQueryRequest\x1a$.google.spanner.v1.PartitionResponse\"U\x82\xd3\xe4\x93\x02O\"J/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionQuery:\x01*\x12\xb4\x01\n\rPartitionRead\x12\'.google.spanner.v1.PartitionReadRequest\x1a$.google.spanner.v1.PartitionResponse\"T\x82\xd3\xe4\x93\x02N\"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionRead:\x01*B\x95\x01\n\x15\x63om.google.spanner.v1B\x0cSpannerProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_mutation__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.DESCRIPTOR,google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2.DESCRIPTOR,]) - + name="google/cloud/spanner_v1/proto/spanner.proto", + package="google.spanner.v1", + syntax="proto3", + serialized_pb=_b( + '\n+google/cloud/spanner_v1/proto/spanner.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(google/cloud/spanner_v1/proto/keys.proto\x1a,google/cloud/spanner_v1/proto/mutation.proto\x1a.google/cloud/spanner_v1/proto/result_set.proto\x1a/google/cloud/spanner_v1/proto/transaction.proto\x1a(google/cloud/spanner_v1/proto/type.proto"U\n\x14\x43reateSessionRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12+\n\x07session\x18\x02 \x01(\x0b\x32\x1a.google.spanner.v1.Session"\xee\x01\n\x07Session\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x06labels\x18\x02 \x03(\x0b\x32&.google.spanner.v1.Session.LabelsEntry\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x19\x61pproximate_last_use_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"!\n\x11GetSessionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"^\n\x13ListSessionsRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t"]\n\x14ListSessionsResponse\x12,\n\x08sessions\x18\x01 \x03(\x0b\x32\x1a.google.spanner.v1.Session\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"$\n\x14\x44\x65leteSessionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xe0\x03\n\x11\x45xecuteSqlRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x0b\n\x03sql\x18\x03 \x01(\t\x12\'\n\x06params\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12I\n\x0bparam_types\x18\x05 \x03(\x0b\x32\x34.google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry\x12\x14\n\x0cresume_token\x18\x06 \x01(\x0c\x12\x42\n\nquery_mode\x18\x07 \x01(\x0e\x32..google.spanner.v1.ExecuteSqlRequest.QueryMode\x12\x17\n\x0fpartition_token\x18\x08 \x01(\x0c\x12\r\n\x05seqno\x18\t \x01(\x03\x1aJ\n\x0fParamTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type:\x02\x38\x01".\n\tQueryMode\x12\n\n\x06NORMAL\x10\x00\x12\x08\n\x04PLAN\x10\x01\x12\x0b\n\x07PROFILE\x10\x02"H\n\x10PartitionOptions\x12\x1c\n\x14partition_size_bytes\x18\x01 \x01(\x03\x12\x16\n\x0emax_partitions\x18\x02 \x01(\x03"\xf6\x02\n\x15PartitionQueryRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x0b\n\x03sql\x18\x03 \x01(\t\x12\'\n\x06params\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12M\n\x0bparam_types\x18\x05 \x03(\x0b\x32\x38.google.spanner.v1.PartitionQueryRequest.ParamTypesEntry\x12>\n\x11partition_options\x18\x06 \x01(\x0b\x32#.google.spanner.v1.PartitionOptions\x1aJ\n\x0fParamTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type:\x02\x38\x01"\xff\x01\n\x14PartitionReadRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\r\n\x05table\x18\x03 \x01(\t\x12\r\n\x05index\x18\x04 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x05 \x03(\t\x12*\n\x07key_set\x18\x06 \x01(\x0b\x32\x19.google.spanner.v1.KeySet\x12>\n\x11partition_options\x18\t \x01(\x0b\x32#.google.spanner.v1.PartitionOptions"$\n\tPartition\x12\x17\n\x0fpartition_token\x18\x01 \x01(\x0c"z\n\x11PartitionResponse\x12\x30\n\npartitions\x18\x01 \x03(\x0b\x32\x1c.google.spanner.v1.Partition\x12\x33\n\x0btransaction\x18\x02 \x01(\x0b\x32\x1e.google.spanner.v1.Transaction"\xf4\x01\n\x0bReadRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\r\n\x05table\x18\x03 \x01(\t\x12\r\n\x05index\x18\x04 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x05 \x03(\t\x12*\n\x07key_set\x18\x06 \x01(\x0b\x32\x19.google.spanner.v1.KeySet\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x14\n\x0cresume_token\x18\t \x01(\x0c\x12\x17\n\x0fpartition_token\x18\n \x01(\x0c"b\n\x17\x42\x65ginTransactionRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x36\n\x07options\x18\x02 \x01(\x0b\x32%.google.spanner.v1.TransactionOptions"\xc2\x01\n\rCommitRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x18\n\x0etransaction_id\x18\x02 \x01(\x0cH\x00\x12G\n\x16single_use_transaction\x18\x03 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x12.\n\tmutations\x18\x04 \x03(\x0b\x32\x1b.google.spanner.v1.MutationB\r\n\x0btransaction"F\n\x0e\x43ommitResponse\x12\x34\n\x10\x63ommit_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp":\n\x0fRollbackRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x16\n\x0etransaction_id\x18\x02 \x01(\x0c\x32\x83\x11\n\x07Spanner\x12\x9b\x01\n\rCreateSession\x12\'.google.spanner.v1.CreateSessionRequest\x1a\x1a.google.spanner.v1.Session"E\x82\xd3\xe4\x93\x02?":/v1/{database=projects/*/instances/*/databases/*}/sessions:\x01*\x12\x90\x01\n\nGetSession\x12$.google.spanner.v1.GetSessionRequest\x1a\x1a.google.spanner.v1.Session"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/instances/*/databases/*/sessions/*}\x12\xa3\x01\n\x0cListSessions\x12&.google.spanner.v1.ListSessionsRequest\x1a\'.google.spanner.v1.ListSessionsResponse"B\x82\xd3\xe4\x93\x02<\x12:/v1/{database=projects/*/instances/*/databases/*}/sessions\x12\x92\x01\n\rDeleteSession\x12\'.google.spanner.v1.DeleteSessionRequest\x1a\x16.google.protobuf.Empty"@\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/instances/*/databases/*/sessions/*}\x12\xa3\x01\n\nExecuteSql\x12$.google.spanner.v1.ExecuteSqlRequest\x1a\x1c.google.spanner.v1.ResultSet"Q\x82\xd3\xe4\x93\x02K"F/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeSql:\x01*\x12\xbe\x01\n\x13\x45xecuteStreamingSql\x12$.google.spanner.v1.ExecuteSqlRequest\x1a#.google.spanner.v1.PartialResultSet"Z\x82\xd3\xe4\x93\x02T"O/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeStreamingSql:\x01*0\x01\x12\x91\x01\n\x04Read\x12\x1e.google.spanner.v1.ReadRequest\x1a\x1c.google.spanner.v1.ResultSet"K\x82\xd3\xe4\x93\x02\x45"@/v1/{session=projects/*/instances/*/databases/*/sessions/*}:read:\x01*\x12\xac\x01\n\rStreamingRead\x12\x1e.google.spanner.v1.ReadRequest\x1a#.google.spanner.v1.PartialResultSet"T\x82\xd3\xe4\x93\x02N"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:streamingRead:\x01*0\x01\x12\xb7\x01\n\x10\x42\x65ginTransaction\x12*.google.spanner.v1.BeginTransactionRequest\x1a\x1e.google.spanner.v1.Transaction"W\x82\xd3\xe4\x93\x02Q"L/v1/{session=projects/*/instances/*/databases/*/sessions/*}:beginTransaction:\x01*\x12\x9c\x01\n\x06\x43ommit\x12 .google.spanner.v1.CommitRequest\x1a!.google.spanner.v1.CommitResponse"M\x82\xd3\xe4\x93\x02G"B/v1/{session=projects/*/instances/*/databases/*/sessions/*}:commit:\x01*\x12\x97\x01\n\x08Rollback\x12".google.spanner.v1.RollbackRequest\x1a\x16.google.protobuf.Empty"O\x82\xd3\xe4\x93\x02I"D/v1/{session=projects/*/instances/*/databases/*/sessions/*}:rollback:\x01*\x12\xb7\x01\n\x0ePartitionQuery\x12(.google.spanner.v1.PartitionQueryRequest\x1a$.google.spanner.v1.PartitionResponse"U\x82\xd3\xe4\x93\x02O"J/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionQuery:\x01*\x12\xb4\x01\n\rPartitionRead\x12\'.google.spanner.v1.PartitionReadRequest\x1a$.google.spanner.v1.PartitionResponse"T\x82\xd3\xe4\x93\x02N"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionRead:\x01*B\x95\x01\n\x15\x63om.google.spanner.v1B\x0cSpannerProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_mutation__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.DESCRIPTOR, + google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2.DESCRIPTOR, + ], +) _EXECUTESQLREQUEST_QUERYMODE = _descriptor.EnumDescriptor( - name='QueryMode', - full_name='google.spanner.v1.ExecuteSqlRequest.QueryMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='NORMAL', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLAN', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROFILE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1442, - serialized_end=1488, + name="QueryMode", + full_name="google.spanner.v1.ExecuteSqlRequest.QueryMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="NORMAL", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PLAN", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROFILE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1442, + serialized_end=1488, ) _sym_db.RegisterEnumDescriptor(_EXECUTESQLREQUEST_QUERYMODE) _CREATESESSIONREQUEST = _descriptor.Descriptor( - name='CreateSessionRequest', - full_name='google.spanner.v1.CreateSessionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='database', full_name='google.spanner.v1.CreateSessionRequest.database', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.CreateSessionRequest.session', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=415, - serialized_end=500, + name="CreateSessionRequest", + full_name="google.spanner.v1.CreateSessionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="database", + full_name="google.spanner.v1.CreateSessionRequest.database", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.CreateSessionRequest.session", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=415, + serialized_end=500, ) _SESSION_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.spanner.v1.Session.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.spanner.v1.Session.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.spanner.v1.Session.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=696, - serialized_end=741, + name="LabelsEntry", + full_name="google.spanner.v1.Session.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.spanner.v1.Session.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.spanner.v1.Session.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=696, + serialized_end=741, ) _SESSION = _descriptor.Descriptor( - name='Session', - full_name='google.spanner.v1.Session', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.v1.Session.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.spanner.v1.Session.labels', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.spanner.v1.Session.create_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approximate_last_use_time', full_name='google.spanner.v1.Session.approximate_last_use_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SESSION_LABELSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=503, - serialized_end=741, + name="Session", + full_name="google.spanner.v1.Session", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.v1.Session.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.spanner.v1.Session.labels", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.spanner.v1.Session.create_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="approximate_last_use_time", + full_name="google.spanner.v1.Session.approximate_last_use_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SESSION_LABELSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=503, + serialized_end=741, ) _GETSESSIONREQUEST = _descriptor.Descriptor( - name='GetSessionRequest', - full_name='google.spanner.v1.GetSessionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.v1.GetSessionRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=743, - serialized_end=776, + name="GetSessionRequest", + full_name="google.spanner.v1.GetSessionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.v1.GetSessionRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=743, + serialized_end=776, ) _LISTSESSIONSREQUEST = _descriptor.Descriptor( - name='ListSessionsRequest', - full_name='google.spanner.v1.ListSessionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='database', full_name='google.spanner.v1.ListSessionsRequest.database', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.spanner.v1.ListSessionsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.spanner.v1.ListSessionsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.spanner.v1.ListSessionsRequest.filter', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=778, - serialized_end=872, + name="ListSessionsRequest", + full_name="google.spanner.v1.ListSessionsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="database", + full_name="google.spanner.v1.ListSessionsRequest.database", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.spanner.v1.ListSessionsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.spanner.v1.ListSessionsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.spanner.v1.ListSessionsRequest.filter", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=778, + serialized_end=872, ) _LISTSESSIONSRESPONSE = _descriptor.Descriptor( - name='ListSessionsResponse', - full_name='google.spanner.v1.ListSessionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sessions', full_name='google.spanner.v1.ListSessionsResponse.sessions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.spanner.v1.ListSessionsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=874, - serialized_end=967, + name="ListSessionsResponse", + full_name="google.spanner.v1.ListSessionsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="sessions", + full_name="google.spanner.v1.ListSessionsResponse.sessions", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.spanner.v1.ListSessionsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=874, + serialized_end=967, ) _DELETESESSIONREQUEST = _descriptor.Descriptor( - name='DeleteSessionRequest', - full_name='google.spanner.v1.DeleteSessionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.v1.DeleteSessionRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=969, - serialized_end=1005, + name="DeleteSessionRequest", + full_name="google.spanner.v1.DeleteSessionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.v1.DeleteSessionRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=969, + serialized_end=1005, ) _EXECUTESQLREQUEST_PARAMTYPESENTRY = _descriptor.Descriptor( - name='ParamTypesEntry', - full_name='google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1366, - serialized_end=1440, + name="ParamTypesEntry", + full_name="google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1366, + serialized_end=1440, ) _EXECUTESQLREQUEST = _descriptor.Descriptor( - name='ExecuteSqlRequest', - full_name='google.spanner.v1.ExecuteSqlRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.ExecuteSqlRequest.session', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction', full_name='google.spanner.v1.ExecuteSqlRequest.transaction', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sql', full_name='google.spanner.v1.ExecuteSqlRequest.sql', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='params', full_name='google.spanner.v1.ExecuteSqlRequest.params', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='param_types', full_name='google.spanner.v1.ExecuteSqlRequest.param_types', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resume_token', full_name='google.spanner.v1.ExecuteSqlRequest.resume_token', index=5, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_mode', full_name='google.spanner.v1.ExecuteSqlRequest.query_mode', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partition_token', full_name='google.spanner.v1.ExecuteSqlRequest.partition_token', index=7, - number=8, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='seqno', full_name='google.spanner.v1.ExecuteSqlRequest.seqno', index=8, - number=9, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_EXECUTESQLREQUEST_PARAMTYPESENTRY, ], - enum_types=[ - _EXECUTESQLREQUEST_QUERYMODE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1008, - serialized_end=1488, + name="ExecuteSqlRequest", + full_name="google.spanner.v1.ExecuteSqlRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.ExecuteSqlRequest.session", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction", + full_name="google.spanner.v1.ExecuteSqlRequest.transaction", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sql", + full_name="google.spanner.v1.ExecuteSqlRequest.sql", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="params", + full_name="google.spanner.v1.ExecuteSqlRequest.params", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="param_types", + full_name="google.spanner.v1.ExecuteSqlRequest.param_types", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resume_token", + full_name="google.spanner.v1.ExecuteSqlRequest.resume_token", + index=5, + number=6, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="query_mode", + full_name="google.spanner.v1.ExecuteSqlRequest.query_mode", + index=6, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partition_token", + full_name="google.spanner.v1.ExecuteSqlRequest.partition_token", + index=7, + number=8, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="seqno", + full_name="google.spanner.v1.ExecuteSqlRequest.seqno", + index=8, + number=9, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_EXECUTESQLREQUEST_PARAMTYPESENTRY], + enum_types=[_EXECUTESQLREQUEST_QUERYMODE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1008, + serialized_end=1488, ) _PARTITIONOPTIONS = _descriptor.Descriptor( - name='PartitionOptions', - full_name='google.spanner.v1.PartitionOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition_size_bytes', full_name='google.spanner.v1.PartitionOptions.partition_size_bytes', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_partitions', full_name='google.spanner.v1.PartitionOptions.max_partitions', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1490, - serialized_end=1562, + name="PartitionOptions", + full_name="google.spanner.v1.PartitionOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="partition_size_bytes", + full_name="google.spanner.v1.PartitionOptions.partition_size_bytes", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_partitions", + full_name="google.spanner.v1.PartitionOptions.max_partitions", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1490, + serialized_end=1562, ) _PARTITIONQUERYREQUEST_PARAMTYPESENTRY = _descriptor.Descriptor( - name='ParamTypesEntry', - full_name='google.spanner.v1.PartitionQueryRequest.ParamTypesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.spanner.v1.PartitionQueryRequest.ParamTypesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.spanner.v1.PartitionQueryRequest.ParamTypesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1366, - serialized_end=1440, + name="ParamTypesEntry", + full_name="google.spanner.v1.PartitionQueryRequest.ParamTypesEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.spanner.v1.PartitionQueryRequest.ParamTypesEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.spanner.v1.PartitionQueryRequest.ParamTypesEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1366, + serialized_end=1440, ) _PARTITIONQUERYREQUEST = _descriptor.Descriptor( - name='PartitionQueryRequest', - full_name='google.spanner.v1.PartitionQueryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.PartitionQueryRequest.session', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction', full_name='google.spanner.v1.PartitionQueryRequest.transaction', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sql', full_name='google.spanner.v1.PartitionQueryRequest.sql', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='params', full_name='google.spanner.v1.PartitionQueryRequest.params', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='param_types', full_name='google.spanner.v1.PartitionQueryRequest.param_types', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partition_options', full_name='google.spanner.v1.PartitionQueryRequest.partition_options', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PARTITIONQUERYREQUEST_PARAMTYPESENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1565, - serialized_end=1939, + name="PartitionQueryRequest", + full_name="google.spanner.v1.PartitionQueryRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.PartitionQueryRequest.session", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction", + full_name="google.spanner.v1.PartitionQueryRequest.transaction", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sql", + full_name="google.spanner.v1.PartitionQueryRequest.sql", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="params", + full_name="google.spanner.v1.PartitionQueryRequest.params", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="param_types", + full_name="google.spanner.v1.PartitionQueryRequest.param_types", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partition_options", + full_name="google.spanner.v1.PartitionQueryRequest.partition_options", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PARTITIONQUERYREQUEST_PARAMTYPESENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1565, + serialized_end=1939, ) _PARTITIONREADREQUEST = _descriptor.Descriptor( - name='PartitionReadRequest', - full_name='google.spanner.v1.PartitionReadRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.PartitionReadRequest.session', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction', full_name='google.spanner.v1.PartitionReadRequest.transaction', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table', full_name='google.spanner.v1.PartitionReadRequest.table', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='index', full_name='google.spanner.v1.PartitionReadRequest.index', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='columns', full_name='google.spanner.v1.PartitionReadRequest.columns', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key_set', full_name='google.spanner.v1.PartitionReadRequest.key_set', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partition_options', full_name='google.spanner.v1.PartitionReadRequest.partition_options', index=6, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1942, - serialized_end=2197, + name="PartitionReadRequest", + full_name="google.spanner.v1.PartitionReadRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.PartitionReadRequest.session", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction", + full_name="google.spanner.v1.PartitionReadRequest.transaction", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table", + full_name="google.spanner.v1.PartitionReadRequest.table", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="index", + full_name="google.spanner.v1.PartitionReadRequest.index", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="columns", + full_name="google.spanner.v1.PartitionReadRequest.columns", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="key_set", + full_name="google.spanner.v1.PartitionReadRequest.key_set", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partition_options", + full_name="google.spanner.v1.PartitionReadRequest.partition_options", + index=6, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1942, + serialized_end=2197, ) _PARTITION = _descriptor.Descriptor( - name='Partition', - full_name='google.spanner.v1.Partition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition_token', full_name='google.spanner.v1.Partition.partition_token', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2199, - serialized_end=2235, + name="Partition", + full_name="google.spanner.v1.Partition", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="partition_token", + full_name="google.spanner.v1.Partition.partition_token", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2199, + serialized_end=2235, ) _PARTITIONRESPONSE = _descriptor.Descriptor( - name='PartitionResponse', - full_name='google.spanner.v1.PartitionResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partitions', full_name='google.spanner.v1.PartitionResponse.partitions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction', full_name='google.spanner.v1.PartitionResponse.transaction', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2237, - serialized_end=2359, + name="PartitionResponse", + full_name="google.spanner.v1.PartitionResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="partitions", + full_name="google.spanner.v1.PartitionResponse.partitions", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction", + full_name="google.spanner.v1.PartitionResponse.transaction", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2237, + serialized_end=2359, ) _READREQUEST = _descriptor.Descriptor( - name='ReadRequest', - full_name='google.spanner.v1.ReadRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.ReadRequest.session', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction', full_name='google.spanner.v1.ReadRequest.transaction', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='table', full_name='google.spanner.v1.ReadRequest.table', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='index', full_name='google.spanner.v1.ReadRequest.index', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='columns', full_name='google.spanner.v1.ReadRequest.columns', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key_set', full_name='google.spanner.v1.ReadRequest.key_set', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='limit', full_name='google.spanner.v1.ReadRequest.limit', index=6, - number=8, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resume_token', full_name='google.spanner.v1.ReadRequest.resume_token', index=7, - number=9, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partition_token', full_name='google.spanner.v1.ReadRequest.partition_token', index=8, - number=10, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2362, - serialized_end=2606, + name="ReadRequest", + full_name="google.spanner.v1.ReadRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.ReadRequest.session", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction", + full_name="google.spanner.v1.ReadRequest.transaction", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="table", + full_name="google.spanner.v1.ReadRequest.table", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="index", + full_name="google.spanner.v1.ReadRequest.index", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="columns", + full_name="google.spanner.v1.ReadRequest.columns", + index=4, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="key_set", + full_name="google.spanner.v1.ReadRequest.key_set", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="limit", + full_name="google.spanner.v1.ReadRequest.limit", + index=6, + number=8, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resume_token", + full_name="google.spanner.v1.ReadRequest.resume_token", + index=7, + number=9, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partition_token", + full_name="google.spanner.v1.ReadRequest.partition_token", + index=8, + number=10, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2362, + serialized_end=2606, ) _BEGINTRANSACTIONREQUEST = _descriptor.Descriptor( - name='BeginTransactionRequest', - full_name='google.spanner.v1.BeginTransactionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.BeginTransactionRequest.session', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='options', full_name='google.spanner.v1.BeginTransactionRequest.options', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2608, - serialized_end=2706, + name="BeginTransactionRequest", + full_name="google.spanner.v1.BeginTransactionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.BeginTransactionRequest.session", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="options", + full_name="google.spanner.v1.BeginTransactionRequest.options", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2608, + serialized_end=2706, ) _COMMITREQUEST = _descriptor.Descriptor( - name='CommitRequest', - full_name='google.spanner.v1.CommitRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.CommitRequest.session', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction_id', full_name='google.spanner.v1.CommitRequest.transaction_id', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='single_use_transaction', full_name='google.spanner.v1.CommitRequest.single_use_transaction', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutations', full_name='google.spanner.v1.CommitRequest.mutations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='transaction', full_name='google.spanner.v1.CommitRequest.transaction', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2709, - serialized_end=2903, + name="CommitRequest", + full_name="google.spanner.v1.CommitRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.CommitRequest.session", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction_id", + full_name="google.spanner.v1.CommitRequest.transaction_id", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="single_use_transaction", + full_name="google.spanner.v1.CommitRequest.single_use_transaction", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mutations", + full_name="google.spanner.v1.CommitRequest.mutations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="transaction", + full_name="google.spanner.v1.CommitRequest.transaction", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2709, + serialized_end=2903, ) _COMMITRESPONSE = _descriptor.Descriptor( - name='CommitResponse', - full_name='google.spanner.v1.CommitResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='commit_timestamp', full_name='google.spanner.v1.CommitResponse.commit_timestamp', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2905, - serialized_end=2975, + name="CommitResponse", + full_name="google.spanner.v1.CommitResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="commit_timestamp", + full_name="google.spanner.v1.CommitResponse.commit_timestamp", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2905, + serialized_end=2975, ) _ROLLBACKREQUEST = _descriptor.Descriptor( - name='RollbackRequest', - full_name='google.spanner.v1.RollbackRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='session', full_name='google.spanner.v1.RollbackRequest.session', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transaction_id', full_name='google.spanner.v1.RollbackRequest.transaction_id', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2977, - serialized_end=3035, + name="RollbackRequest", + full_name="google.spanner.v1.RollbackRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="session", + full_name="google.spanner.v1.RollbackRequest.session", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="transaction_id", + full_name="google.spanner.v1.RollbackRequest.transaction_id", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2977, + serialized_end=3035, ) -_CREATESESSIONREQUEST.fields_by_name['session'].message_type = _SESSION +_CREATESESSIONREQUEST.fields_by_name["session"].message_type = _SESSION _SESSION_LABELSENTRY.containing_type = _SESSION -_SESSION.fields_by_name['labels'].message_type = _SESSION_LABELSENTRY -_SESSION.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SESSION.fields_by_name['approximate_last_use_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LISTSESSIONSRESPONSE.fields_by_name['sessions'].message_type = _SESSION -_EXECUTESQLREQUEST_PARAMTYPESENTRY.fields_by_name['value'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2._TYPE +_SESSION.fields_by_name["labels"].message_type = _SESSION_LABELSENTRY +_SESSION.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SESSION.fields_by_name[ + "approximate_last_use_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTSESSIONSRESPONSE.fields_by_name["sessions"].message_type = _SESSION +_EXECUTESQLREQUEST_PARAMTYPESENTRY.fields_by_name[ + "value" +].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2._TYPE _EXECUTESQLREQUEST_PARAMTYPESENTRY.containing_type = _EXECUTESQLREQUEST -_EXECUTESQLREQUEST.fields_by_name['transaction'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR -_EXECUTESQLREQUEST.fields_by_name['params'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_EXECUTESQLREQUEST.fields_by_name['param_types'].message_type = _EXECUTESQLREQUEST_PARAMTYPESENTRY -_EXECUTESQLREQUEST.fields_by_name['query_mode'].enum_type = _EXECUTESQLREQUEST_QUERYMODE +_EXECUTESQLREQUEST.fields_by_name[ + "transaction" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR +) +_EXECUTESQLREQUEST.fields_by_name[ + "params" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_EXECUTESQLREQUEST.fields_by_name[ + "param_types" +].message_type = _EXECUTESQLREQUEST_PARAMTYPESENTRY +_EXECUTESQLREQUEST.fields_by_name["query_mode"].enum_type = _EXECUTESQLREQUEST_QUERYMODE _EXECUTESQLREQUEST_QUERYMODE.containing_type = _EXECUTESQLREQUEST -_PARTITIONQUERYREQUEST_PARAMTYPESENTRY.fields_by_name['value'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2._TYPE +_PARTITIONQUERYREQUEST_PARAMTYPESENTRY.fields_by_name[ + "value" +].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_type__pb2._TYPE _PARTITIONQUERYREQUEST_PARAMTYPESENTRY.containing_type = _PARTITIONQUERYREQUEST -_PARTITIONQUERYREQUEST.fields_by_name['transaction'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR -_PARTITIONQUERYREQUEST.fields_by_name['params'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_PARTITIONQUERYREQUEST.fields_by_name['param_types'].message_type = _PARTITIONQUERYREQUEST_PARAMTYPESENTRY -_PARTITIONQUERYREQUEST.fields_by_name['partition_options'].message_type = _PARTITIONOPTIONS -_PARTITIONREADREQUEST.fields_by_name['transaction'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR -_PARTITIONREADREQUEST.fields_by_name['key_set'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2._KEYSET -_PARTITIONREADREQUEST.fields_by_name['partition_options'].message_type = _PARTITIONOPTIONS -_PARTITIONRESPONSE.fields_by_name['partitions'].message_type = _PARTITION -_PARTITIONRESPONSE.fields_by_name['transaction'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTION -_READREQUEST.fields_by_name['transaction'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR -_READREQUEST.fields_by_name['key_set'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2._KEYSET -_BEGINTRANSACTIONREQUEST.fields_by_name['options'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONOPTIONS -_COMMITREQUEST.fields_by_name['single_use_transaction'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONOPTIONS -_COMMITREQUEST.fields_by_name['mutations'].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_mutation__pb2._MUTATION -_COMMITREQUEST.oneofs_by_name['transaction'].fields.append( - _COMMITREQUEST.fields_by_name['transaction_id']) -_COMMITREQUEST.fields_by_name['transaction_id'].containing_oneof = _COMMITREQUEST.oneofs_by_name['transaction'] -_COMMITREQUEST.oneofs_by_name['transaction'].fields.append( - _COMMITREQUEST.fields_by_name['single_use_transaction']) -_COMMITREQUEST.fields_by_name['single_use_transaction'].containing_oneof = _COMMITREQUEST.oneofs_by_name['transaction'] -_COMMITRESPONSE.fields_by_name['commit_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['CreateSessionRequest'] = _CREATESESSIONREQUEST -DESCRIPTOR.message_types_by_name['Session'] = _SESSION -DESCRIPTOR.message_types_by_name['GetSessionRequest'] = _GETSESSIONREQUEST -DESCRIPTOR.message_types_by_name['ListSessionsRequest'] = _LISTSESSIONSREQUEST -DESCRIPTOR.message_types_by_name['ListSessionsResponse'] = _LISTSESSIONSRESPONSE -DESCRIPTOR.message_types_by_name['DeleteSessionRequest'] = _DELETESESSIONREQUEST -DESCRIPTOR.message_types_by_name['ExecuteSqlRequest'] = _EXECUTESQLREQUEST -DESCRIPTOR.message_types_by_name['PartitionOptions'] = _PARTITIONOPTIONS -DESCRIPTOR.message_types_by_name['PartitionQueryRequest'] = _PARTITIONQUERYREQUEST -DESCRIPTOR.message_types_by_name['PartitionReadRequest'] = _PARTITIONREADREQUEST -DESCRIPTOR.message_types_by_name['Partition'] = _PARTITION -DESCRIPTOR.message_types_by_name['PartitionResponse'] = _PARTITIONRESPONSE -DESCRIPTOR.message_types_by_name['ReadRequest'] = _READREQUEST -DESCRIPTOR.message_types_by_name['BeginTransactionRequest'] = _BEGINTRANSACTIONREQUEST -DESCRIPTOR.message_types_by_name['CommitRequest'] = _COMMITREQUEST -DESCRIPTOR.message_types_by_name['CommitResponse'] = _COMMITRESPONSE -DESCRIPTOR.message_types_by_name['RollbackRequest'] = _ROLLBACKREQUEST +_PARTITIONQUERYREQUEST.fields_by_name[ + "transaction" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR +) +_PARTITIONQUERYREQUEST.fields_by_name[ + "params" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_PARTITIONQUERYREQUEST.fields_by_name[ + "param_types" +].message_type = _PARTITIONQUERYREQUEST_PARAMTYPESENTRY +_PARTITIONQUERYREQUEST.fields_by_name[ + "partition_options" +].message_type = _PARTITIONOPTIONS +_PARTITIONREADREQUEST.fields_by_name[ + "transaction" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR +) +_PARTITIONREADREQUEST.fields_by_name[ + "key_set" +].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2._KEYSET +_PARTITIONREADREQUEST.fields_by_name[ + "partition_options" +].message_type = _PARTITIONOPTIONS +_PARTITIONRESPONSE.fields_by_name["partitions"].message_type = _PARTITION +_PARTITIONRESPONSE.fields_by_name[ + "transaction" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTION +) +_READREQUEST.fields_by_name[ + "transaction" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONSELECTOR +) +_READREQUEST.fields_by_name[ + "key_set" +].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_keys__pb2._KEYSET +_BEGINTRANSACTIONREQUEST.fields_by_name[ + "options" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONOPTIONS +) +_COMMITREQUEST.fields_by_name[ + "single_use_transaction" +].message_type = ( + google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTIONOPTIONS +) +_COMMITREQUEST.fields_by_name[ + "mutations" +].message_type = google_dot_cloud_dot_spanner__v1_dot_proto_dot_mutation__pb2._MUTATION +_COMMITREQUEST.oneofs_by_name["transaction"].fields.append( + _COMMITREQUEST.fields_by_name["transaction_id"] +) +_COMMITREQUEST.fields_by_name[ + "transaction_id" +].containing_oneof = _COMMITREQUEST.oneofs_by_name["transaction"] +_COMMITREQUEST.oneofs_by_name["transaction"].fields.append( + _COMMITREQUEST.fields_by_name["single_use_transaction"] +) +_COMMITREQUEST.fields_by_name[ + "single_use_transaction" +].containing_oneof = _COMMITREQUEST.oneofs_by_name["transaction"] +_COMMITRESPONSE.fields_by_name[ + "commit_timestamp" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["CreateSessionRequest"] = _CREATESESSIONREQUEST +DESCRIPTOR.message_types_by_name["Session"] = _SESSION +DESCRIPTOR.message_types_by_name["GetSessionRequest"] = _GETSESSIONREQUEST +DESCRIPTOR.message_types_by_name["ListSessionsRequest"] = _LISTSESSIONSREQUEST +DESCRIPTOR.message_types_by_name["ListSessionsResponse"] = _LISTSESSIONSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteSessionRequest"] = _DELETESESSIONREQUEST +DESCRIPTOR.message_types_by_name["ExecuteSqlRequest"] = _EXECUTESQLREQUEST +DESCRIPTOR.message_types_by_name["PartitionOptions"] = _PARTITIONOPTIONS +DESCRIPTOR.message_types_by_name["PartitionQueryRequest"] = _PARTITIONQUERYREQUEST +DESCRIPTOR.message_types_by_name["PartitionReadRequest"] = _PARTITIONREADREQUEST +DESCRIPTOR.message_types_by_name["Partition"] = _PARTITION +DESCRIPTOR.message_types_by_name["PartitionResponse"] = _PARTITIONRESPONSE +DESCRIPTOR.message_types_by_name["ReadRequest"] = _READREQUEST +DESCRIPTOR.message_types_by_name["BeginTransactionRequest"] = _BEGINTRANSACTIONREQUEST +DESCRIPTOR.message_types_by_name["CommitRequest"] = _COMMITREQUEST +DESCRIPTOR.message_types_by_name["CommitResponse"] = _COMMITRESPONSE +DESCRIPTOR.message_types_by_name["RollbackRequest"] = _ROLLBACKREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateSessionRequest = _reflection.GeneratedProtocolMessageType('CreateSessionRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATESESSIONREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for +CreateSessionRequest = _reflection.GeneratedProtocolMessageType( + "CreateSessionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATESESSIONREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [CreateSession][google.spanner.v1.Spanner.CreateSession]. @@ -1065,22 +1808,27 @@ session: The session to create. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.CreateSessionRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.CreateSessionRequest) + ), +) _sym_db.RegisterMessage(CreateSessionRequest) -Session = _reflection.GeneratedProtocolMessageType('Session', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _SESSION_LABELSENTRY, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - # @@protoc_insertion_point(class_scope:google.spanner.v1.Session.LabelsEntry) - )) - , - DESCRIPTOR = _SESSION, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """A session in the Cloud Spanner API. +Session = _reflection.GeneratedProtocolMessageType( + "Session", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SESSION_LABELSENTRY, + __module__="google.cloud.spanner_v1.proto.spanner_pb2" + # @@protoc_insertion_point(class_scope:google.spanner.v1.Session.LabelsEntry) + ), + ), + DESCRIPTOR=_SESSION, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""A session in the Cloud Spanner API. Attributes: @@ -1104,31 +1852,37 @@ last used. It is typically earlier than the actual last use time. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.Session) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.Session) + ), +) _sym_db.RegisterMessage(Session) _sym_db.RegisterMessage(Session.LabelsEntry) -GetSessionRequest = _reflection.GeneratedProtocolMessageType('GetSessionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSESSIONREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for [GetSession][google.spanner.v1.Spanner.GetSession]. +GetSessionRequest = _reflection.GeneratedProtocolMessageType( + "GetSessionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSESSIONREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [GetSession][google.spanner.v1.Spanner.GetSession]. Attributes: name: Required. The name of the session to retrieve. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.GetSessionRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.GetSessionRequest) + ), +) _sym_db.RegisterMessage(GetSessionRequest) -ListSessionsRequest = _reflection.GeneratedProtocolMessageType('ListSessionsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTSESSIONSREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for [ListSessions][google.spanner.v1.Spanner.ListSessions]. +ListSessionsRequest = _reflection.GeneratedProtocolMessageType( + "ListSessionsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSESSIONSREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [ListSessions][google.spanner.v1.Spanner.ListSessions]. Attributes: @@ -1151,15 +1905,18 @@ session has the label "env" and the value of the label contains the string "dev". """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.ListSessionsRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.ListSessionsRequest) + ), +) _sym_db.RegisterMessage(ListSessionsRequest) -ListSessionsResponse = _reflection.GeneratedProtocolMessageType('ListSessionsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTSESSIONSRESPONSE, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The response for [ListSessions][google.spanner.v1.Spanner.ListSessions]. +ListSessionsResponse = _reflection.GeneratedProtocolMessageType( + "ListSessionsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSESSIONSRESPONSE, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The response for [ListSessions][google.spanner.v1.Spanner.ListSessions]. Attributes: @@ -1170,15 +1927,18 @@ [ListSessions][google.spanner.v1.Spanner.ListSessions] call to fetch more of the matching sessions. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.ListSessionsResponse) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.ListSessionsResponse) + ), +) _sym_db.RegisterMessage(ListSessionsResponse) -DeleteSessionRequest = _reflection.GeneratedProtocolMessageType('DeleteSessionRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETESESSIONREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for +DeleteSessionRequest = _reflection.GeneratedProtocolMessageType( + "DeleteSessionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESESSIONREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [DeleteSession][google.spanner.v1.Spanner.DeleteSession]. @@ -1186,22 +1946,27 @@ name: Required. The name of the session to delete. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.DeleteSessionRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.DeleteSessionRequest) + ), +) _sym_db.RegisterMessage(DeleteSessionRequest) -ExecuteSqlRequest = _reflection.GeneratedProtocolMessageType('ExecuteSqlRequest', (_message.Message,), dict( - - ParamTypesEntry = _reflection.GeneratedProtocolMessageType('ParamTypesEntry', (_message.Message,), dict( - DESCRIPTOR = _EXECUTESQLREQUEST_PARAMTYPESENTRY, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - # @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry) - )) - , - DESCRIPTOR = _EXECUTESQLREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and +ExecuteSqlRequest = _reflection.GeneratedProtocolMessageType( + "ExecuteSqlRequest", + (_message.Message,), + dict( + ParamTypesEntry=_reflection.GeneratedProtocolMessageType( + "ParamTypesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_EXECUTESQLREQUEST_PARAMTYPESENTRY, + __module__="google.cloud.spanner_v1.proto.spanner_pb2" + # @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry) + ), + ), + DESCRIPTOR=_EXECUTESQLREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]. @@ -1277,16 +2042,19 @@ same response as the first execution. Required for DML statements. Ignored for queries. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteSqlRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteSqlRequest) + ), +) _sym_db.RegisterMessage(ExecuteSqlRequest) _sym_db.RegisterMessage(ExecuteSqlRequest.ParamTypesEntry) -PartitionOptions = _reflection.GeneratedProtocolMessageType('PartitionOptions', (_message.Message,), dict( - DESCRIPTOR = _PARTITIONOPTIONS, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """Options for a PartitionQueryRequest and PartitionReadRequest. +PartitionOptions = _reflection.GeneratedProtocolMessageType( + "PartitionOptions", + (_message.Message,), + dict( + DESCRIPTOR=_PARTITIONOPTIONS, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""Options for a PartitionQueryRequest and PartitionReadRequest. Attributes: @@ -1305,22 +2073,27 @@ is only a hint. The actual number of partitions returned may be smaller or larger than this maximum count request. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionOptions) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionOptions) + ), +) _sym_db.RegisterMessage(PartitionOptions) -PartitionQueryRequest = _reflection.GeneratedProtocolMessageType('PartitionQueryRequest', (_message.Message,), dict( - - ParamTypesEntry = _reflection.GeneratedProtocolMessageType('ParamTypesEntry', (_message.Message,), dict( - DESCRIPTOR = _PARTITIONQUERYREQUEST_PARAMTYPESENTRY, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionQueryRequest.ParamTypesEntry) - )) - , - DESCRIPTOR = _PARTITIONQUERYREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for +PartitionQueryRequest = _reflection.GeneratedProtocolMessageType( + "PartitionQueryRequest", + (_message.Message,), + dict( + ParamTypesEntry=_reflection.GeneratedProtocolMessageType( + "ParamTypesEntry", + (_message.Message,), + dict( + DESCRIPTOR=_PARTITIONQUERYREQUEST_PARAMTYPESENTRY, + __module__="google.cloud.spanner_v1.proto.spanner_pb2" + # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionQueryRequest.ParamTypesEntry) + ), + ), + DESCRIPTOR=_PARTITIONQUERYREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery] @@ -1367,16 +2140,19 @@ Additional options that affect how many partitions are created. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionQueryRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionQueryRequest) + ), +) _sym_db.RegisterMessage(PartitionQueryRequest) _sym_db.RegisterMessage(PartitionQueryRequest.ParamTypesEntry) -PartitionReadRequest = _reflection.GeneratedProtocolMessageType('PartitionReadRequest', (_message.Message,), dict( - DESCRIPTOR = _PARTITIONREADREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead] +PartitionReadRequest = _reflection.GeneratedProtocolMessageType( + "PartitionReadRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PARTITIONREADREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead] Attributes: @@ -1419,15 +2195,18 @@ Additional options that affect how many partitions are created. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionReadRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionReadRequest) + ), +) _sym_db.RegisterMessage(PartitionReadRequest) -Partition = _reflection.GeneratedProtocolMessageType('Partition', (_message.Message,), dict( - DESCRIPTOR = _PARTITION, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """Information returned for each partition returned in a PartitionResponse. +Partition = _reflection.GeneratedProtocolMessageType( + "Partition", + (_message.Message,), + dict( + DESCRIPTOR=_PARTITION, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""Information returned for each partition returned in a PartitionResponse. Attributes: @@ -1436,15 +2215,18 @@ or ExecuteStreamingSql requests to restrict the results to those identified by this partition token. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.Partition) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.Partition) + ), +) _sym_db.RegisterMessage(Partition) -PartitionResponse = _reflection.GeneratedProtocolMessageType('PartitionResponse', (_message.Message,), dict( - DESCRIPTOR = _PARTITIONRESPONSE, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The response for +PartitionResponse = _reflection.GeneratedProtocolMessageType( + "PartitionResponse", + (_message.Message,), + dict( + DESCRIPTOR=_PARTITIONRESPONSE, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The response for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery] or [PartitionRead][google.spanner.v1.Spanner.PartitionRead] @@ -1455,15 +2237,18 @@ transaction: Transaction created by this request. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionResponse) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.PartitionResponse) + ), +) _sym_db.RegisterMessage(PartitionResponse) -ReadRequest = _reflection.GeneratedProtocolMessageType('ReadRequest', (_message.Message,), dict( - DESCRIPTOR = _READREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for [Read][google.spanner.v1.Spanner.Read] and +ReadRequest = _reflection.GeneratedProtocolMessageType( + "ReadRequest", + (_message.Message,), + dict( + DESCRIPTOR=_READREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [Read][google.spanner.v1.Spanner.Read] and [StreamingRead][google.spanner.v1.Spanner.StreamingRead]. @@ -1525,15 +2310,18 @@ message and the PartitionReadRequest message used to create this partition\_token. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.ReadRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.ReadRequest) + ), +) _sym_db.RegisterMessage(ReadRequest) -BeginTransactionRequest = _reflection.GeneratedProtocolMessageType('BeginTransactionRequest', (_message.Message,), dict( - DESCRIPTOR = _BEGINTRANSACTIONREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for +BeginTransactionRequest = _reflection.GeneratedProtocolMessageType( + "BeginTransactionRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BEGINTRANSACTIONREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction]. @@ -1543,15 +2331,18 @@ options: Required. Options for the new transaction. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.BeginTransactionRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.BeginTransactionRequest) + ), +) _sym_db.RegisterMessage(BeginTransactionRequest) -CommitRequest = _reflection.GeneratedProtocolMessageType('CommitRequest', (_message.Message,), dict( - DESCRIPTOR = _COMMITREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for [Commit][google.spanner.v1.Spanner.Commit]. +CommitRequest = _reflection.GeneratedProtocolMessageType( + "CommitRequest", + (_message.Message,), + dict( + DESCRIPTOR=_COMMITREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [Commit][google.spanner.v1.Spanner.Commit]. Attributes: @@ -1577,15 +2368,18 @@ All mutations are applied atomically, in the order they appear in this list. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.CommitRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.CommitRequest) + ), +) _sym_db.RegisterMessage(CommitRequest) -CommitResponse = _reflection.GeneratedProtocolMessageType('CommitResponse', (_message.Message,), dict( - DESCRIPTOR = _COMMITRESPONSE, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The response for [Commit][google.spanner.v1.Spanner.Commit]. +CommitResponse = _reflection.GeneratedProtocolMessageType( + "CommitResponse", + (_message.Message,), + dict( + DESCRIPTOR=_COMMITRESPONSE, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The response for [Commit][google.spanner.v1.Spanner.Commit]. Attributes: @@ -1593,15 +2387,18 @@ The Cloud Spanner timestamp at which the transaction committed. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.CommitResponse) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.CommitResponse) + ), +) _sym_db.RegisterMessage(CommitResponse) -RollbackRequest = _reflection.GeneratedProtocolMessageType('RollbackRequest', (_message.Message,), dict( - DESCRIPTOR = _ROLLBACKREQUEST, - __module__ = 'google.cloud.spanner_v1.proto.spanner_pb2' - , - __doc__ = """The request for [Rollback][google.spanner.v1.Spanner.Rollback]. +RollbackRequest = _reflection.GeneratedProtocolMessageType( + "RollbackRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ROLLBACKREQUEST, + __module__="google.cloud.spanner_v1.proto.spanner_pb2", + __doc__="""The request for [Rollback][google.spanner.v1.Spanner.Rollback]. Attributes: @@ -1611,149 +2408,227 @@ transaction_id: Required. The transaction to roll back. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.RollbackRequest) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.RollbackRequest) + ), +) _sym_db.RegisterMessage(RollbackRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.google.spanner.v1B\014SpannerProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\025com.google.spanner.v1B\014SpannerProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1" + ), +) _SESSION_LABELSENTRY.has_options = True -_SESSION_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SESSION_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _EXECUTESQLREQUEST_PARAMTYPESENTRY.has_options = True -_EXECUTESQLREQUEST_PARAMTYPESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_EXECUTESQLREQUEST_PARAMTYPESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _PARTITIONQUERYREQUEST_PARAMTYPESENTRY.has_options = True -_PARTITIONQUERYREQUEST_PARAMTYPESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PARTITIONQUERYREQUEST_PARAMTYPESENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _SPANNER = _descriptor.ServiceDescriptor( - name='Spanner', - full_name='google.spanner.v1.Spanner', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=3038, - serialized_end=5217, - methods=[ - _descriptor.MethodDescriptor( - name='CreateSession', - full_name='google.spanner.v1.Spanner.CreateSession', + name="Spanner", + full_name="google.spanner.v1.Spanner", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATESESSIONREQUEST, - output_type=_SESSION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?\":/v1/{database=projects/*/instances/*/databases/*}/sessions:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetSession', - full_name='google.spanner.v1.Spanner.GetSession', - index=1, - containing_service=None, - input_type=_GETSESSIONREQUEST, - output_type=_SESSION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\0228/v1/{name=projects/*/instances/*/databases/*/sessions/*}')), - ), - _descriptor.MethodDescriptor( - name='ListSessions', - full_name='google.spanner.v1.Spanner.ListSessions', - index=2, - containing_service=None, - input_type=_LISTSESSIONSREQUEST, - output_type=_LISTSESSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\022:/v1/{database=projects/*/instances/*/databases/*}/sessions')), - ), - _descriptor.MethodDescriptor( - name='DeleteSession', - full_name='google.spanner.v1.Spanner.DeleteSession', - index=3, - containing_service=None, - input_type=_DELETESESSIONREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:*8/v1/{name=projects/*/instances/*/databases/*/sessions/*}')), - ), - _descriptor.MethodDescriptor( - name='ExecuteSql', - full_name='google.spanner.v1.Spanner.ExecuteSql', - index=4, - containing_service=None, - input_type=_EXECUTESQLREQUEST, - output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._RESULTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002K\"F/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeSql:\001*')), - ), - _descriptor.MethodDescriptor( - name='ExecuteStreamingSql', - full_name='google.spanner.v1.Spanner.ExecuteStreamingSql', - index=5, - containing_service=None, - input_type=_EXECUTESQLREQUEST, - output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._PARTIALRESULTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002T\"O/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeStreamingSql:\001*')), - ), - _descriptor.MethodDescriptor( - name='Read', - full_name='google.spanner.v1.Spanner.Read', - index=6, - containing_service=None, - input_type=_READREQUEST, - output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._RESULTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"@/v1/{session=projects/*/instances/*/databases/*/sessions/*}:read:\001*')), - ), - _descriptor.MethodDescriptor( - name='StreamingRead', - full_name='google.spanner.v1.Spanner.StreamingRead', - index=7, - containing_service=None, - input_type=_READREQUEST, - output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._PARTIALRESULTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002N\"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:streamingRead:\001*')), - ), - _descriptor.MethodDescriptor( - name='BeginTransaction', - full_name='google.spanner.v1.Spanner.BeginTransaction', - index=8, - containing_service=None, - input_type=_BEGINTRANSACTIONREQUEST, - output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Q\"L/v1/{session=projects/*/instances/*/databases/*/sessions/*}:beginTransaction:\001*')), - ), - _descriptor.MethodDescriptor( - name='Commit', - full_name='google.spanner.v1.Spanner.Commit', - index=9, - containing_service=None, - input_type=_COMMITREQUEST, - output_type=_COMMITRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G\"B/v1/{session=projects/*/instances/*/databases/*/sessions/*}:commit:\001*')), - ), - _descriptor.MethodDescriptor( - name='Rollback', - full_name='google.spanner.v1.Spanner.Rollback', - index=10, - containing_service=None, - input_type=_ROLLBACKREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002I\"D/v1/{session=projects/*/instances/*/databases/*/sessions/*}:rollback:\001*')), - ), - _descriptor.MethodDescriptor( - name='PartitionQuery', - full_name='google.spanner.v1.Spanner.PartitionQuery', - index=11, - containing_service=None, - input_type=_PARTITIONQUERYREQUEST, - output_type=_PARTITIONRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002O\"J/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionQuery:\001*')), - ), - _descriptor.MethodDescriptor( - name='PartitionRead', - full_name='google.spanner.v1.Spanner.PartitionRead', - index=12, - containing_service=None, - input_type=_PARTITIONREADREQUEST, - output_type=_PARTITIONRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002N\"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionRead:\001*')), - ), -]) + options=None, + serialized_start=3038, + serialized_end=5217, + methods=[ + _descriptor.MethodDescriptor( + name="CreateSession", + full_name="google.spanner.v1.Spanner.CreateSession", + index=0, + containing_service=None, + input_type=_CREATESESSIONREQUEST, + output_type=_SESSION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002?":/v1/{database=projects/*/instances/*/databases/*}/sessions:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetSession", + full_name="google.spanner.v1.Spanner.GetSession", + index=1, + containing_service=None, + input_type=_GETSESSIONREQUEST, + output_type=_SESSION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:\0228/v1/{name=projects/*/instances/*/databases/*/sessions/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListSessions", + full_name="google.spanner.v1.Spanner.ListSessions", + index=2, + containing_service=None, + input_type=_LISTSESSIONSREQUEST, + output_type=_LISTSESSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002<\022:/v1/{database=projects/*/instances/*/databases/*}/sessions" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteSession", + full_name="google.spanner.v1.Spanner.DeleteSession", + index=3, + containing_service=None, + input_type=_DELETESESSIONREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:*8/v1/{name=projects/*/instances/*/databases/*/sessions/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ExecuteSql", + full_name="google.spanner.v1.Spanner.ExecuteSql", + index=4, + containing_service=None, + input_type=_EXECUTESQLREQUEST, + output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._RESULTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002K"F/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeSql:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ExecuteStreamingSql", + full_name="google.spanner.v1.Spanner.ExecuteStreamingSql", + index=5, + containing_service=None, + input_type=_EXECUTESQLREQUEST, + output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._PARTIALRESULTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002T"O/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeStreamingSql:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="Read", + full_name="google.spanner.v1.Spanner.Read", + index=6, + containing_service=None, + input_type=_READREQUEST, + output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._RESULTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"@/v1/{session=projects/*/instances/*/databases/*/sessions/*}:read:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="StreamingRead", + full_name="google.spanner.v1.Spanner.StreamingRead", + index=7, + containing_service=None, + input_type=_READREQUEST, + output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2._PARTIALRESULTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002N"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:streamingRead:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="BeginTransaction", + full_name="google.spanner.v1.Spanner.BeginTransaction", + index=8, + containing_service=None, + input_type=_BEGINTRANSACTIONREQUEST, + output_type=google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2._TRANSACTION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002Q"L/v1/{session=projects/*/instances/*/databases/*/sessions/*}:beginTransaction:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="Commit", + full_name="google.spanner.v1.Spanner.Commit", + index=9, + containing_service=None, + input_type=_COMMITREQUEST, + output_type=_COMMITRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002G"B/v1/{session=projects/*/instances/*/databases/*/sessions/*}:commit:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="Rollback", + full_name="google.spanner.v1.Spanner.Rollback", + index=10, + containing_service=None, + input_type=_ROLLBACKREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002I"D/v1/{session=projects/*/instances/*/databases/*/sessions/*}:rollback:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="PartitionQuery", + full_name="google.spanner.v1.Spanner.PartitionQuery", + index=11, + containing_service=None, + input_type=_PARTITIONQUERYREQUEST, + output_type=_PARTITIONRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002O"J/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionQuery:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="PartitionRead", + full_name="google.spanner.v1.Spanner.PartitionRead", + index=12, + containing_service=None, + input_type=_PARTITIONREADREQUEST, + output_type=_PARTITIONRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002N"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionRead:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_SPANNER) -DESCRIPTOR.services_by_name['Spanner'] = _SPANNER +DESCRIPTOR.services_by_name["Spanner"] = _SPANNER # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_v1/proto/spanner_pb2_grpc.py b/spanner/google/cloud/spanner_v1/proto/spanner_pb2_grpc.py index 90e89f2f7c6ae..6609aeb76cf5a 100644 --- a/spanner/google/cloud/spanner_v1/proto/spanner_pb2_grpc.py +++ b/spanner/google/cloud/spanner_v1/proto/spanner_pb2_grpc.py @@ -1,101 +1,107 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.spanner_v1.proto import result_set_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2 -from google.cloud.spanner_v1.proto import spanner_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2 -from google.cloud.spanner_v1.proto import transaction_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2 +from google.cloud.spanner_v1.proto import ( + result_set_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2, +) +from google.cloud.spanner_v1.proto import ( + spanner_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2, +) +from google.cloud.spanner_v1.proto import ( + transaction_pb2 as google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class SpannerStub(object): - """Cloud Spanner API + """Cloud Spanner API The Cloud Spanner API can be used to manage sessions and execute transactions on data stored in Cloud Spanner databases. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateSession = channel.unary_unary( - '/google.spanner.v1.Spanner/CreateSession', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CreateSessionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.FromString, + self.CreateSession = channel.unary_unary( + "/google.spanner.v1.Spanner/CreateSession", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CreateSessionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.FromString, ) - self.GetSession = channel.unary_unary( - '/google.spanner.v1.Spanner/GetSession', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.GetSessionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.FromString, + self.GetSession = channel.unary_unary( + "/google.spanner.v1.Spanner/GetSession", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.GetSessionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.FromString, ) - self.ListSessions = channel.unary_unary( - '/google.spanner.v1.Spanner/ListSessions', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsResponse.FromString, + self.ListSessions = channel.unary_unary( + "/google.spanner.v1.Spanner/ListSessions", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsResponse.FromString, ) - self.DeleteSession = channel.unary_unary( - '/google.spanner.v1.Spanner/DeleteSession', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.DeleteSessionRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteSession = channel.unary_unary( + "/google.spanner.v1.Spanner/DeleteSession", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.DeleteSessionRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ExecuteSql = channel.unary_unary( - '/google.spanner.v1.Spanner/ExecuteSql', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.FromString, + self.ExecuteSql = channel.unary_unary( + "/google.spanner.v1.Spanner/ExecuteSql", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.FromString, ) - self.ExecuteStreamingSql = channel.unary_stream( - '/google.spanner.v1.Spanner/ExecuteStreamingSql', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.FromString, + self.ExecuteStreamingSql = channel.unary_stream( + "/google.spanner.v1.Spanner/ExecuteStreamingSql", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.FromString, ) - self.Read = channel.unary_unary( - '/google.spanner.v1.Spanner/Read', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.FromString, + self.Read = channel.unary_unary( + "/google.spanner.v1.Spanner/Read", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.FromString, ) - self.StreamingRead = channel.unary_stream( - '/google.spanner.v1.Spanner/StreamingRead', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.FromString, + self.StreamingRead = channel.unary_stream( + "/google.spanner.v1.Spanner/StreamingRead", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.FromString, ) - self.BeginTransaction = channel.unary_unary( - '/google.spanner.v1.Spanner/BeginTransaction', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.BeginTransactionRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.Transaction.FromString, + self.BeginTransaction = channel.unary_unary( + "/google.spanner.v1.Spanner/BeginTransaction", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.BeginTransactionRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.Transaction.FromString, ) - self.Commit = channel.unary_unary( - '/google.spanner.v1.Spanner/Commit', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitResponse.FromString, + self.Commit = channel.unary_unary( + "/google.spanner.v1.Spanner/Commit", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitResponse.FromString, ) - self.Rollback = channel.unary_unary( - '/google.spanner.v1.Spanner/Rollback', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.RollbackRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.Rollback = channel.unary_unary( + "/google.spanner.v1.Spanner/Rollback", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.RollbackRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.PartitionQuery = channel.unary_unary( - '/google.spanner.v1.Spanner/PartitionQuery', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionQueryRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.FromString, + self.PartitionQuery = channel.unary_unary( + "/google.spanner.v1.Spanner/PartitionQuery", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionQueryRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.FromString, ) - self.PartitionRead = channel.unary_unary( - '/google.spanner.v1.Spanner/PartitionRead', - request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionReadRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.FromString, + self.PartitionRead = channel.unary_unary( + "/google.spanner.v1.Spanner/PartitionRead", + request_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionReadRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.FromString, ) class SpannerServicer(object): - """Cloud Spanner API + """Cloud Spanner API The Cloud Spanner API can be used to manage sessions and execute transactions on data stored in Cloud Spanner databases. """ - def CreateSession(self, request, context): - """Creates a new session. A session can be used to perform + def CreateSession(self, request, context): + """Creates a new session. A session can be used to perform transactions that read and/or modify data in a Cloud Spanner database. Sessions are meant to be reused for many consecutive transactions. @@ -115,35 +121,35 @@ def CreateSession(self, request, context): Idle sessions can be kept alive by sending a trivial SQL query periodically, e.g., `"SELECT 1"`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetSession(self, request, context): - """Gets a session. Returns `NOT_FOUND` if the session does not exist. + def GetSession(self, request, context): + """Gets a session. Returns `NOT_FOUND` if the session does not exist. This is mainly useful for determining whether a session is still alive. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListSessions(self, request, context): - """Lists all sessions in a given database. + def ListSessions(self, request, context): + """Lists all sessions in a given database. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteSession(self, request, context): - """Ends a session, releasing server resources associated with it. + def DeleteSession(self, request, context): + """Ends a session, releasing server resources associated with it. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ExecuteSql(self, request, context): - """Executes an SQL statement, returning all results in a single reply. This + def ExecuteSql(self, request, context): + """Executes an SQL statement, returning all results in a single reply. This method cannot be used to return a result set larger than 10 MiB; if the query yields more data than that, the query fails with a `FAILED_PRECONDITION` error. @@ -155,23 +161,23 @@ def ExecuteSql(self, request, context): Larger result sets can be fetched in streaming fashion by calling [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] instead. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ExecuteStreamingSql(self, request, context): - """Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result + def ExecuteStreamingSql(self, request, context): + """Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result set as a stream. Unlike [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there is no limit on the size of the returned result set. However, no individual row in the result set can exceed 100 MiB, and no column value can exceed 10 MiB. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Read(self, request, context): - """Reads rows from the database using key lookups and scans, as a + def Read(self, request, context): + """Reads rows from the database using key lookups and scans, as a simple key/value style alternative to [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be used to return a result set larger than 10 MiB; if the read matches more @@ -185,33 +191,33 @@ def Read(self, request, context): Larger result sets can be yielded in streaming fashion by calling [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def StreamingRead(self, request, context): - """Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a + def StreamingRead(self, request, context): + """Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no limit on the size of the returned result set. However, no individual row in the result set can exceed 100 MiB, and no column value can exceed 10 MiB. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def BeginTransaction(self, request, context): - """Begins a new transaction. This step can often be skipped: + def BeginTransaction(self, request, context): + """Begins a new transaction. This step can often be skipped: [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a side-effect. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Commit(self, request, context): - """Commits a transaction. The request includes the mutations to be + def Commit(self, request, context): + """Commits a transaction. The request includes the mutations to be applied to rows in the database. `Commit` might return an `ABORTED` error. This can occur at any time; @@ -220,12 +226,12 @@ def Commit(self, request, context): reasons. If `Commit` returns `ABORTED`, the caller should re-attempt the transaction from the beginning, re-using the same session. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Rollback(self, request, context): - """Rolls back a transaction, releasing any locks it holds. It is a good + def Rollback(self, request, context): + """Rolls back a transaction, releasing any locks it holds. It is a good idea to call this for any transaction that includes one or more [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and ultimately decides not to commit. @@ -234,12 +240,12 @@ def Rollback(self, request, context): transaction was already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PartitionQuery(self, request, context): - """Creates a set of partition tokens that can be used to execute a query + def PartitionQuery(self, request, context): + """Creates a set of partition tokens that can be used to execute a query operation in parallel. Each of the returned partition tokens can be used by [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] to specify a subset of the query result to read. The same session and read-only transaction @@ -251,12 +257,12 @@ def PartitionQuery(self, request, context): old. When any of these happen, it is not possible to resume the query, and the whole operation must be restarted from the beginning. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PartitionRead(self, request, context): - """Creates a set of partition tokens that can be used to execute a read + def PartitionRead(self, request, context): + """Creates a set of partition tokens that can be used to execute a read operation in parallel. Each of the returned partition tokens can be used by [StreamingRead][google.spanner.v1.Spanner.StreamingRead] to specify a subset of the read result to read. The same session and read-only transaction must be used by @@ -270,79 +276,80 @@ def PartitionRead(self, request, context): old. When any of these happen, it is not possible to resume the read, and the whole operation must be restarted from the beginning. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_SpannerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateSession': grpc.unary_unary_rpc_method_handler( - servicer.CreateSession, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CreateSessionRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.SerializeToString, - ), - 'GetSession': grpc.unary_unary_rpc_method_handler( - servicer.GetSession, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.GetSessionRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.SerializeToString, - ), - 'ListSessions': grpc.unary_unary_rpc_method_handler( - servicer.ListSessions, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsResponse.SerializeToString, - ), - 'DeleteSession': grpc.unary_unary_rpc_method_handler( - servicer.DeleteSession, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.DeleteSessionRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ExecuteSql': grpc.unary_unary_rpc_method_handler( - servicer.ExecuteSql, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.SerializeToString, - ), - 'ExecuteStreamingSql': grpc.unary_stream_rpc_method_handler( - servicer.ExecuteStreamingSql, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.SerializeToString, - ), - 'Read': grpc.unary_unary_rpc_method_handler( - servicer.Read, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.SerializeToString, - ), - 'StreamingRead': grpc.unary_stream_rpc_method_handler( - servicer.StreamingRead, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.SerializeToString, - ), - 'BeginTransaction': grpc.unary_unary_rpc_method_handler( - servicer.BeginTransaction, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.BeginTransactionRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.Transaction.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitResponse.SerializeToString, - ), - 'Rollback': grpc.unary_unary_rpc_method_handler( - servicer.Rollback, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.RollbackRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'PartitionQuery': grpc.unary_unary_rpc_method_handler( - servicer.PartitionQuery, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionQueryRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.SerializeToString, - ), - 'PartitionRead': grpc.unary_unary_rpc_method_handler( - servicer.PartitionRead, - request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionReadRequest.FromString, - response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.spanner.v1.Spanner', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateSession": grpc.unary_unary_rpc_method_handler( + servicer.CreateSession, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CreateSessionRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.SerializeToString, + ), + "GetSession": grpc.unary_unary_rpc_method_handler( + servicer.GetSession, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.GetSessionRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.Session.SerializeToString, + ), + "ListSessions": grpc.unary_unary_rpc_method_handler( + servicer.ListSessions, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ListSessionsResponse.SerializeToString, + ), + "DeleteSession": grpc.unary_unary_rpc_method_handler( + servicer.DeleteSession, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.DeleteSessionRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ExecuteSql": grpc.unary_unary_rpc_method_handler( + servicer.ExecuteSql, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.SerializeToString, + ), + "ExecuteStreamingSql": grpc.unary_stream_rpc_method_handler( + servicer.ExecuteStreamingSql, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ExecuteSqlRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.SerializeToString, + ), + "Read": grpc.unary_unary_rpc_method_handler( + servicer.Read, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.ResultSet.SerializeToString, + ), + "StreamingRead": grpc.unary_stream_rpc_method_handler( + servicer.StreamingRead, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.ReadRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_result__set__pb2.PartialResultSet.SerializeToString, + ), + "BeginTransaction": grpc.unary_unary_rpc_method_handler( + servicer.BeginTransaction, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.BeginTransactionRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_transaction__pb2.Transaction.SerializeToString, + ), + "Commit": grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.CommitResponse.SerializeToString, + ), + "Rollback": grpc.unary_unary_rpc_method_handler( + servicer.Rollback, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.RollbackRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "PartitionQuery": grpc.unary_unary_rpc_method_handler( + servicer.PartitionQuery, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionQueryRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.SerializeToString, + ), + "PartitionRead": grpc.unary_unary_rpc_method_handler( + servicer.PartitionRead, + request_deserializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionReadRequest.FromString, + response_serializer=google_dot_cloud_dot_spanner__v1_dot_proto_dot_spanner__pb2.PartitionResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.spanner.v1.Spanner", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/spanner/google/cloud/spanner_v1/proto/transaction_pb2.py b/spanner/google/cloud/spanner_v1/proto/transaction_pb2.py index 5ccfa5160f152..cd5572c448d8c 100644 --- a/spanner/google/cloud/spanner_v1/proto/transaction_pb2.py +++ b/spanner/google/cloud/spanner_v1/proto/transaction_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/spanner_v1/proto/transaction.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,342 +21,554 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner_v1/proto/transaction.proto', - package='google.spanner.v1', - syntax='proto3', - serialized_pb=_b('\n/google/cloud/spanner_v1/proto/transaction.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x04\n\x12TransactionOptions\x12\x45\n\nread_write\x18\x01 \x01(\x0b\x32/.google.spanner.v1.TransactionOptions.ReadWriteH\x00\x12O\n\x0fpartitioned_dml\x18\x03 \x01(\x0b\x32\x34.google.spanner.v1.TransactionOptions.PartitionedDmlH\x00\x12\x43\n\tread_only\x18\x02 \x01(\x0b\x32..google.spanner.v1.TransactionOptions.ReadOnlyH\x00\x1a\x0b\n\tReadWrite\x1a\x10\n\x0ePartitionedDml\x1a\xa8\x02\n\x08ReadOnly\x12\x10\n\x06strong\x18\x01 \x01(\x08H\x00\x12\x38\n\x12min_read_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x32\n\rmax_staleness\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x34\n\x0eread_timestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x34\n\x0f\x65xact_staleness\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x1d\n\x15return_read_timestamp\x18\x06 \x01(\x08\x42\x11\n\x0ftimestamp_boundB\x06\n\x04mode\"M\n\x0bTransaction\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x32\n\x0eread_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa4\x01\n\x13TransactionSelector\x12;\n\nsingle_use\x18\x01 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x12\x0c\n\x02id\x18\x02 \x01(\x0cH\x00\x12\x36\n\x05\x62\x65gin\x18\x03 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x42\n\n\x08selectorB\x99\x01\n\x15\x63om.google.spanner.v1B\x10TransactionProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/spanner_v1/proto/transaction.proto", + package="google.spanner.v1", + syntax="proto3", + serialized_pb=_b( + '\n/google/cloud/spanner_v1/proto/transaction.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc3\x04\n\x12TransactionOptions\x12\x45\n\nread_write\x18\x01 \x01(\x0b\x32/.google.spanner.v1.TransactionOptions.ReadWriteH\x00\x12O\n\x0fpartitioned_dml\x18\x03 \x01(\x0b\x32\x34.google.spanner.v1.TransactionOptions.PartitionedDmlH\x00\x12\x43\n\tread_only\x18\x02 \x01(\x0b\x32..google.spanner.v1.TransactionOptions.ReadOnlyH\x00\x1a\x0b\n\tReadWrite\x1a\x10\n\x0ePartitionedDml\x1a\xa8\x02\n\x08ReadOnly\x12\x10\n\x06strong\x18\x01 \x01(\x08H\x00\x12\x38\n\x12min_read_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x32\n\rmax_staleness\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x34\n\x0eread_timestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x34\n\x0f\x65xact_staleness\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x1d\n\x15return_read_timestamp\x18\x06 \x01(\x08\x42\x11\n\x0ftimestamp_boundB\x06\n\x04mode"M\n\x0bTransaction\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x32\n\x0eread_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa4\x01\n\x13TransactionSelector\x12;\n\nsingle_use\x18\x01 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x12\x0c\n\x02id\x18\x02 \x01(\x0cH\x00\x12\x36\n\x05\x62\x65gin\x18\x03 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x42\n\n\x08selectorB\x99\x01\n\x15\x63om.google.spanner.v1B\x10TransactionProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _TRANSACTIONOPTIONS_READWRITE = _descriptor.Descriptor( - name='ReadWrite', - full_name='google.spanner.v1.TransactionOptions.ReadWrite', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=409, - serialized_end=420, + name="ReadWrite", + full_name="google.spanner.v1.TransactionOptions.ReadWrite", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=409, + serialized_end=420, ) _TRANSACTIONOPTIONS_PARTITIONEDDML = _descriptor.Descriptor( - name='PartitionedDml', - full_name='google.spanner.v1.TransactionOptions.PartitionedDml', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=422, - serialized_end=438, + name="PartitionedDml", + full_name="google.spanner.v1.TransactionOptions.PartitionedDml", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=422, + serialized_end=438, ) _TRANSACTIONOPTIONS_READONLY = _descriptor.Descriptor( - name='ReadOnly', - full_name='google.spanner.v1.TransactionOptions.ReadOnly', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='strong', full_name='google.spanner.v1.TransactionOptions.ReadOnly.strong', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_read_timestamp', full_name='google.spanner.v1.TransactionOptions.ReadOnly.min_read_timestamp', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_staleness', full_name='google.spanner.v1.TransactionOptions.ReadOnly.max_staleness', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='read_timestamp', full_name='google.spanner.v1.TransactionOptions.ReadOnly.read_timestamp', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exact_staleness', full_name='google.spanner.v1.TransactionOptions.ReadOnly.exact_staleness', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='return_read_timestamp', full_name='google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='timestamp_bound', full_name='google.spanner.v1.TransactionOptions.ReadOnly.timestamp_bound', - index=0, containing_type=None, fields=[]), - ], - serialized_start=441, - serialized_end=737, + name="ReadOnly", + full_name="google.spanner.v1.TransactionOptions.ReadOnly", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="strong", + full_name="google.spanner.v1.TransactionOptions.ReadOnly.strong", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="min_read_timestamp", + full_name="google.spanner.v1.TransactionOptions.ReadOnly.min_read_timestamp", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_staleness", + full_name="google.spanner.v1.TransactionOptions.ReadOnly.max_staleness", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="read_timestamp", + full_name="google.spanner.v1.TransactionOptions.ReadOnly.read_timestamp", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="exact_staleness", + full_name="google.spanner.v1.TransactionOptions.ReadOnly.exact_staleness", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="return_read_timestamp", + full_name="google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="timestamp_bound", + full_name="google.spanner.v1.TransactionOptions.ReadOnly.timestamp_bound", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=441, + serialized_end=737, ) _TRANSACTIONOPTIONS = _descriptor.Descriptor( - name='TransactionOptions', - full_name='google.spanner.v1.TransactionOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='read_write', full_name='google.spanner.v1.TransactionOptions.read_write', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partitioned_dml', full_name='google.spanner.v1.TransactionOptions.partitioned_dml', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='read_only', full_name='google.spanner.v1.TransactionOptions.read_only', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TRANSACTIONOPTIONS_READWRITE, _TRANSACTIONOPTIONS_PARTITIONEDDML, _TRANSACTIONOPTIONS_READONLY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='mode', full_name='google.spanner.v1.TransactionOptions.mode', - index=0, containing_type=None, fields=[]), - ], - serialized_start=166, - serialized_end=745, + name="TransactionOptions", + full_name="google.spanner.v1.TransactionOptions", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="read_write", + full_name="google.spanner.v1.TransactionOptions.read_write", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partitioned_dml", + full_name="google.spanner.v1.TransactionOptions.partitioned_dml", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="read_only", + full_name="google.spanner.v1.TransactionOptions.read_only", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _TRANSACTIONOPTIONS_READWRITE, + _TRANSACTIONOPTIONS_PARTITIONEDDML, + _TRANSACTIONOPTIONS_READONLY, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="mode", + full_name="google.spanner.v1.TransactionOptions.mode", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=166, + serialized_end=745, ) _TRANSACTION = _descriptor.Descriptor( - name='Transaction', - full_name='google.spanner.v1.Transaction', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='google.spanner.v1.Transaction.id', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='read_timestamp', full_name='google.spanner.v1.Transaction.read_timestamp', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=747, - serialized_end=824, + name="Transaction", + full_name="google.spanner.v1.Transaction", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="google.spanner.v1.Transaction.id", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="read_timestamp", + full_name="google.spanner.v1.Transaction.read_timestamp", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=747, + serialized_end=824, ) _TRANSACTIONSELECTOR = _descriptor.Descriptor( - name='TransactionSelector', - full_name='google.spanner.v1.TransactionSelector', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='single_use', full_name='google.spanner.v1.TransactionSelector.single_use', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.spanner.v1.TransactionSelector.id', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='begin', full_name='google.spanner.v1.TransactionSelector.begin', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='selector', full_name='google.spanner.v1.TransactionSelector.selector', - index=0, containing_type=None, fields=[]), - ], - serialized_start=827, - serialized_end=991, + name="TransactionSelector", + full_name="google.spanner.v1.TransactionSelector", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="single_use", + full_name="google.spanner.v1.TransactionSelector.single_use", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="id", + full_name="google.spanner.v1.TransactionSelector.id", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="begin", + full_name="google.spanner.v1.TransactionSelector.begin", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="selector", + full_name="google.spanner.v1.TransactionSelector.selector", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=827, + serialized_end=991, ) _TRANSACTIONOPTIONS_READWRITE.containing_type = _TRANSACTIONOPTIONS _TRANSACTIONOPTIONS_PARTITIONEDDML.containing_type = _TRANSACTIONOPTIONS -_TRANSACTIONOPTIONS_READONLY.fields_by_name['min_read_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSACTIONOPTIONS_READONLY.fields_by_name['max_staleness'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_TRANSACTIONOPTIONS_READONLY.fields_by_name['read_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSACTIONOPTIONS_READONLY.fields_by_name['exact_staleness'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "min_read_timestamp" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "max_staleness" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "read_timestamp" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "exact_staleness" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _TRANSACTIONOPTIONS_READONLY.containing_type = _TRANSACTIONOPTIONS -_TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'].fields.append( - _TRANSACTIONOPTIONS_READONLY.fields_by_name['strong']) -_TRANSACTIONOPTIONS_READONLY.fields_by_name['strong'].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'] -_TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'].fields.append( - _TRANSACTIONOPTIONS_READONLY.fields_by_name['min_read_timestamp']) -_TRANSACTIONOPTIONS_READONLY.fields_by_name['min_read_timestamp'].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'] -_TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'].fields.append( - _TRANSACTIONOPTIONS_READONLY.fields_by_name['max_staleness']) -_TRANSACTIONOPTIONS_READONLY.fields_by_name['max_staleness'].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'] -_TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'].fields.append( - _TRANSACTIONOPTIONS_READONLY.fields_by_name['read_timestamp']) -_TRANSACTIONOPTIONS_READONLY.fields_by_name['read_timestamp'].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'] -_TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'].fields.append( - _TRANSACTIONOPTIONS_READONLY.fields_by_name['exact_staleness']) -_TRANSACTIONOPTIONS_READONLY.fields_by_name['exact_staleness'].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name['timestamp_bound'] -_TRANSACTIONOPTIONS.fields_by_name['read_write'].message_type = _TRANSACTIONOPTIONS_READWRITE -_TRANSACTIONOPTIONS.fields_by_name['partitioned_dml'].message_type = _TRANSACTIONOPTIONS_PARTITIONEDDML -_TRANSACTIONOPTIONS.fields_by_name['read_only'].message_type = _TRANSACTIONOPTIONS_READONLY -_TRANSACTIONOPTIONS.oneofs_by_name['mode'].fields.append( - _TRANSACTIONOPTIONS.fields_by_name['read_write']) -_TRANSACTIONOPTIONS.fields_by_name['read_write'].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name['mode'] -_TRANSACTIONOPTIONS.oneofs_by_name['mode'].fields.append( - _TRANSACTIONOPTIONS.fields_by_name['partitioned_dml']) -_TRANSACTIONOPTIONS.fields_by_name['partitioned_dml'].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name['mode'] -_TRANSACTIONOPTIONS.oneofs_by_name['mode'].fields.append( - _TRANSACTIONOPTIONS.fields_by_name['read_only']) -_TRANSACTIONOPTIONS.fields_by_name['read_only'].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name['mode'] -_TRANSACTION.fields_by_name['read_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRANSACTIONSELECTOR.fields_by_name['single_use'].message_type = _TRANSACTIONOPTIONS -_TRANSACTIONSELECTOR.fields_by_name['begin'].message_type = _TRANSACTIONOPTIONS -_TRANSACTIONSELECTOR.oneofs_by_name['selector'].fields.append( - _TRANSACTIONSELECTOR.fields_by_name['single_use']) -_TRANSACTIONSELECTOR.fields_by_name['single_use'].containing_oneof = _TRANSACTIONSELECTOR.oneofs_by_name['selector'] -_TRANSACTIONSELECTOR.oneofs_by_name['selector'].fields.append( - _TRANSACTIONSELECTOR.fields_by_name['id']) -_TRANSACTIONSELECTOR.fields_by_name['id'].containing_oneof = _TRANSACTIONSELECTOR.oneofs_by_name['selector'] -_TRANSACTIONSELECTOR.oneofs_by_name['selector'].fields.append( - _TRANSACTIONSELECTOR.fields_by_name['begin']) -_TRANSACTIONSELECTOR.fields_by_name['begin'].containing_oneof = _TRANSACTIONSELECTOR.oneofs_by_name['selector'] -DESCRIPTOR.message_types_by_name['TransactionOptions'] = _TRANSACTIONOPTIONS -DESCRIPTOR.message_types_by_name['Transaction'] = _TRANSACTION -DESCRIPTOR.message_types_by_name['TransactionSelector'] = _TRANSACTIONSELECTOR +_TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"].fields.append( + _TRANSACTIONOPTIONS_READONLY.fields_by_name["strong"] +) +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "strong" +].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"] +_TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"].fields.append( + _TRANSACTIONOPTIONS_READONLY.fields_by_name["min_read_timestamp"] +) +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "min_read_timestamp" +].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"] +_TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"].fields.append( + _TRANSACTIONOPTIONS_READONLY.fields_by_name["max_staleness"] +) +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "max_staleness" +].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"] +_TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"].fields.append( + _TRANSACTIONOPTIONS_READONLY.fields_by_name["read_timestamp"] +) +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "read_timestamp" +].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"] +_TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"].fields.append( + _TRANSACTIONOPTIONS_READONLY.fields_by_name["exact_staleness"] +) +_TRANSACTIONOPTIONS_READONLY.fields_by_name[ + "exact_staleness" +].containing_oneof = _TRANSACTIONOPTIONS_READONLY.oneofs_by_name["timestamp_bound"] +_TRANSACTIONOPTIONS.fields_by_name[ + "read_write" +].message_type = _TRANSACTIONOPTIONS_READWRITE +_TRANSACTIONOPTIONS.fields_by_name[ + "partitioned_dml" +].message_type = _TRANSACTIONOPTIONS_PARTITIONEDDML +_TRANSACTIONOPTIONS.fields_by_name[ + "read_only" +].message_type = _TRANSACTIONOPTIONS_READONLY +_TRANSACTIONOPTIONS.oneofs_by_name["mode"].fields.append( + _TRANSACTIONOPTIONS.fields_by_name["read_write"] +) +_TRANSACTIONOPTIONS.fields_by_name[ + "read_write" +].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name["mode"] +_TRANSACTIONOPTIONS.oneofs_by_name["mode"].fields.append( + _TRANSACTIONOPTIONS.fields_by_name["partitioned_dml"] +) +_TRANSACTIONOPTIONS.fields_by_name[ + "partitioned_dml" +].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name["mode"] +_TRANSACTIONOPTIONS.oneofs_by_name["mode"].fields.append( + _TRANSACTIONOPTIONS.fields_by_name["read_only"] +) +_TRANSACTIONOPTIONS.fields_by_name[ + "read_only" +].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name["mode"] +_TRANSACTION.fields_by_name[ + "read_timestamp" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRANSACTIONSELECTOR.fields_by_name["single_use"].message_type = _TRANSACTIONOPTIONS +_TRANSACTIONSELECTOR.fields_by_name["begin"].message_type = _TRANSACTIONOPTIONS +_TRANSACTIONSELECTOR.oneofs_by_name["selector"].fields.append( + _TRANSACTIONSELECTOR.fields_by_name["single_use"] +) +_TRANSACTIONSELECTOR.fields_by_name[ + "single_use" +].containing_oneof = _TRANSACTIONSELECTOR.oneofs_by_name["selector"] +_TRANSACTIONSELECTOR.oneofs_by_name["selector"].fields.append( + _TRANSACTIONSELECTOR.fields_by_name["id"] +) +_TRANSACTIONSELECTOR.fields_by_name[ + "id" +].containing_oneof = _TRANSACTIONSELECTOR.oneofs_by_name["selector"] +_TRANSACTIONSELECTOR.oneofs_by_name["selector"].fields.append( + _TRANSACTIONSELECTOR.fields_by_name["begin"] +) +_TRANSACTIONSELECTOR.fields_by_name[ + "begin" +].containing_oneof = _TRANSACTIONSELECTOR.oneofs_by_name["selector"] +DESCRIPTOR.message_types_by_name["TransactionOptions"] = _TRANSACTIONOPTIONS +DESCRIPTOR.message_types_by_name["Transaction"] = _TRANSACTION +DESCRIPTOR.message_types_by_name["TransactionSelector"] = _TRANSACTIONSELECTOR _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TransactionOptions = _reflection.GeneratedProtocolMessageType('TransactionOptions', (_message.Message,), dict( - - ReadWrite = _reflection.GeneratedProtocolMessageType('ReadWrite', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTIONOPTIONS_READWRITE, - __module__ = 'google.cloud.spanner_v1.proto.transaction_pb2' - , - __doc__ = """Message type to initiate a read-write transaction. Currently this +TransactionOptions = _reflection.GeneratedProtocolMessageType( + "TransactionOptions", + (_message.Message,), + dict( + ReadWrite=_reflection.GeneratedProtocolMessageType( + "ReadWrite", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSACTIONOPTIONS_READWRITE, + __module__="google.cloud.spanner_v1.proto.transaction_pb2", + __doc__="""Message type to initiate a read-write transaction. Currently this transaction type has no options. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions.ReadWrite) - )) - , - - PartitionedDml = _reflection.GeneratedProtocolMessageType('PartitionedDml', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTIONOPTIONS_PARTITIONEDDML, - __module__ = 'google.cloud.spanner_v1.proto.transaction_pb2' - , - __doc__ = """Message type to initiate a Partitioned DML transaction. + # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions.ReadWrite) + ), + ), + PartitionedDml=_reflection.GeneratedProtocolMessageType( + "PartitionedDml", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSACTIONOPTIONS_PARTITIONEDDML, + __module__="google.cloud.spanner_v1.proto.transaction_pb2", + __doc__="""Message type to initiate a Partitioned DML transaction. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions.PartitionedDml) - )) - , - - ReadOnly = _reflection.GeneratedProtocolMessageType('ReadOnly', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTIONOPTIONS_READONLY, - __module__ = 'google.cloud.spanner_v1.proto.transaction_pb2' - , - __doc__ = """Message type to initiate a read-only transaction. + # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions.PartitionedDml) + ), + ), + ReadOnly=_reflection.GeneratedProtocolMessageType( + "ReadOnly", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSACTIONOPTIONS_READONLY, + __module__="google.cloud.spanner_v1.proto.transaction_pb2", + __doc__="""Message type to initiate a read-only transaction. Attributes: @@ -408,13 +622,12 @@ in the [Transaction][google.spanner.v1.Transaction] message that describes the transaction. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions.ReadOnly) - )) - , - DESCRIPTOR = _TRANSACTIONOPTIONS, - __module__ = 'google.cloud.spanner_v1.proto.transaction_pb2' - , - __doc__ = """Transactions + # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions.ReadOnly) + ), + ), + DESCRIPTOR=_TRANSACTIONOPTIONS, + __module__="google.cloud.spanner_v1.proto.transaction_pb2", + __doc__="""Transactions Each session can have at most one active transaction at a time. After @@ -721,18 +934,21 @@ ``spanner.databases.beginReadOnlyTransaction`` permission on the ``session`` resource. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionOptions) + ), +) _sym_db.RegisterMessage(TransactionOptions) _sym_db.RegisterMessage(TransactionOptions.ReadWrite) _sym_db.RegisterMessage(TransactionOptions.PartitionedDml) _sym_db.RegisterMessage(TransactionOptions.ReadOnly) -Transaction = _reflection.GeneratedProtocolMessageType('Transaction', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTION, - __module__ = 'google.cloud.spanner_v1.proto.transaction_pb2' - , - __doc__ = """A transaction. +Transaction = _reflection.GeneratedProtocolMessageType( + "Transaction", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSACTION, + __module__="google.cloud.spanner_v1.proto.transaction_pb2", + __doc__="""A transaction. Attributes: @@ -752,15 +968,18 @@ timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: ``"2014-10-02T15:01:23.045123456Z"``. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.Transaction) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.Transaction) + ), +) _sym_db.RegisterMessage(Transaction) -TransactionSelector = _reflection.GeneratedProtocolMessageType('TransactionSelector', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTIONSELECTOR, - __module__ = 'google.cloud.spanner_v1.proto.transaction_pb2' - , - __doc__ = """This message is used to select the transaction in which a +TransactionSelector = _reflection.GeneratedProtocolMessageType( + "TransactionSelector", + (_message.Message,), + dict( + DESCRIPTOR=_TRANSACTIONSELECTOR, + __module__="google.cloud.spanner_v1.proto.transaction_pb2", + __doc__="""This message is used to select the transaction in which a [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] call runs. @@ -786,11 +1005,17 @@ data.transaction], which is a [Transaction][google.spanner.v1.Transaction]. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionSelector) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.TransactionSelector) + ), +) _sym_db.RegisterMessage(TransactionSelector) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.google.spanner.v1B\020TransactionProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\025com.google.spanner.v1B\020TransactionProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_v1/proto/transaction_pb2_grpc.py b/spanner/google/cloud/spanner_v1/proto/transaction_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/spanner/google/cloud/spanner_v1/proto/transaction_pb2_grpc.py +++ b/spanner/google/cloud/spanner_v1/proto/transaction_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/spanner/google/cloud/spanner_v1/proto/type_pb2.py b/spanner/google/cloud/spanner_v1/proto/type_pb2.py index 5467deb39e1f0..5252b6e294801 100644 --- a/spanner/google/cloud/spanner_v1/proto/type_pb2.py +++ b/spanner/google/cloud/spanner_v1/proto/type_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/spanner_v1/proto/type.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,64 +20,56 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/spanner_v1/proto/type.proto', - package='google.spanner.v1', - syntax='proto3', - serialized_pb=_b('\n(google/cloud/spanner_v1/proto/type.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n\x04Type\x12)\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1b.google.spanner.v1.TypeCode\x12\x33\n\x12\x61rray_element_type\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type\x12\x32\n\x0bstruct_type\x18\x03 \x01(\x0b\x32\x1d.google.spanner.v1.StructType\"\x7f\n\nStructType\x12\x33\n\x06\x66ields\x18\x01 \x03(\x0b\x32#.google.spanner.v1.StructType.Field\x1a<\n\x05\x46ield\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x04type\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type*\x8e\x01\n\x08TypeCode\x12\x19\n\x15TYPE_CODE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\x0b\n\x07\x46LOAT64\x10\x03\x12\r\n\tTIMESTAMP\x10\x04\x12\x08\n\x04\x44\x41TE\x10\x05\x12\n\n\x06STRING\x10\x06\x12\t\n\x05\x42YTES\x10\x07\x12\t\n\x05\x41RRAY\x10\x08\x12\n\n\x06STRUCT\x10\tB\x92\x01\n\x15\x63om.google.spanner.v1B\tTypeProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + name="google/cloud/spanner_v1/proto/type.proto", + package="google.spanner.v1", + syntax="proto3", + serialized_pb=_b( + '\n(google/cloud/spanner_v1/proto/type.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto"\x9a\x01\n\x04Type\x12)\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1b.google.spanner.v1.TypeCode\x12\x33\n\x12\x61rray_element_type\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type\x12\x32\n\x0bstruct_type\x18\x03 \x01(\x0b\x32\x1d.google.spanner.v1.StructType"\x7f\n\nStructType\x12\x33\n\x06\x66ields\x18\x01 \x03(\x0b\x32#.google.spanner.v1.StructType.Field\x1a<\n\x05\x46ield\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x04type\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type*\x8e\x01\n\x08TypeCode\x12\x19\n\x15TYPE_CODE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\x0b\n\x07\x46LOAT64\x10\x03\x12\r\n\tTIMESTAMP\x10\x04\x12\x08\n\x04\x44\x41TE\x10\x05\x12\n\n\x06STRING\x10\x06\x12\t\n\x05\x42YTES\x10\x07\x12\t\n\x05\x41RRAY\x10\x08\x12\n\n\x06STRUCT\x10\tB\x92\x01\n\x15\x63om.google.spanner.v1B\tTypeProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1b\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _TYPECODE = _descriptor.EnumDescriptor( - name='TypeCode', - full_name='google.spanner.v1.TypeCode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_CODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BOOL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INT64', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FLOAT64', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TIMESTAMP', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STRING', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BYTES', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ARRAY', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STRUCT', index=9, number=9, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=380, - serialized_end=522, + name="TypeCode", + full_name="google.spanner.v1.TypeCode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_CODE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BOOL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INT64", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FLOAT64", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TIMESTAMP", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DATE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STRING", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BYTES", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ARRAY", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="STRUCT", index=9, number=9, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=380, + serialized_end=522, ) _sym_db.RegisterEnumDescriptor(_TYPECODE) @@ -92,135 +86,193 @@ STRUCT = 9 - _TYPE = _descriptor.Descriptor( - name='Type', - full_name='google.spanner.v1.Type', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='code', full_name='google.spanner.v1.Type.code', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='array_element_type', full_name='google.spanner.v1.Type.array_element_type', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='struct_type', full_name='google.spanner.v1.Type.struct_type', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=94, - serialized_end=248, + name="Type", + full_name="google.spanner.v1.Type", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="code", + full_name="google.spanner.v1.Type.code", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="array_element_type", + full_name="google.spanner.v1.Type.array_element_type", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="struct_type", + full_name="google.spanner.v1.Type.struct_type", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=94, + serialized_end=248, ) _STRUCTTYPE_FIELD = _descriptor.Descriptor( - name='Field', - full_name='google.spanner.v1.StructType.Field', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.spanner.v1.StructType.Field.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.spanner.v1.StructType.Field.type', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=317, - serialized_end=377, + name="Field", + full_name="google.spanner.v1.StructType.Field", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.spanner.v1.StructType.Field.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.spanner.v1.StructType.Field.type", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=317, + serialized_end=377, ) _STRUCTTYPE = _descriptor.Descriptor( - name='StructType', - full_name='google.spanner.v1.StructType', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='fields', full_name='google.spanner.v1.StructType.fields', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_STRUCTTYPE_FIELD, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=250, - serialized_end=377, + name="StructType", + full_name="google.spanner.v1.StructType", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="fields", + full_name="google.spanner.v1.StructType.fields", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_STRUCTTYPE_FIELD], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=250, + serialized_end=377, ) -_TYPE.fields_by_name['code'].enum_type = _TYPECODE -_TYPE.fields_by_name['array_element_type'].message_type = _TYPE -_TYPE.fields_by_name['struct_type'].message_type = _STRUCTTYPE -_STRUCTTYPE_FIELD.fields_by_name['type'].message_type = _TYPE +_TYPE.fields_by_name["code"].enum_type = _TYPECODE +_TYPE.fields_by_name["array_element_type"].message_type = _TYPE +_TYPE.fields_by_name["struct_type"].message_type = _STRUCTTYPE +_STRUCTTYPE_FIELD.fields_by_name["type"].message_type = _TYPE _STRUCTTYPE_FIELD.containing_type = _STRUCTTYPE -_STRUCTTYPE.fields_by_name['fields'].message_type = _STRUCTTYPE_FIELD -DESCRIPTOR.message_types_by_name['Type'] = _TYPE -DESCRIPTOR.message_types_by_name['StructType'] = _STRUCTTYPE -DESCRIPTOR.enum_types_by_name['TypeCode'] = _TYPECODE +_STRUCTTYPE.fields_by_name["fields"].message_type = _STRUCTTYPE_FIELD +DESCRIPTOR.message_types_by_name["Type"] = _TYPE +DESCRIPTOR.message_types_by_name["StructType"] = _STRUCTTYPE +DESCRIPTOR.enum_types_by_name["TypeCode"] = _TYPECODE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Type = _reflection.GeneratedProtocolMessageType('Type', (_message.Message,), dict( - DESCRIPTOR = _TYPE, - __module__ = 'google.cloud.spanner_v1.proto.type_pb2' - , - __doc__ = """``Type`` indicates the type of a Cloud Spanner value, as might be stored +Type = _reflection.GeneratedProtocolMessageType( + "Type", + (_message.Message,), + dict( + DESCRIPTOR=_TYPE, + __module__="google.cloud.spanner_v1.proto.type_pb2", + __doc__="""``Type`` indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query. @@ -238,17 +290,22 @@ ``struct_type`` provides type information for the struct's fields. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.Type) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.Type) + ), +) _sym_db.RegisterMessage(Type) -StructType = _reflection.GeneratedProtocolMessageType('StructType', (_message.Message,), dict( - - Field = _reflection.GeneratedProtocolMessageType('Field', (_message.Message,), dict( - DESCRIPTOR = _STRUCTTYPE_FIELD, - __module__ = 'google.cloud.spanner_v1.proto.type_pb2' - , - __doc__ = """Message representing a single field of a struct. +StructType = _reflection.GeneratedProtocolMessageType( + "StructType", + (_message.Message,), + dict( + Field=_reflection.GeneratedProtocolMessageType( + "Field", + (_message.Message,), + dict( + DESCRIPTOR=_STRUCTTYPE_FIELD, + __module__="google.cloud.spanner_v1.proto.type_pb2", + __doc__="""Message representing a single field of a struct. Attributes: @@ -263,13 +320,12 @@ type: The type of the field. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.StructType.Field) - )) - , - DESCRIPTOR = _STRUCTTYPE, - __module__ = 'google.cloud.spanner_v1.proto.type_pb2' - , - __doc__ = """``StructType`` defines the fields of a + # @@protoc_insertion_point(class_scope:google.spanner.v1.StructType.Field) + ), + ), + DESCRIPTOR=_STRUCTTYPE, + __module__="google.cloud.spanner_v1.proto.type_pb2", + __doc__="""``StructType`` defines the fields of a [STRUCT][google.spanner.v1.TypeCode.STRUCT] type. @@ -283,12 +339,18 @@ of fields matches the order of columns in a read request, or the order of fields in the ``SELECT`` clause of a query. """, - # @@protoc_insertion_point(class_scope:google.spanner.v1.StructType) - )) + # @@protoc_insertion_point(class_scope:google.spanner.v1.StructType) + ), +) _sym_db.RegisterMessage(StructType) _sym_db.RegisterMessage(StructType.Field) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.google.spanner.v1B\tTypeProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\025com.google.spanner.v1B\tTypeProtoP\001Z8google.golang.org/genproto/googleapis/spanner/v1;spanner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/spanner/google/cloud/spanner_v1/proto/type_pb2_grpc.py b/spanner/google/cloud/spanner_v1/proto/type_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/spanner/google/cloud/spanner_v1/proto/type_pb2_grpc.py +++ b/spanner/google/cloud/spanner_v1/proto/type_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/speech/google/cloud/speech_v1/proto/cloud_speech_pb2.py b/speech/google/cloud/speech_v1/proto/cloud_speech_pb2.py index 3cd9148489889..c4e56d5596814 100644 --- a/speech/google/cloud/speech_v1/proto/cloud_speech_pb2.py +++ b/speech/google/cloud/speech_v1/proto/cloud_speech_pb2.py @@ -3,19 +3,23 @@ # source: google/cloud/speech_v1/proto/cloud_speech.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -24,787 +28,1245 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/speech_v1/proto/cloud_speech.proto', - package='google.cloud.speech.v1', - syntax='proto3', - serialized_pb=_b('\n/google/cloud/speech_v1/proto/cloud_speech.proto\x12\x16google.cloud.speech.v1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x86\x01\n\x10RecognizeRequest\x12\x39\n\x06\x63onfig\x18\x01 \x01(\x0b\x32).google.cloud.speech.v1.RecognitionConfig\x12\x37\n\x05\x61udio\x18\x02 \x01(\x0b\x32(.google.cloud.speech.v1.RecognitionAudio\"\x91\x01\n\x1bLongRunningRecognizeRequest\x12\x39\n\x06\x63onfig\x18\x01 \x01(\x0b\x32).google.cloud.speech.v1.RecognitionConfig\x12\x37\n\x05\x61udio\x18\x02 \x01(\x0b\x32(.google.cloud.speech.v1.RecognitionAudio\"\x99\x01\n\x19StreamingRecognizeRequest\x12N\n\x10streaming_config\x18\x01 \x01(\x0b\x32\x32.google.cloud.speech.v1.StreamingRecognitionConfigH\x00\x12\x17\n\raudio_content\x18\x02 \x01(\x0cH\x00\x42\x13\n\x11streaming_request\"\x8a\x01\n\x1aStreamingRecognitionConfig\x12\x39\n\x06\x63onfig\x18\x01 \x01(\x0b\x32).google.cloud.speech.v1.RecognitionConfig\x12\x18\n\x10single_utterance\x18\x02 \x01(\x08\x12\x17\n\x0finterim_results\x18\x03 \x01(\x08\"\xff\x03\n\x11RecognitionConfig\x12I\n\x08\x65ncoding\x18\x01 \x01(\x0e\x32\x37.google.cloud.speech.v1.RecognitionConfig.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x18\n\x10max_alternatives\x18\x04 \x01(\x05\x12\x18\n\x10profanity_filter\x18\x05 \x01(\x08\x12>\n\x0fspeech_contexts\x18\x06 \x03(\x0b\x32%.google.cloud.speech.v1.SpeechContext\x12 \n\x18\x65nable_word_time_offsets\x18\x08 \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x0b \x01(\x08\x12\r\n\x05model\x18\r \x01(\t\x12\x14\n\x0cuse_enhanced\x18\x0e \x01(\x08\"\x8b\x01\n\rAudioEncoding\x12\x18\n\x14\x45NCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x08\n\x04\x46LAC\x10\x02\x12\t\n\x05MULAW\x10\x03\x12\x07\n\x03\x41MR\x10\x04\x12\n\n\x06\x41MR_WB\x10\x05\x12\x0c\n\x08OGG_OPUS\x10\x06\x12\x1a\n\x16SPEEX_WITH_HEADER_BYTE\x10\x07\" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\"D\n\x10RecognitionAudio\x12\x11\n\x07\x63ontent\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x42\x0e\n\x0c\x61udio_source\"U\n\x11RecognizeResponse\x12@\n\x07results\x18\x02 \x03(\x0b\x32/.google.cloud.speech.v1.SpeechRecognitionResult\"`\n\x1cLongRunningRecognizeResponse\x12@\n\x07results\x18\x02 \x03(\x0b\x32/.google.cloud.speech.v1.SpeechRecognitionResult\"\x9e\x01\n\x1cLongRunningRecognizeMetadata\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb1\x02\n\x1aStreamingRecognizeResponse\x12!\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12\x43\n\x07results\x18\x02 \x03(\x0b\x32\x32.google.cloud.speech.v1.StreamingRecognitionResult\x12]\n\x11speech_event_type\x18\x04 \x01(\x0e\x32\x42.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType\"L\n\x0fSpeechEventType\x12\x1c\n\x18SPEECH_EVENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x01\"\x8d\x01\n\x1aStreamingRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v1.SpeechRecognitionAlternative\x12\x10\n\x08is_final\x18\x02 \x01(\x08\x12\x11\n\tstability\x18\x03 \x01(\x02\"e\n\x17SpeechRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v1.SpeechRecognitionAlternative\"w\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12/\n\x05words\x18\x03 \x03(\x0b\x32 .google.cloud.speech.v1.WordInfo\"t\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t2\xa9\x03\n\x06Speech\x12\x81\x01\n\tRecognize\x12(.google.cloud.speech.v1.RecognizeRequest\x1a).google.cloud.speech.v1.RecognizeResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/v1/speech:recognize:\x01*\x12\x96\x01\n\x14LongRunningRecognize\x12\x33.google.cloud.speech.v1.LongRunningRecognizeRequest\x1a\x1d.google.longrunning.Operation\"*\x82\xd3\xe4\x93\x02$\"\x1f/v1/speech:longrunningrecognize:\x01*\x12\x81\x01\n\x12StreamingRecognize\x12\x31.google.cloud.speech.v1.StreamingRecognizeRequest\x1a\x32.google.cloud.speech.v1.StreamingRecognizeResponse\"\x00(\x01\x30\x01\x42l\n\x1a\x63om.google.cloud.speech.v1B\x0bSpeechProtoP\x01Z\n\x0fspeech_contexts\x18\x06 \x03(\x0b\x32%.google.cloud.speech.v1.SpeechContext\x12 \n\x18\x65nable_word_time_offsets\x18\x08 \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x0b \x01(\x08\x12\r\n\x05model\x18\r \x01(\t\x12\x14\n\x0cuse_enhanced\x18\x0e \x01(\x08"\x8b\x01\n\rAudioEncoding\x12\x18\n\x14\x45NCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x08\n\x04\x46LAC\x10\x02\x12\t\n\x05MULAW\x10\x03\x12\x07\n\x03\x41MR\x10\x04\x12\n\n\x06\x41MR_WB\x10\x05\x12\x0c\n\x08OGG_OPUS\x10\x06\x12\x1a\n\x16SPEEX_WITH_HEADER_BYTE\x10\x07" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t"D\n\x10RecognitionAudio\x12\x11\n\x07\x63ontent\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x42\x0e\n\x0c\x61udio_source"U\n\x11RecognizeResponse\x12@\n\x07results\x18\x02 \x03(\x0b\x32/.google.cloud.speech.v1.SpeechRecognitionResult"`\n\x1cLongRunningRecognizeResponse\x12@\n\x07results\x18\x02 \x03(\x0b\x32/.google.cloud.speech.v1.SpeechRecognitionResult"\x9e\x01\n\x1cLongRunningRecognizeMetadata\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb1\x02\n\x1aStreamingRecognizeResponse\x12!\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12\x43\n\x07results\x18\x02 \x03(\x0b\x32\x32.google.cloud.speech.v1.StreamingRecognitionResult\x12]\n\x11speech_event_type\x18\x04 \x01(\x0e\x32\x42.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType"L\n\x0fSpeechEventType\x12\x1c\n\x18SPEECH_EVENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x01"\x8d\x01\n\x1aStreamingRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v1.SpeechRecognitionAlternative\x12\x10\n\x08is_final\x18\x02 \x01(\x08\x12\x11\n\tstability\x18\x03 \x01(\x02"e\n\x17SpeechRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v1.SpeechRecognitionAlternative"w\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12/\n\x05words\x18\x03 \x03(\x0b\x32 .google.cloud.speech.v1.WordInfo"t\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t2\xa9\x03\n\x06Speech\x12\x81\x01\n\tRecognize\x12(.google.cloud.speech.v1.RecognizeRequest\x1a).google.cloud.speech.v1.RecognizeResponse"\x1f\x82\xd3\xe4\x93\x02\x19"\x14/v1/speech:recognize:\x01*\x12\x96\x01\n\x14LongRunningRecognize\x12\x33.google.cloud.speech.v1.LongRunningRecognizeRequest\x1a\x1d.google.longrunning.Operation"*\x82\xd3\xe4\x93\x02$"\x1f/v1/speech:longrunningrecognize:\x01*\x12\x81\x01\n\x12StreamingRecognize\x12\x31.google.cloud.speech.v1.StreamingRecognizeRequest\x1a\x32.google.cloud.speech.v1.StreamingRecognizeResponse"\x00(\x01\x30\x01\x42l\n\x1a\x63om.google.cloud.speech.v1B\x0bSpeechProtoP\x01Z`__. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeRequest) + ), +) _sym_db.RegisterMessage(StreamingRecognizeRequest) -StreamingRecognitionConfig = _reflection.GeneratedProtocolMessageType('StreamingRecognitionConfig', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGRECOGNITIONCONFIG, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """Provides information to the recognizer that specifies how to process the +StreamingRecognitionConfig = _reflection.GeneratedProtocolMessageType( + "StreamingRecognitionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGRECOGNITIONCONFIG, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""Provides information to the recognizer that specifies how to process the request. @@ -904,15 +1375,18 @@ ``false`` or omitted, only ``is_final=true`` result(s) are returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionConfig) + ), +) _sym_db.RegisterMessage(StreamingRecognitionConfig) -RecognitionConfig = _reflection.GeneratedProtocolMessageType('RecognitionConfig', (_message.Message,), dict( - DESCRIPTOR = _RECOGNITIONCONFIG, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """Provides information to the recognizer that specifies how to process the +RecognitionConfig = _reflection.GeneratedProtocolMessageType( + "RecognitionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNITIONCONFIG, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""Provides information to the recognizer that specifies how to process the request. @@ -1012,15 +1486,18 @@ have not enabled audio logging, then you will receive an error. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionConfig) + ), +) _sym_db.RegisterMessage(RecognitionConfig) -SpeechContext = _reflection.GeneratedProtocolMessageType('SpeechContext', (_message.Message,), dict( - DESCRIPTOR = _SPEECHCONTEXT, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """Provides "hints" to the speech recognizer to favor specific words and +SpeechContext = _reflection.GeneratedProtocolMessageType( + "SpeechContext", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHCONTEXT, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""Provides "hints" to the speech recognizer to favor specific words and phrases in the results. @@ -1034,15 +1511,18 @@ additional words to the vocabulary of the recognizer. See `usage limits `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechContext) + ), +) _sym_db.RegisterMessage(SpeechContext) -RecognitionAudio = _reflection.GeneratedProtocolMessageType('RecognitionAudio', (_message.Message,), dict( - DESCRIPTOR = _RECOGNITIONAUDIO, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """Contains audio data in the encoding specified in the +RecognitionAudio = _reflection.GeneratedProtocolMessageType( + "RecognitionAudio", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNITIONAUDIO, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""Contains audio data in the encoding specified in the ``RecognitionConfig``. Either ``content`` or ``uri`` must be supplied. Supplying both or neither returns [google.rpc.Code.INVALID\_ARGUMENT][google.rpc.Code.INVALID\_ARGUMENT]. @@ -1069,15 +1549,18 @@ URIs `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionAudio) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionAudio) + ), +) _sym_db.RegisterMessage(RecognitionAudio) -RecognizeResponse = _reflection.GeneratedProtocolMessageType('RecognizeResponse', (_message.Message,), dict( - DESCRIPTOR = _RECOGNIZERESPONSE, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """The only message returned to the client by the ``Recognize`` method. It +RecognizeResponse = _reflection.GeneratedProtocolMessageType( + "RecognizeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNIZERESPONSE, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""The only message returned to the client by the ``Recognize`` method. It contains the result as zero or more sequential ``SpeechRecognitionResult`` messages. @@ -1087,15 +1570,18 @@ Output only. Sequential list of transcription results corresponding to sequential portions of audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognizeResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognizeResponse) + ), +) _sym_db.RegisterMessage(RecognizeResponse) -LongRunningRecognizeResponse = _reflection.GeneratedProtocolMessageType('LongRunningRecognizeResponse', (_message.Message,), dict( - DESCRIPTOR = _LONGRUNNINGRECOGNIZERESPONSE, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """The only message returned to the client by the ``LongRunningRecognize`` +LongRunningRecognizeResponse = _reflection.GeneratedProtocolMessageType( + "LongRunningRecognizeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LONGRUNNINGRECOGNIZERESPONSE, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""The only message returned to the client by the ``LongRunningRecognize`` method. It contains the result as zero or more sequential ``SpeechRecognitionResult`` messages. It is included in the ``result.response`` field of the ``Operation`` returned by the @@ -1108,15 +1594,18 @@ Output only. Sequential list of transcription results corresponding to sequential portions of audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeResponse) + ), +) _sym_db.RegisterMessage(LongRunningRecognizeResponse) -LongRunningRecognizeMetadata = _reflection.GeneratedProtocolMessageType('LongRunningRecognizeMetadata', (_message.Message,), dict( - DESCRIPTOR = _LONGRUNNINGRECOGNIZEMETADATA, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """Describes the progress of a long-running ``LongRunningRecognize`` call. +LongRunningRecognizeMetadata = _reflection.GeneratedProtocolMessageType( + "LongRunningRecognizeMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_LONGRUNNINGRECOGNIZEMETADATA, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""Describes the progress of a long-running ``LongRunningRecognize`` call. It is included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1132,15 +1621,18 @@ last_update_time: Time of the most recent processing update. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeMetadata) + ), +) _sym_db.RegisterMessage(LongRunningRecognizeMetadata) -StreamingRecognizeResponse = _reflection.GeneratedProtocolMessageType('StreamingRecognizeResponse', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGRECOGNIZERESPONSE, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """``StreamingRecognizeResponse`` is the only message returned to the +StreamingRecognizeResponse = _reflection.GeneratedProtocolMessageType( + "StreamingRecognizeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGRECOGNIZERESPONSE, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""``StreamingRecognizeResponse`` is the only message returned to the client by ``StreamingRecognize``. A series of zero or more ``StreamingRecognizeResponse`` messages are streamed back to the client. If there is no recognizable audio, and ``single_utterance`` is set to @@ -1205,15 +1697,18 @@ speech_event_type: Output only. Indicates the type of speech event. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeResponse) + ), +) _sym_db.RegisterMessage(StreamingRecognizeResponse) -StreamingRecognitionResult = _reflection.GeneratedProtocolMessageType('StreamingRecognitionResult', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGRECOGNITIONRESULT, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """A streaming speech recognition result corresponding to a portion of the +StreamingRecognitionResult = _reflection.GeneratedProtocolMessageType( + "StreamingRecognitionResult", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGRECOGNITIONRESULT, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""A streaming speech recognition result corresponding to a portion of the audio that is currently being processed. @@ -1239,15 +1734,18 @@ (``is_final=false``). The default of 0.0 is a sentinel value indicating ``stability`` was not set. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionResult) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionResult) + ), +) _sym_db.RegisterMessage(StreamingRecognitionResult) -SpeechRecognitionResult = _reflection.GeneratedProtocolMessageType('SpeechRecognitionResult', (_message.Message,), dict( - DESCRIPTOR = _SPEECHRECOGNITIONRESULT, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """A speech recognition result corresponding to a portion of the audio. +SpeechRecognitionResult = _reflection.GeneratedProtocolMessageType( + "SpeechRecognitionResult", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHRECOGNITIONRESULT, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""A speech recognition result corresponding to a portion of the audio. Attributes: @@ -1258,15 +1756,18 @@ (first) alternative being the most probable, as ranked by the recognizer. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionResult) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionResult) + ), +) _sym_db.RegisterMessage(SpeechRecognitionResult) -SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType('SpeechRecognitionAlternative', (_message.Message,), dict( - DESCRIPTOR = _SPEECHRECOGNITIONALTERNATIVE, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """Alternative hypotheses (a.k.a. n-best list). +SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType( + "SpeechRecognitionAlternative", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHRECOGNITIONALTERNATIVE, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""Alternative hypotheses (a.k.a. n-best list). Attributes: @@ -1286,15 +1787,18 @@ Output only. A list of word-specific information for each recognized word. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionAlternative) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionAlternative) + ), +) _sym_db.RegisterMessage(SpeechRecognitionAlternative) -WordInfo = _reflection.GeneratedProtocolMessageType('WordInfo', (_message.Message,), dict( - DESCRIPTOR = _WORDINFO, - __module__ = 'google.cloud.speech_v1.proto.cloud_speech_pb2' - , - __doc__ = """Word-specific information for recognized words. +WordInfo = _reflection.GeneratedProtocolMessageType( + "WordInfo", + (_message.Message,), + dict( + DESCRIPTOR=_WORDINFO, + __module__="google.cloud.speech_v1.proto.cloud_speech_pb2", + __doc__="""Word-specific information for recognized words. Attributes: @@ -1314,53 +1818,66 @@ Output only. The word corresponding to this set of information. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.WordInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1.WordInfo) + ), +) _sym_db.RegisterMessage(WordInfo) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\032com.google.cloud.speech.v1B\013SpeechProtoP\001Z\n\x05\x61udio\x18\x02 \x01(\x0b\x32/.google.cloud.speech.v1p1beta1.RecognitionAudio\"\x9f\x01\n\x1bLongRunningRecognizeRequest\x12@\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x30.google.cloud.speech.v1p1beta1.RecognitionConfig\x12>\n\x05\x61udio\x18\x02 \x01(\x0b\x32/.google.cloud.speech.v1p1beta1.RecognitionAudio\"\xa0\x01\n\x19StreamingRecognizeRequest\x12U\n\x10streaming_config\x18\x01 \x01(\x0b\x32\x39.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigH\x00\x12\x17\n\raudio_content\x18\x02 \x01(\x0cH\x00\x42\x13\n\x11streaming_request\"\x91\x01\n\x1aStreamingRecognitionConfig\x12@\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x30.google.cloud.speech.v1p1beta1.RecognitionConfig\x12\x18\n\x10single_utterance\x18\x02 \x01(\x08\x12\x17\n\x0finterim_results\x18\x03 \x01(\x08\"\xac\x06\n\x11RecognitionConfig\x12P\n\x08\x65ncoding\x18\x01 \x01(\x0e\x32>.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x1b\n\x13\x61udio_channel_count\x18\x07 \x01(\x05\x12/\n\'enable_separate_recognition_per_channel\x18\x0c \x01(\x08\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\"\n\x1a\x61lternative_language_codes\x18\x12 \x03(\t\x12\x18\n\x10max_alternatives\x18\x04 \x01(\x05\x12\x18\n\x10profanity_filter\x18\x05 \x01(\x08\x12\x45\n\x0fspeech_contexts\x18\x06 \x03(\x0b\x32,.google.cloud.speech.v1p1beta1.SpeechContext\x12 \n\x18\x65nable_word_time_offsets\x18\x08 \x01(\x08\x12\x1e\n\x16\x65nable_word_confidence\x18\x0f \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x0b \x01(\x08\x12\"\n\x1a\x65nable_speaker_diarization\x18\x10 \x01(\x08\x12!\n\x19\x64iarization_speaker_count\x18\x11 \x01(\x05\x12\x44\n\x08metadata\x18\t \x01(\x0b\x32\x32.google.cloud.speech.v1p1beta1.RecognitionMetadata\x12\r\n\x05model\x18\r \x01(\t\x12\x14\n\x0cuse_enhanced\x18\x0e \x01(\x08\"\x8b\x01\n\rAudioEncoding\x12\x18\n\x14\x45NCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x08\n\x04\x46LAC\x10\x02\x12\t\n\x05MULAW\x10\x03\x12\x07\n\x03\x41MR\x10\x04\x12\n\n\x06\x41MR_WB\x10\x05\x12\x0c\n\x08OGG_OPUS\x10\x06\x12\x1a\n\x16SPEEX_WITH_HEADER_BYTE\x10\x07\"\xd3\x08\n\x13RecognitionMetadata\x12\\\n\x10interaction_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType\x12$\n\x1cindustry_naics_code_of_audio\x18\x03 \x01(\r\x12\x62\n\x13microphone_distance\x18\x04 \x01(\x0e\x32\x45.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance\x12\x61\n\x13original_media_type\x18\x05 \x01(\x0e\x32\x44.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType\x12\x65\n\x15recording_device_type\x18\x06 \x01(\x0e\x32\x46.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType\x12\x1d\n\x15recording_device_name\x18\x07 \x01(\t\x12\x1a\n\x12original_mime_type\x18\x08 \x01(\t\x12\x15\n\robfuscated_id\x18\t \x01(\x03\x12\x13\n\x0b\x61udio_topic\x18\n \x01(\t\"\xc5\x01\n\x0fInteractionType\x12 \n\x1cINTERACTION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nDISCUSSION\x10\x01\x12\x10\n\x0cPRESENTATION\x10\x02\x12\x0e\n\nPHONE_CALL\x10\x03\x12\r\n\tVOICEMAIL\x10\x04\x12\x1b\n\x17PROFESSIONALLY_PRODUCED\x10\x05\x12\x10\n\x0cVOICE_SEARCH\x10\x06\x12\x11\n\rVOICE_COMMAND\x10\x07\x12\r\n\tDICTATION\x10\x08\"d\n\x12MicrophoneDistance\x12#\n\x1fMICROPHONE_DISTANCE_UNSPECIFIED\x10\x00\x12\r\n\tNEARFIELD\x10\x01\x12\x0c\n\x08MIDFIELD\x10\x02\x12\x0c\n\x08\x46\x41RFIELD\x10\x03\"N\n\x11OriginalMediaType\x12#\n\x1fORIGINAL_MEDIA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41UDIO\x10\x01\x12\t\n\x05VIDEO\x10\x02\"\xa4\x01\n\x13RecordingDeviceType\x12%\n!RECORDING_DEVICE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nSMARTPHONE\x10\x01\x12\x06\n\x02PC\x10\x02\x12\x0e\n\nPHONE_LINE\x10\x03\x12\x0b\n\x07VEHICLE\x10\x04\x12\x18\n\x14OTHER_OUTDOOR_DEVICE\x10\x05\x12\x17\n\x13OTHER_INDOOR_DEVICE\x10\x06\" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\"D\n\x10RecognitionAudio\x12\x11\n\x07\x63ontent\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x42\x0e\n\x0c\x61udio_source\"\\\n\x11RecognizeResponse\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.cloud.speech.v1p1beta1.SpeechRecognitionResult\"g\n\x1cLongRunningRecognizeResponse\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.cloud.speech.v1p1beta1.SpeechRecognitionResult\"\x9e\x01\n\x1cLongRunningRecognizeMetadata\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xbf\x02\n\x1aStreamingRecognizeResponse\x12!\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.cloud.speech.v1p1beta1.StreamingRecognitionResult\x12\x64\n\x11speech_event_type\x18\x04 \x01(\x0e\x32I.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType\"L\n\x0fSpeechEventType\x12\x1c\n\x18SPEECH_EVENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x01\"\xf4\x01\n\x1aStreamingRecognitionResult\x12Q\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32;.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative\x12\x10\n\x08is_final\x18\x02 \x01(\x08\x12\x11\n\tstability\x18\x03 \x01(\x02\x12\x32\n\x0fresult_end_time\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x63hannel_tag\x18\x05 \x01(\x05\x12\x15\n\rlanguage_code\x18\x06 \x01(\t\"\x98\x01\n\x17SpeechRecognitionResult\x12Q\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32;.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative\x12\x13\n\x0b\x63hannel_tag\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x05 \x01(\t\"~\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x36\n\x05words\x18\x03 \x03(\x0b\x32\'.google.cloud.speech.v1p1beta1.WordInfo\"\x9d\x01\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x13\n\x0bspeaker_tag\x18\x05 \x01(\x05\x32\xda\x03\n\x06Speech\x12\x96\x01\n\tRecognize\x12/.google.cloud.speech.v1p1beta1.RecognizeRequest\x1a\x30.google.cloud.speech.v1p1beta1.RecognizeResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1p1beta1/speech:recognize:\x01*\x12\xa4\x01\n\x14LongRunningRecognize\x12:.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest\x1a\x1d.google.longrunning.Operation\"1\x82\xd3\xe4\x93\x02+\"&/v1p1beta1/speech:longrunningrecognize:\x01*\x12\x8f\x01\n\x12StreamingRecognize\x12\x38.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest\x1a\x39.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse\"\x00(\x01\x30\x01\x42z\n!com.google.cloud.speech.v1p1beta1B\x0bSpeechProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/speech_v1p1beta1/proto/cloud_speech.proto", + package="google.cloud.speech.v1p1beta1", + syntax="proto3", + serialized_pb=_b( + '\n6google/cloud/speech_v1p1beta1/proto/cloud_speech.proto\x12\x1dgoogle.cloud.speech.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\x94\x01\n\x10RecognizeRequest\x12@\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x30.google.cloud.speech.v1p1beta1.RecognitionConfig\x12>\n\x05\x61udio\x18\x02 \x01(\x0b\x32/.google.cloud.speech.v1p1beta1.RecognitionAudio"\x9f\x01\n\x1bLongRunningRecognizeRequest\x12@\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x30.google.cloud.speech.v1p1beta1.RecognitionConfig\x12>\n\x05\x61udio\x18\x02 \x01(\x0b\x32/.google.cloud.speech.v1p1beta1.RecognitionAudio"\xa0\x01\n\x19StreamingRecognizeRequest\x12U\n\x10streaming_config\x18\x01 \x01(\x0b\x32\x39.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigH\x00\x12\x17\n\raudio_content\x18\x02 \x01(\x0cH\x00\x42\x13\n\x11streaming_request"\x91\x01\n\x1aStreamingRecognitionConfig\x12@\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x30.google.cloud.speech.v1p1beta1.RecognitionConfig\x12\x18\n\x10single_utterance\x18\x02 \x01(\x08\x12\x17\n\x0finterim_results\x18\x03 \x01(\x08"\xac\x06\n\x11RecognitionConfig\x12P\n\x08\x65ncoding\x18\x01 \x01(\x0e\x32>.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x1b\n\x13\x61udio_channel_count\x18\x07 \x01(\x05\x12/\n\'enable_separate_recognition_per_channel\x18\x0c \x01(\x08\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12"\n\x1a\x61lternative_language_codes\x18\x12 \x03(\t\x12\x18\n\x10max_alternatives\x18\x04 \x01(\x05\x12\x18\n\x10profanity_filter\x18\x05 \x01(\x08\x12\x45\n\x0fspeech_contexts\x18\x06 \x03(\x0b\x32,.google.cloud.speech.v1p1beta1.SpeechContext\x12 \n\x18\x65nable_word_time_offsets\x18\x08 \x01(\x08\x12\x1e\n\x16\x65nable_word_confidence\x18\x0f \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x0b \x01(\x08\x12"\n\x1a\x65nable_speaker_diarization\x18\x10 \x01(\x08\x12!\n\x19\x64iarization_speaker_count\x18\x11 \x01(\x05\x12\x44\n\x08metadata\x18\t \x01(\x0b\x32\x32.google.cloud.speech.v1p1beta1.RecognitionMetadata\x12\r\n\x05model\x18\r \x01(\t\x12\x14\n\x0cuse_enhanced\x18\x0e \x01(\x08"\x8b\x01\n\rAudioEncoding\x12\x18\n\x14\x45NCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x08\n\x04\x46LAC\x10\x02\x12\t\n\x05MULAW\x10\x03\x12\x07\n\x03\x41MR\x10\x04\x12\n\n\x06\x41MR_WB\x10\x05\x12\x0c\n\x08OGG_OPUS\x10\x06\x12\x1a\n\x16SPEEX_WITH_HEADER_BYTE\x10\x07"\xd3\x08\n\x13RecognitionMetadata\x12\\\n\x10interaction_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType\x12$\n\x1cindustry_naics_code_of_audio\x18\x03 \x01(\r\x12\x62\n\x13microphone_distance\x18\x04 \x01(\x0e\x32\x45.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance\x12\x61\n\x13original_media_type\x18\x05 \x01(\x0e\x32\x44.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType\x12\x65\n\x15recording_device_type\x18\x06 \x01(\x0e\x32\x46.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType\x12\x1d\n\x15recording_device_name\x18\x07 \x01(\t\x12\x1a\n\x12original_mime_type\x18\x08 \x01(\t\x12\x15\n\robfuscated_id\x18\t \x01(\x03\x12\x13\n\x0b\x61udio_topic\x18\n \x01(\t"\xc5\x01\n\x0fInteractionType\x12 \n\x1cINTERACTION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nDISCUSSION\x10\x01\x12\x10\n\x0cPRESENTATION\x10\x02\x12\x0e\n\nPHONE_CALL\x10\x03\x12\r\n\tVOICEMAIL\x10\x04\x12\x1b\n\x17PROFESSIONALLY_PRODUCED\x10\x05\x12\x10\n\x0cVOICE_SEARCH\x10\x06\x12\x11\n\rVOICE_COMMAND\x10\x07\x12\r\n\tDICTATION\x10\x08"d\n\x12MicrophoneDistance\x12#\n\x1fMICROPHONE_DISTANCE_UNSPECIFIED\x10\x00\x12\r\n\tNEARFIELD\x10\x01\x12\x0c\n\x08MIDFIELD\x10\x02\x12\x0c\n\x08\x46\x41RFIELD\x10\x03"N\n\x11OriginalMediaType\x12#\n\x1fORIGINAL_MEDIA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41UDIO\x10\x01\x12\t\n\x05VIDEO\x10\x02"\xa4\x01\n\x13RecordingDeviceType\x12%\n!RECORDING_DEVICE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nSMARTPHONE\x10\x01\x12\x06\n\x02PC\x10\x02\x12\x0e\n\nPHONE_LINE\x10\x03\x12\x0b\n\x07VEHICLE\x10\x04\x12\x18\n\x14OTHER_OUTDOOR_DEVICE\x10\x05\x12\x17\n\x13OTHER_INDOOR_DEVICE\x10\x06" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t"D\n\x10RecognitionAudio\x12\x11\n\x07\x63ontent\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x42\x0e\n\x0c\x61udio_source"\\\n\x11RecognizeResponse\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.cloud.speech.v1p1beta1.SpeechRecognitionResult"g\n\x1cLongRunningRecognizeResponse\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.cloud.speech.v1p1beta1.SpeechRecognitionResult"\x9e\x01\n\x1cLongRunningRecognizeMetadata\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xbf\x02\n\x1aStreamingRecognizeResponse\x12!\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.cloud.speech.v1p1beta1.StreamingRecognitionResult\x12\x64\n\x11speech_event_type\x18\x04 \x01(\x0e\x32I.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType"L\n\x0fSpeechEventType\x12\x1c\n\x18SPEECH_EVENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x01"\xf4\x01\n\x1aStreamingRecognitionResult\x12Q\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32;.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative\x12\x10\n\x08is_final\x18\x02 \x01(\x08\x12\x11\n\tstability\x18\x03 \x01(\x02\x12\x32\n\x0fresult_end_time\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x63hannel_tag\x18\x05 \x01(\x05\x12\x15\n\rlanguage_code\x18\x06 \x01(\t"\x98\x01\n\x17SpeechRecognitionResult\x12Q\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32;.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative\x12\x13\n\x0b\x63hannel_tag\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x05 \x01(\t"~\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x36\n\x05words\x18\x03 \x03(\x0b\x32\'.google.cloud.speech.v1p1beta1.WordInfo"\x9d\x01\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x13\n\x0bspeaker_tag\x18\x05 \x01(\x05\x32\xda\x03\n\x06Speech\x12\x96\x01\n\tRecognize\x12/.google.cloud.speech.v1p1beta1.RecognizeRequest\x1a\x30.google.cloud.speech.v1p1beta1.RecognizeResponse"&\x82\xd3\xe4\x93\x02 "\x1b/v1p1beta1/speech:recognize:\x01*\x12\xa4\x01\n\x14LongRunningRecognize\x12:.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest\x1a\x1d.google.longrunning.Operation"1\x82\xd3\xe4\x93\x02+"&/v1p1beta1/speech:longrunningrecognize:\x01*\x12\x8f\x01\n\x12StreamingRecognize\x12\x38.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest\x1a\x39.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse"\x00(\x01\x30\x01\x42z\n!com.google.cloud.speech.v1p1beta1B\x0bSpeechProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_any__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _RECOGNITIONCONFIG_AUDIOENCODING = _descriptor.EnumDescriptor( - name='AudioEncoding', - full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ENCODING_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINEAR16', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FLAC', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MULAW', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AMR', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AMR_WB', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OGG_OPUS', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPEEX_WITH_HEADER_BYTE', index=7, number=7, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1600, - serialized_end=1739, + name="AudioEncoding", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ENCODING_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LINEAR16", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FLAC", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MULAW", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AMR", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AMR_WB", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OGG_OPUS", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SPEEX_WITH_HEADER_BYTE", index=7, number=7, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1600, + serialized_end=1739, ) _sym_db.RegisterEnumDescriptor(_RECOGNITIONCONFIG_AUDIOENCODING) _RECOGNITIONMETADATA_INTERACTIONTYPE = _descriptor.EnumDescriptor( - name='InteractionType', - full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='INTERACTION_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISCUSSION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRESENTATION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PHONE_CALL', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VOICEMAIL', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROFESSIONALLY_PRODUCED', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VOICE_SEARCH', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VOICE_COMMAND', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DICTATION', index=8, number=8, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2303, - serialized_end=2500, + name="InteractionType", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="INTERACTION_TYPE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="DISCUSSION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRESENTATION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PHONE_CALL", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VOICEMAIL", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROFESSIONALLY_PRODUCED", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VOICE_SEARCH", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VOICE_COMMAND", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DICTATION", index=8, number=8, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2303, + serialized_end=2500, ) _sym_db.RegisterEnumDescriptor(_RECOGNITIONMETADATA_INTERACTIONTYPE) _RECOGNITIONMETADATA_MICROPHONEDISTANCE = _descriptor.EnumDescriptor( - name='MicrophoneDistance', - full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MICROPHONE_DISTANCE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEARFIELD', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MIDFIELD', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FARFIELD', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2502, - serialized_end=2602, + name="MicrophoneDistance", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="MICROPHONE_DISTANCE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="NEARFIELD", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MIDFIELD", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FARFIELD", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2502, + serialized_end=2602, ) _sym_db.RegisterEnumDescriptor(_RECOGNITIONMETADATA_MICROPHONEDISTANCE) _RECOGNITIONMETADATA_ORIGINALMEDIATYPE = _descriptor.EnumDescriptor( - name='OriginalMediaType', - full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ORIGINAL_MEDIA_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUDIO', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VIDEO', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2604, - serialized_end=2682, + name="OriginalMediaType", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ORIGINAL_MEDIA_TYPE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="AUDIO", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VIDEO", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2604, + serialized_end=2682, ) _sym_db.RegisterEnumDescriptor(_RECOGNITIONMETADATA_ORIGINALMEDIATYPE) _RECOGNITIONMETADATA_RECORDINGDEVICETYPE = _descriptor.EnumDescriptor( - name='RecordingDeviceType', - full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='RECORDING_DEVICE_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SMARTPHONE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PC', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PHONE_LINE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VEHICLE', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OTHER_OUTDOOR_DEVICE', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OTHER_INDOOR_DEVICE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2685, - serialized_end=2849, + name="RecordingDeviceType", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="RECORDING_DEVICE_TYPE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SMARTPHONE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PC", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PHONE_LINE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VEHICLE", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OTHER_OUTDOOR_DEVICE", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OTHER_INDOOR_DEVICE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2685, + serialized_end=2849, ) _sym_db.RegisterEnumDescriptor(_RECOGNITIONMETADATA_RECORDINGDEVICETYPE) _STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE = _descriptor.EnumDescriptor( - name='SpeechEventType', - full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SPEECH_EVENT_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='END_OF_SINGLE_UTTERANCE', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3559, - serialized_end=3635, + name="SpeechEventType", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SPEECH_EVENT_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="END_OF_SINGLE_UTTERANCE", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3559, + serialized_end=3635, ) _sym_db.RegisterEnumDescriptor(_STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE) _RECOGNIZEREQUEST = _descriptor.Descriptor( - name='RecognizeRequest', - full_name='google.cloud.speech.v1p1beta1.RecognizeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='config', full_name='google.cloud.speech.v1p1beta1.RecognizeRequest.config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio', full_name='google.cloud.speech.v1p1beta1.RecognizeRequest.audio', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=303, - serialized_end=451, + name="RecognizeRequest", + full_name="google.cloud.speech.v1p1beta1.RecognizeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="config", + full_name="google.cloud.speech.v1p1beta1.RecognizeRequest.config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio", + full_name="google.cloud.speech.v1p1beta1.RecognizeRequest.audio", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=303, + serialized_end=451, ) _LONGRUNNINGRECOGNIZEREQUEST = _descriptor.Descriptor( - name='LongRunningRecognizeRequest', - full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='config', full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio', full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.audio', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=454, - serialized_end=613, + name="LongRunningRecognizeRequest", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="config", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.audio", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=454, + serialized_end=613, ) _STREAMINGRECOGNIZEREQUEST = _descriptor.Descriptor( - name='StreamingRecognizeRequest', - full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='streaming_config', full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.streaming_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio_content', full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.audio_content', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='streaming_request', full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.streaming_request', - index=0, containing_type=None, fields=[]), - ], - serialized_start=616, - serialized_end=776, + name="StreamingRecognizeRequest", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="streaming_config", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.streaming_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio_content", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.audio_content", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="streaming_request", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.streaming_request", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=616, + serialized_end=776, ) _STREAMINGRECOGNITIONCONFIG = _descriptor.Descriptor( - name='StreamingRecognitionConfig', - full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='config', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='single_utterance', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.single_utterance', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interim_results', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.interim_results', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=779, - serialized_end=924, + name="StreamingRecognitionConfig", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="config", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="single_utterance", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.single_utterance", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="interim_results", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.interim_results", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=779, + serialized_end=924, ) _RECOGNITIONCONFIG = _descriptor.Descriptor( - name='RecognitionConfig', - full_name='google.cloud.speech.v1p1beta1.RecognitionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='encoding', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.encoding', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sample_rate_hertz', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.sample_rate_hertz', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio_channel_count', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.audio_channel_count', index=2, - number=7, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_separate_recognition_per_channel', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.enable_separate_recognition_per_channel', index=3, - number=12, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.language_code', index=4, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alternative_language_codes', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.alternative_language_codes', index=5, - number=18, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_alternatives', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.max_alternatives', index=6, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='profanity_filter', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.profanity_filter', index=7, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_contexts', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.speech_contexts', index=8, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_word_time_offsets', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.enable_word_time_offsets', index=9, - number=8, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_word_confidence', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.enable_word_confidence', index=10, - number=15, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_automatic_punctuation', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.enable_automatic_punctuation', index=11, - number=11, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_speaker_diarization', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization', index=12, - number=16, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='diarization_speaker_count', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count', index=13, - number=17, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.metadata', index=14, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.model', index=15, - number=13, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='use_enhanced', full_name='google.cloud.speech.v1p1beta1.RecognitionConfig.use_enhanced', index=16, - number=14, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _RECOGNITIONCONFIG_AUDIOENCODING, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=927, - serialized_end=1739, + name="RecognitionConfig", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="encoding", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.encoding", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sample_rate_hertz", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.sample_rate_hertz", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio_channel_count", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.audio_channel_count", + index=2, + number=7, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_separate_recognition_per_channel", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.enable_separate_recognition_per_channel", + index=3, + number=12, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.language_code", + index=4, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alternative_language_codes", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.alternative_language_codes", + index=5, + number=18, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_alternatives", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.max_alternatives", + index=6, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="profanity_filter", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.profanity_filter", + index=7, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_contexts", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.speech_contexts", + index=8, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_word_time_offsets", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.enable_word_time_offsets", + index=9, + number=8, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_word_confidence", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.enable_word_confidence", + index=10, + number=15, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_automatic_punctuation", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.enable_automatic_punctuation", + index=11, + number=11, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_speaker_diarization", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization", + index=12, + number=16, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="diarization_speaker_count", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count", + index=13, + number=17, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.metadata", + index=14, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.model", + index=15, + number=13, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="use_enhanced", + full_name="google.cloud.speech.v1p1beta1.RecognitionConfig.use_enhanced", + index=16, + number=14, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_RECOGNITIONCONFIG_AUDIOENCODING], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=927, + serialized_end=1739, ) _RECOGNITIONMETADATA = _descriptor.Descriptor( - name='RecognitionMetadata', - full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='interaction_type', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.interaction_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='industry_naics_code_of_audio', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.industry_naics_code_of_audio', index=1, - number=3, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='microphone_distance', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.microphone_distance', index=2, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='original_media_type', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.original_media_type', index=3, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recording_device_type', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.recording_device_type', index=4, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recording_device_name', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.recording_device_name', index=5, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='original_mime_type', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.original_mime_type', index=6, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='obfuscated_id', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id', index=7, - number=9, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio_topic', full_name='google.cloud.speech.v1p1beta1.RecognitionMetadata.audio_topic', index=8, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _RECOGNITIONMETADATA_INTERACTIONTYPE, - _RECOGNITIONMETADATA_MICROPHONEDISTANCE, - _RECOGNITIONMETADATA_ORIGINALMEDIATYPE, - _RECOGNITIONMETADATA_RECORDINGDEVICETYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1742, - serialized_end=2849, + name="RecognitionMetadata", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="interaction_type", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.interaction_type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="industry_naics_code_of_audio", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.industry_naics_code_of_audio", + index=1, + number=3, + type=13, + cpp_type=3, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="microphone_distance", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.microphone_distance", + index=2, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="original_media_type", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.original_media_type", + index=3, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="recording_device_type", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.recording_device_type", + index=4, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="recording_device_name", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.recording_device_name", + index=5, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="original_mime_type", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.original_mime_type", + index=6, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="obfuscated_id", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id", + index=7, + number=9, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio_topic", + full_name="google.cloud.speech.v1p1beta1.RecognitionMetadata.audio_topic", + index=8, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[ + _RECOGNITIONMETADATA_INTERACTIONTYPE, + _RECOGNITIONMETADATA_MICROPHONEDISTANCE, + _RECOGNITIONMETADATA_ORIGINALMEDIATYPE, + _RECOGNITIONMETADATA_RECORDINGDEVICETYPE, + ], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1742, + serialized_end=2849, ) _SPEECHCONTEXT = _descriptor.Descriptor( - name='SpeechContext', - full_name='google.cloud.speech.v1p1beta1.SpeechContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='phrases', full_name='google.cloud.speech.v1p1beta1.SpeechContext.phrases', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2851, - serialized_end=2883, + name="SpeechContext", + full_name="google.cloud.speech.v1p1beta1.SpeechContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="phrases", + full_name="google.cloud.speech.v1p1beta1.SpeechContext.phrases", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2851, + serialized_end=2883, ) _RECOGNITIONAUDIO = _descriptor.Descriptor( - name='RecognitionAudio', - full_name='google.cloud.speech.v1p1beta1.RecognitionAudio', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.speech.v1p1beta1.RecognitionAudio.content', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.speech.v1p1beta1.RecognitionAudio.uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='audio_source', full_name='google.cloud.speech.v1p1beta1.RecognitionAudio.audio_source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2885, - serialized_end=2953, + name="RecognitionAudio", + full_name="google.cloud.speech.v1p1beta1.RecognitionAudio", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.speech.v1p1beta1.RecognitionAudio.content", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.speech.v1p1beta1.RecognitionAudio.uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="audio_source", + full_name="google.cloud.speech.v1p1beta1.RecognitionAudio.audio_source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2885, + serialized_end=2953, ) _RECOGNIZERESPONSE = _descriptor.Descriptor( - name='RecognizeResponse', - full_name='google.cloud.speech.v1p1beta1.RecognizeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.cloud.speech.v1p1beta1.RecognizeResponse.results', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2955, - serialized_end=3047, + name="RecognizeResponse", + full_name="google.cloud.speech.v1p1beta1.RecognizeResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="results", + full_name="google.cloud.speech.v1p1beta1.RecognizeResponse.results", + index=0, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2955, + serialized_end=3047, ) _LONGRUNNINGRECOGNIZERESPONSE = _descriptor.Descriptor( - name='LongRunningRecognizeResponse', - full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.results', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3049, - serialized_end=3152, + name="LongRunningRecognizeResponse", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="results", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.results", + index=0, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3049, + serialized_end=3152, ) _LONGRUNNINGRECOGNIZEMETADATA = _descriptor.Descriptor( - name='LongRunningRecognizeMetadata', - full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='progress_percent', full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.progress_percent', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.start_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_update_time', full_name='google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.last_update_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3155, - serialized_end=3313, + name="LongRunningRecognizeMetadata", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.progress_percent", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.start_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_update_time", + full_name="google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.last_update_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3155, + serialized_end=3313, ) _STREAMINGRECOGNIZERESPONSE = _descriptor.Descriptor( - name='StreamingRecognizeResponse', - full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.error', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_event_type', full_name='google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.speech_event_type', index=2, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3316, - serialized_end=3635, + name="StreamingRecognizeResponse", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.error", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="results", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.results", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_event_type", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.speech_event_type", + index=2, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3316, + serialized_end=3635, ) _STREAMINGRECOGNITIONRESULT = _descriptor.Descriptor( - name='StreamingRecognitionResult', - full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alternatives', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionResult.alternatives', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_final', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionResult.is_final', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stability', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionResult.stability', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='result_end_time', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionResult.result_end_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='channel_tag', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionResult.channel_tag', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.speech.v1p1beta1.StreamingRecognitionResult.language_code', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3638, - serialized_end=3882, + name="StreamingRecognitionResult", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alternatives", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionResult.alternatives", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_final", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionResult.is_final", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stability", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionResult.stability", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="result_end_time", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionResult.result_end_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="channel_tag", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionResult.channel_tag", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.speech.v1p1beta1.StreamingRecognitionResult.language_code", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3638, + serialized_end=3882, ) _SPEECHRECOGNITIONRESULT = _descriptor.Descriptor( - name='SpeechRecognitionResult', - full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alternatives', full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionResult.alternatives', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='channel_tag', full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionResult.channel_tag', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionResult.language_code', index=2, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3885, - serialized_end=4037, + name="SpeechRecognitionResult", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alternatives", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionResult.alternatives", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="channel_tag", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionResult.channel_tag", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionResult.language_code", + index=2, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3885, + serialized_end=4037, ) _SPEECHRECOGNITIONALTERNATIVE = _descriptor.Descriptor( - name='SpeechRecognitionAlternative', - full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transcript', full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.transcript', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='words', full_name='google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.words', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4039, - serialized_end=4165, + name="SpeechRecognitionAlternative", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transcript", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.transcript", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="words", + full_name="google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.words", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4039, + serialized_end=4165, ) _WORDINFO = _descriptor.Descriptor( - name='WordInfo', - full_name='google.cloud.speech.v1p1beta1.WordInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.speech.v1p1beta1.WordInfo.start_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.speech.v1p1beta1.WordInfo.end_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='word', full_name='google.cloud.speech.v1p1beta1.WordInfo.word', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.speech.v1p1beta1.WordInfo.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speaker_tag', full_name='google.cloud.speech.v1p1beta1.WordInfo.speaker_tag', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4168, - serialized_end=4325, + name="WordInfo", + full_name="google.cloud.speech.v1p1beta1.WordInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.speech.v1p1beta1.WordInfo.start_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.speech.v1p1beta1.WordInfo.end_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="word", + full_name="google.cloud.speech.v1p1beta1.WordInfo.word", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.speech.v1p1beta1.WordInfo.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speaker_tag", + full_name="google.cloud.speech.v1p1beta1.WordInfo.speaker_tag", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4168, + serialized_end=4325, ) -_RECOGNIZEREQUEST.fields_by_name['config'].message_type = _RECOGNITIONCONFIG -_RECOGNIZEREQUEST.fields_by_name['audio'].message_type = _RECOGNITIONAUDIO -_LONGRUNNINGRECOGNIZEREQUEST.fields_by_name['config'].message_type = _RECOGNITIONCONFIG -_LONGRUNNINGRECOGNIZEREQUEST.fields_by_name['audio'].message_type = _RECOGNITIONAUDIO -_STREAMINGRECOGNIZEREQUEST.fields_by_name['streaming_config'].message_type = _STREAMINGRECOGNITIONCONFIG -_STREAMINGRECOGNIZEREQUEST.oneofs_by_name['streaming_request'].fields.append( - _STREAMINGRECOGNIZEREQUEST.fields_by_name['streaming_config']) -_STREAMINGRECOGNIZEREQUEST.fields_by_name['streaming_config'].containing_oneof = _STREAMINGRECOGNIZEREQUEST.oneofs_by_name['streaming_request'] -_STREAMINGRECOGNIZEREQUEST.oneofs_by_name['streaming_request'].fields.append( - _STREAMINGRECOGNIZEREQUEST.fields_by_name['audio_content']) -_STREAMINGRECOGNIZEREQUEST.fields_by_name['audio_content'].containing_oneof = _STREAMINGRECOGNIZEREQUEST.oneofs_by_name['streaming_request'] -_STREAMINGRECOGNITIONCONFIG.fields_by_name['config'].message_type = _RECOGNITIONCONFIG -_RECOGNITIONCONFIG.fields_by_name['encoding'].enum_type = _RECOGNITIONCONFIG_AUDIOENCODING -_RECOGNITIONCONFIG.fields_by_name['speech_contexts'].message_type = _SPEECHCONTEXT -_RECOGNITIONCONFIG.fields_by_name['metadata'].message_type = _RECOGNITIONMETADATA +_RECOGNIZEREQUEST.fields_by_name["config"].message_type = _RECOGNITIONCONFIG +_RECOGNIZEREQUEST.fields_by_name["audio"].message_type = _RECOGNITIONAUDIO +_LONGRUNNINGRECOGNIZEREQUEST.fields_by_name["config"].message_type = _RECOGNITIONCONFIG +_LONGRUNNINGRECOGNIZEREQUEST.fields_by_name["audio"].message_type = _RECOGNITIONAUDIO +_STREAMINGRECOGNIZEREQUEST.fields_by_name[ + "streaming_config" +].message_type = _STREAMINGRECOGNITIONCONFIG +_STREAMINGRECOGNIZEREQUEST.oneofs_by_name["streaming_request"].fields.append( + _STREAMINGRECOGNIZEREQUEST.fields_by_name["streaming_config"] +) +_STREAMINGRECOGNIZEREQUEST.fields_by_name[ + "streaming_config" +].containing_oneof = _STREAMINGRECOGNIZEREQUEST.oneofs_by_name["streaming_request"] +_STREAMINGRECOGNIZEREQUEST.oneofs_by_name["streaming_request"].fields.append( + _STREAMINGRECOGNIZEREQUEST.fields_by_name["audio_content"] +) +_STREAMINGRECOGNIZEREQUEST.fields_by_name[ + "audio_content" +].containing_oneof = _STREAMINGRECOGNIZEREQUEST.oneofs_by_name["streaming_request"] +_STREAMINGRECOGNITIONCONFIG.fields_by_name["config"].message_type = _RECOGNITIONCONFIG +_RECOGNITIONCONFIG.fields_by_name[ + "encoding" +].enum_type = _RECOGNITIONCONFIG_AUDIOENCODING +_RECOGNITIONCONFIG.fields_by_name["speech_contexts"].message_type = _SPEECHCONTEXT +_RECOGNITIONCONFIG.fields_by_name["metadata"].message_type = _RECOGNITIONMETADATA _RECOGNITIONCONFIG_AUDIOENCODING.containing_type = _RECOGNITIONCONFIG -_RECOGNITIONMETADATA.fields_by_name['interaction_type'].enum_type = _RECOGNITIONMETADATA_INTERACTIONTYPE -_RECOGNITIONMETADATA.fields_by_name['microphone_distance'].enum_type = _RECOGNITIONMETADATA_MICROPHONEDISTANCE -_RECOGNITIONMETADATA.fields_by_name['original_media_type'].enum_type = _RECOGNITIONMETADATA_ORIGINALMEDIATYPE -_RECOGNITIONMETADATA.fields_by_name['recording_device_type'].enum_type = _RECOGNITIONMETADATA_RECORDINGDEVICETYPE +_RECOGNITIONMETADATA.fields_by_name[ + "interaction_type" +].enum_type = _RECOGNITIONMETADATA_INTERACTIONTYPE +_RECOGNITIONMETADATA.fields_by_name[ + "microphone_distance" +].enum_type = _RECOGNITIONMETADATA_MICROPHONEDISTANCE +_RECOGNITIONMETADATA.fields_by_name[ + "original_media_type" +].enum_type = _RECOGNITIONMETADATA_ORIGINALMEDIATYPE +_RECOGNITIONMETADATA.fields_by_name[ + "recording_device_type" +].enum_type = _RECOGNITIONMETADATA_RECORDINGDEVICETYPE _RECOGNITIONMETADATA_INTERACTIONTYPE.containing_type = _RECOGNITIONMETADATA _RECOGNITIONMETADATA_MICROPHONEDISTANCE.containing_type = _RECOGNITIONMETADATA _RECOGNITIONMETADATA_ORIGINALMEDIATYPE.containing_type = _RECOGNITIONMETADATA _RECOGNITIONMETADATA_RECORDINGDEVICETYPE.containing_type = _RECOGNITIONMETADATA -_RECOGNITIONAUDIO.oneofs_by_name['audio_source'].fields.append( - _RECOGNITIONAUDIO.fields_by_name['content']) -_RECOGNITIONAUDIO.fields_by_name['content'].containing_oneof = _RECOGNITIONAUDIO.oneofs_by_name['audio_source'] -_RECOGNITIONAUDIO.oneofs_by_name['audio_source'].fields.append( - _RECOGNITIONAUDIO.fields_by_name['uri']) -_RECOGNITIONAUDIO.fields_by_name['uri'].containing_oneof = _RECOGNITIONAUDIO.oneofs_by_name['audio_source'] -_RECOGNIZERESPONSE.fields_by_name['results'].message_type = _SPEECHRECOGNITIONRESULT -_LONGRUNNINGRECOGNIZERESPONSE.fields_by_name['results'].message_type = _SPEECHRECOGNITIONRESULT -_LONGRUNNINGRECOGNIZEMETADATA.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LONGRUNNINGRECOGNIZEMETADATA.fields_by_name['last_update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_STREAMINGRECOGNIZERESPONSE.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_STREAMINGRECOGNIZERESPONSE.fields_by_name['results'].message_type = _STREAMINGRECOGNITIONRESULT -_STREAMINGRECOGNIZERESPONSE.fields_by_name['speech_event_type'].enum_type = _STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE -_STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE.containing_type = _STREAMINGRECOGNIZERESPONSE -_STREAMINGRECOGNITIONRESULT.fields_by_name['alternatives'].message_type = _SPEECHRECOGNITIONALTERNATIVE -_STREAMINGRECOGNITIONRESULT.fields_by_name['result_end_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_SPEECHRECOGNITIONRESULT.fields_by_name['alternatives'].message_type = _SPEECHRECOGNITIONALTERNATIVE -_SPEECHRECOGNITIONALTERNATIVE.fields_by_name['words'].message_type = _WORDINFO -_WORDINFO.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_WORDINFO.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -DESCRIPTOR.message_types_by_name['RecognizeRequest'] = _RECOGNIZEREQUEST -DESCRIPTOR.message_types_by_name['LongRunningRecognizeRequest'] = _LONGRUNNINGRECOGNIZEREQUEST -DESCRIPTOR.message_types_by_name['StreamingRecognizeRequest'] = _STREAMINGRECOGNIZEREQUEST -DESCRIPTOR.message_types_by_name['StreamingRecognitionConfig'] = _STREAMINGRECOGNITIONCONFIG -DESCRIPTOR.message_types_by_name['RecognitionConfig'] = _RECOGNITIONCONFIG -DESCRIPTOR.message_types_by_name['RecognitionMetadata'] = _RECOGNITIONMETADATA -DESCRIPTOR.message_types_by_name['SpeechContext'] = _SPEECHCONTEXT -DESCRIPTOR.message_types_by_name['RecognitionAudio'] = _RECOGNITIONAUDIO -DESCRIPTOR.message_types_by_name['RecognizeResponse'] = _RECOGNIZERESPONSE -DESCRIPTOR.message_types_by_name['LongRunningRecognizeResponse'] = _LONGRUNNINGRECOGNIZERESPONSE -DESCRIPTOR.message_types_by_name['LongRunningRecognizeMetadata'] = _LONGRUNNINGRECOGNIZEMETADATA -DESCRIPTOR.message_types_by_name['StreamingRecognizeResponse'] = _STREAMINGRECOGNIZERESPONSE -DESCRIPTOR.message_types_by_name['StreamingRecognitionResult'] = _STREAMINGRECOGNITIONRESULT -DESCRIPTOR.message_types_by_name['SpeechRecognitionResult'] = _SPEECHRECOGNITIONRESULT -DESCRIPTOR.message_types_by_name['SpeechRecognitionAlternative'] = _SPEECHRECOGNITIONALTERNATIVE -DESCRIPTOR.message_types_by_name['WordInfo'] = _WORDINFO +_RECOGNITIONAUDIO.oneofs_by_name["audio_source"].fields.append( + _RECOGNITIONAUDIO.fields_by_name["content"] +) +_RECOGNITIONAUDIO.fields_by_name[ + "content" +].containing_oneof = _RECOGNITIONAUDIO.oneofs_by_name["audio_source"] +_RECOGNITIONAUDIO.oneofs_by_name["audio_source"].fields.append( + _RECOGNITIONAUDIO.fields_by_name["uri"] +) +_RECOGNITIONAUDIO.fields_by_name[ + "uri" +].containing_oneof = _RECOGNITIONAUDIO.oneofs_by_name["audio_source"] +_RECOGNIZERESPONSE.fields_by_name["results"].message_type = _SPEECHRECOGNITIONRESULT +_LONGRUNNINGRECOGNIZERESPONSE.fields_by_name[ + "results" +].message_type = _SPEECHRECOGNITIONRESULT +_LONGRUNNINGRECOGNIZEMETADATA.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LONGRUNNINGRECOGNIZEMETADATA.fields_by_name[ + "last_update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_STREAMINGRECOGNIZERESPONSE.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_STREAMINGRECOGNIZERESPONSE.fields_by_name[ + "results" +].message_type = _STREAMINGRECOGNITIONRESULT +_STREAMINGRECOGNIZERESPONSE.fields_by_name[ + "speech_event_type" +].enum_type = _STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE +_STREAMINGRECOGNIZERESPONSE_SPEECHEVENTTYPE.containing_type = ( + _STREAMINGRECOGNIZERESPONSE +) +_STREAMINGRECOGNITIONRESULT.fields_by_name[ + "alternatives" +].message_type = _SPEECHRECOGNITIONALTERNATIVE +_STREAMINGRECOGNITIONRESULT.fields_by_name[ + "result_end_time" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_SPEECHRECOGNITIONRESULT.fields_by_name[ + "alternatives" +].message_type = _SPEECHRECOGNITIONALTERNATIVE +_SPEECHRECOGNITIONALTERNATIVE.fields_by_name["words"].message_type = _WORDINFO +_WORDINFO.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_WORDINFO.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name["RecognizeRequest"] = _RECOGNIZEREQUEST +DESCRIPTOR.message_types_by_name[ + "LongRunningRecognizeRequest" +] = _LONGRUNNINGRECOGNIZEREQUEST +DESCRIPTOR.message_types_by_name[ + "StreamingRecognizeRequest" +] = _STREAMINGRECOGNIZEREQUEST +DESCRIPTOR.message_types_by_name[ + "StreamingRecognitionConfig" +] = _STREAMINGRECOGNITIONCONFIG +DESCRIPTOR.message_types_by_name["RecognitionConfig"] = _RECOGNITIONCONFIG +DESCRIPTOR.message_types_by_name["RecognitionMetadata"] = _RECOGNITIONMETADATA +DESCRIPTOR.message_types_by_name["SpeechContext"] = _SPEECHCONTEXT +DESCRIPTOR.message_types_by_name["RecognitionAudio"] = _RECOGNITIONAUDIO +DESCRIPTOR.message_types_by_name["RecognizeResponse"] = _RECOGNIZERESPONSE +DESCRIPTOR.message_types_by_name[ + "LongRunningRecognizeResponse" +] = _LONGRUNNINGRECOGNIZERESPONSE +DESCRIPTOR.message_types_by_name[ + "LongRunningRecognizeMetadata" +] = _LONGRUNNINGRECOGNIZEMETADATA +DESCRIPTOR.message_types_by_name[ + "StreamingRecognizeResponse" +] = _STREAMINGRECOGNIZERESPONSE +DESCRIPTOR.message_types_by_name[ + "StreamingRecognitionResult" +] = _STREAMINGRECOGNITIONRESULT +DESCRIPTOR.message_types_by_name["SpeechRecognitionResult"] = _SPEECHRECOGNITIONRESULT +DESCRIPTOR.message_types_by_name[ + "SpeechRecognitionAlternative" +] = _SPEECHRECOGNITIONALTERNATIVE +DESCRIPTOR.message_types_by_name["WordInfo"] = _WORDINFO _sym_db.RegisterFileDescriptor(DESCRIPTOR) -RecognizeRequest = _reflection.GeneratedProtocolMessageType('RecognizeRequest', (_message.Message,), dict( - DESCRIPTOR = _RECOGNIZEREQUEST, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """The top-level message sent by the client for the ``Recognize`` method. +RecognizeRequest = _reflection.GeneratedProtocolMessageType( + "RecognizeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNIZEREQUEST, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""The top-level message sent by the client for the ``Recognize`` method. Attributes: @@ -1162,15 +1878,18 @@ audio: *Required* The audio data to be recognized. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeRequest) + ), +) _sym_db.RegisterMessage(RecognizeRequest) -LongRunningRecognizeRequest = _reflection.GeneratedProtocolMessageType('LongRunningRecognizeRequest', (_message.Message,), dict( - DESCRIPTOR = _LONGRUNNINGRECOGNIZEREQUEST, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """The top-level message sent by the client for the +LongRunningRecognizeRequest = _reflection.GeneratedProtocolMessageType( + "LongRunningRecognizeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LONGRUNNINGRECOGNIZEREQUEST, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""The top-level message sent by the client for the ``LongRunningRecognize`` method. @@ -1181,15 +1900,18 @@ audio: *Required* The audio data to be recognized. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) + ), +) _sym_db.RegisterMessage(LongRunningRecognizeRequest) -StreamingRecognizeRequest = _reflection.GeneratedProtocolMessageType('StreamingRecognizeRequest', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGRECOGNIZEREQUEST, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """The top-level message sent by the client for the ``StreamingRecognize`` +StreamingRecognizeRequest = _reflection.GeneratedProtocolMessageType( + "StreamingRecognizeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGRECOGNIZEREQUEST, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""The top-level message sent by the client for the ``StreamingRecognize`` method. Multiple ``StreamingRecognizeRequest`` messages are sent. The first message must contain a ``streaming_config`` message and must not contain ``audio`` data. All subsequent messages must contain ``audio`` @@ -1216,15 +1938,18 @@ base64). See `content limits `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) + ), +) _sym_db.RegisterMessage(StreamingRecognizeRequest) -StreamingRecognitionConfig = _reflection.GeneratedProtocolMessageType('StreamingRecognitionConfig', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGRECOGNITIONCONFIG, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Provides information to the recognizer that specifies how to process the +StreamingRecognitionConfig = _reflection.GeneratedProtocolMessageType( + "StreamingRecognitionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGRECOGNITIONCONFIG, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Provides information to the recognizer that specifies how to process the request. @@ -1252,15 +1977,18 @@ ``false`` or omitted, only ``is_final=true`` result(s) are returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) + ), +) _sym_db.RegisterMessage(StreamingRecognitionConfig) -RecognitionConfig = _reflection.GeneratedProtocolMessageType('RecognitionConfig', (_message.Message,), dict( - DESCRIPTOR = _RECOGNITIONCONFIG, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Provides information to the recognizer that specifies how to process the +RecognitionConfig = _reflection.GeneratedProtocolMessageType( + "RecognitionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNITIONCONFIG, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Provides information to the recognizer that specifies how to process the request. @@ -1416,15 +2144,18 @@ to true and you have not enabled audio logging, then you will receive an error. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionConfig) + ), +) _sym_db.RegisterMessage(RecognitionConfig) -RecognitionMetadata = _reflection.GeneratedProtocolMessageType('RecognitionMetadata', (_message.Message,), dict( - DESCRIPTOR = _RECOGNITIONMETADATA, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Description of audio data to be recognized. +RecognitionMetadata = _reflection.GeneratedProtocolMessageType( + "RecognitionMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNITIONMETADATA, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Description of audio data to be recognized. Attributes: @@ -1460,15 +2191,18 @@ Description of the content. Eg. "Recordings of federal supreme court hearings from 2012". """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionMetadata) + ), +) _sym_db.RegisterMessage(RecognitionMetadata) -SpeechContext = _reflection.GeneratedProtocolMessageType('SpeechContext', (_message.Message,), dict( - DESCRIPTOR = _SPEECHCONTEXT, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Provides "hints" to the speech recognizer to favor specific words and +SpeechContext = _reflection.GeneratedProtocolMessageType( + "SpeechContext", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHCONTEXT, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Provides "hints" to the speech recognizer to favor specific words and phrases in the results. @@ -1482,15 +2216,18 @@ additional words to the vocabulary of the recognizer. See `usage limits `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechContext) + ), +) _sym_db.RegisterMessage(SpeechContext) -RecognitionAudio = _reflection.GeneratedProtocolMessageType('RecognitionAudio', (_message.Message,), dict( - DESCRIPTOR = _RECOGNITIONAUDIO, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Contains audio data in the encoding specified in the +RecognitionAudio = _reflection.GeneratedProtocolMessageType( + "RecognitionAudio", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNITIONAUDIO, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Contains audio data in the encoding specified in the ``RecognitionConfig``. Either ``content`` or ``uri`` must be supplied. Supplying both or neither returns [google.rpc.Code.INVALID\_ARGUMENT][google.rpc.Code.INVALID\_ARGUMENT]. @@ -1517,15 +2254,18 @@ URIs `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionAudio) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionAudio) + ), +) _sym_db.RegisterMessage(RecognitionAudio) -RecognizeResponse = _reflection.GeneratedProtocolMessageType('RecognizeResponse', (_message.Message,), dict( - DESCRIPTOR = _RECOGNIZERESPONSE, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """The only message returned to the client by the ``Recognize`` method. It +RecognizeResponse = _reflection.GeneratedProtocolMessageType( + "RecognizeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_RECOGNIZERESPONSE, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""The only message returned to the client by the ``Recognize`` method. It contains the result as zero or more sequential ``SpeechRecognitionResult`` messages. @@ -1535,15 +2275,18 @@ Output only. Sequential list of transcription results corresponding to sequential portions of audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeResponse) + ), +) _sym_db.RegisterMessage(RecognizeResponse) -LongRunningRecognizeResponse = _reflection.GeneratedProtocolMessageType('LongRunningRecognizeResponse', (_message.Message,), dict( - DESCRIPTOR = _LONGRUNNINGRECOGNIZERESPONSE, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """The only message returned to the client by the ``LongRunningRecognize`` +LongRunningRecognizeResponse = _reflection.GeneratedProtocolMessageType( + "LongRunningRecognizeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LONGRUNNINGRECOGNIZERESPONSE, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""The only message returned to the client by the ``LongRunningRecognize`` method. It contains the result as zero or more sequential ``SpeechRecognitionResult`` messages. It is included in the ``result.response`` field of the ``Operation`` returned by the @@ -1556,15 +2299,18 @@ Output only. Sequential list of transcription results corresponding to sequential portions of audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) + ), +) _sym_db.RegisterMessage(LongRunningRecognizeResponse) -LongRunningRecognizeMetadata = _reflection.GeneratedProtocolMessageType('LongRunningRecognizeMetadata', (_message.Message,), dict( - DESCRIPTOR = _LONGRUNNINGRECOGNIZEMETADATA, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Describes the progress of a long-running ``LongRunningRecognize`` call. +LongRunningRecognizeMetadata = _reflection.GeneratedProtocolMessageType( + "LongRunningRecognizeMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_LONGRUNNINGRECOGNIZEMETADATA, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Describes the progress of a long-running ``LongRunningRecognize`` call. It is included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1580,15 +2326,18 @@ last_update_time: Time of the most recent processing update. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) + ), +) _sym_db.RegisterMessage(LongRunningRecognizeMetadata) -StreamingRecognizeResponse = _reflection.GeneratedProtocolMessageType('StreamingRecognizeResponse', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGRECOGNIZERESPONSE, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """``StreamingRecognizeResponse`` is the only message returned to the +StreamingRecognizeResponse = _reflection.GeneratedProtocolMessageType( + "StreamingRecognizeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGRECOGNIZERESPONSE, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""``StreamingRecognizeResponse`` is the only message returned to the client by ``StreamingRecognize``. A series of zero or more ``StreamingRecognizeResponse`` messages are streamed back to the client. If there is no recognizable audio, and ``single_utterance`` is set to @@ -1653,15 +2402,18 @@ speech_event_type: Output only. Indicates the type of speech event. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) + ), +) _sym_db.RegisterMessage(StreamingRecognizeResponse) -StreamingRecognitionResult = _reflection.GeneratedProtocolMessageType('StreamingRecognitionResult', (_message.Message,), dict( - DESCRIPTOR = _STREAMINGRECOGNITIONRESULT, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """A streaming speech recognition result corresponding to a portion of the +StreamingRecognitionResult = _reflection.GeneratedProtocolMessageType( + "StreamingRecognitionResult", + (_message.Message,), + dict( + DESCRIPTOR=_STREAMINGRECOGNITIONRESULT, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""A streaming speech recognition result corresponding to a portion of the audio that is currently being processed. @@ -1700,15 +2452,18 @@ in this result. This language code was detected to have the most likelihood of being spoken in the audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) + ), +) _sym_db.RegisterMessage(StreamingRecognitionResult) -SpeechRecognitionResult = _reflection.GeneratedProtocolMessageType('SpeechRecognitionResult', (_message.Message,), dict( - DESCRIPTOR = _SPEECHRECOGNITIONRESULT, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """A speech recognition result corresponding to a portion of the audio. +SpeechRecognitionResult = _reflection.GeneratedProtocolMessageType( + "SpeechRecognitionResult", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHRECOGNITIONRESULT, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""A speech recognition result corresponding to a portion of the audio. Attributes: @@ -1729,15 +2484,18 @@ in this result. This language code was detected to have the most likelihood of being spoken in the audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) + ), +) _sym_db.RegisterMessage(SpeechRecognitionResult) -SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType('SpeechRecognitionAlternative', (_message.Message,), dict( - DESCRIPTOR = _SPEECHRECOGNITIONALTERNATIVE, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Alternative hypotheses (a.k.a. n-best list). +SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType( + "SpeechRecognitionAlternative", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHRECOGNITIONALTERNATIVE, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Alternative hypotheses (a.k.a. n-best list). Attributes: @@ -1759,15 +2517,18 @@ true, you will see all the words from the beginning of the audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) + ), +) _sym_db.RegisterMessage(SpeechRecognitionAlternative) -WordInfo = _reflection.GeneratedProtocolMessageType('WordInfo', (_message.Message,), dict( - DESCRIPTOR = _WORDINFO, - __module__ = 'google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2' - , - __doc__ = """Word-specific information for recognized words. +WordInfo = _reflection.GeneratedProtocolMessageType( + "WordInfo", + (_message.Message,), + dict( + DESCRIPTOR=_WORDINFO, + __module__="google.cloud.speech_v1p1beta1.proto.cloud_speech_pb2", + __doc__="""Word-specific information for recognized words. Attributes: @@ -1803,53 +2564,68 @@ is set if enable\_speaker\_diarization = 'true' and only in the top alternative. """, - # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.WordInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.WordInfo) + ), +) _sym_db.RegisterMessage(WordInfo) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech\370\001\001" + ), +) _SPEECH = _descriptor.ServiceDescriptor( - name='Speech', - full_name='google.cloud.speech.v1p1beta1.Speech', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4328, - serialized_end=4802, - methods=[ - _descriptor.MethodDescriptor( - name='Recognize', - full_name='google.cloud.speech.v1p1beta1.Speech.Recognize', + name="Speech", + full_name="google.cloud.speech.v1p1beta1.Speech", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_RECOGNIZEREQUEST, - output_type=_RECOGNIZERESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002 \"\033/v1p1beta1/speech:recognize:\001*')), - ), - _descriptor.MethodDescriptor( - name='LongRunningRecognize', - full_name='google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize', - index=1, - containing_service=None, - input_type=_LONGRUNNINGRECOGNIZEREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrecognize:\001*')), - ), - _descriptor.MethodDescriptor( - name='StreamingRecognize', - full_name='google.cloud.speech.v1p1beta1.Speech.StreamingRecognize', - index=2, - containing_service=None, - input_type=_STREAMINGRECOGNIZEREQUEST, - output_type=_STREAMINGRECOGNIZERESPONSE, options=None, - ), -]) + serialized_start=4328, + serialized_end=4802, + methods=[ + _descriptor.MethodDescriptor( + name="Recognize", + full_name="google.cloud.speech.v1p1beta1.Speech.Recognize", + index=0, + containing_service=None, + input_type=_RECOGNIZEREQUEST, + output_type=_RECOGNIZERESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002 "\033/v1p1beta1/speech:recognize:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="LongRunningRecognize", + full_name="google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", + index=1, + containing_service=None, + input_type=_LONGRUNNINGRECOGNIZEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002+"&/v1p1beta1/speech:longrunningrecognize:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="StreamingRecognize", + full_name="google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", + index=2, + containing_service=None, + input_type=_STREAMINGRECOGNIZEREQUEST, + output_type=_STREAMINGRECOGNIZERESPONSE, + options=None, + ), + ], +) _sym_db.RegisterServiceDescriptor(_SPEECH) -DESCRIPTOR.services_by_name['Speech'] = _SPEECH +DESCRIPTOR.services_by_name["Speech"] = _SPEECH # @@protoc_insertion_point(module_scope) diff --git a/speech/google/cloud/speech_v1p1beta1/proto/cloud_speech_pb2_grpc.py b/speech/google/cloud/speech_v1p1beta1/proto/cloud_speech_pb2_grpc.py index f10c8e9bf5f5c..750e4b781accd 100644 --- a/speech/google/cloud/speech_v1p1beta1/proto/cloud_speech_pb2_grpc.py +++ b/speech/google/cloud/speech_v1p1beta1/proto/cloud_speech_pb2_grpc.py @@ -1,86 +1,91 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.speech_v1p1beta1.proto import cloud_speech_pb2 as google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.speech_v1p1beta1.proto import ( + cloud_speech_pb2 as google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class SpeechStub(object): - """Service that implements Google Cloud Speech API. + """Service that implements Google Cloud Speech API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.Recognize = channel.unary_unary( - '/google.cloud.speech.v1p1beta1.Speech/Recognize', - request_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeResponse.FromString, + self.Recognize = channel.unary_unary( + "/google.cloud.speech.v1p1beta1.Speech/Recognize", + request_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeResponse.FromString, ) - self.LongRunningRecognize = channel.unary_unary( - '/google.cloud.speech.v1p1beta1.Speech/LongRunningRecognize', - request_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.LongRunningRecognizeRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.LongRunningRecognize = channel.unary_unary( + "/google.cloud.speech.v1p1beta1.Speech/LongRunningRecognize", + request_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.LongRunningRecognizeRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) - self.StreamingRecognize = channel.stream_stream( - '/google.cloud.speech.v1p1beta1.Speech/StreamingRecognize', - request_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeResponse.FromString, + self.StreamingRecognize = channel.stream_stream( + "/google.cloud.speech.v1p1beta1.Speech/StreamingRecognize", + request_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeResponse.FromString, ) class SpeechServicer(object): - """Service that implements Google Cloud Speech API. + """Service that implements Google Cloud Speech API. """ - def Recognize(self, request, context): - """Performs synchronous speech recognition: receive results after all audio + def Recognize(self, request, context): + """Performs synchronous speech recognition: receive results after all audio has been sent and processed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def LongRunningRecognize(self, request, context): - """Performs asynchronous speech recognition: receive results via the + def LongRunningRecognize(self, request, context): + """Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def StreamingRecognize(self, request_iterator, context): - """Performs bidirectional streaming speech recognition: receive results while + def StreamingRecognize(self, request_iterator, context): + """Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_SpeechServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Recognize': grpc.unary_unary_rpc_method_handler( - servicer.Recognize, - request_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeRequest.FromString, - response_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeResponse.SerializeToString, - ), - 'LongRunningRecognize': grpc.unary_unary_rpc_method_handler( - servicer.LongRunningRecognize, - request_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.LongRunningRecognizeRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'StreamingRecognize': grpc.stream_stream_rpc_method_handler( - servicer.StreamingRecognize, - request_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeRequest.FromString, - response_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.speech.v1p1beta1.Speech', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "Recognize": grpc.unary_unary_rpc_method_handler( + servicer.Recognize, + request_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeRequest.FromString, + response_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.RecognizeResponse.SerializeToString, + ), + "LongRunningRecognize": grpc.unary_unary_rpc_method_handler( + servicer.LongRunningRecognize, + request_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.LongRunningRecognizeRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "StreamingRecognize": grpc.stream_stream_rpc_method_handler( + servicer.StreamingRecognize, + request_deserializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeRequest.FromString, + response_serializer=google_dot_cloud_dot_speech__v1p1beta1_dot_proto_dot_cloud__speech__pb2.StreamingRecognizeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.speech.v1p1beta1.Speech", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2.py b/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2.py index 4e86dbd8902f9..f7d3a589b0f09 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2.py @@ -2,20 +2,26 @@ # source: google/cloud/tasks_v2beta2/proto/cloudtasks.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.tasks_v2beta2.proto import queue_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2 -from google.cloud.tasks_v2beta2.proto import task_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2 +from google.cloud.tasks_v2beta2.proto import ( + queue_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2, +) +from google.cloud.tasks_v2beta2.proto import ( + task_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 @@ -26,849 +32,1324 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta2/proto/cloudtasks.proto', - package='google.cloud.tasks.v2beta2', - syntax='proto3', - serialized_pb=_b('\n1google/cloud/tasks_v2beta2/proto/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/tasks_v2beta2/proto/queue.proto\x1a+google/cloud/tasks_v2beta2/proto/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\"Z\n\x11ListQueuesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"`\n\x12ListQueuesResponse\x12\x31\n\x06queues\x18\x01 \x03(\x0b\x32!.google.cloud.tasks.v2beta2.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1f\n\x0fGetQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"V\n\x12\x43reateQueueRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.Queue\"w\n\x12UpdateQueueRequest\x12\x30\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.Queue\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\"\n\x12\x44\x65leteQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11PurgeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11PauseQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12ResumeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x87\x01\n\x10ListTasksRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"]\n\x11ListTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x0eGetTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\x91\x01\n\x11\x43reateTaskRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12.\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta2.Task\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"!\n\x11\x44\x65leteTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xb7\x01\n\x11LeaseTasksRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tmax_tasks\x18\x02 \x01(\x05\x12\x31\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"E\n\x12LeaseTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task\"Y\n\x16\x41\x63knowledgeTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xc5\x01\n\x11RenewLeaseRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\x93\x01\n\x12\x43\x61ncelLeaseRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\\\n\x0eRunTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View2\xf0\x19\n\nCloudTasks\x12\xa4\x01\n\nListQueues\x12-.google.cloud.tasks.v2beta2.ListQueuesRequest\x1a..google.cloud.tasks.v2beta2.ListQueuesResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{parent=projects/*/locations/*}/queues\x12\x93\x01\n\x08GetQueue\x12+.google.cloud.tasks.v2beta2.GetQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\x0b\x43reateQueue\x12..google.cloud.tasks.v2beta2.CreateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\">\x82\xd3\xe4\x93\x02\x38\"//v2beta2/{parent=projects/*/locations/*}/queues:\x05queue\x12\xa6\x01\n\x0bUpdateQueue\x12..google.cloud.tasks.v2beta2.UpdateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"D\x82\xd3\xe4\x93\x02>25/v2beta2/{queue.name=projects/*/locations/*/queues/*}:\x05queue\x12\x8e\x01\n\x0b\x44\x65leteQueue\x12..google.cloud.tasks.v2beta2.DeleteQueueRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02\x31*//v2beta2/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\nPurgeQueue\x12-.google.cloud.tasks.v2beta2.PurgeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"@\x82\xd3\xe4\x93\x02:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:purge:\x01*\x12\xa0\x01\n\nPauseQueue\x12-.google.cloud.tasks.v2beta2.PauseQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"@\x82\xd3\xe4\x93\x02:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:pause:\x01*\x12\xa3\x01\n\x0bResumeQueue\x12..google.cloud.tasks.v2beta2.ResumeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"A\x82\xd3\xe4\x93\x02;\"6/v2beta2/{name=projects/*/locations/*/queues/*}:resume:\x01*\x12\x96\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"K\x82\xd3\xe4\x93\x02\x45\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\x12\x96\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"K\x82\xd3\xe4\x93\x02\x45\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\x12\xbc\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"Q\x82\xd3\xe4\x93\x02K\"F/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\x12\xa9\x01\n\tListTasks\x12,.google.cloud.tasks.v2beta2.ListTasksRequest\x1a-.google.cloud.tasks.v2beta2.ListTasksResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks\x12\x98\x01\n\x07GetTask\x12*.google.cloud.tasks.v2beta2.GetTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xa1\x01\n\nCreateTask\x12-.google.cloud.tasks.v2beta2.CreateTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"B\x82\xd3\xe4\x93\x02<\"7/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\x12\x94\x01\n\nDeleteTask\x12-.google.cloud.tasks.v2beta2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x39*7/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xb5\x01\n\nLeaseTasks\x12-.google.cloud.tasks.v2beta2.LeaseTasksRequest\x1a..google.cloud.tasks.v2beta2.LeaseTasksResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease:\x01*\x12\xad\x01\n\x0f\x41\x63knowledgeTask\x12\x32.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest\x1a\x16.google.protobuf.Empty\"N\x82\xd3\xe4\x93\x02H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge:\x01*\x12\xac\x01\n\nRenewLease\x12-.google.cloud.tasks.v2beta2.RenewLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task\"M\x82\xd3\xe4\x93\x02G\"B/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease:\x01*\x12\xaf\x01\n\x0b\x43\x61ncelLease\x12..google.cloud.tasks.v2beta2.CancelLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task\"N\x82\xd3\xe4\x93\x02H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease:\x01*\x12\x9f\x01\n\x07RunTask\x12*.google.cloud.tasks.v2beta2.RunTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"F\x82\xd3\xe4\x93\x02@\";/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run:\x01*B|\n\x1e\x63om.google.cloud.tasks.v2beta2B\x0f\x43loudTasksProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks\xa2\x02\x05TASKSb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_code__pb2.DESCRIPTOR,]) - - + name="google/cloud/tasks_v2beta2/proto/cloudtasks.proto", + package="google.cloud.tasks.v2beta2", + syntax="proto3", + serialized_pb=_b( + '\n1google/cloud/tasks_v2beta2/proto/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/tasks_v2beta2/proto/queue.proto\x1a+google/cloud/tasks_v2beta2/proto/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto"Z\n\x11ListQueuesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"`\n\x12ListQueuesResponse\x12\x31\n\x06queues\x18\x01 \x03(\x0b\x32!.google.cloud.tasks.v2beta2.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x1f\n\x0fGetQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"V\n\x12\x43reateQueueRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.Queue"w\n\x12UpdateQueueRequest\x12\x30\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.Queue\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask""\n\x12\x44\x65leteQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"!\n\x11PurgeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"!\n\x11PauseQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t""\n\x12ResumeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x87\x01\n\x10ListTasksRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t"]\n\x11ListTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\\\n\x0eGetTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View"\x91\x01\n\x11\x43reateTaskRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12.\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta2.Task\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View"!\n\x11\x44\x65leteTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xb7\x01\n\x11LeaseTasksRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tmax_tasks\x18\x02 \x01(\x05\x12\x31\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t"E\n\x12LeaseTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task"Y\n\x16\x41\x63knowledgeTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xc5\x01\n\x11RenewLeaseRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View"\x93\x01\n\x12\x43\x61ncelLeaseRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View"\\\n\x0eRunTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View2\xf0\x19\n\nCloudTasks\x12\xa4\x01\n\nListQueues\x12-.google.cloud.tasks.v2beta2.ListQueuesRequest\x1a..google.cloud.tasks.v2beta2.ListQueuesResponse"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{parent=projects/*/locations/*}/queues\x12\x93\x01\n\x08GetQueue\x12+.google.cloud.tasks.v2beta2.GetQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\x0b\x43reateQueue\x12..google.cloud.tasks.v2beta2.CreateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue">\x82\xd3\xe4\x93\x02\x38"//v2beta2/{parent=projects/*/locations/*}/queues:\x05queue\x12\xa6\x01\n\x0bUpdateQueue\x12..google.cloud.tasks.v2beta2.UpdateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue"D\x82\xd3\xe4\x93\x02>25/v2beta2/{queue.name=projects/*/locations/*/queues/*}:\x05queue\x12\x8e\x01\n\x0b\x44\x65leteQueue\x12..google.cloud.tasks.v2beta2.DeleteQueueRequest\x1a\x16.google.protobuf.Empty"7\x82\xd3\xe4\x93\x02\x31*//v2beta2/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\nPurgeQueue\x12-.google.cloud.tasks.v2beta2.PurgeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue"@\x82\xd3\xe4\x93\x02:"5/v2beta2/{name=projects/*/locations/*/queues/*}:purge:\x01*\x12\xa0\x01\n\nPauseQueue\x12-.google.cloud.tasks.v2beta2.PauseQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue"@\x82\xd3\xe4\x93\x02:"5/v2beta2/{name=projects/*/locations/*/queues/*}:pause:\x01*\x12\xa3\x01\n\x0bResumeQueue\x12..google.cloud.tasks.v2beta2.ResumeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue"A\x82\xd3\xe4\x93\x02;"6/v2beta2/{name=projects/*/locations/*/queues/*}:resume:\x01*\x12\x96\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"K\x82\xd3\xe4\x93\x02\x45"@/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\x12\x96\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"K\x82\xd3\xe4\x93\x02\x45"@/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\x12\xbc\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"Q\x82\xd3\xe4\x93\x02K"F/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\x12\xa9\x01\n\tListTasks\x12,.google.cloud.tasks.v2beta2.ListTasksRequest\x1a-.google.cloud.tasks.v2beta2.ListTasksResponse"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks\x12\x98\x01\n\x07GetTask\x12*.google.cloud.tasks.v2beta2.GetTaskRequest\x1a .google.cloud.tasks.v2beta2.Task"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xa1\x01\n\nCreateTask\x12-.google.cloud.tasks.v2beta2.CreateTaskRequest\x1a .google.cloud.tasks.v2beta2.Task"B\x82\xd3\xe4\x93\x02<"7/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\x12\x94\x01\n\nDeleteTask\x12-.google.cloud.tasks.v2beta2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty"?\x82\xd3\xe4\x93\x02\x39*7/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xb5\x01\n\nLeaseTasks\x12-.google.cloud.tasks.v2beta2.LeaseTasksRequest\x1a..google.cloud.tasks.v2beta2.LeaseTasksResponse"H\x82\xd3\xe4\x93\x02\x42"=/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease:\x01*\x12\xad\x01\n\x0f\x41\x63knowledgeTask\x12\x32.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest\x1a\x16.google.protobuf.Empty"N\x82\xd3\xe4\x93\x02H"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge:\x01*\x12\xac\x01\n\nRenewLease\x12-.google.cloud.tasks.v2beta2.RenewLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task"M\x82\xd3\xe4\x93\x02G"B/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease:\x01*\x12\xaf\x01\n\x0b\x43\x61ncelLease\x12..google.cloud.tasks.v2beta2.CancelLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task"N\x82\xd3\xe4\x93\x02H"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease:\x01*\x12\x9f\x01\n\x07RunTask\x12*.google.cloud.tasks.v2beta2.RunTaskRequest\x1a .google.cloud.tasks.v2beta2.Task"F\x82\xd3\xe4\x93\x02@";/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run:\x01*B|\n\x1e\x63om.google.cloud.tasks.v2beta2B\x0f\x43loudTasksProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks\xa2\x02\x05TASKSb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_code__pb2.DESCRIPTOR, + ], +) _LISTQUEUESREQUEST = _descriptor.Descriptor( - name='ListQueuesRequest', - full_name='google.cloud.tasks.v2beta2.ListQueuesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta2.ListQueuesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.tasks.v2beta2.ListQueuesRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.tasks.v2beta2.ListQueuesRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.tasks.v2beta2.ListQueuesRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=413, - serialized_end=503, + name="ListQueuesRequest", + full_name="google.cloud.tasks.v2beta2.ListQueuesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta2.ListQueuesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.tasks.v2beta2.ListQueuesRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.tasks.v2beta2.ListQueuesRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.tasks.v2beta2.ListQueuesRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=413, + serialized_end=503, ) _LISTQUEUESRESPONSE = _descriptor.Descriptor( - name='ListQueuesResponse', - full_name='google.cloud.tasks.v2beta2.ListQueuesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='queues', full_name='google.cloud.tasks.v2beta2.ListQueuesResponse.queues', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=505, - serialized_end=601, + name="ListQueuesResponse", + full_name="google.cloud.tasks.v2beta2.ListQueuesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="queues", + full_name="google.cloud.tasks.v2beta2.ListQueuesResponse.queues", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=505, + serialized_end=601, ) _GETQUEUEREQUEST = _descriptor.Descriptor( - name='GetQueueRequest', - full_name='google.cloud.tasks.v2beta2.GetQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.GetQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=603, - serialized_end=634, + name="GetQueueRequest", + full_name="google.cloud.tasks.v2beta2.GetQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.GetQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=603, + serialized_end=634, ) _CREATEQUEUEREQUEST = _descriptor.Descriptor( - name='CreateQueueRequest', - full_name='google.cloud.tasks.v2beta2.CreateQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta2.CreateQueueRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='queue', full_name='google.cloud.tasks.v2beta2.CreateQueueRequest.queue', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=636, - serialized_end=722, + name="CreateQueueRequest", + full_name="google.cloud.tasks.v2beta2.CreateQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta2.CreateQueueRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="queue", + full_name="google.cloud.tasks.v2beta2.CreateQueueRequest.queue", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=636, + serialized_end=722, ) _UPDATEQUEUEREQUEST = _descriptor.Descriptor( - name='UpdateQueueRequest', - full_name='google.cloud.tasks.v2beta2.UpdateQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='queue', full_name='google.cloud.tasks.v2beta2.UpdateQueueRequest.queue', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.tasks.v2beta2.UpdateQueueRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=724, - serialized_end=843, + name="UpdateQueueRequest", + full_name="google.cloud.tasks.v2beta2.UpdateQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="queue", + full_name="google.cloud.tasks.v2beta2.UpdateQueueRequest.queue", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.tasks.v2beta2.UpdateQueueRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=724, + serialized_end=843, ) _DELETEQUEUEREQUEST = _descriptor.Descriptor( - name='DeleteQueueRequest', - full_name='google.cloud.tasks.v2beta2.DeleteQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.DeleteQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=845, - serialized_end=879, + name="DeleteQueueRequest", + full_name="google.cloud.tasks.v2beta2.DeleteQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.DeleteQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=845, + serialized_end=879, ) _PURGEQUEUEREQUEST = _descriptor.Descriptor( - name='PurgeQueueRequest', - full_name='google.cloud.tasks.v2beta2.PurgeQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.PurgeQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=881, - serialized_end=914, + name="PurgeQueueRequest", + full_name="google.cloud.tasks.v2beta2.PurgeQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.PurgeQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=881, + serialized_end=914, ) _PAUSEQUEUEREQUEST = _descriptor.Descriptor( - name='PauseQueueRequest', - full_name='google.cloud.tasks.v2beta2.PauseQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.PauseQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=916, - serialized_end=949, + name="PauseQueueRequest", + full_name="google.cloud.tasks.v2beta2.PauseQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.PauseQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=916, + serialized_end=949, ) _RESUMEQUEUEREQUEST = _descriptor.Descriptor( - name='ResumeQueueRequest', - full_name='google.cloud.tasks.v2beta2.ResumeQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.ResumeQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=951, - serialized_end=985, + name="ResumeQueueRequest", + full_name="google.cloud.tasks.v2beta2.ResumeQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.ResumeQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=951, + serialized_end=985, ) _LISTTASKSREQUEST = _descriptor.Descriptor( - name='ListTasksRequest', - full_name='google.cloud.tasks.v2beta2.ListTasksRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta2.ListTasksRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta2.ListTasksRequest.response_view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.tasks.v2beta2.ListTasksRequest.page_size', index=2, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.tasks.v2beta2.ListTasksRequest.page_token', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=988, - serialized_end=1123, + name="ListTasksRequest", + full_name="google.cloud.tasks.v2beta2.ListTasksRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta2.ListTasksRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta2.ListTasksRequest.response_view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.tasks.v2beta2.ListTasksRequest.page_size", + index=2, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.tasks.v2beta2.ListTasksRequest.page_token", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=988, + serialized_end=1123, ) _LISTTASKSRESPONSE = _descriptor.Descriptor( - name='ListTasksResponse', - full_name='google.cloud.tasks.v2beta2.ListTasksResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tasks', full_name='google.cloud.tasks.v2beta2.ListTasksResponse.tasks', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1125, - serialized_end=1218, + name="ListTasksResponse", + full_name="google.cloud.tasks.v2beta2.ListTasksResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="tasks", + full_name="google.cloud.tasks.v2beta2.ListTasksResponse.tasks", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1125, + serialized_end=1218, ) _GETTASKREQUEST = _descriptor.Descriptor( - name='GetTaskRequest', - full_name='google.cloud.tasks.v2beta2.GetTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.GetTaskRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta2.GetTaskRequest.response_view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1220, - serialized_end=1312, + name="GetTaskRequest", + full_name="google.cloud.tasks.v2beta2.GetTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.GetTaskRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta2.GetTaskRequest.response_view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1220, + serialized_end=1312, ) _CREATETASKREQUEST = _descriptor.Descriptor( - name='CreateTaskRequest', - full_name='google.cloud.tasks.v2beta2.CreateTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta2.CreateTaskRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='task', full_name='google.cloud.tasks.v2beta2.CreateTaskRequest.task', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta2.CreateTaskRequest.response_view', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1315, - serialized_end=1460, + name="CreateTaskRequest", + full_name="google.cloud.tasks.v2beta2.CreateTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta2.CreateTaskRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="task", + full_name="google.cloud.tasks.v2beta2.CreateTaskRequest.task", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta2.CreateTaskRequest.response_view", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1315, + serialized_end=1460, ) _DELETETASKREQUEST = _descriptor.Descriptor( - name='DeleteTaskRequest', - full_name='google.cloud.tasks.v2beta2.DeleteTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.DeleteTaskRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1462, - serialized_end=1495, + name="DeleteTaskRequest", + full_name="google.cloud.tasks.v2beta2.DeleteTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.DeleteTaskRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1462, + serialized_end=1495, ) _LEASETASKSREQUEST = _descriptor.Descriptor( - name='LeaseTasksRequest', - full_name='google.cloud.tasks.v2beta2.LeaseTasksRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta2.LeaseTasksRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_tasks', full_name='google.cloud.tasks.v2beta2.LeaseTasksRequest.max_tasks', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='lease_duration', full_name='google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.tasks.v2beta2.LeaseTasksRequest.filter', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1498, - serialized_end=1681, + name="LeaseTasksRequest", + full_name="google.cloud.tasks.v2beta2.LeaseTasksRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta2.LeaseTasksRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_tasks", + full_name="google.cloud.tasks.v2beta2.LeaseTasksRequest.max_tasks", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="lease_duration", + full_name="google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.tasks.v2beta2.LeaseTasksRequest.filter", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1498, + serialized_end=1681, ) _LEASETASKSRESPONSE = _descriptor.Descriptor( - name='LeaseTasksResponse', - full_name='google.cloud.tasks.v2beta2.LeaseTasksResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tasks', full_name='google.cloud.tasks.v2beta2.LeaseTasksResponse.tasks', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1683, - serialized_end=1752, + name="LeaseTasksResponse", + full_name="google.cloud.tasks.v2beta2.LeaseTasksResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="tasks", + full_name="google.cloud.tasks.v2beta2.LeaseTasksResponse.tasks", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1683, + serialized_end=1752, ) _ACKNOWLEDGETASKREQUEST = _descriptor.Descriptor( - name='AcknowledgeTaskRequest', - full_name='google.cloud.tasks.v2beta2.AcknowledgeTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.schedule_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1754, - serialized_end=1843, + name="AcknowledgeTaskRequest", + full_name="google.cloud.tasks.v2beta2.AcknowledgeTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.schedule_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1754, + serialized_end=1843, ) _RENEWLEASEREQUEST = _descriptor.Descriptor( - name='RenewLeaseRequest', - full_name='google.cloud.tasks.v2beta2.RenewLeaseRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.RenewLeaseRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.tasks.v2beta2.RenewLeaseRequest.schedule_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='lease_duration', full_name='google.cloud.tasks.v2beta2.RenewLeaseRequest.lease_duration', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta2.RenewLeaseRequest.response_view', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1846, - serialized_end=2043, + name="RenewLeaseRequest", + full_name="google.cloud.tasks.v2beta2.RenewLeaseRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.RenewLeaseRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.tasks.v2beta2.RenewLeaseRequest.schedule_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="lease_duration", + full_name="google.cloud.tasks.v2beta2.RenewLeaseRequest.lease_duration", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta2.RenewLeaseRequest.response_view", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1846, + serialized_end=2043, ) _CANCELLEASEREQUEST = _descriptor.Descriptor( - name='CancelLeaseRequest', - full_name='google.cloud.tasks.v2beta2.CancelLeaseRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.CancelLeaseRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.tasks.v2beta2.CancelLeaseRequest.schedule_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta2.CancelLeaseRequest.response_view', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2046, - serialized_end=2193, + name="CancelLeaseRequest", + full_name="google.cloud.tasks.v2beta2.CancelLeaseRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.CancelLeaseRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.tasks.v2beta2.CancelLeaseRequest.schedule_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta2.CancelLeaseRequest.response_view", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2046, + serialized_end=2193, ) _RUNTASKREQUEST = _descriptor.Descriptor( - name='RunTaskRequest', - full_name='google.cloud.tasks.v2beta2.RunTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.RunTaskRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta2.RunTaskRequest.response_view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2195, - serialized_end=2287, + name="RunTaskRequest", + full_name="google.cloud.tasks.v2beta2.RunTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.RunTaskRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta2.RunTaskRequest.response_view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2195, + serialized_end=2287, ) -_LISTQUEUESRESPONSE.fields_by_name['queues'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE -_CREATEQUEUEREQUEST.fields_by_name['queue'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE -_UPDATEQUEUEREQUEST.fields_by_name['queue'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE -_UPDATEQUEUEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTTASKSREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW -_LISTTASKSRESPONSE.fields_by_name['tasks'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK -_GETTASKREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW -_CREATETASKREQUEST.fields_by_name['task'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK -_CREATETASKREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW -_LEASETASKSREQUEST.fields_by_name['lease_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LEASETASKSREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW -_LEASETASKSRESPONSE.fields_by_name['tasks'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK -_ACKNOWLEDGETASKREQUEST.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_RENEWLEASEREQUEST.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_RENEWLEASEREQUEST.fields_by_name['lease_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RENEWLEASEREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW -_CANCELLEASEREQUEST.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CANCELLEASEREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW -_RUNTASKREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW -DESCRIPTOR.message_types_by_name['ListQueuesRequest'] = _LISTQUEUESREQUEST -DESCRIPTOR.message_types_by_name['ListQueuesResponse'] = _LISTQUEUESRESPONSE -DESCRIPTOR.message_types_by_name['GetQueueRequest'] = _GETQUEUEREQUEST -DESCRIPTOR.message_types_by_name['CreateQueueRequest'] = _CREATEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['UpdateQueueRequest'] = _UPDATEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['DeleteQueueRequest'] = _DELETEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['PurgeQueueRequest'] = _PURGEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['PauseQueueRequest'] = _PAUSEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['ResumeQueueRequest'] = _RESUMEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['ListTasksRequest'] = _LISTTASKSREQUEST -DESCRIPTOR.message_types_by_name['ListTasksResponse'] = _LISTTASKSRESPONSE -DESCRIPTOR.message_types_by_name['GetTaskRequest'] = _GETTASKREQUEST -DESCRIPTOR.message_types_by_name['CreateTaskRequest'] = _CREATETASKREQUEST -DESCRIPTOR.message_types_by_name['DeleteTaskRequest'] = _DELETETASKREQUEST -DESCRIPTOR.message_types_by_name['LeaseTasksRequest'] = _LEASETASKSREQUEST -DESCRIPTOR.message_types_by_name['LeaseTasksResponse'] = _LEASETASKSRESPONSE -DESCRIPTOR.message_types_by_name['AcknowledgeTaskRequest'] = _ACKNOWLEDGETASKREQUEST -DESCRIPTOR.message_types_by_name['RenewLeaseRequest'] = _RENEWLEASEREQUEST -DESCRIPTOR.message_types_by_name['CancelLeaseRequest'] = _CANCELLEASEREQUEST -DESCRIPTOR.message_types_by_name['RunTaskRequest'] = _RUNTASKREQUEST +_LISTQUEUESRESPONSE.fields_by_name[ + "queues" +].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE +_CREATEQUEUEREQUEST.fields_by_name[ + "queue" +].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE +_UPDATEQUEUEREQUEST.fields_by_name[ + "queue" +].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE +_UPDATEQUEUEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTTASKSREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW +_LISTTASKSRESPONSE.fields_by_name[ + "tasks" +].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK +_GETTASKREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW +_CREATETASKREQUEST.fields_by_name[ + "task" +].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK +_CREATETASKREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW +_LEASETASKSREQUEST.fields_by_name[ + "lease_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LEASETASKSREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW +_LEASETASKSRESPONSE.fields_by_name[ + "tasks" +].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK +_ACKNOWLEDGETASKREQUEST.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_RENEWLEASEREQUEST.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_RENEWLEASEREQUEST.fields_by_name[ + "lease_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RENEWLEASEREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW +_CANCELLEASEREQUEST.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CANCELLEASEREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW +_RUNTASKREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK_VIEW +DESCRIPTOR.message_types_by_name["ListQueuesRequest"] = _LISTQUEUESREQUEST +DESCRIPTOR.message_types_by_name["ListQueuesResponse"] = _LISTQUEUESRESPONSE +DESCRIPTOR.message_types_by_name["GetQueueRequest"] = _GETQUEUEREQUEST +DESCRIPTOR.message_types_by_name["CreateQueueRequest"] = _CREATEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["UpdateQueueRequest"] = _UPDATEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["DeleteQueueRequest"] = _DELETEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["PurgeQueueRequest"] = _PURGEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["PauseQueueRequest"] = _PAUSEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["ResumeQueueRequest"] = _RESUMEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["ListTasksRequest"] = _LISTTASKSREQUEST +DESCRIPTOR.message_types_by_name["ListTasksResponse"] = _LISTTASKSRESPONSE +DESCRIPTOR.message_types_by_name["GetTaskRequest"] = _GETTASKREQUEST +DESCRIPTOR.message_types_by_name["CreateTaskRequest"] = _CREATETASKREQUEST +DESCRIPTOR.message_types_by_name["DeleteTaskRequest"] = _DELETETASKREQUEST +DESCRIPTOR.message_types_by_name["LeaseTasksRequest"] = _LEASETASKSREQUEST +DESCRIPTOR.message_types_by_name["LeaseTasksResponse"] = _LEASETASKSRESPONSE +DESCRIPTOR.message_types_by_name["AcknowledgeTaskRequest"] = _ACKNOWLEDGETASKREQUEST +DESCRIPTOR.message_types_by_name["RenewLeaseRequest"] = _RENEWLEASEREQUEST +DESCRIPTOR.message_types_by_name["CancelLeaseRequest"] = _CANCELLEASEREQUEST +DESCRIPTOR.message_types_by_name["RunTaskRequest"] = _RUNTASKREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListQueuesRequest = _reflection.GeneratedProtocolMessageType('ListQueuesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTQUEUESREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +ListQueuesRequest = _reflection.GeneratedProtocolMessageType( + "ListQueuesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTQUEUESREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]. @@ -904,15 +1385,18 @@ [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListQueuesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListQueuesRequest) + ), +) _sym_db.RegisterMessage(ListQueuesRequest) -ListQueuesResponse = _reflection.GeneratedProtocolMessageType('ListQueuesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTQUEUESRESPONSE, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Response message for +ListQueuesResponse = _reflection.GeneratedProtocolMessageType( + "ListQueuesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTQUEUESRESPONSE, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Response message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]. @@ -928,15 +1412,18 @@ empty, there are no more results. The page token is valid for only 2 hours. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListQueuesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListQueuesResponse) + ), +) _sym_db.RegisterMessage(ListQueuesResponse) -GetQueueRequest = _reflection.GeneratedProtocolMessageType('GetQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _GETQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +GetQueueRequest = _reflection.GeneratedProtocolMessageType( + "GetQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [GetQueue][google.cloud.tasks.v2beta2.CloudTasks.GetQueue]. @@ -945,15 +1432,18 @@ Required. The resource name of the queue. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.GetQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.GetQueueRequest) + ), +) _sym_db.RegisterMessage(GetQueueRequest) -CreateQueueRequest = _reflection.GeneratedProtocolMessageType('CreateQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +CreateQueueRequest = _reflection.GeneratedProtocolMessageType( + "CreateQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue]. @@ -970,15 +1460,18 @@ name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CreateQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CreateQueueRequest) + ), +) _sym_db.RegisterMessage(CreateQueueRequest) -UpdateQueueRequest = _reflection.GeneratedProtocolMessageType('UpdateQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +UpdateQueueRequest = _reflection.GeneratedProtocolMessageType( + "UpdateQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue]. @@ -995,15 +1488,18 @@ A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.UpdateQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.UpdateQueueRequest) + ), +) _sym_db.RegisterMessage(UpdateQueueRequest) -DeleteQueueRequest = _reflection.GeneratedProtocolMessageType('DeleteQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +DeleteQueueRequest = _reflection.GeneratedProtocolMessageType( + "DeleteQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue]. @@ -1012,15 +1508,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.DeleteQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.DeleteQueueRequest) + ), +) _sym_db.RegisterMessage(DeleteQueueRequest) -PurgeQueueRequest = _reflection.GeneratedProtocolMessageType('PurgeQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _PURGEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +PurgeQueueRequest = _reflection.GeneratedProtocolMessageType( + "PurgeQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PURGEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue]. @@ -1029,15 +1528,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PurgeQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PurgeQueueRequest) + ), +) _sym_db.RegisterMessage(PurgeQueueRequest) -PauseQueueRequest = _reflection.GeneratedProtocolMessageType('PauseQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _PAUSEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +PauseQueueRequest = _reflection.GeneratedProtocolMessageType( + "PauseQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PAUSEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue]. @@ -1046,15 +1548,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PauseQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PauseQueueRequest) + ), +) _sym_db.RegisterMessage(PauseQueueRequest) -ResumeQueueRequest = _reflection.GeneratedProtocolMessageType('ResumeQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _RESUMEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +ResumeQueueRequest = _reflection.GeneratedProtocolMessageType( + "ResumeQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RESUMEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. @@ -1063,15 +1568,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ResumeQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ResumeQueueRequest) + ), +) _sym_db.RegisterMessage(ResumeQueueRequest) -ListTasksRequest = _reflection.GeneratedProtocolMessageType('ListTasksRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTASKSREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for listing tasks using +ListTasksRequest = _reflection.GeneratedProtocolMessageType( + "ListTasksRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTASKSREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. @@ -1108,15 +1616,18 @@ [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] method. The page token is valid for only 2 hours. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListTasksRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListTasksRequest) + ), +) _sym_db.RegisterMessage(ListTasksRequest) -ListTasksResponse = _reflection.GeneratedProtocolMessageType('ListTasksResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTASKSRESPONSE, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Response message for listing tasks using +ListTasksResponse = _reflection.GeneratedProtocolMessageType( + "ListTasksResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTASKSRESPONSE, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. @@ -1131,15 +1642,18 @@ 2.ListTasksRequest.page\_token]. If the next\_page\_token is empty, there are no more results. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListTasksResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListTasksResponse) + ), +) _sym_db.RegisterMessage(ListTasksResponse) -GetTaskRequest = _reflection.GeneratedProtocolMessageType('GetTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for getting a task using +GetTaskRequest = _reflection.GeneratedProtocolMessageType( + "GetTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTASKREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask]. @@ -1161,15 +1675,18 @@ `_ permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.GetTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.GetTaskRequest) + ), +) _sym_db.RegisterMessage(GetTaskRequest) -CreateTaskRequest = _reflection.GeneratedProtocolMessageType('CreateTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATETASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +CreateTaskRequest = _reflection.GeneratedProtocolMessageType( + "CreateTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETASKREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. @@ -1222,15 +1739,18 @@ `_ permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CreateTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CreateTaskRequest) + ), +) _sym_db.RegisterMessage(CreateTaskRequest) -DeleteTaskRequest = _reflection.GeneratedProtocolMessageType('DeleteTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETETASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for deleting a task using +DeleteTaskRequest = _reflection.GeneratedProtocolMessageType( + "DeleteTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETETASKREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask]. @@ -1239,15 +1759,18 @@ Required. The task name. For example: ``projects/PROJECT_ID/l ocations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.DeleteTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.DeleteTaskRequest) + ), +) _sym_db.RegisterMessage(DeleteTaskRequest) -LeaseTasksRequest = _reflection.GeneratedProtocolMessageType('LeaseTasksRequest', (_message.Message,), dict( - DESCRIPTOR = _LEASETASKSREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for leasing tasks using +LeaseTasksRequest = _reflection.GeneratedProtocolMessageType( + "LeaseTasksRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LEASETASKSREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. @@ -1307,15 +1830,18 @@ [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.LeaseTasksRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.LeaseTasksRequest) + ), +) _sym_db.RegisterMessage(LeaseTasksRequest) -LeaseTasksResponse = _reflection.GeneratedProtocolMessageType('LeaseTasksResponse', (_message.Message,), dict( - DESCRIPTOR = _LEASETASKSRESPONSE, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Response message for leasing tasks using +LeaseTasksResponse = _reflection.GeneratedProtocolMessageType( + "LeaseTasksResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LEASETASKSRESPONSE, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Response message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. @@ -1323,15 +1849,18 @@ tasks: The leased tasks. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.LeaseTasksResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.LeaseTasksResponse) + ), +) _sym_db.RegisterMessage(LeaseTasksResponse) -AcknowledgeTaskRequest = _reflection.GeneratedProtocolMessageType('AcknowledgeTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _ACKNOWLEDGETASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for acknowledging a task using +AcknowledgeTaskRequest = _reflection.GeneratedProtocolMessageType( + "AcknowledgeTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ACKNOWLEDGETASKREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for acknowledging a task using [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]. @@ -1349,15 +1878,18 @@ response. This restriction is to ensure that your worker currently holds the lease. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) + ), +) _sym_db.RegisterMessage(AcknowledgeTaskRequest) -RenewLeaseRequest = _reflection.GeneratedProtocolMessageType('RenewLeaseRequest', (_message.Message,), dict( - DESCRIPTOR = _RENEWLEASEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for renewing a lease using +RenewLeaseRequest = _reflection.GeneratedProtocolMessageType( + "RenewLeaseRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RENEWLEASEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for renewing a lease using [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease]. @@ -1392,15 +1924,18 @@ `_ permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RenewLeaseRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RenewLeaseRequest) + ), +) _sym_db.RegisterMessage(RenewLeaseRequest) -CancelLeaseRequest = _reflection.GeneratedProtocolMessageType('CancelLeaseRequest', (_message.Message,), dict( - DESCRIPTOR = _CANCELLEASEREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for canceling a lease using +CancelLeaseRequest = _reflection.GeneratedProtocolMessageType( + "CancelLeaseRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CANCELLEASEREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for canceling a lease using [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease]. @@ -1431,15 +1966,18 @@ `_ permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CancelLeaseRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CancelLeaseRequest) + ), +) _sym_db.RegisterMessage(CancelLeaseRequest) -RunTaskRequest = _reflection.GeneratedProtocolMessageType('RunTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _RUNTASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.cloudtasks_pb2' - , - __doc__ = """Request message for forcing a task to run now using +RunTaskRequest = _reflection.GeneratedProtocolMessageType( + "RunTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RUNTASKREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.cloudtasks_pb2", + __doc__="""Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask]. @@ -1461,206 +1999,313 @@ `_ permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RunTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RunTaskRequest) + ), +) _sym_db.RegisterMessage(RunTaskRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta2B\017CloudTasksProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks\242\002\005TASKS')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta2B\017CloudTasksProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks\242\002\005TASKS" + ), +) _CLOUDTASKS = _descriptor.ServiceDescriptor( - name='CloudTasks', - full_name='google.cloud.tasks.v2beta2.CloudTasks', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2290, - serialized_end=5602, - methods=[ - _descriptor.MethodDescriptor( - name='ListQueues', - full_name='google.cloud.tasks.v2beta2.CloudTasks.ListQueues', + name="CloudTasks", + full_name="google.cloud.tasks.v2beta2.CloudTasks", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTQUEUESREQUEST, - output_type=_LISTQUEUESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v2beta2/{parent=projects/*/locations/*}/queues')), - ), - _descriptor.MethodDescriptor( - name='GetQueue', - full_name='google.cloud.tasks.v2beta2.CloudTasks.GetQueue', - index=1, - containing_service=None, - input_type=_GETQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v2beta2/{name=projects/*/locations/*/queues/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateQueue', - full_name='google.cloud.tasks.v2beta2.CloudTasks.CreateQueue', - index=2, - containing_service=None, - input_type=_CREATEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\"//v2beta2/{parent=projects/*/locations/*}/queues:\005queue')), - ), - _descriptor.MethodDescriptor( - name='UpdateQueue', - full_name='google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue', - index=3, - containing_service=None, - input_type=_UPDATEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>25/v2beta2/{queue.name=projects/*/locations/*/queues/*}:\005queue')), - ), - _descriptor.MethodDescriptor( - name='DeleteQueue', - full_name='google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue', - index=4, - containing_service=None, - input_type=_DELETEQUEUEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021*//v2beta2/{name=projects/*/locations/*/queues/*}')), - ), - _descriptor.MethodDescriptor( - name='PurgeQueue', - full_name='google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue', - index=5, - containing_service=None, - input_type=_PURGEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:purge:\001*')), - ), - _descriptor.MethodDescriptor( - name='PauseQueue', - full_name='google.cloud.tasks.v2beta2.CloudTasks.PauseQueue', - index=6, - containing_service=None, - input_type=_PAUSEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:pause:\001*')), - ), - _descriptor.MethodDescriptor( - name='ResumeQueue', - full_name='google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue', - index=7, - containing_service=None, - input_type=_RESUMEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\"6/v2beta2/{name=projects/*/locations/*/queues/*}:resume:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetIamPolicy', - full_name='google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy', - index=8, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='SetIamPolicy', - full_name='google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy', - index=9, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='TestIamPermissions', - full_name='google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions', - index=10, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, - output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002K\"F/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListTasks', - full_name='google.cloud.tasks.v2beta2.CloudTasks.ListTasks', - index=11, - containing_service=None, - input_type=_LISTTASKSREQUEST, - output_type=_LISTTASKSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\0227/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks')), - ), - _descriptor.MethodDescriptor( - name='GetTask', - full_name='google.cloud.tasks.v2beta2.CloudTasks.GetTask', - index=12, - containing_service=None, - input_type=_GETTASKREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\0227/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateTask', - full_name='google.cloud.tasks.v2beta2.CloudTasks.CreateTask', - index=13, - containing_service=None, - input_type=_CREATETASKREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\"7/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeleteTask', - full_name='google.cloud.tasks.v2beta2.CloudTasks.DeleteTask', - index=14, - containing_service=None, - input_type=_DELETETASKREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029*7/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}')), - ), - _descriptor.MethodDescriptor( - name='LeaseTasks', - full_name='google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks', - index=15, - containing_service=None, - input_type=_LEASETASKSREQUEST, - output_type=_LEASETASKSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B\"=/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease:\001*')), - ), - _descriptor.MethodDescriptor( - name='AcknowledgeTask', - full_name='google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask', - index=16, - containing_service=None, - input_type=_ACKNOWLEDGETASKREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge:\001*')), - ), - _descriptor.MethodDescriptor( - name='RenewLease', - full_name='google.cloud.tasks.v2beta2.CloudTasks.RenewLease', - index=17, - containing_service=None, - input_type=_RENEWLEASEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G\"B/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease:\001*')), - ), - _descriptor.MethodDescriptor( - name='CancelLease', - full_name='google.cloud.tasks.v2beta2.CloudTasks.CancelLease', - index=18, - containing_service=None, - input_type=_CANCELLEASEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease:\001*')), - ), - _descriptor.MethodDescriptor( - name='RunTask', - full_name='google.cloud.tasks.v2beta2.CloudTasks.RunTask', - index=19, - containing_service=None, - input_type=_RUNTASKREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\";/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run:\001*')), - ), -]) + options=None, + serialized_start=2290, + serialized_end=5602, + methods=[ + _descriptor.MethodDescriptor( + name="ListQueues", + full_name="google.cloud.tasks.v2beta2.CloudTasks.ListQueues", + index=0, + containing_service=None, + input_type=_LISTQUEUESREQUEST, + output_type=_LISTQUEUESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v2beta2/{parent=projects/*/locations/*}/queues" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetQueue", + full_name="google.cloud.tasks.v2beta2.CloudTasks.GetQueue", + index=1, + containing_service=None, + input_type=_GETQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v2beta2/{name=projects/*/locations/*/queues/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateQueue", + full_name="google.cloud.tasks.v2beta2.CloudTasks.CreateQueue", + index=2, + containing_service=None, + input_type=_CREATEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028"//v2beta2/{parent=projects/*/locations/*}/queues:\005queue' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateQueue", + full_name="google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue", + index=3, + containing_service=None, + input_type=_UPDATEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002>25/v2beta2/{queue.name=projects/*/locations/*/queues/*}:\005queue" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteQueue", + full_name="google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue", + index=4, + containing_service=None, + input_type=_DELETEQUEUEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021*//v2beta2/{name=projects/*/locations/*/queues/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="PurgeQueue", + full_name="google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue", + index=5, + containing_service=None, + input_type=_PURGEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002:"5/v2beta2/{name=projects/*/locations/*/queues/*}:purge:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="PauseQueue", + full_name="google.cloud.tasks.v2beta2.CloudTasks.PauseQueue", + index=6, + containing_service=None, + input_type=_PAUSEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002:"5/v2beta2/{name=projects/*/locations/*/queues/*}:pause:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ResumeQueue", + full_name="google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue", + index=7, + containing_service=None, + input_type=_RESUMEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002;"6/v2beta2/{name=projects/*/locations/*/queues/*}:resume:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetIamPolicy", + full_name="google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy", + index=8, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"@/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="SetIamPolicy", + full_name="google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy", + index=9, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"@/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="TestIamPermissions", + full_name="google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions", + index=10, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, + output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002K"F/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListTasks", + full_name="google.cloud.tasks.v2beta2.CloudTasks.ListTasks", + index=11, + containing_service=None, + input_type=_LISTTASKSREQUEST, + output_type=_LISTTASKSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0029\0227/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetTask", + full_name="google.cloud.tasks.v2beta2.CloudTasks.GetTask", + index=12, + containing_service=None, + input_type=_GETTASKREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0029\0227/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateTask", + full_name="google.cloud.tasks.v2beta2.CloudTasks.CreateTask", + index=13, + containing_service=None, + input_type=_CREATETASKREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002<"7/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteTask", + full_name="google.cloud.tasks.v2beta2.CloudTasks.DeleteTask", + index=14, + containing_service=None, + input_type=_DELETETASKREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0029*7/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="LeaseTasks", + full_name="google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks", + index=15, + containing_service=None, + input_type=_LEASETASKSREQUEST, + output_type=_LEASETASKSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002B"=/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="AcknowledgeTask", + full_name="google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask", + index=16, + containing_service=None, + input_type=_ACKNOWLEDGETASKREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002H"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="RenewLease", + full_name="google.cloud.tasks.v2beta2.CloudTasks.RenewLease", + index=17, + containing_service=None, + input_type=_RENEWLEASEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002G"B/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="CancelLease", + full_name="google.cloud.tasks.v2beta2.CloudTasks.CancelLease", + index=18, + containing_service=None, + input_type=_CANCELLEASEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002H"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="RunTask", + full_name="google.cloud.tasks.v2beta2.CloudTasks.RunTask", + index=19, + containing_service=None, + input_type=_RUNTASKREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002@";/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLOUDTASKS) -DESCRIPTOR.services_by_name['CloudTasks'] = _CLOUDTASKS +DESCRIPTOR.services_by_name["CloudTasks"] = _CLOUDTASKS # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2_grpc.py index b19afaae54bd8..8aa2de246c74d 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/cloudtasks_pb2_grpc.py @@ -1,150 +1,156 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.tasks_v2beta2.proto import cloudtasks_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2 -from google.cloud.tasks_v2beta2.proto import queue_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2 -from google.cloud.tasks_v2beta2.proto import task_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2 +from google.cloud.tasks_v2beta2.proto import ( + cloudtasks_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2, +) +from google.cloud.tasks_v2beta2.proto import ( + queue_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2, +) +from google.cloud.tasks_v2beta2.proto import ( + task_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class CloudTasksStub(object): - """Cloud Tasks allows developers to manage the execution of background + """Cloud Tasks allows developers to manage the execution of background work in their applications. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListQueues = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/ListQueues', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.FromString, + self.ListQueues = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/ListQueues", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.FromString, ) - self.GetQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/GetQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, + self.GetQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/GetQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.CreateQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/CreateQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, + self.CreateQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/CreateQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.UpdateQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/UpdateQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, + self.UpdateQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/UpdateQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.DeleteQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/DeleteQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/DeleteQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.PurgeQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/PurgeQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, + self.PurgeQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/PurgeQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.PauseQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/PauseQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, + self.PauseQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/PauseQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.ResumeQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/ResumeQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, + self.ResumeQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/ResumeQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.GetIamPolicy = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/GetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.GetIamPolicy = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/GetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.SetIamPolicy = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/SetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.SetIamPolicy = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/SetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.TestIamPermissions = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/TestIamPermissions', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, + self.TestIamPermissions = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/TestIamPermissions", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, ) - self.ListTasks = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/ListTasks', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.FromString, + self.ListTasks = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/ListTasks", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.FromString, ) - self.GetTask = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/GetTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, + self.GetTask = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/GetTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, ) - self.CreateTask = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/CreateTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, + self.CreateTask = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/CreateTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, ) - self.DeleteTask = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/DeleteTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteTask = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/DeleteTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.LeaseTasks = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/LeaseTasks', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksResponse.FromString, + self.LeaseTasks = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/LeaseTasks", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksResponse.FromString, ) - self.AcknowledgeTask = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/AcknowledgeTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.AcknowledgeTaskRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.AcknowledgeTask = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/AcknowledgeTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.AcknowledgeTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.RenewLease = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/RenewLease', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RenewLeaseRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, + self.RenewLease = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/RenewLease", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RenewLeaseRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, ) - self.CancelLease = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/CancelLease', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CancelLeaseRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, + self.CancelLease = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/CancelLease", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CancelLeaseRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, ) - self.RunTask = channel.unary_unary( - '/google.cloud.tasks.v2beta2.CloudTasks/RunTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, + self.RunTask = channel.unary_unary( + "/google.cloud.tasks.v2beta2.CloudTasks/RunTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.FromString, ) class CloudTasksServicer(object): - """Cloud Tasks allows developers to manage the execution of background + """Cloud Tasks allows developers to manage the execution of background work in their applications. """ - def ListQueues(self, request, context): - """Lists queues. + def ListQueues(self, request, context): + """Lists queues. Queues are returned in lexicographical order. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetQueue(self, request, context): - """Gets a queue. + def GetQueue(self, request, context): + """Gets a queue. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateQueue(self, request, context): - """Creates a queue. + def CreateQueue(self, request, context): + """Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether @@ -156,12 +162,12 @@ def CreateQueue(self, request, context): [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateQueue(self, request, context): - """Updates a queue. + def UpdateQueue(self, request, context): + """Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. @@ -176,12 +182,12 @@ def UpdateQueue(self, request, context): [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteQueue(self, request, context): - """Deletes a queue. + def DeleteQueue(self, request, context): + """Deletes a queue. This command will delete the queue even if it has tasks in it. @@ -194,24 +200,24 @@ def DeleteQueue(self, request, context): [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PurgeQueue(self, request, context): - """Purges a queue by deleting all of its tasks. + def PurgeQueue(self, request, context): + """Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PauseQueue(self, request, context): - """Pauses the queue. + def PauseQueue(self, request, context): + """Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via @@ -219,12 +225,12 @@ def PauseQueue(self, request, context): when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ResumeQueue(self, request, context): - """Resume a queue. + def ResumeQueue(self, request, context): + """Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or @@ -237,12 +243,12 @@ def ResumeQueue(self, request, context): queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetIamPolicy(self, request, context): - """Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. + def GetIamPolicy(self, request, context): + """Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. @@ -252,12 +258,12 @@ def GetIamPolicy(self, request, context): * `cloudtasks.queues.getIamPolicy` """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SetIamPolicy(self, request, context): - """Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing + def SetIamPolicy(self, request, context): + """Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. @@ -269,12 +275,12 @@ def SetIamPolicy(self, request, context): * `cloudtasks.queues.setIamPolicy` """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def TestIamPermissions(self, request, context): - """Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. + def TestIamPermissions(self, request, context): + """Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. @@ -282,12 +288,12 @@ def TestIamPermissions(self, request, context): UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTasks(self, request, context): - """Lists the tasks in a queue. + def ListTasks(self, request, context): + """Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved due to performance considerations; @@ -297,19 +303,19 @@ def ListTasks(self, request, context): The tasks may be returned in any order. The ordering may change at any time. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTask(self, request, context): - """Gets a task. + def GetTask(self, request, context): + """Gets a task. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateTask(self, request, context): - """Creates a task and adds it to a queue. + def CreateTask(self, request, context): + """Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. @@ -317,23 +323,23 @@ def CreateTask(self, request, context): 100KB. * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteTask(self, request, context): - """Deletes a task. + def DeleteTask(self, request, context): + """Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has completed successfully or permanently failed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def LeaseTasks(self, request, context): - """Leases tasks from a pull queue for + def LeaseTasks(self, request, context): + """Leases tasks from a pull queue for [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. This method is invoked by the worker to obtain a lease. The @@ -356,12 +362,12 @@ def LeaseTasks(self, request, context): [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] is exceeded. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AcknowledgeTask(self, request, context): - """Acknowledges a pull task. + def AcknowledgeTask(self, request, context): + """Acknowledges a pull task. The worker, that is, the entity that [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method @@ -375,35 +381,35 @@ def AcknowledgeTask(self, request, context): [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RenewLease(self, request, context): - """Renew the current lease of a pull task. + def RenewLease(self, request, context): + """Renew the current lease of a pull task. The worker can use this method to extend the lease by a new duration, starting from now. The new task lease will be returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CancelLease(self, request, context): - """Cancel a pull task's lease. + def CancelLease(self, request, context): + """Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task available to be leased to the next caller of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RunTask(self, request, context): - """Forces a task to run now. + def RunTask(self, request, context): + """Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or @@ -431,114 +437,115 @@ def RunTask(self, request, context): [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull task][google.cloud.tasks.v2beta2.PullMessage]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_CloudTasksServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListQueues': grpc.unary_unary_rpc_method_handler( - servicer.ListQueues, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.SerializeToString, - ), - 'GetQueue': grpc.unary_unary_rpc_method_handler( - servicer.GetQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'CreateQueue': grpc.unary_unary_rpc_method_handler( - servicer.CreateQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'UpdateQueue': grpc.unary_unary_rpc_method_handler( - servicer.UpdateQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'DeleteQueue': grpc.unary_unary_rpc_method_handler( - servicer.DeleteQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'PurgeQueue': grpc.unary_unary_rpc_method_handler( - servicer.PurgeQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'PauseQueue': grpc.unary_unary_rpc_method_handler( - servicer.PauseQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'ResumeQueue': grpc.unary_unary_rpc_method_handler( - servicer.ResumeQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'GetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'SetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.SetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'TestIamPermissions': grpc.unary_unary_rpc_method_handler( - servicer.TestIamPermissions, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, - ), - 'ListTasks': grpc.unary_unary_rpc_method_handler( - servicer.ListTasks, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.SerializeToString, - ), - 'GetTask': grpc.unary_unary_rpc_method_handler( - servicer.GetTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - 'CreateTask': grpc.unary_unary_rpc_method_handler( - servicer.CreateTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - 'DeleteTask': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'LeaseTasks': grpc.unary_unary_rpc_method_handler( - servicer.LeaseTasks, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksResponse.SerializeToString, - ), - 'AcknowledgeTask': grpc.unary_unary_rpc_method_handler( - servicer.AcknowledgeTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.AcknowledgeTaskRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'RenewLease': grpc.unary_unary_rpc_method_handler( - servicer.RenewLease, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RenewLeaseRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - 'CancelLease': grpc.unary_unary_rpc_method_handler( - servicer.CancelLease, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CancelLeaseRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - 'RunTask': grpc.unary_unary_rpc_method_handler( - servicer.RunTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.tasks.v2beta2.CloudTasks', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListQueues": grpc.unary_unary_rpc_method_handler( + servicer.ListQueues, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.SerializeToString, + ), + "GetQueue": grpc.unary_unary_rpc_method_handler( + servicer.GetQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "CreateQueue": grpc.unary_unary_rpc_method_handler( + servicer.CreateQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "UpdateQueue": grpc.unary_unary_rpc_method_handler( + servicer.UpdateQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "DeleteQueue": grpc.unary_unary_rpc_method_handler( + servicer.DeleteQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "PurgeQueue": grpc.unary_unary_rpc_method_handler( + servicer.PurgeQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "PauseQueue": grpc.unary_unary_rpc_method_handler( + servicer.PauseQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "ResumeQueue": grpc.unary_unary_rpc_method_handler( + servicer.ResumeQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "GetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "SetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.SetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "TestIamPermissions": grpc.unary_unary_rpc_method_handler( + servicer.TestIamPermissions, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, + ), + "ListTasks": grpc.unary_unary_rpc_method_handler( + servicer.ListTasks, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.SerializeToString, + ), + "GetTask": grpc.unary_unary_rpc_method_handler( + servicer.GetTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + "CreateTask": grpc.unary_unary_rpc_method_handler( + servicer.CreateTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + "DeleteTask": grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "LeaseTasks": grpc.unary_unary_rpc_method_handler( + servicer.LeaseTasks, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.LeaseTasksResponse.SerializeToString, + ), + "AcknowledgeTask": grpc.unary_unary_rpc_method_handler( + servicer.AcknowledgeTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.AcknowledgeTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "RenewLease": grpc.unary_unary_rpc_method_handler( + servicer.RenewLease, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RenewLeaseRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + "CancelLease": grpc.unary_unary_rpc_method_handler( + servicer.CancelLease, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.CancelLeaseRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + "RunTask": grpc.unary_unary_rpc_method_handler( + servicer.RunTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.tasks.v2beta2.CloudTasks", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2.py b/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2.py index 3306acc9c7e86..7ef7a811464ad 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2.py @@ -2,286 +2,496 @@ # source: google/cloud/tasks_v2beta2/proto/queue.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.tasks_v2beta2.proto import target_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2 +from google.cloud.tasks_v2beta2.proto import ( + target_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta2/proto/queue.proto', - package='google.cloud.tasks.v2beta2', - syntax='proto3', - serialized_pb=_b('\n,google/cloud/tasks_v2beta2/proto/queue.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta2/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe1\x03\n\x05Queue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Q\n\x16\x61pp_engine_http_target\x18\x03 \x01(\x0b\x32/.google.cloud.tasks.v2beta2.AppEngineHttpTargetH\x00\x12=\n\x0bpull_target\x18\x04 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.PullTargetH\x00\x12;\n\x0brate_limits\x18\x05 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.RateLimits\x12=\n\x0cretry_config\x18\x06 \x01(\x0b\x32\'.google.cloud.tasks.v2beta2.RetryConfig\x12\x36\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.tasks.v2beta2.Queue.State\x12.\n\npurge_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x42\r\n\x0btarget_type\"k\n\nRateLimits\x12\'\n\x1fmax_tasks_dispatched_per_second\x18\x01 \x01(\x01\x12\x16\n\x0emax_burst_size\x18\x02 \x01(\x05\x12\x1c\n\x14max_concurrent_tasks\x18\x03 \x01(\x05\"\x81\x02\n\x0bRetryConfig\x12\x16\n\x0cmax_attempts\x18\x01 \x01(\x05H\x00\x12\x1c\n\x12unlimited_attempts\x18\x02 \x01(\x08H\x00\x12\x35\n\x12max_retry_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmin_backoff\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x06 \x01(\x05\x42\x0e\n\x0cnum_attemptsBo\n\x1e\x63om.google.cloud.tasks.v2beta2B\nQueueProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasksb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/tasks_v2beta2/proto/queue.proto", + package="google.cloud.tasks.v2beta2", + syntax="proto3", + serialized_pb=_b( + '\n,google/cloud/tasks_v2beta2/proto/queue.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta2/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xe1\x03\n\x05Queue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Q\n\x16\x61pp_engine_http_target\x18\x03 \x01(\x0b\x32/.google.cloud.tasks.v2beta2.AppEngineHttpTargetH\x00\x12=\n\x0bpull_target\x18\x04 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.PullTargetH\x00\x12;\n\x0brate_limits\x18\x05 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.RateLimits\x12=\n\x0cretry_config\x18\x06 \x01(\x0b\x32\'.google.cloud.tasks.v2beta2.RetryConfig\x12\x36\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.tasks.v2beta2.Queue.State\x12.\n\npurge_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x42\r\n\x0btarget_type"k\n\nRateLimits\x12\'\n\x1fmax_tasks_dispatched_per_second\x18\x01 \x01(\x01\x12\x16\n\x0emax_burst_size\x18\x02 \x01(\x05\x12\x1c\n\x14max_concurrent_tasks\x18\x03 \x01(\x05"\x81\x02\n\x0bRetryConfig\x12\x16\n\x0cmax_attempts\x18\x01 \x01(\x05H\x00\x12\x1c\n\x12unlimited_attempts\x18\x02 \x01(\x08H\x00\x12\x35\n\x12max_retry_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmin_backoff\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x06 \x01(\x05\x42\x0e\n\x0cnum_attemptsBo\n\x1e\x63om.google.cloud.tasks.v2beta2B\nQueueProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasksb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _QUEUE_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.tasks.v2beta2.Queue.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAUSED', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISABLED', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=616, - serialized_end=685, + name="State", + full_name="google.cloud.tasks.v2beta2.Queue.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PAUSED", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISABLED", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=616, + serialized_end=685, ) _sym_db.RegisterEnumDescriptor(_QUEUE_STATE) _QUEUE = _descriptor.Descriptor( - name='Queue', - full_name='google.cloud.tasks.v2beta2.Queue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.Queue.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_http_target', full_name='google.cloud.tasks.v2beta2.Queue.app_engine_http_target', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pull_target', full_name='google.cloud.tasks.v2beta2.Queue.pull_target', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rate_limits', full_name='google.cloud.tasks.v2beta2.Queue.rate_limits', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='retry_config', full_name='google.cloud.tasks.v2beta2.Queue.retry_config', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.tasks.v2beta2.Queue.state', index=5, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='purge_time', full_name='google.cloud.tasks.v2beta2.Queue.purge_time', index=6, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _QUEUE_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target_type', full_name='google.cloud.tasks.v2beta2.Queue.target_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=219, - serialized_end=700, + name="Queue", + full_name="google.cloud.tasks.v2beta2.Queue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.Queue.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_http_target", + full_name="google.cloud.tasks.v2beta2.Queue.app_engine_http_target", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pull_target", + full_name="google.cloud.tasks.v2beta2.Queue.pull_target", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rate_limits", + full_name="google.cloud.tasks.v2beta2.Queue.rate_limits", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="retry_config", + full_name="google.cloud.tasks.v2beta2.Queue.retry_config", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.tasks.v2beta2.Queue.state", + index=5, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="purge_time", + full_name="google.cloud.tasks.v2beta2.Queue.purge_time", + index=6, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_QUEUE_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="target_type", + full_name="google.cloud.tasks.v2beta2.Queue.target_type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=219, + serialized_end=700, ) _RATELIMITS = _descriptor.Descriptor( - name='RateLimits', - full_name='google.cloud.tasks.v2beta2.RateLimits', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_tasks_dispatched_per_second', full_name='google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second', index=0, - number=1, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_burst_size', full_name='google.cloud.tasks.v2beta2.RateLimits.max_burst_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_concurrent_tasks', full_name='google.cloud.tasks.v2beta2.RateLimits.max_concurrent_tasks', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=702, - serialized_end=809, + name="RateLimits", + full_name="google.cloud.tasks.v2beta2.RateLimits", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_tasks_dispatched_per_second", + full_name="google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second", + index=0, + number=1, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_burst_size", + full_name="google.cloud.tasks.v2beta2.RateLimits.max_burst_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_concurrent_tasks", + full_name="google.cloud.tasks.v2beta2.RateLimits.max_concurrent_tasks", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=702, + serialized_end=809, ) _RETRYCONFIG = _descriptor.Descriptor( - name='RetryConfig', - full_name='google.cloud.tasks.v2beta2.RetryConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_attempts', full_name='google.cloud.tasks.v2beta2.RetryConfig.max_attempts', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='unlimited_attempts', full_name='google.cloud.tasks.v2beta2.RetryConfig.unlimited_attempts', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_retry_duration', full_name='google.cloud.tasks.v2beta2.RetryConfig.max_retry_duration', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_backoff', full_name='google.cloud.tasks.v2beta2.RetryConfig.min_backoff', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_backoff', full_name='google.cloud.tasks.v2beta2.RetryConfig.max_backoff', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_doublings', full_name='google.cloud.tasks.v2beta2.RetryConfig.max_doublings', index=5, - number=6, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='num_attempts', full_name='google.cloud.tasks.v2beta2.RetryConfig.num_attempts', - index=0, containing_type=None, fields=[]), - ], - serialized_start=812, - serialized_end=1069, + name="RetryConfig", + full_name="google.cloud.tasks.v2beta2.RetryConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_attempts", + full_name="google.cloud.tasks.v2beta2.RetryConfig.max_attempts", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="unlimited_attempts", + full_name="google.cloud.tasks.v2beta2.RetryConfig.unlimited_attempts", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_retry_duration", + full_name="google.cloud.tasks.v2beta2.RetryConfig.max_retry_duration", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="min_backoff", + full_name="google.cloud.tasks.v2beta2.RetryConfig.min_backoff", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_backoff", + full_name="google.cloud.tasks.v2beta2.RetryConfig.max_backoff", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_doublings", + full_name="google.cloud.tasks.v2beta2.RetryConfig.max_doublings", + index=5, + number=6, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="num_attempts", + full_name="google.cloud.tasks.v2beta2.RetryConfig.num_attempts", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=812, + serialized_end=1069, ) -_QUEUE.fields_by_name['app_engine_http_target'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._APPENGINEHTTPTARGET -_QUEUE.fields_by_name['pull_target'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._PULLTARGET -_QUEUE.fields_by_name['rate_limits'].message_type = _RATELIMITS -_QUEUE.fields_by_name['retry_config'].message_type = _RETRYCONFIG -_QUEUE.fields_by_name['state'].enum_type = _QUEUE_STATE -_QUEUE.fields_by_name['purge_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_QUEUE.fields_by_name[ + "app_engine_http_target" +].message_type = ( + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._APPENGINEHTTPTARGET +) +_QUEUE.fields_by_name[ + "pull_target" +].message_type = ( + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._PULLTARGET +) +_QUEUE.fields_by_name["rate_limits"].message_type = _RATELIMITS +_QUEUE.fields_by_name["retry_config"].message_type = _RETRYCONFIG +_QUEUE.fields_by_name["state"].enum_type = _QUEUE_STATE +_QUEUE.fields_by_name[ + "purge_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _QUEUE_STATE.containing_type = _QUEUE -_QUEUE.oneofs_by_name['target_type'].fields.append( - _QUEUE.fields_by_name['app_engine_http_target']) -_QUEUE.fields_by_name['app_engine_http_target'].containing_oneof = _QUEUE.oneofs_by_name['target_type'] -_QUEUE.oneofs_by_name['target_type'].fields.append( - _QUEUE.fields_by_name['pull_target']) -_QUEUE.fields_by_name['pull_target'].containing_oneof = _QUEUE.oneofs_by_name['target_type'] -_RETRYCONFIG.fields_by_name['max_retry_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['min_backoff'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['max_backoff'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.oneofs_by_name['num_attempts'].fields.append( - _RETRYCONFIG.fields_by_name['max_attempts']) -_RETRYCONFIG.fields_by_name['max_attempts'].containing_oneof = _RETRYCONFIG.oneofs_by_name['num_attempts'] -_RETRYCONFIG.oneofs_by_name['num_attempts'].fields.append( - _RETRYCONFIG.fields_by_name['unlimited_attempts']) -_RETRYCONFIG.fields_by_name['unlimited_attempts'].containing_oneof = _RETRYCONFIG.oneofs_by_name['num_attempts'] -DESCRIPTOR.message_types_by_name['Queue'] = _QUEUE -DESCRIPTOR.message_types_by_name['RateLimits'] = _RATELIMITS -DESCRIPTOR.message_types_by_name['RetryConfig'] = _RETRYCONFIG +_QUEUE.oneofs_by_name["target_type"].fields.append( + _QUEUE.fields_by_name["app_engine_http_target"] +) +_QUEUE.fields_by_name[ + "app_engine_http_target" +].containing_oneof = _QUEUE.oneofs_by_name["target_type"] +_QUEUE.oneofs_by_name["target_type"].fields.append(_QUEUE.fields_by_name["pull_target"]) +_QUEUE.fields_by_name["pull_target"].containing_oneof = _QUEUE.oneofs_by_name[ + "target_type" +] +_RETRYCONFIG.fields_by_name[ + "max_retry_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "min_backoff" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "max_backoff" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.oneofs_by_name["num_attempts"].fields.append( + _RETRYCONFIG.fields_by_name["max_attempts"] +) +_RETRYCONFIG.fields_by_name[ + "max_attempts" +].containing_oneof = _RETRYCONFIG.oneofs_by_name["num_attempts"] +_RETRYCONFIG.oneofs_by_name["num_attempts"].fields.append( + _RETRYCONFIG.fields_by_name["unlimited_attempts"] +) +_RETRYCONFIG.fields_by_name[ + "unlimited_attempts" +].containing_oneof = _RETRYCONFIG.oneofs_by_name["num_attempts"] +DESCRIPTOR.message_types_by_name["Queue"] = _QUEUE +DESCRIPTOR.message_types_by_name["RateLimits"] = _RATELIMITS +DESCRIPTOR.message_types_by_name["RetryConfig"] = _RETRYCONFIG _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Queue = _reflection.GeneratedProtocolMessageType('Queue', (_message.Message,), dict( - DESCRIPTOR = _QUEUE, - __module__ = 'google.cloud.tasks_v2beta2.proto.queue_pb2' - , - __doc__ = """A queue is a container of related tasks. Queues are configured to manage +Queue = _reflection.GeneratedProtocolMessageType( + "Queue", + (_message.Message,), + dict( + DESCRIPTOR=_QUEUE, + __module__="google.cloud.tasks_v2beta2.proto.queue_pb2", + __doc__="""A queue is a container of related tasks. Queues are configured to manage how those tasks are dispatched. Configurable properties include rate limits, retry options, target types, and others. @@ -365,15 +575,18 @@ time will be truncated to the nearest microsecond. Purge time will be unset if the queue has never been purged. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.Queue) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.Queue) + ), +) _sym_db.RegisterMessage(Queue) -RateLimits = _reflection.GeneratedProtocolMessageType('RateLimits', (_message.Message,), dict( - DESCRIPTOR = _RATELIMITS, - __module__ = 'google.cloud.tasks_v2beta2.proto.queue_pb2' - , - __doc__ = """Rate limits. +RateLimits = _reflection.GeneratedProtocolMessageType( + "RateLimits", + (_message.Message,), + dict( + DESCRIPTOR=_RATELIMITS, + __module__="google.cloud.tasks_v2beta2.proto.queue_pb2", + __doc__="""Rate limits. This message determines the maximum rate that tasks can be dispatched by a queue, regardless of whether the dispatch is a first task attempt or a @@ -444,15 +657,18 @@ `_. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RateLimits) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RateLimits) + ), +) _sym_db.RegisterMessage(RateLimits) -RetryConfig = _reflection.GeneratedProtocolMessageType('RetryConfig', (_message.Message,), dict( - DESCRIPTOR = _RETRYCONFIG, - __module__ = 'google.cloud.tasks_v2beta2.proto.queue_pb2' - , - __doc__ = """Retry config. +RetryConfig = _reflection.GeneratedProtocolMessageType( + "RetryConfig", + (_message.Message,), + dict( + DESCRIPTOR=_RETRYCONFIG, + __module__="google.cloud.tasks_v2beta2.proto.queue_pb2", + __doc__="""Retry config. These settings determine how a failed task attempt is retried. @@ -544,11 +760,17 @@ ps://cloud.google.com/appengine/docs/standard/python/config/qu eueref#retry_parameters>`_. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RetryConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RetryConfig) + ), +) _sym_db.RegisterMessage(RetryConfig) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta2B\nQueueProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta2B\nQueueProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/queue_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/tasks/google/cloud/tasks_v2beta2/proto/target_pb2.py b/tasks/google/cloud/tasks_v2beta2/proto/target_pb2.py index bdcb0b9e2c97f..9a700d7e21306 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/target_pb2.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/target_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/tasks_v2beta2/proto/target.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,48 +21,47 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta2/proto/target.proto', - package='google.cloud.tasks.v2beta2', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/tasks_v2beta2/proto/target.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\"\x0c\n\nPullTarget\"+\n\x0bPullMessage\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x0b\n\x03tag\x18\x02 \x01(\t\"h\n\x13\x41ppEngineHttpTarget\x12Q\n\x1b\x61pp_engine_routing_override\x18\x01 \x01(\x0b\x32,.google.cloud.tasks.v2beta2.AppEngineRouting\"\xc4\x02\n\x14\x41ppEngineHttpRequest\x12;\n\x0bhttp_method\x18\x01 \x01(\x0e\x32&.google.cloud.tasks.v2beta2.HttpMethod\x12H\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32,.google.cloud.tasks.v2beta2.AppEngineRouting\x12\x14\n\x0crelative_url\x18\x03 \x01(\t\x12N\n\x07headers\x18\x04 \x03(\x0b\x32=.google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry\x12\x0f\n\x07payload\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*[\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x42p\n\x1e\x63om.google.cloud.tasks.v2beta2B\x0bTargetProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasksb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + name="google/cloud/tasks_v2beta2/proto/target.proto", + package="google.cloud.tasks.v2beta2", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/tasks_v2beta2/proto/target.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto"\x0c\n\nPullTarget"+\n\x0bPullMessage\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x0b\n\x03tag\x18\x02 \x01(\t"h\n\x13\x41ppEngineHttpTarget\x12Q\n\x1b\x61pp_engine_routing_override\x18\x01 \x01(\x0b\x32,.google.cloud.tasks.v2beta2.AppEngineRouting"\xc4\x02\n\x14\x41ppEngineHttpRequest\x12;\n\x0bhttp_method\x18\x01 \x01(\x0e\x32&.google.cloud.tasks.v2beta2.HttpMethod\x12H\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32,.google.cloud.tasks.v2beta2.AppEngineRouting\x12\x14\n\x0crelative_url\x18\x03 \x01(\t\x12N\n\x07headers\x18\x04 \x03(\x0b\x32=.google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry\x12\x0f\n\x07payload\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*[\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x42p\n\x1e\x63om.google.cloud.tasks.v2beta2B\x0bTargetProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasksb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + ], +) _HTTPMETHOD = _descriptor.EnumDescriptor( - name='HttpMethod', - full_name='google.cloud.tasks.v2beta2.HttpMethod', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='HTTP_METHOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POST', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GET', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEAD', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETE', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=717, - serialized_end=808, + name="HttpMethod", + full_name="google.cloud.tasks.v2beta2.HttpMethod", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="HTTP_METHOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POST", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GET", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEAD", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PUT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETE", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=717, + serialized_end=808, ) _sym_db.RegisterEnumDescriptor(_HTTPMETHOD) @@ -73,275 +74,420 @@ DELETE = 5 - _PULLTARGET = _descriptor.Descriptor( - name='PullTarget', - full_name='google.cloud.tasks.v2beta2.PullTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=139, - serialized_end=151, + name="PullTarget", + full_name="google.cloud.tasks.v2beta2.PullTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=139, + serialized_end=151, ) _PULLMESSAGE = _descriptor.Descriptor( - name='PullMessage', - full_name='google.cloud.tasks.v2beta2.PullMessage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='payload', full_name='google.cloud.tasks.v2beta2.PullMessage.payload', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tag', full_name='google.cloud.tasks.v2beta2.PullMessage.tag', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=153, - serialized_end=196, + name="PullMessage", + full_name="google.cloud.tasks.v2beta2.PullMessage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="payload", + full_name="google.cloud.tasks.v2beta2.PullMessage.payload", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tag", + full_name="google.cloud.tasks.v2beta2.PullMessage.tag", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=153, + serialized_end=196, ) _APPENGINEHTTPTARGET = _descriptor.Descriptor( - name='AppEngineHttpTarget', - full_name='google.cloud.tasks.v2beta2.AppEngineHttpTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='app_engine_routing_override', full_name='google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=198, - serialized_end=302, + name="AppEngineHttpTarget", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpTarget", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="app_engine_routing_override", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=198, + serialized_end=302, ) _APPENGINEHTTPREQUEST_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=583, - serialized_end=629, + name="HeadersEntry", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=583, + serialized_end=629, ) _APPENGINEHTTPREQUEST = _descriptor.Descriptor( - name='AppEngineHttpRequest', - full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_method', full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.http_method', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_routing', full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relative_url', full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headers', full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.headers', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payload', full_name='google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload', index=4, - number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_APPENGINEHTTPREQUEST_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=305, - serialized_end=629, + name="AppEngineHttpRequest", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="http_method", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.http_method", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_routing", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="relative_url", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.headers", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="payload", + full_name="google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload", + index=4, + number=5, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_APPENGINEHTTPREQUEST_HEADERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=305, + serialized_end=629, ) _APPENGINEROUTING = _descriptor.Descriptor( - name='AppEngineRouting', - full_name='google.cloud.tasks.v2beta2.AppEngineRouting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='service', full_name='google.cloud.tasks.v2beta2.AppEngineRouting.service', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.tasks.v2beta2.AppEngineRouting.version', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.cloud.tasks.v2beta2.AppEngineRouting.instance', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='google.cloud.tasks.v2beta2.AppEngineRouting.host', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=631, - serialized_end=715, + name="AppEngineRouting", + full_name="google.cloud.tasks.v2beta2.AppEngineRouting", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="service", + full_name="google.cloud.tasks.v2beta2.AppEngineRouting.service", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.tasks.v2beta2.AppEngineRouting.version", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.cloud.tasks.v2beta2.AppEngineRouting.instance", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="host", + full_name="google.cloud.tasks.v2beta2.AppEngineRouting.host", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=631, + serialized_end=715, ) -_APPENGINEHTTPTARGET.fields_by_name['app_engine_routing_override'].message_type = _APPENGINEROUTING +_APPENGINEHTTPTARGET.fields_by_name[ + "app_engine_routing_override" +].message_type = _APPENGINEROUTING _APPENGINEHTTPREQUEST_HEADERSENTRY.containing_type = _APPENGINEHTTPREQUEST -_APPENGINEHTTPREQUEST.fields_by_name['http_method'].enum_type = _HTTPMETHOD -_APPENGINEHTTPREQUEST.fields_by_name['app_engine_routing'].message_type = _APPENGINEROUTING -_APPENGINEHTTPREQUEST.fields_by_name['headers'].message_type = _APPENGINEHTTPREQUEST_HEADERSENTRY -DESCRIPTOR.message_types_by_name['PullTarget'] = _PULLTARGET -DESCRIPTOR.message_types_by_name['PullMessage'] = _PULLMESSAGE -DESCRIPTOR.message_types_by_name['AppEngineHttpTarget'] = _APPENGINEHTTPTARGET -DESCRIPTOR.message_types_by_name['AppEngineHttpRequest'] = _APPENGINEHTTPREQUEST -DESCRIPTOR.message_types_by_name['AppEngineRouting'] = _APPENGINEROUTING -DESCRIPTOR.enum_types_by_name['HttpMethod'] = _HTTPMETHOD +_APPENGINEHTTPREQUEST.fields_by_name["http_method"].enum_type = _HTTPMETHOD +_APPENGINEHTTPREQUEST.fields_by_name[ + "app_engine_routing" +].message_type = _APPENGINEROUTING +_APPENGINEHTTPREQUEST.fields_by_name[ + "headers" +].message_type = _APPENGINEHTTPREQUEST_HEADERSENTRY +DESCRIPTOR.message_types_by_name["PullTarget"] = _PULLTARGET +DESCRIPTOR.message_types_by_name["PullMessage"] = _PULLMESSAGE +DESCRIPTOR.message_types_by_name["AppEngineHttpTarget"] = _APPENGINEHTTPTARGET +DESCRIPTOR.message_types_by_name["AppEngineHttpRequest"] = _APPENGINEHTTPREQUEST +DESCRIPTOR.message_types_by_name["AppEngineRouting"] = _APPENGINEROUTING +DESCRIPTOR.enum_types_by_name["HttpMethod"] = _HTTPMETHOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -PullTarget = _reflection.GeneratedProtocolMessageType('PullTarget', (_message.Message,), dict( - DESCRIPTOR = _PULLTARGET, - __module__ = 'google.cloud.tasks_v2beta2.proto.target_pb2' - , - __doc__ = """Pull target. +PullTarget = _reflection.GeneratedProtocolMessageType( + "PullTarget", + (_message.Message,), + dict( + DESCRIPTOR=_PULLTARGET, + __module__="google.cloud.tasks_v2beta2.proto.target_pb2", + __doc__="""Pull target. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PullTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PullTarget) + ), +) _sym_db.RegisterMessage(PullTarget) -PullMessage = _reflection.GeneratedProtocolMessageType('PullMessage', (_message.Message,), dict( - DESCRIPTOR = _PULLMESSAGE, - __module__ = 'google.cloud.tasks_v2beta2.proto.target_pb2' - , - __doc__ = """The pull message contains data that can be used by the caller of +PullMessage = _reflection.GeneratedProtocolMessageType( + "PullMessage", + (_message.Message,), + dict( + DESCRIPTOR=_PULLMESSAGE, + __module__="google.cloud.tasks_v2beta2.proto.target_pb2", + __doc__="""The pull message contains data that can be used by the caller of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. @@ -370,15 +516,18 @@ Tasks. If a tag isn't UTF-8 encoded, the tag will be empty when the task is returned by Cloud Tasks. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PullMessage) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PullMessage) + ), +) _sym_db.RegisterMessage(PullMessage) -AppEngineHttpTarget = _reflection.GeneratedProtocolMessageType('AppEngineHttpTarget', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEHTTPTARGET, - __module__ = 'google.cloud.tasks_v2beta2.proto.target_pb2' - , - __doc__ = """App Engine HTTP target. +AppEngineHttpTarget = _reflection.GeneratedProtocolMessageType( + "AppEngineHttpTarget", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEHTTPTARGET, + __module__="google.cloud.tasks_v2beta2.proto.target_pb2", + __doc__="""App Engine HTTP target. The task will be delivered to the App Engine application hostname specified by its @@ -407,22 +556,27 @@ level app\_engine\_routing][google.cloud.tasks.v2beta2.AppEngi neHttpRequest.app\_engine\_routing]. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpTarget) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpTarget) + ), +) _sym_db.RegisterMessage(AppEngineHttpTarget) -AppEngineHttpRequest = _reflection.GeneratedProtocolMessageType('AppEngineHttpRequest', (_message.Message,), dict( - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEHTTPREQUEST_HEADERSENTRY, - __module__ = 'google.cloud.tasks_v2beta2.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry) - )) - , - DESCRIPTOR = _APPENGINEHTTPREQUEST, - __module__ = 'google.cloud.tasks_v2beta2.proto.target_pb2' - , - __doc__ = """App Engine HTTP request. +AppEngineHttpRequest = _reflection.GeneratedProtocolMessageType( + "AppEngineHttpRequest", + (_message.Message,), + dict( + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEHTTPREQUEST_HEADERSENTRY, + __module__="google.cloud.tasks_v2beta2.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry) + ), + ), + DESCRIPTOR=_APPENGINEHTTPREQUEST, + __module__="google.cloud.tasks_v2beta2.proto.target_pb2", + __doc__="""App Engine HTTP request. The message defines the HTTP request that is sent to an App Engine app when the task is dispatched. @@ -539,16 +693,19 @@ a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod]. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpRequest) + ), +) _sym_db.RegisterMessage(AppEngineHttpRequest) _sym_db.RegisterMessage(AppEngineHttpRequest.HeadersEntry) -AppEngineRouting = _reflection.GeneratedProtocolMessageType('AppEngineRouting', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEROUTING, - __module__ = 'google.cloud.tasks_v2beta2.proto.target_pb2' - , - __doc__ = """App Engine Routing. +AppEngineRouting = _reflection.GeneratedProtocolMessageType( + "AppEngineRouting", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEROUTING, + __module__="google.cloud.tasks_v2beta2.proto.target_pb2", + __doc__="""App Engine Routing. For more information about services, versions, and instances see `An Overview of App @@ -663,13 +820,21 @@ invalid, then the task will be sent to the default version of the default service when the task is attempted. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineRouting) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineRouting) + ), +) _sym_db.RegisterMessage(AppEngineRouting) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta2B\013TargetProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta2B\013TargetProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks" + ), +) _APPENGINEHTTPREQUEST_HEADERSENTRY.has_options = True -_APPENGINEHTTPREQUEST_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_APPENGINEHTTPREQUEST_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta2/proto/target_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta2/proto/target_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/target_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/target_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/tasks/google/cloud/tasks_v2beta2/proto/task_pb2.py b/tasks/google/cloud/tasks_v2beta2/proto/task_pb2.py index 67f5dd3d95dee..6971d995adf9d 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/task_pb2.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/task_pb2.py @@ -2,269 +2,462 @@ # source: google/cloud/tasks_v2beta2/proto/task.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.tasks_v2beta2.proto import target_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2 +from google.cloud.tasks_v2beta2.proto import ( + target_pb2 as google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta2/proto/task.proto', - package='google.cloud.tasks.v2beta2', - syntax='proto3', - serialized_pb=_b('\n+google/cloud/tasks_v2beta2/proto/task.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta2/proto/target.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xbe\x03\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\x17\x61pp_engine_http_request\x18\x03 \x01(\x0b\x32\x30.google.cloud.tasks.v2beta2.AppEngineHttpRequestH\x00\x12?\n\x0cpull_message\x18\x04 \x01(\x0b\x32\'.google.cloud.tasks.v2beta2.PullMessageH\x00\x12\x31\n\rschedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x06status\x18\x07 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.TaskStatus\x12\x33\n\x04view\x18\x08 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"1\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\x0e\n\x0cpayload_type\"\xdd\x01\n\nTaskStatus\x12\x1e\n\x16\x61ttempt_dispatch_count\x18\x01 \x01(\x05\x12\x1e\n\x16\x61ttempt_response_count\x18\x02 \x01(\x05\x12G\n\x14\x66irst_attempt_status\x18\x03 \x01(\x0b\x32).google.cloud.tasks.v2beta2.AttemptStatus\x12\x46\n\x13last_attempt_status\x18\x04 \x01(\x0b\x32).google.cloud.tasks.v2beta2.AttemptStatus\"\xd5\x01\n\rAttemptStatus\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rdispatch_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rresponse_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0fresponse_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusBn\n\x1e\x63om.google.cloud.tasks.v2beta2B\tTaskProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasksb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/tasks_v2beta2/proto/task.proto", + package="google.cloud.tasks.v2beta2", + syntax="proto3", + serialized_pb=_b( + '\n+google/cloud/tasks_v2beta2/proto/task.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta2/proto/target.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xbe\x03\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\x17\x61pp_engine_http_request\x18\x03 \x01(\x0b\x32\x30.google.cloud.tasks.v2beta2.AppEngineHttpRequestH\x00\x12?\n\x0cpull_message\x18\x04 \x01(\x0b\x32\'.google.cloud.tasks.v2beta2.PullMessageH\x00\x12\x31\n\rschedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x06status\x18\x07 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.TaskStatus\x12\x33\n\x04view\x18\x08 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View"1\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\x0e\n\x0cpayload_type"\xdd\x01\n\nTaskStatus\x12\x1e\n\x16\x61ttempt_dispatch_count\x18\x01 \x01(\x05\x12\x1e\n\x16\x61ttempt_response_count\x18\x02 \x01(\x05\x12G\n\x14\x66irst_attempt_status\x18\x03 \x01(\x0b\x32).google.cloud.tasks.v2beta2.AttemptStatus\x12\x46\n\x13last_attempt_status\x18\x04 \x01(\x0b\x32).google.cloud.tasks.v2beta2.AttemptStatus"\xd5\x01\n\rAttemptStatus\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rdispatch_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rresponse_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0fresponse_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusBn\n\x1e\x63om.google.cloud.tasks.v2beta2B\tTaskProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasksb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _TASK_VIEW = _descriptor.EnumDescriptor( - name='View', - full_name='google.cloud.tasks.v2beta2.Task.View', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VIEW_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BASIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FULL', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=592, - serialized_end=641, + name="View", + full_name="google.cloud.tasks.v2beta2.Task.View", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VIEW_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BASIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FULL", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=592, + serialized_end=641, ) _sym_db.RegisterEnumDescriptor(_TASK_VIEW) _TASK = _descriptor.Descriptor( - name='Task', - full_name='google.cloud.tasks.v2beta2.Task', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta2.Task.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_http_request', full_name='google.cloud.tasks.v2beta2.Task.app_engine_http_request', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pull_message', full_name='google.cloud.tasks.v2beta2.Task.pull_message', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.tasks.v2beta2.Task.schedule_time', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.tasks.v2beta2.Task.create_time', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.cloud.tasks.v2beta2.Task.status', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.cloud.tasks.v2beta2.Task.view', index=6, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TASK_VIEW, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='payload_type', full_name='google.cloud.tasks.v2beta2.Task.payload_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=211, - serialized_end=657, + name="Task", + full_name="google.cloud.tasks.v2beta2.Task", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta2.Task.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_http_request", + full_name="google.cloud.tasks.v2beta2.Task.app_engine_http_request", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pull_message", + full_name="google.cloud.tasks.v2beta2.Task.pull_message", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.tasks.v2beta2.Task.schedule_time", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.tasks.v2beta2.Task.create_time", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.cloud.tasks.v2beta2.Task.status", + index=5, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.cloud.tasks.v2beta2.Task.view", + index=6, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_TASK_VIEW], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="payload_type", + full_name="google.cloud.tasks.v2beta2.Task.payload_type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=211, + serialized_end=657, ) _TASKSTATUS = _descriptor.Descriptor( - name='TaskStatus', - full_name='google.cloud.tasks.v2beta2.TaskStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='attempt_dispatch_count', full_name='google.cloud.tasks.v2beta2.TaskStatus.attempt_dispatch_count', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attempt_response_count', full_name='google.cloud.tasks.v2beta2.TaskStatus.attempt_response_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='first_attempt_status', full_name='google.cloud.tasks.v2beta2.TaskStatus.first_attempt_status', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_attempt_status', full_name='google.cloud.tasks.v2beta2.TaskStatus.last_attempt_status', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=660, - serialized_end=881, + name="TaskStatus", + full_name="google.cloud.tasks.v2beta2.TaskStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="attempt_dispatch_count", + full_name="google.cloud.tasks.v2beta2.TaskStatus.attempt_dispatch_count", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attempt_response_count", + full_name="google.cloud.tasks.v2beta2.TaskStatus.attempt_response_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="first_attempt_status", + full_name="google.cloud.tasks.v2beta2.TaskStatus.first_attempt_status", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_attempt_status", + full_name="google.cloud.tasks.v2beta2.TaskStatus.last_attempt_status", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=660, + serialized_end=881, ) _ATTEMPTSTATUS = _descriptor.Descriptor( - name='AttemptStatus', - full_name='google.cloud.tasks.v2beta2.AttemptStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.tasks.v2beta2.AttemptStatus.schedule_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dispatch_time', full_name='google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_time', full_name='google.cloud.tasks.v2beta2.AttemptStatus.response_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_status', full_name='google.cloud.tasks.v2beta2.AttemptStatus.response_status', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=884, - serialized_end=1097, + name="AttemptStatus", + full_name="google.cloud.tasks.v2beta2.AttemptStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.tasks.v2beta2.AttemptStatus.schedule_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dispatch_time", + full_name="google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_time", + full_name="google.cloud.tasks.v2beta2.AttemptStatus.response_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_status", + full_name="google.cloud.tasks.v2beta2.AttemptStatus.response_status", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=884, + serialized_end=1097, ) -_TASK.fields_by_name['app_engine_http_request'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._APPENGINEHTTPREQUEST -_TASK.fields_by_name['pull_message'].message_type = google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._PULLMESSAGE -_TASK.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TASK.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TASK.fields_by_name['status'].message_type = _TASKSTATUS -_TASK.fields_by_name['view'].enum_type = _TASK_VIEW +_TASK.fields_by_name[ + "app_engine_http_request" +].message_type = ( + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._APPENGINEHTTPREQUEST +) +_TASK.fields_by_name[ + "pull_message" +].message_type = ( + google_dot_cloud_dot_tasks__v2beta2_dot_proto_dot_target__pb2._PULLMESSAGE +) +_TASK.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASK.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASK.fields_by_name["status"].message_type = _TASKSTATUS +_TASK.fields_by_name["view"].enum_type = _TASK_VIEW _TASK_VIEW.containing_type = _TASK -_TASK.oneofs_by_name['payload_type'].fields.append( - _TASK.fields_by_name['app_engine_http_request']) -_TASK.fields_by_name['app_engine_http_request'].containing_oneof = _TASK.oneofs_by_name['payload_type'] -_TASK.oneofs_by_name['payload_type'].fields.append( - _TASK.fields_by_name['pull_message']) -_TASK.fields_by_name['pull_message'].containing_oneof = _TASK.oneofs_by_name['payload_type'] -_TASKSTATUS.fields_by_name['first_attempt_status'].message_type = _ATTEMPTSTATUS -_TASKSTATUS.fields_by_name['last_attempt_status'].message_type = _ATTEMPTSTATUS -_ATTEMPTSTATUS.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ATTEMPTSTATUS.fields_by_name['dispatch_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ATTEMPTSTATUS.fields_by_name['response_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ATTEMPTSTATUS.fields_by_name['response_status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['Task'] = _TASK -DESCRIPTOR.message_types_by_name['TaskStatus'] = _TASKSTATUS -DESCRIPTOR.message_types_by_name['AttemptStatus'] = _ATTEMPTSTATUS +_TASK.oneofs_by_name["payload_type"].fields.append( + _TASK.fields_by_name["app_engine_http_request"] +) +_TASK.fields_by_name["app_engine_http_request"].containing_oneof = _TASK.oneofs_by_name[ + "payload_type" +] +_TASK.oneofs_by_name["payload_type"].fields.append(_TASK.fields_by_name["pull_message"]) +_TASK.fields_by_name["pull_message"].containing_oneof = _TASK.oneofs_by_name[ + "payload_type" +] +_TASKSTATUS.fields_by_name["first_attempt_status"].message_type = _ATTEMPTSTATUS +_TASKSTATUS.fields_by_name["last_attempt_status"].message_type = _ATTEMPTSTATUS +_ATTEMPTSTATUS.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ATTEMPTSTATUS.fields_by_name[ + "dispatch_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ATTEMPTSTATUS.fields_by_name[ + "response_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ATTEMPTSTATUS.fields_by_name[ + "response_status" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name["Task"] = _TASK +DESCRIPTOR.message_types_by_name["TaskStatus"] = _TASKSTATUS +DESCRIPTOR.message_types_by_name["AttemptStatus"] = _ATTEMPTSTATUS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), dict( - DESCRIPTOR = _TASK, - __module__ = 'google.cloud.tasks_v2beta2.proto.task_pb2' - , - __doc__ = """A unit of scheduled work. +Task = _reflection.GeneratedProtocolMessageType( + "Task", + (_message.Message,), + dict( + DESCRIPTOR=_TASK, + __module__="google.cloud.tasks_v2beta2.proto.task_pb2", + __doc__="""A unit of scheduled work. Attributes: @@ -323,15 +516,18 @@ Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has been returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.Task) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.Task) + ), +) _sym_db.RegisterMessage(Task) -TaskStatus = _reflection.GeneratedProtocolMessageType('TaskStatus', (_message.Message,), dict( - DESCRIPTOR = _TASKSTATUS, - __module__ = 'google.cloud.tasks_v2beta2.proto.task_pb2' - , - __doc__ = """Status of the task. +TaskStatus = _reflection.GeneratedProtocolMessageType( + "TaskStatus", + (_message.Message,), + dict( + DESCRIPTOR=_TASKSTATUS, + __module__="google.cloud.tasks_v2beta2.proto.task_pb2", + __doc__="""Status of the task. Attributes: @@ -356,15 +552,18 @@ field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage]. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.TaskStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.TaskStatus) + ), +) _sym_db.RegisterMessage(TaskStatus) -AttemptStatus = _reflection.GeneratedProtocolMessageType('AttemptStatus', (_message.Message,), dict( - DESCRIPTOR = _ATTEMPTSTATUS, - __module__ = 'google.cloud.tasks_v2beta2.proto.task_pb2' - , - __doc__ = """The status of a task attempt. +AttemptStatus = _reflection.GeneratedProtocolMessageType( + "AttemptStatus", + (_message.Message,), + dict( + DESCRIPTOR=_ATTEMPTSTATUS, + __module__="google.cloud.tasks_v2beta2.proto.task_pb2", + __doc__="""The status of a task attempt. Attributes: @@ -385,11 +584,17 @@ If the task has not been attempted or the task is currently running then the response status is unset. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AttemptStatus) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AttemptStatus) + ), +) _sym_db.RegisterMessage(AttemptStatus) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta2B\tTaskProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta2B\tTaskProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta2/proto/task_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta2/proto/task_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/tasks/google/cloud/tasks_v2beta2/proto/task_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta2/proto/task_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2.py b/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2.py index e74dd705b8bee..8ff55088b6756 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2.py @@ -2,20 +2,26 @@ # source: google/cloud/tasks_v2beta3/proto/cloudtasks.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.tasks_v2beta3.proto import queue_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2 -from google.cloud.tasks_v2beta3.proto import task_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2 +from google.cloud.tasks_v2beta3.proto import ( + queue_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2, +) +from google.cloud.tasks_v2beta3.proto import ( + task_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -24,610 +30,915 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta3/proto/cloudtasks.proto', - package='google.cloud.tasks.v2beta3', - syntax='proto3', - serialized_pb=_b('\n1google/cloud/tasks_v2beta3/proto/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/tasks_v2beta3/proto/queue.proto\x1a+google/cloud/tasks_v2beta3/proto/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x15google/rpc/code.proto\"Z\n\x11ListQueuesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"`\n\x12ListQueuesResponse\x12\x31\n\x06queues\x18\x01 \x03(\x0b\x32!.google.cloud.tasks.v2beta3.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1f\n\x0fGetQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"V\n\x12\x43reateQueueRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.Queue\"w\n\x12UpdateQueueRequest\x12\x30\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.Queue\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\"\n\x12\x44\x65leteQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11PurgeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11PauseQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12ResumeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x87\x01\n\x10ListTasksRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"]\n\x11ListTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta3.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x0eGetTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"\x91\x01\n\x11\x43reateTaskRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12.\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta3.Task\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"!\n\x11\x44\x65leteTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\\\n\x0eRunTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View2\xa7\x14\n\nCloudTasks\x12\xa4\x01\n\nListQueues\x12-.google.cloud.tasks.v2beta3.ListQueuesRequest\x1a..google.cloud.tasks.v2beta3.ListQueuesResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta3/{parent=projects/*/locations/*}/queues\x12\x93\x01\n\x08GetQueue\x12+.google.cloud.tasks.v2beta3.GetQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta3/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\x0b\x43reateQueue\x12..google.cloud.tasks.v2beta3.CreateQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\">\x82\xd3\xe4\x93\x02\x38\"//v2beta3/{parent=projects/*/locations/*}/queues:\x05queue\x12\xa6\x01\n\x0bUpdateQueue\x12..google.cloud.tasks.v2beta3.UpdateQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"D\x82\xd3\xe4\x93\x02>25/v2beta3/{queue.name=projects/*/locations/*/queues/*}:\x05queue\x12\x8e\x01\n\x0b\x44\x65leteQueue\x12..google.cloud.tasks.v2beta3.DeleteQueueRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02\x31*//v2beta3/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\nPurgeQueue\x12-.google.cloud.tasks.v2beta3.PurgeQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"@\x82\xd3\xe4\x93\x02:\"5/v2beta3/{name=projects/*/locations/*/queues/*}:purge:\x01*\x12\xa0\x01\n\nPauseQueue\x12-.google.cloud.tasks.v2beta3.PauseQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"@\x82\xd3\xe4\x93\x02:\"5/v2beta3/{name=projects/*/locations/*/queues/*}:pause:\x01*\x12\xa3\x01\n\x0bResumeQueue\x12..google.cloud.tasks.v2beta3.ResumeQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"A\x82\xd3\xe4\x93\x02;\"6/v2beta3/{name=projects/*/locations/*/queues/*}:resume:\x01*\x12\x96\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"K\x82\xd3\xe4\x93\x02\x45\"@/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\x12\x96\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"K\x82\xd3\xe4\x93\x02\x45\"@/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\x12\xbc\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"Q\x82\xd3\xe4\x93\x02K\"F/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\x12\xa9\x01\n\tListTasks\x12,.google.cloud.tasks.v2beta3.ListTasksRequest\x1a-.google.cloud.tasks.v2beta3.ListTasksResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks\x12\x98\x01\n\x07GetTask\x12*.google.cloud.tasks.v2beta3.GetTaskRequest\x1a .google.cloud.tasks.v2beta3.Task\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xa1\x01\n\nCreateTask\x12-.google.cloud.tasks.v2beta3.CreateTaskRequest\x1a .google.cloud.tasks.v2beta3.Task\"B\x82\xd3\xe4\x93\x02<\"7/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\x12\x94\x01\n\nDeleteTask\x12-.google.cloud.tasks.v2beta3.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x39*7/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}\x12\x9f\x01\n\x07RunTask\x12*.google.cloud.tasks.v2beta3.RunTaskRequest\x1a .google.cloud.tasks.v2beta3.Task\"F\x82\xd3\xe4\x93\x02@\";/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run:\x01*B|\n\x1e\x63om.google.cloud.tasks.v2beta3B\x0f\x43loudTasksProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks\xa2\x02\x05TASKSb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_code__pb2.DESCRIPTOR,]) - - + name="google/cloud/tasks_v2beta3/proto/cloudtasks.proto", + package="google.cloud.tasks.v2beta3", + syntax="proto3", + serialized_pb=_b( + '\n1google/cloud/tasks_v2beta3/proto/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/tasks_v2beta3/proto/queue.proto\x1a+google/cloud/tasks_v2beta3/proto/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x15google/rpc/code.proto"Z\n\x11ListQueuesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"`\n\x12ListQueuesResponse\x12\x31\n\x06queues\x18\x01 \x03(\x0b\x32!.google.cloud.tasks.v2beta3.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x1f\n\x0fGetQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"V\n\x12\x43reateQueueRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x30\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.Queue"w\n\x12UpdateQueueRequest\x12\x30\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.Queue\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask""\n\x12\x44\x65leteQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"!\n\x11PurgeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"!\n\x11PauseQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t""\n\x12ResumeQueueRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x87\x01\n\x10ListTasksRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"]\n\x11ListTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta3.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\\\n\x0eGetTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View"\x91\x01\n\x11\x43reateTaskRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12.\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta3.Task\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View"!\n\x11\x44\x65leteTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\\\n\x0eRunTaskRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View2\xa7\x14\n\nCloudTasks\x12\xa4\x01\n\nListQueues\x12-.google.cloud.tasks.v2beta3.ListQueuesRequest\x1a..google.cloud.tasks.v2beta3.ListQueuesResponse"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta3/{parent=projects/*/locations/*}/queues\x12\x93\x01\n\x08GetQueue\x12+.google.cloud.tasks.v2beta3.GetQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue"7\x82\xd3\xe4\x93\x02\x31\x12//v2beta3/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\x0b\x43reateQueue\x12..google.cloud.tasks.v2beta3.CreateQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue">\x82\xd3\xe4\x93\x02\x38"//v2beta3/{parent=projects/*/locations/*}/queues:\x05queue\x12\xa6\x01\n\x0bUpdateQueue\x12..google.cloud.tasks.v2beta3.UpdateQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue"D\x82\xd3\xe4\x93\x02>25/v2beta3/{queue.name=projects/*/locations/*/queues/*}:\x05queue\x12\x8e\x01\n\x0b\x44\x65leteQueue\x12..google.cloud.tasks.v2beta3.DeleteQueueRequest\x1a\x16.google.protobuf.Empty"7\x82\xd3\xe4\x93\x02\x31*//v2beta3/{name=projects/*/locations/*/queues/*}\x12\xa0\x01\n\nPurgeQueue\x12-.google.cloud.tasks.v2beta3.PurgeQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue"@\x82\xd3\xe4\x93\x02:"5/v2beta3/{name=projects/*/locations/*/queues/*}:purge:\x01*\x12\xa0\x01\n\nPauseQueue\x12-.google.cloud.tasks.v2beta3.PauseQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue"@\x82\xd3\xe4\x93\x02:"5/v2beta3/{name=projects/*/locations/*/queues/*}:pause:\x01*\x12\xa3\x01\n\x0bResumeQueue\x12..google.cloud.tasks.v2beta3.ResumeQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue"A\x82\xd3\xe4\x93\x02;"6/v2beta3/{name=projects/*/locations/*/queues/*}:resume:\x01*\x12\x96\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"K\x82\xd3\xe4\x93\x02\x45"@/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\x12\x96\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"K\x82\xd3\xe4\x93\x02\x45"@/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\x12\xbc\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"Q\x82\xd3\xe4\x93\x02K"F/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\x12\xa9\x01\n\tListTasks\x12,.google.cloud.tasks.v2beta3.ListTasksRequest\x1a-.google.cloud.tasks.v2beta3.ListTasksResponse"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks\x12\x98\x01\n\x07GetTask\x12*.google.cloud.tasks.v2beta3.GetTaskRequest\x1a .google.cloud.tasks.v2beta3.Task"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xa1\x01\n\nCreateTask\x12-.google.cloud.tasks.v2beta3.CreateTaskRequest\x1a .google.cloud.tasks.v2beta3.Task"B\x82\xd3\xe4\x93\x02<"7/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\x12\x94\x01\n\nDeleteTask\x12-.google.cloud.tasks.v2beta3.DeleteTaskRequest\x1a\x16.google.protobuf.Empty"?\x82\xd3\xe4\x93\x02\x39*7/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}\x12\x9f\x01\n\x07RunTask\x12*.google.cloud.tasks.v2beta3.RunTaskRequest\x1a .google.cloud.tasks.v2beta3.Task"F\x82\xd3\xe4\x93\x02@";/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run:\x01*B|\n\x1e\x63om.google.cloud.tasks.v2beta3B\x0f\x43loudTasksProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks\xa2\x02\x05TASKSb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, + google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_rpc_dot_code__pb2.DESCRIPTOR, + ], +) _LISTQUEUESREQUEST = _descriptor.Descriptor( - name='ListQueuesRequest', - full_name='google.cloud.tasks.v2beta3.ListQueuesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta3.ListQueuesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.tasks.v2beta3.ListQueuesRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.tasks.v2beta3.ListQueuesRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.tasks.v2beta3.ListQueuesRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=348, - serialized_end=438, + name="ListQueuesRequest", + full_name="google.cloud.tasks.v2beta3.ListQueuesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta3.ListQueuesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.tasks.v2beta3.ListQueuesRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.tasks.v2beta3.ListQueuesRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.tasks.v2beta3.ListQueuesRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=348, + serialized_end=438, ) _LISTQUEUESRESPONSE = _descriptor.Descriptor( - name='ListQueuesResponse', - full_name='google.cloud.tasks.v2beta3.ListQueuesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='queues', full_name='google.cloud.tasks.v2beta3.ListQueuesResponse.queues', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=440, - serialized_end=536, + name="ListQueuesResponse", + full_name="google.cloud.tasks.v2beta3.ListQueuesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="queues", + full_name="google.cloud.tasks.v2beta3.ListQueuesResponse.queues", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=440, + serialized_end=536, ) _GETQUEUEREQUEST = _descriptor.Descriptor( - name='GetQueueRequest', - full_name='google.cloud.tasks.v2beta3.GetQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.GetQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=538, - serialized_end=569, + name="GetQueueRequest", + full_name="google.cloud.tasks.v2beta3.GetQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.GetQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=538, + serialized_end=569, ) _CREATEQUEUEREQUEST = _descriptor.Descriptor( - name='CreateQueueRequest', - full_name='google.cloud.tasks.v2beta3.CreateQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta3.CreateQueueRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='queue', full_name='google.cloud.tasks.v2beta3.CreateQueueRequest.queue', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=571, - serialized_end=657, + name="CreateQueueRequest", + full_name="google.cloud.tasks.v2beta3.CreateQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta3.CreateQueueRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="queue", + full_name="google.cloud.tasks.v2beta3.CreateQueueRequest.queue", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=571, + serialized_end=657, ) _UPDATEQUEUEREQUEST = _descriptor.Descriptor( - name='UpdateQueueRequest', - full_name='google.cloud.tasks.v2beta3.UpdateQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='queue', full_name='google.cloud.tasks.v2beta3.UpdateQueueRequest.queue', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.tasks.v2beta3.UpdateQueueRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=659, - serialized_end=778, + name="UpdateQueueRequest", + full_name="google.cloud.tasks.v2beta3.UpdateQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="queue", + full_name="google.cloud.tasks.v2beta3.UpdateQueueRequest.queue", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.tasks.v2beta3.UpdateQueueRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=659, + serialized_end=778, ) _DELETEQUEUEREQUEST = _descriptor.Descriptor( - name='DeleteQueueRequest', - full_name='google.cloud.tasks.v2beta3.DeleteQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.DeleteQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=780, - serialized_end=814, + name="DeleteQueueRequest", + full_name="google.cloud.tasks.v2beta3.DeleteQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.DeleteQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=780, + serialized_end=814, ) _PURGEQUEUEREQUEST = _descriptor.Descriptor( - name='PurgeQueueRequest', - full_name='google.cloud.tasks.v2beta3.PurgeQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.PurgeQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=816, - serialized_end=849, + name="PurgeQueueRequest", + full_name="google.cloud.tasks.v2beta3.PurgeQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.PurgeQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=816, + serialized_end=849, ) _PAUSEQUEUEREQUEST = _descriptor.Descriptor( - name='PauseQueueRequest', - full_name='google.cloud.tasks.v2beta3.PauseQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.PauseQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=851, - serialized_end=884, + name="PauseQueueRequest", + full_name="google.cloud.tasks.v2beta3.PauseQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.PauseQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=851, + serialized_end=884, ) _RESUMEQUEUEREQUEST = _descriptor.Descriptor( - name='ResumeQueueRequest', - full_name='google.cloud.tasks.v2beta3.ResumeQueueRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.ResumeQueueRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=886, - serialized_end=920, + name="ResumeQueueRequest", + full_name="google.cloud.tasks.v2beta3.ResumeQueueRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.ResumeQueueRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=886, + serialized_end=920, ) _LISTTASKSREQUEST = _descriptor.Descriptor( - name='ListTasksRequest', - full_name='google.cloud.tasks.v2beta3.ListTasksRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta3.ListTasksRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta3.ListTasksRequest.response_view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.tasks.v2beta3.ListTasksRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.tasks.v2beta3.ListTasksRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=923, - serialized_end=1058, + name="ListTasksRequest", + full_name="google.cloud.tasks.v2beta3.ListTasksRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta3.ListTasksRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta3.ListTasksRequest.response_view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.tasks.v2beta3.ListTasksRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.tasks.v2beta3.ListTasksRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=923, + serialized_end=1058, ) _LISTTASKSRESPONSE = _descriptor.Descriptor( - name='ListTasksResponse', - full_name='google.cloud.tasks.v2beta3.ListTasksResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tasks', full_name='google.cloud.tasks.v2beta3.ListTasksResponse.tasks', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1060, - serialized_end=1153, + name="ListTasksResponse", + full_name="google.cloud.tasks.v2beta3.ListTasksResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="tasks", + full_name="google.cloud.tasks.v2beta3.ListTasksResponse.tasks", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1060, + serialized_end=1153, ) _GETTASKREQUEST = _descriptor.Descriptor( - name='GetTaskRequest', - full_name='google.cloud.tasks.v2beta3.GetTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.GetTaskRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta3.GetTaskRequest.response_view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1155, - serialized_end=1247, + name="GetTaskRequest", + full_name="google.cloud.tasks.v2beta3.GetTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.GetTaskRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta3.GetTaskRequest.response_view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1155, + serialized_end=1247, ) _CREATETASKREQUEST = _descriptor.Descriptor( - name='CreateTaskRequest', - full_name='google.cloud.tasks.v2beta3.CreateTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.tasks.v2beta3.CreateTaskRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='task', full_name='google.cloud.tasks.v2beta3.CreateTaskRequest.task', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta3.CreateTaskRequest.response_view', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1250, - serialized_end=1395, + name="CreateTaskRequest", + full_name="google.cloud.tasks.v2beta3.CreateTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.tasks.v2beta3.CreateTaskRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="task", + full_name="google.cloud.tasks.v2beta3.CreateTaskRequest.task", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta3.CreateTaskRequest.response_view", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1250, + serialized_end=1395, ) _DELETETASKREQUEST = _descriptor.Descriptor( - name='DeleteTaskRequest', - full_name='google.cloud.tasks.v2beta3.DeleteTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.DeleteTaskRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1397, - serialized_end=1430, + name="DeleteTaskRequest", + full_name="google.cloud.tasks.v2beta3.DeleteTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.DeleteTaskRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1397, + serialized_end=1430, ) _RUNTASKREQUEST = _descriptor.Descriptor( - name='RunTaskRequest', - full_name='google.cloud.tasks.v2beta3.RunTaskRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.RunTaskRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_view', full_name='google.cloud.tasks.v2beta3.RunTaskRequest.response_view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1432, - serialized_end=1524, + name="RunTaskRequest", + full_name="google.cloud.tasks.v2beta3.RunTaskRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.RunTaskRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_view", + full_name="google.cloud.tasks.v2beta3.RunTaskRequest.response_view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1432, + serialized_end=1524, ) -_LISTQUEUESRESPONSE.fields_by_name['queues'].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE -_CREATEQUEUEREQUEST.fields_by_name['queue'].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE -_UPDATEQUEUEREQUEST.fields_by_name['queue'].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE -_UPDATEQUEUEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTTASKSREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW -_LISTTASKSRESPONSE.fields_by_name['tasks'].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK -_GETTASKREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW -_CREATETASKREQUEST.fields_by_name['task'].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK -_CREATETASKREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW -_RUNTASKREQUEST.fields_by_name['response_view'].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW -DESCRIPTOR.message_types_by_name['ListQueuesRequest'] = _LISTQUEUESREQUEST -DESCRIPTOR.message_types_by_name['ListQueuesResponse'] = _LISTQUEUESRESPONSE -DESCRIPTOR.message_types_by_name['GetQueueRequest'] = _GETQUEUEREQUEST -DESCRIPTOR.message_types_by_name['CreateQueueRequest'] = _CREATEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['UpdateQueueRequest'] = _UPDATEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['DeleteQueueRequest'] = _DELETEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['PurgeQueueRequest'] = _PURGEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['PauseQueueRequest'] = _PAUSEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['ResumeQueueRequest'] = _RESUMEQUEUEREQUEST -DESCRIPTOR.message_types_by_name['ListTasksRequest'] = _LISTTASKSREQUEST -DESCRIPTOR.message_types_by_name['ListTasksResponse'] = _LISTTASKSRESPONSE -DESCRIPTOR.message_types_by_name['GetTaskRequest'] = _GETTASKREQUEST -DESCRIPTOR.message_types_by_name['CreateTaskRequest'] = _CREATETASKREQUEST -DESCRIPTOR.message_types_by_name['DeleteTaskRequest'] = _DELETETASKREQUEST -DESCRIPTOR.message_types_by_name['RunTaskRequest'] = _RUNTASKREQUEST +_LISTQUEUESRESPONSE.fields_by_name[ + "queues" +].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE +_CREATEQUEUEREQUEST.fields_by_name[ + "queue" +].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE +_UPDATEQUEUEREQUEST.fields_by_name[ + "queue" +].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE +_UPDATEQUEUEREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTTASKSREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW +_LISTTASKSRESPONSE.fields_by_name[ + "tasks" +].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK +_GETTASKREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW +_CREATETASKREQUEST.fields_by_name[ + "task" +].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK +_CREATETASKREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW +_RUNTASKREQUEST.fields_by_name[ + "response_view" +].enum_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK_VIEW +DESCRIPTOR.message_types_by_name["ListQueuesRequest"] = _LISTQUEUESREQUEST +DESCRIPTOR.message_types_by_name["ListQueuesResponse"] = _LISTQUEUESRESPONSE +DESCRIPTOR.message_types_by_name["GetQueueRequest"] = _GETQUEUEREQUEST +DESCRIPTOR.message_types_by_name["CreateQueueRequest"] = _CREATEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["UpdateQueueRequest"] = _UPDATEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["DeleteQueueRequest"] = _DELETEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["PurgeQueueRequest"] = _PURGEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["PauseQueueRequest"] = _PAUSEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["ResumeQueueRequest"] = _RESUMEQUEUEREQUEST +DESCRIPTOR.message_types_by_name["ListTasksRequest"] = _LISTTASKSREQUEST +DESCRIPTOR.message_types_by_name["ListTasksResponse"] = _LISTTASKSRESPONSE +DESCRIPTOR.message_types_by_name["GetTaskRequest"] = _GETTASKREQUEST +DESCRIPTOR.message_types_by_name["CreateTaskRequest"] = _CREATETASKREQUEST +DESCRIPTOR.message_types_by_name["DeleteTaskRequest"] = _DELETETASKREQUEST +DESCRIPTOR.message_types_by_name["RunTaskRequest"] = _RUNTASKREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListQueuesRequest = _reflection.GeneratedProtocolMessageType('ListQueuesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTQUEUESREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +ListQueuesRequest = _reflection.GeneratedProtocolMessageType( + "ListQueuesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTQUEUESREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. @@ -662,15 +973,18 @@ [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListQueuesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListQueuesRequest) + ), +) _sym_db.RegisterMessage(ListQueuesRequest) -ListQueuesResponse = _reflection.GeneratedProtocolMessageType('ListQueuesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTQUEUESRESPONSE, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Response message for +ListQueuesResponse = _reflection.GeneratedProtocolMessageType( + "ListQueuesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTQUEUESRESPONSE, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Response message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. @@ -686,15 +1000,18 @@ empty, there are no more results. The page token is valid for only 2 hours. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListQueuesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListQueuesResponse) + ), +) _sym_db.RegisterMessage(ListQueuesResponse) -GetQueueRequest = _reflection.GeneratedProtocolMessageType('GetQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _GETQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +GetQueueRequest = _reflection.GeneratedProtocolMessageType( + "GetQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [GetQueue][google.cloud.tasks.v2beta3.CloudTasks.GetQueue]. @@ -703,15 +1020,18 @@ Required. The resource name of the queue. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.GetQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.GetQueueRequest) + ), +) _sym_db.RegisterMessage(GetQueueRequest) -CreateQueueRequest = _reflection.GeneratedProtocolMessageType('CreateQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +CreateQueueRequest = _reflection.GeneratedProtocolMessageType( + "CreateQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue]. @@ -728,15 +1048,18 @@ name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.CreateQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.CreateQueueRequest) + ), +) _sym_db.RegisterMessage(CreateQueueRequest) -UpdateQueueRequest = _reflection.GeneratedProtocolMessageType('UpdateQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +UpdateQueueRequest = _reflection.GeneratedProtocolMessageType( + "UpdateQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue]. @@ -753,15 +1076,18 @@ A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.UpdateQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.UpdateQueueRequest) + ), +) _sym_db.RegisterMessage(UpdateQueueRequest) -DeleteQueueRequest = _reflection.GeneratedProtocolMessageType('DeleteQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +DeleteQueueRequest = _reflection.GeneratedProtocolMessageType( + "DeleteQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue]. @@ -770,15 +1096,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.DeleteQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.DeleteQueueRequest) + ), +) _sym_db.RegisterMessage(DeleteQueueRequest) -PurgeQueueRequest = _reflection.GeneratedProtocolMessageType('PurgeQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _PURGEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +PurgeQueueRequest = _reflection.GeneratedProtocolMessageType( + "PurgeQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PURGEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue]. @@ -787,15 +1116,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.PurgeQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.PurgeQueueRequest) + ), +) _sym_db.RegisterMessage(PurgeQueueRequest) -PauseQueueRequest = _reflection.GeneratedProtocolMessageType('PauseQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _PAUSEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +PauseQueueRequest = _reflection.GeneratedProtocolMessageType( + "PauseQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PAUSEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue]. @@ -804,15 +1136,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.PauseQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.PauseQueueRequest) + ), +) _sym_db.RegisterMessage(PauseQueueRequest) -ResumeQueueRequest = _reflection.GeneratedProtocolMessageType('ResumeQueueRequest', (_message.Message,), dict( - DESCRIPTOR = _RESUMEQUEUEREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +ResumeQueueRequest = _reflection.GeneratedProtocolMessageType( + "ResumeQueueRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RESUMEQUEUEREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. @@ -821,15 +1156,18 @@ Required. The queue name. For example: ``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ResumeQueueRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ResumeQueueRequest) + ), +) _sym_db.RegisterMessage(ResumeQueueRequest) -ListTasksRequest = _reflection.GeneratedProtocolMessageType('ListTasksRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTASKSREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for listing tasks using +ListTasksRequest = _reflection.GeneratedProtocolMessageType( + "ListTasksRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTASKSREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. @@ -866,15 +1204,18 @@ [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] method. The page token is valid for only 2 hours. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListTasksRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListTasksRequest) + ), +) _sym_db.RegisterMessage(ListTasksRequest) -ListTasksResponse = _reflection.GeneratedProtocolMessageType('ListTasksResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTASKSRESPONSE, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Response message for listing tasks using +ListTasksResponse = _reflection.GeneratedProtocolMessageType( + "ListTasksResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTASKSRESPONSE, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. @@ -889,15 +1230,18 @@ 3.ListTasksRequest.page\_token]. If the next\_page\_token is empty, there are no more results. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListTasksResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListTasksResponse) + ), +) _sym_db.RegisterMessage(ListTasksResponse) -GetTaskRequest = _reflection.GeneratedProtocolMessageType('GetTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for getting a task using +GetTaskRequest = _reflection.GeneratedProtocolMessageType( + "GetTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTASKREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. @@ -919,15 +1263,18 @@ `_ permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.GetTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.GetTaskRequest) + ), +) _sym_db.RegisterMessage(GetTaskRequest) -CreateTaskRequest = _reflection.GeneratedProtocolMessageType('CreateTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATETASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for +CreateTaskRequest = _reflection.GeneratedProtocolMessageType( + "CreateTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETASKREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. @@ -980,15 +1327,18 @@ `_ permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.CreateTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.CreateTaskRequest) + ), +) _sym_db.RegisterMessage(CreateTaskRequest) -DeleteTaskRequest = _reflection.GeneratedProtocolMessageType('DeleteTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETETASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for deleting a task using +DeleteTaskRequest = _reflection.GeneratedProtocolMessageType( + "DeleteTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETETASKREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask]. @@ -997,15 +1347,18 @@ Required. The task name. For example: ``projects/PROJECT_ID/l ocations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.DeleteTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.DeleteTaskRequest) + ), +) _sym_db.RegisterMessage(DeleteTaskRequest) -RunTaskRequest = _reflection.GeneratedProtocolMessageType('RunTaskRequest', (_message.Message,), dict( - DESCRIPTOR = _RUNTASKREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.cloudtasks_pb2' - , - __doc__ = """Request message for forcing a task to run now using +RunTaskRequest = _reflection.GeneratedProtocolMessageType( + "RunTaskRequest", + (_message.Message,), + dict( + DESCRIPTOR=_RUNTASKREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.cloudtasks_pb2", + __doc__="""Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask]. @@ -1027,170 +1380,257 @@ `_ permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RunTaskRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RunTaskRequest) + ), +) _sym_db.RegisterMessage(RunTaskRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta3B\017CloudTasksProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks\242\002\005TASKS')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta3B\017CloudTasksProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks\242\002\005TASKS" + ), +) _CLOUDTASKS = _descriptor.ServiceDescriptor( - name='CloudTasks', - full_name='google.cloud.tasks.v2beta3.CloudTasks', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1527, - serialized_end=4126, - methods=[ - _descriptor.MethodDescriptor( - name='ListQueues', - full_name='google.cloud.tasks.v2beta3.CloudTasks.ListQueues', + name="CloudTasks", + full_name="google.cloud.tasks.v2beta3.CloudTasks", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTQUEUESREQUEST, - output_type=_LISTQUEUESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v2beta3/{parent=projects/*/locations/*}/queues')), - ), - _descriptor.MethodDescriptor( - name='GetQueue', - full_name='google.cloud.tasks.v2beta3.CloudTasks.GetQueue', - index=1, - containing_service=None, - input_type=_GETQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v2beta3/{name=projects/*/locations/*/queues/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateQueue', - full_name='google.cloud.tasks.v2beta3.CloudTasks.CreateQueue', - index=2, - containing_service=None, - input_type=_CREATEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\"//v2beta3/{parent=projects/*/locations/*}/queues:\005queue')), - ), - _descriptor.MethodDescriptor( - name='UpdateQueue', - full_name='google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue', - index=3, - containing_service=None, - input_type=_UPDATEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>25/v2beta3/{queue.name=projects/*/locations/*/queues/*}:\005queue')), - ), - _descriptor.MethodDescriptor( - name='DeleteQueue', - full_name='google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue', - index=4, - containing_service=None, - input_type=_DELETEQUEUEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021*//v2beta3/{name=projects/*/locations/*/queues/*}')), - ), - _descriptor.MethodDescriptor( - name='PurgeQueue', - full_name='google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue', - index=5, - containing_service=None, - input_type=_PURGEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\"5/v2beta3/{name=projects/*/locations/*/queues/*}:purge:\001*')), - ), - _descriptor.MethodDescriptor( - name='PauseQueue', - full_name='google.cloud.tasks.v2beta3.CloudTasks.PauseQueue', - index=6, - containing_service=None, - input_type=_PAUSEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\"5/v2beta3/{name=projects/*/locations/*/queues/*}:pause:\001*')), - ), - _descriptor.MethodDescriptor( - name='ResumeQueue', - full_name='google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue', - index=7, - containing_service=None, - input_type=_RESUMEQUEUEREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\"6/v2beta3/{name=projects/*/locations/*/queues/*}:resume:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetIamPolicy', - full_name='google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicy', - index=8, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"@/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='SetIamPolicy', - full_name='google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicy', - index=9, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, - output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"@/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\001*')), - ), - _descriptor.MethodDescriptor( - name='TestIamPermissions', - full_name='google.cloud.tasks.v2beta3.CloudTasks.TestIamPermissions', - index=10, - containing_service=None, - input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, - output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002K\"F/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListTasks', - full_name='google.cloud.tasks.v2beta3.CloudTasks.ListTasks', - index=11, - containing_service=None, - input_type=_LISTTASKSREQUEST, - output_type=_LISTTASKSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\0227/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks')), - ), - _descriptor.MethodDescriptor( - name='GetTask', - full_name='google.cloud.tasks.v2beta3.CloudTasks.GetTask', - index=12, - containing_service=None, - input_type=_GETTASKREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029\0227/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateTask', - full_name='google.cloud.tasks.v2beta3.CloudTasks.CreateTask', - index=13, - containing_service=None, - input_type=_CREATETASKREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\"7/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks:\001*')), - ), - _descriptor.MethodDescriptor( - name='DeleteTask', - full_name='google.cloud.tasks.v2beta3.CloudTasks.DeleteTask', - index=14, - containing_service=None, - input_type=_DELETETASKREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0029*7/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}')), - ), - _descriptor.MethodDescriptor( - name='RunTask', - full_name='google.cloud.tasks.v2beta3.CloudTasks.RunTask', - index=15, - containing_service=None, - input_type=_RUNTASKREQUEST, - output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\";/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run:\001*')), - ), -]) + options=None, + serialized_start=1527, + serialized_end=4126, + methods=[ + _descriptor.MethodDescriptor( + name="ListQueues", + full_name="google.cloud.tasks.v2beta3.CloudTasks.ListQueues", + index=0, + containing_service=None, + input_type=_LISTQUEUESREQUEST, + output_type=_LISTQUEUESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v2beta3/{parent=projects/*/locations/*}/queues" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetQueue", + full_name="google.cloud.tasks.v2beta3.CloudTasks.GetQueue", + index=1, + containing_service=None, + input_type=_GETQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v2beta3/{name=projects/*/locations/*/queues/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateQueue", + full_name="google.cloud.tasks.v2beta3.CloudTasks.CreateQueue", + index=2, + containing_service=None, + input_type=_CREATEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028"//v2beta3/{parent=projects/*/locations/*}/queues:\005queue' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateQueue", + full_name="google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue", + index=3, + containing_service=None, + input_type=_UPDATEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002>25/v2beta3/{queue.name=projects/*/locations/*/queues/*}:\005queue" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteQueue", + full_name="google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue", + index=4, + containing_service=None, + input_type=_DELETEQUEUEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021*//v2beta3/{name=projects/*/locations/*/queues/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="PurgeQueue", + full_name="google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue", + index=5, + containing_service=None, + input_type=_PURGEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002:"5/v2beta3/{name=projects/*/locations/*/queues/*}:purge:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="PauseQueue", + full_name="google.cloud.tasks.v2beta3.CloudTasks.PauseQueue", + index=6, + containing_service=None, + input_type=_PAUSEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002:"5/v2beta3/{name=projects/*/locations/*/queues/*}:pause:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ResumeQueue", + full_name="google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue", + index=7, + containing_service=None, + input_type=_RESUMEQUEUEREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2._QUEUE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002;"6/v2beta3/{name=projects/*/locations/*/queues/*}:resume:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetIamPolicy", + full_name="google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicy", + index=8, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"@/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="SetIamPolicy", + full_name="google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicy", + index=9, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, + output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"@/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="TestIamPermissions", + full_name="google.cloud.tasks.v2beta3.CloudTasks.TestIamPermissions", + index=10, + containing_service=None, + input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, + output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002K"F/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListTasks", + full_name="google.cloud.tasks.v2beta3.CloudTasks.ListTasks", + index=11, + containing_service=None, + input_type=_LISTTASKSREQUEST, + output_type=_LISTTASKSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0029\0227/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetTask", + full_name="google.cloud.tasks.v2beta3.CloudTasks.GetTask", + index=12, + containing_service=None, + input_type=_GETTASKREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0029\0227/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateTask", + full_name="google.cloud.tasks.v2beta3.CloudTasks.CreateTask", + index=13, + containing_service=None, + input_type=_CREATETASKREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002<"7/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteTask", + full_name="google.cloud.tasks.v2beta3.CloudTasks.DeleteTask", + index=14, + containing_service=None, + input_type=_DELETETASKREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0029*7/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="RunTask", + full_name="google.cloud.tasks.v2beta3.CloudTasks.RunTask", + index=15, + containing_service=None, + input_type=_RUNTASKREQUEST, + output_type=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2._TASK, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002@";/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_CLOUDTASKS) -DESCRIPTOR.services_by_name['CloudTasks'] = _CLOUDTASKS +DESCRIPTOR.services_by_name["CloudTasks"] = _CLOUDTASKS # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2_grpc.py index d69cf60e62114..e921253453203 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/cloudtasks_pb2_grpc.py @@ -1,130 +1,136 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.tasks_v2beta3.proto import cloudtasks_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2 -from google.cloud.tasks_v2beta3.proto import queue_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2 -from google.cloud.tasks_v2beta3.proto import task_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2 +from google.cloud.tasks_v2beta3.proto import ( + cloudtasks_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2, +) +from google.cloud.tasks_v2beta3.proto import ( + queue_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2, +) +from google.cloud.tasks_v2beta3.proto import ( + task_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2, +) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class CloudTasksStub(object): - """Cloud Tasks allows developers to manage the execution of background + """Cloud Tasks allows developers to manage the execution of background work in their applications. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListQueues = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/ListQueues', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.FromString, + self.ListQueues = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/ListQueues", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.FromString, ) - self.GetQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/GetQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, + self.GetQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/GetQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.CreateQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/CreateQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, + self.CreateQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/CreateQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.UpdateQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/UpdateQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, + self.UpdateQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/UpdateQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.DeleteQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/DeleteQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/DeleteQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.PurgeQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/PurgeQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, + self.PurgeQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/PurgeQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.PauseQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/PauseQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, + self.PauseQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/PauseQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.ResumeQueue = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/ResumeQueue', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, + self.ResumeQueue = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/ResumeQueue", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.FromString, ) - self.GetIamPolicy = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/GetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.GetIamPolicy = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/GetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.SetIamPolicy = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/SetIamPolicy', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, + self.SetIamPolicy = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/SetIamPolicy", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString, ) - self.TestIamPermissions = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/TestIamPermissions', - request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, - response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, + self.TestIamPermissions = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/TestIamPermissions", + request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString, ) - self.ListTasks = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/ListTasks', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.FromString, + self.ListTasks = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/ListTasks", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.FromString, ) - self.GetTask = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/GetTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.FromString, + self.GetTask = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/GetTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.FromString, ) - self.CreateTask = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/CreateTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.FromString, + self.CreateTask = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/CreateTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.FromString, ) - self.DeleteTask = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/DeleteTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteTask = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/DeleteTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.RunTask = channel.unary_unary( - '/google.cloud.tasks.v2beta3.CloudTasks/RunTask', - request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.FromString, + self.RunTask = channel.unary_unary( + "/google.cloud.tasks.v2beta3.CloudTasks/RunTask", + request_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.FromString, ) class CloudTasksServicer(object): - """Cloud Tasks allows developers to manage the execution of background + """Cloud Tasks allows developers to manage the execution of background work in their applications. """ - def ListQueues(self, request, context): - """Lists queues. + def ListQueues(self, request, context): + """Lists queues. Queues are returned in lexicographical order. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetQueue(self, request, context): - """Gets a queue. + def GetQueue(self, request, context): + """Gets a queue. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateQueue(self, request, context): - """Creates a queue. + def CreateQueue(self, request, context): + """Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether @@ -136,12 +142,12 @@ def CreateQueue(self, request, context): [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateQueue(self, request, context): - """Updates a queue. + def UpdateQueue(self, request, context): + """Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. @@ -156,12 +162,12 @@ def UpdateQueue(self, request, context): [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteQueue(self, request, context): - """Deletes a queue. + def DeleteQueue(self, request, context): + """Deletes a queue. This command will delete the queue even if it has tasks in it. @@ -174,24 +180,24 @@ def DeleteQueue(self, request, context): [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PurgeQueue(self, request, context): - """Purges a queue by deleting all of its tasks. + def PurgeQueue(self, request, context): + """Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PauseQueue(self, request, context): - """Pauses the queue. + def PauseQueue(self, request, context): + """Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via @@ -199,12 +205,12 @@ def PauseQueue(self, request, context): when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ResumeQueue(self, request, context): - """Resume a queue. + def ResumeQueue(self, request, context): + """Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or @@ -217,12 +223,12 @@ def ResumeQueue(self, request, context): queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetIamPolicy(self, request, context): - """Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. + def GetIamPolicy(self, request, context): + """Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Returns an empty policy if the resource exists and does not have a policy set. @@ -232,12 +238,12 @@ def GetIamPolicy(self, request, context): * `cloudtasks.queues.getIamPolicy` """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SetIamPolicy(self, request, context): - """Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing + def SetIamPolicy(self, request, context): + """Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. @@ -249,12 +255,12 @@ def SetIamPolicy(self, request, context): * `cloudtasks.queues.setIamPolicy` """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def TestIamPermissions(self, request, context): - """Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. + def TestIamPermissions(self, request, context): + """Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. @@ -262,12 +268,12 @@ def TestIamPermissions(self, request, context): UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTasks(self, request, context): - """Lists the tasks in a queue. + def ListTasks(self, request, context): + """Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved due to performance considerations; @@ -277,42 +283,42 @@ def ListTasks(self, request, context): The tasks may be returned in any order. The ordering may change at any time. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTask(self, request, context): - """Gets a task. + def GetTask(self, request, context): + """Gets a task. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateTask(self, request, context): - """Creates a task and adds it to a queue. + def CreateTask(self, request, context): + """Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum task size is 100KB. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteTask(self, request, context): - """Deletes a task. + def DeleteTask(self, request, context): + """Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RunTask(self, request, context): - """Forces a task to run now. + def RunTask(self, request, context): + """Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or @@ -337,94 +343,95 @@ def RunTask(self, request, context): [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_CloudTasksServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListQueues': grpc.unary_unary_rpc_method_handler( - servicer.ListQueues, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.SerializeToString, - ), - 'GetQueue': grpc.unary_unary_rpc_method_handler( - servicer.GetQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'CreateQueue': grpc.unary_unary_rpc_method_handler( - servicer.CreateQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'UpdateQueue': grpc.unary_unary_rpc_method_handler( - servicer.UpdateQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'DeleteQueue': grpc.unary_unary_rpc_method_handler( - servicer.DeleteQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'PurgeQueue': grpc.unary_unary_rpc_method_handler( - servicer.PurgeQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'PauseQueue': grpc.unary_unary_rpc_method_handler( - servicer.PauseQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'ResumeQueue': grpc.unary_unary_rpc_method_handler( - servicer.ResumeQueue, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, - ), - 'GetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'SetIamPolicy': grpc.unary_unary_rpc_method_handler( - servicer.SetIamPolicy, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, - ), - 'TestIamPermissions': grpc.unary_unary_rpc_method_handler( - servicer.TestIamPermissions, - request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, - response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, - ), - 'ListTasks': grpc.unary_unary_rpc_method_handler( - servicer.ListTasks, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.SerializeToString, - ), - 'GetTask': grpc.unary_unary_rpc_method_handler( - servicer.GetTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - 'CreateTask': grpc.unary_unary_rpc_method_handler( - servicer.CreateTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - 'DeleteTask': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'RunTask': grpc.unary_unary_rpc_method_handler( - servicer.RunTask, - request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.FromString, - response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.tasks.v2beta3.CloudTasks', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListQueues": grpc.unary_unary_rpc_method_handler( + servicer.ListQueues, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListQueuesResponse.SerializeToString, + ), + "GetQueue": grpc.unary_unary_rpc_method_handler( + servicer.GetQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "CreateQueue": grpc.unary_unary_rpc_method_handler( + servicer.CreateQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "UpdateQueue": grpc.unary_unary_rpc_method_handler( + servicer.UpdateQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.UpdateQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "DeleteQueue": grpc.unary_unary_rpc_method_handler( + servicer.DeleteQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteQueueRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "PurgeQueue": grpc.unary_unary_rpc_method_handler( + servicer.PurgeQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PurgeQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "PauseQueue": grpc.unary_unary_rpc_method_handler( + servicer.PauseQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.PauseQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "ResumeQueue": grpc.unary_unary_rpc_method_handler( + servicer.ResumeQueue, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ResumeQueueRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_queue__pb2.Queue.SerializeToString, + ), + "GetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "SetIamPolicy": grpc.unary_unary_rpc_method_handler( + servicer.SetIamPolicy, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString, + ), + "TestIamPermissions": grpc.unary_unary_rpc_method_handler( + servicer.TestIamPermissions, + request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString, + response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString, + ), + "ListTasks": grpc.unary_unary_rpc_method_handler( + servicer.ListTasks, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.ListTasksResponse.SerializeToString, + ), + "GetTask": grpc.unary_unary_rpc_method_handler( + servicer.GetTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.GetTaskRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + "CreateTask": grpc.unary_unary_rpc_method_handler( + servicer.CreateTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.CreateTaskRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + "DeleteTask": grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.DeleteTaskRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "RunTask": grpc.unary_unary_rpc_method_handler( + servicer.RunTask, + request_deserializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_cloudtasks__pb2.RunTaskRequest.FromString, + response_serializer=google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_task__pb2.Task.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.tasks.v2beta3.CloudTasks", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2.py b/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2.py index cf172b779d4eb..5138749f5096e 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2.py @@ -2,259 +2,431 @@ # source: google/cloud/tasks_v2beta3/proto/queue.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.tasks_v2beta3.proto import target_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2 +from google.cloud.tasks_v2beta3.proto import ( + target_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta3/proto/queue.proto', - package='google.cloud.tasks.v2beta3', - syntax='proto3', - serialized_pb=_b('\n,google/cloud/tasks_v2beta3/proto/queue.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta3/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9f\x03\n\x05Queue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x15\x61pp_engine_http_queue\x18\x03 \x01(\x0b\x32..google.cloud.tasks.v2beta3.AppEngineHttpQueueH\x00\x12;\n\x0brate_limits\x18\x04 \x01(\x0b\x32&.google.cloud.tasks.v2beta3.RateLimits\x12=\n\x0cretry_config\x18\x05 \x01(\x0b\x32\'.google.cloud.tasks.v2beta3.RetryConfig\x12\x36\n\x05state\x18\x06 \x01(\x0e\x32\'.google.cloud.tasks.v2beta3.Queue.State\x12.\n\npurge_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x42\x0c\n\nqueue_type\"j\n\nRateLimits\x12!\n\x19max_dispatches_per_second\x18\x01 \x01(\x01\x12\x16\n\x0emax_burst_size\x18\x02 \x01(\x05\x12!\n\x19max_concurrent_dispatches\x18\x03 \x01(\x05\"\xd1\x01\n\x0bRetryConfig\x12\x14\n\x0cmax_attempts\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmin_backoff\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42o\n\x1e\x63om.google.cloud.tasks.v2beta3B\nQueueProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasksb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/tasks_v2beta3/proto/queue.proto", + package="google.cloud.tasks.v2beta3", + syntax="proto3", + serialized_pb=_b( + '\n,google/cloud/tasks_v2beta3/proto/queue.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta3/proto/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x9f\x03\n\x05Queue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x15\x61pp_engine_http_queue\x18\x03 \x01(\x0b\x32..google.cloud.tasks.v2beta3.AppEngineHttpQueueH\x00\x12;\n\x0brate_limits\x18\x04 \x01(\x0b\x32&.google.cloud.tasks.v2beta3.RateLimits\x12=\n\x0cretry_config\x18\x05 \x01(\x0b\x32\'.google.cloud.tasks.v2beta3.RetryConfig\x12\x36\n\x05state\x18\x06 \x01(\x0e\x32\'.google.cloud.tasks.v2beta3.Queue.State\x12.\n\npurge_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x42\x0c\n\nqueue_type"j\n\nRateLimits\x12!\n\x19max_dispatches_per_second\x18\x01 \x01(\x01\x12\x16\n\x0emax_burst_size\x18\x02 \x01(\x05\x12!\n\x19max_concurrent_dispatches\x18\x03 \x01(\x05"\xd1\x01\n\x0bRetryConfig\x12\x14\n\x0cmax_attempts\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmin_backoff\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42o\n\x1e\x63om.google.cloud.tasks.v2beta3B\nQueueProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasksb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _QUEUE_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.tasks.v2beta3.Queue.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAUSED', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISABLED', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=551, - serialized_end=620, + name="State", + full_name="google.cloud.tasks.v2beta3.Queue.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PAUSED", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DISABLED", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=551, + serialized_end=620, ) _sym_db.RegisterEnumDescriptor(_QUEUE_STATE) _QUEUE = _descriptor.Descriptor( - name='Queue', - full_name='google.cloud.tasks.v2beta3.Queue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.Queue.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_http_queue', full_name='google.cloud.tasks.v2beta3.Queue.app_engine_http_queue', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rate_limits', full_name='google.cloud.tasks.v2beta3.Queue.rate_limits', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='retry_config', full_name='google.cloud.tasks.v2beta3.Queue.retry_config', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.tasks.v2beta3.Queue.state', index=4, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='purge_time', full_name='google.cloud.tasks.v2beta3.Queue.purge_time', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _QUEUE_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='queue_type', full_name='google.cloud.tasks.v2beta3.Queue.queue_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=219, - serialized_end=634, + name="Queue", + full_name="google.cloud.tasks.v2beta3.Queue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.Queue.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_http_queue", + full_name="google.cloud.tasks.v2beta3.Queue.app_engine_http_queue", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="rate_limits", + full_name="google.cloud.tasks.v2beta3.Queue.rate_limits", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="retry_config", + full_name="google.cloud.tasks.v2beta3.Queue.retry_config", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.tasks.v2beta3.Queue.state", + index=4, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="purge_time", + full_name="google.cloud.tasks.v2beta3.Queue.purge_time", + index=5, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_QUEUE_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="queue_type", + full_name="google.cloud.tasks.v2beta3.Queue.queue_type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=219, + serialized_end=634, ) _RATELIMITS = _descriptor.Descriptor( - name='RateLimits', - full_name='google.cloud.tasks.v2beta3.RateLimits', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_dispatches_per_second', full_name='google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second', index=0, - number=1, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_burst_size', full_name='google.cloud.tasks.v2beta3.RateLimits.max_burst_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_concurrent_dispatches', full_name='google.cloud.tasks.v2beta3.RateLimits.max_concurrent_dispatches', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=636, - serialized_end=742, + name="RateLimits", + full_name="google.cloud.tasks.v2beta3.RateLimits", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_dispatches_per_second", + full_name="google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second", + index=0, + number=1, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_burst_size", + full_name="google.cloud.tasks.v2beta3.RateLimits.max_burst_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_concurrent_dispatches", + full_name="google.cloud.tasks.v2beta3.RateLimits.max_concurrent_dispatches", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=636, + serialized_end=742, ) _RETRYCONFIG = _descriptor.Descriptor( - name='RetryConfig', - full_name='google.cloud.tasks.v2beta3.RetryConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_attempts', full_name='google.cloud.tasks.v2beta3.RetryConfig.max_attempts', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_retry_duration', full_name='google.cloud.tasks.v2beta3.RetryConfig.max_retry_duration', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_backoff', full_name='google.cloud.tasks.v2beta3.RetryConfig.min_backoff', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_backoff', full_name='google.cloud.tasks.v2beta3.RetryConfig.max_backoff', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_doublings', full_name='google.cloud.tasks.v2beta3.RetryConfig.max_doublings', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=745, - serialized_end=954, + name="RetryConfig", + full_name="google.cloud.tasks.v2beta3.RetryConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="max_attempts", + full_name="google.cloud.tasks.v2beta3.RetryConfig.max_attempts", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_retry_duration", + full_name="google.cloud.tasks.v2beta3.RetryConfig.max_retry_duration", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="min_backoff", + full_name="google.cloud.tasks.v2beta3.RetryConfig.min_backoff", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_backoff", + full_name="google.cloud.tasks.v2beta3.RetryConfig.max_backoff", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_doublings", + full_name="google.cloud.tasks.v2beta3.RetryConfig.max_doublings", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=745, + serialized_end=954, ) -_QUEUE.fields_by_name['app_engine_http_queue'].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2._APPENGINEHTTPQUEUE -_QUEUE.fields_by_name['rate_limits'].message_type = _RATELIMITS -_QUEUE.fields_by_name['retry_config'].message_type = _RETRYCONFIG -_QUEUE.fields_by_name['state'].enum_type = _QUEUE_STATE -_QUEUE.fields_by_name['purge_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_QUEUE.fields_by_name[ + "app_engine_http_queue" +].message_type = ( + google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2._APPENGINEHTTPQUEUE +) +_QUEUE.fields_by_name["rate_limits"].message_type = _RATELIMITS +_QUEUE.fields_by_name["retry_config"].message_type = _RETRYCONFIG +_QUEUE.fields_by_name["state"].enum_type = _QUEUE_STATE +_QUEUE.fields_by_name[ + "purge_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _QUEUE_STATE.containing_type = _QUEUE -_QUEUE.oneofs_by_name['queue_type'].fields.append( - _QUEUE.fields_by_name['app_engine_http_queue']) -_QUEUE.fields_by_name['app_engine_http_queue'].containing_oneof = _QUEUE.oneofs_by_name['queue_type'] -_RETRYCONFIG.fields_by_name['max_retry_duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['min_backoff'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_RETRYCONFIG.fields_by_name['max_backoff'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -DESCRIPTOR.message_types_by_name['Queue'] = _QUEUE -DESCRIPTOR.message_types_by_name['RateLimits'] = _RATELIMITS -DESCRIPTOR.message_types_by_name['RetryConfig'] = _RETRYCONFIG +_QUEUE.oneofs_by_name["queue_type"].fields.append( + _QUEUE.fields_by_name["app_engine_http_queue"] +) +_QUEUE.fields_by_name["app_engine_http_queue"].containing_oneof = _QUEUE.oneofs_by_name[ + "queue_type" +] +_RETRYCONFIG.fields_by_name[ + "max_retry_duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "min_backoff" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_RETRYCONFIG.fields_by_name[ + "max_backoff" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name["Queue"] = _QUEUE +DESCRIPTOR.message_types_by_name["RateLimits"] = _RATELIMITS +DESCRIPTOR.message_types_by_name["RetryConfig"] = _RETRYCONFIG _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Queue = _reflection.GeneratedProtocolMessageType('Queue', (_message.Message,), dict( - DESCRIPTOR = _QUEUE, - __module__ = 'google.cloud.tasks_v2beta3.proto.queue_pb2' - , - __doc__ = """A queue is a container of related tasks. Queues are configured to manage +Queue = _reflection.GeneratedProtocolMessageType( + "Queue", + (_message.Message,), + dict( + DESCRIPTOR=_QUEUE, + __module__="google.cloud.tasks_v2beta3.proto.queue_pb2", + __doc__="""A queue is a container of related tasks. Queues are configured to manage how those tasks are dispatched. Configurable properties include rate limits, retry options, queue types, and others. @@ -335,15 +507,18 @@ time will be truncated to the nearest microsecond. Purge time will be unset if the queue has never been purged. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Queue) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Queue) + ), +) _sym_db.RegisterMessage(Queue) -RateLimits = _reflection.GeneratedProtocolMessageType('RateLimits', (_message.Message,), dict( - DESCRIPTOR = _RATELIMITS, - __module__ = 'google.cloud.tasks_v2beta3.proto.queue_pb2' - , - __doc__ = """Rate limits. +RateLimits = _reflection.GeneratedProtocolMessageType( + "RateLimits", + (_message.Message,), + dict( + DESCRIPTOR=_RATELIMITS, + __module__="google.cloud.tasks_v2beta3.proto.queue_pb2", + __doc__="""Rate limits. This message determines the maximum rate that tasks can be dispatched by a queue, regardless of whether the dispatch is a first task attempt or a @@ -405,15 +580,18 @@ ://cloud.google.com/appengine/docs/standard/python/config/queu eref#max_concurrent_requests>`_. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RateLimits) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RateLimits) + ), +) _sym_db.RegisterMessage(RateLimits) -RetryConfig = _reflection.GeneratedProtocolMessageType('RetryConfig', (_message.Message,), dict( - DESCRIPTOR = _RETRYCONFIG, - __module__ = 'google.cloud.tasks_v2beta3.proto.queue_pb2' - , - __doc__ = """Retry config. +RetryConfig = _reflection.GeneratedProtocolMessageType( + "RetryConfig", + (_message.Message,), + dict( + DESCRIPTOR=_RETRYCONFIG, + __module__="google.cloud.tasks_v2beta3.proto.queue_pb2", + __doc__="""Retry config. These settings determine when a failed task attempt is retried. @@ -493,11 +671,17 @@ /cloud.google.com/appengine/docs/standard/python/config/queuer ef#retry_parameters>`_. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RetryConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RetryConfig) + ), +) _sym_db.RegisterMessage(RetryConfig) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta3B\nQueueProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta3B\nQueueProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/queue_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/tasks/google/cloud/tasks_v2beta3/proto/target_pb2.py b/tasks/google/cloud/tasks_v2beta3/proto/target_pb2.py index e9c6e0223a3a1..c6bb881655457 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/target_pb2.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/target_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/tasks_v2beta3/proto/target.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,48 +20,44 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta3/proto/target.proto', - package='google.cloud.tasks.v2beta3', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/tasks_v2beta3/proto/target.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\"g\n\x12\x41ppEngineHttpQueue\x12Q\n\x1b\x61pp_engine_routing_override\x18\x01 \x01(\x0b\x32,.google.cloud.tasks.v2beta3.AppEngineRouting\"\xc1\x02\n\x14\x41ppEngineHttpRequest\x12;\n\x0bhttp_method\x18\x01 \x01(\x0e\x32&.google.cloud.tasks.v2beta3.HttpMethod\x12H\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32,.google.cloud.tasks.v2beta3.AppEngineRouting\x12\x14\n\x0crelative_uri\x18\x03 \x01(\t\x12N\n\x07headers\x18\x04 \x03(\x0b\x32=.google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*[\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x42p\n\x1e\x63om.google.cloud.tasks.v2beta3B\x0bTargetProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasksb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + name="google/cloud/tasks_v2beta3/proto/target.proto", + package="google.cloud.tasks.v2beta3", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/tasks_v2beta3/proto/target.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto"g\n\x12\x41ppEngineHttpQueue\x12Q\n\x1b\x61pp_engine_routing_override\x18\x01 \x01(\x0b\x32,.google.cloud.tasks.v2beta3.AppEngineRouting"\xc1\x02\n\x14\x41ppEngineHttpRequest\x12;\n\x0bhttp_method\x18\x01 \x01(\x0e\x32&.google.cloud.tasks.v2beta3.HttpMethod\x12H\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32,.google.cloud.tasks.v2beta3.AppEngineRouting\x12\x14\n\x0crelative_uri\x18\x03 \x01(\t\x12N\n\x07headers\x18\x04 \x03(\x0b\x32=.google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t*[\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x42p\n\x1e\x63om.google.cloud.tasks.v2beta3B\x0bTargetProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasksb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _HTTPMETHOD = _descriptor.EnumDescriptor( - name='HttpMethod', - full_name='google.cloud.tasks.v2beta3.HttpMethod', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='HTTP_METHOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POST', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GET', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEAD', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUT', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETE', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=622, - serialized_end=713, + name="HttpMethod", + full_name="google.cloud.tasks.v2beta3.HttpMethod", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="HTTP_METHOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POST", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="GET", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEAD", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PUT", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DELETE", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=622, + serialized_end=713, ) _sym_db.RegisterEnumDescriptor(_HTTPMETHOD) @@ -72,201 +70,328 @@ DELETE = 5 - _APPENGINEHTTPQUEUE = _descriptor.Descriptor( - name='AppEngineHttpQueue', - full_name='google.cloud.tasks.v2beta3.AppEngineHttpQueue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='app_engine_routing_override', full_name='google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=107, - serialized_end=210, + name="AppEngineHttpQueue", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpQueue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="app_engine_routing_override", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=107, + serialized_end=210, ) _APPENGINEHTTPREQUEST_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=488, - serialized_end=534, + name="HeadersEntry", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=488, + serialized_end=534, ) _APPENGINEHTTPREQUEST = _descriptor.Descriptor( - name='AppEngineHttpRequest', - full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_method', full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.http_method', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_routing', full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relative_uri', full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.relative_uri', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headers', full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.headers', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='google.cloud.tasks.v2beta3.AppEngineHttpRequest.body', index=4, - number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_APPENGINEHTTPREQUEST_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=213, - serialized_end=534, + name="AppEngineHttpRequest", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="http_method", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.http_method", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_routing", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="relative_uri", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.relative_uri", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.headers", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="body", + full_name="google.cloud.tasks.v2beta3.AppEngineHttpRequest.body", + index=4, + number=5, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_APPENGINEHTTPREQUEST_HEADERSENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=213, + serialized_end=534, ) _APPENGINEROUTING = _descriptor.Descriptor( - name='AppEngineRouting', - full_name='google.cloud.tasks.v2beta3.AppEngineRouting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='service', full_name='google.cloud.tasks.v2beta3.AppEngineRouting.service', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.tasks.v2beta3.AppEngineRouting.version', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance', full_name='google.cloud.tasks.v2beta3.AppEngineRouting.instance', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='google.cloud.tasks.v2beta3.AppEngineRouting.host', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=536, - serialized_end=620, + name="AppEngineRouting", + full_name="google.cloud.tasks.v2beta3.AppEngineRouting", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="service", + full_name="google.cloud.tasks.v2beta3.AppEngineRouting.service", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.tasks.v2beta3.AppEngineRouting.version", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="instance", + full_name="google.cloud.tasks.v2beta3.AppEngineRouting.instance", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="host", + full_name="google.cloud.tasks.v2beta3.AppEngineRouting.host", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=536, + serialized_end=620, ) -_APPENGINEHTTPQUEUE.fields_by_name['app_engine_routing_override'].message_type = _APPENGINEROUTING +_APPENGINEHTTPQUEUE.fields_by_name[ + "app_engine_routing_override" +].message_type = _APPENGINEROUTING _APPENGINEHTTPREQUEST_HEADERSENTRY.containing_type = _APPENGINEHTTPREQUEST -_APPENGINEHTTPREQUEST.fields_by_name['http_method'].enum_type = _HTTPMETHOD -_APPENGINEHTTPREQUEST.fields_by_name['app_engine_routing'].message_type = _APPENGINEROUTING -_APPENGINEHTTPREQUEST.fields_by_name['headers'].message_type = _APPENGINEHTTPREQUEST_HEADERSENTRY -DESCRIPTOR.message_types_by_name['AppEngineHttpQueue'] = _APPENGINEHTTPQUEUE -DESCRIPTOR.message_types_by_name['AppEngineHttpRequest'] = _APPENGINEHTTPREQUEST -DESCRIPTOR.message_types_by_name['AppEngineRouting'] = _APPENGINEROUTING -DESCRIPTOR.enum_types_by_name['HttpMethod'] = _HTTPMETHOD +_APPENGINEHTTPREQUEST.fields_by_name["http_method"].enum_type = _HTTPMETHOD +_APPENGINEHTTPREQUEST.fields_by_name[ + "app_engine_routing" +].message_type = _APPENGINEROUTING +_APPENGINEHTTPREQUEST.fields_by_name[ + "headers" +].message_type = _APPENGINEHTTPREQUEST_HEADERSENTRY +DESCRIPTOR.message_types_by_name["AppEngineHttpQueue"] = _APPENGINEHTTPQUEUE +DESCRIPTOR.message_types_by_name["AppEngineHttpRequest"] = _APPENGINEHTTPREQUEST +DESCRIPTOR.message_types_by_name["AppEngineRouting"] = _APPENGINEROUTING +DESCRIPTOR.enum_types_by_name["HttpMethod"] = _HTTPMETHOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AppEngineHttpQueue = _reflection.GeneratedProtocolMessageType('AppEngineHttpQueue', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEHTTPQUEUE, - __module__ = 'google.cloud.tasks_v2beta3.proto.target_pb2' - , - __doc__ = """App Engine HTTP queue. +AppEngineHttpQueue = _reflection.GeneratedProtocolMessageType( + "AppEngineHttpQueue", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEHTTPQUEUE, + __module__="google.cloud.tasks_v2beta3.proto.target_pb2", + __doc__="""App Engine HTTP queue. The task will be delivered to the App Engine application hostname specified by its @@ -294,22 +419,27 @@ level app\_engine\_routing][google.cloud.tasks.v2beta3.AppEngi neHttpRequest.app\_engine\_routing]. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpQueue) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpQueue) + ), +) _sym_db.RegisterMessage(AppEngineHttpQueue) -AppEngineHttpRequest = _reflection.GeneratedProtocolMessageType('AppEngineHttpRequest', (_message.Message,), dict( - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEHTTPREQUEST_HEADERSENTRY, - __module__ = 'google.cloud.tasks_v2beta3.proto.target_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry) - )) - , - DESCRIPTOR = _APPENGINEHTTPREQUEST, - __module__ = 'google.cloud.tasks_v2beta3.proto.target_pb2' - , - __doc__ = """App Engine HTTP request. +AppEngineHttpRequest = _reflection.GeneratedProtocolMessageType( + "AppEngineHttpRequest", + (_message.Message,), + dict( + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEHTTPREQUEST_HEADERSENTRY, + __module__="google.cloud.tasks_v2beta3.proto.target_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry) + ), + ), + DESCRIPTOR=_APPENGINEHTTPREQUEST, + __module__="google.cloud.tasks_v2beta3.proto.target_pb2", + __doc__="""App Engine HTTP request. The message defines the HTTP request that is sent to an App Engine app when the task is dispatched. @@ -425,16 +555,19 @@ with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod]. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpRequest) + ), +) _sym_db.RegisterMessage(AppEngineHttpRequest) _sym_db.RegisterMessage(AppEngineHttpRequest.HeadersEntry) -AppEngineRouting = _reflection.GeneratedProtocolMessageType('AppEngineRouting', (_message.Message,), dict( - DESCRIPTOR = _APPENGINEROUTING, - __module__ = 'google.cloud.tasks_v2beta3.proto.target_pb2' - , - __doc__ = """App Engine Routing. +AppEngineRouting = _reflection.GeneratedProtocolMessageType( + "AppEngineRouting", + (_message.Message,), + dict( + DESCRIPTOR=_APPENGINEROUTING, + __module__="google.cloud.tasks_v2beta3.proto.target_pb2", + __doc__="""App Engine Routing. Specifies the target URI. Since this target type dispatches tasks to secure app handlers, unsecure app handlers, and URIs restricted with @@ -517,13 +650,21 @@ `_. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineRouting) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineRouting) + ), +) _sym_db.RegisterMessage(AppEngineRouting) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta3B\013TargetProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta3B\013TargetProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks" + ), +) _APPENGINEHTTPREQUEST_HEADERSENTRY.has_options = True -_APPENGINEHTTPREQUEST_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_APPENGINEHTTPREQUEST_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta3/proto/target_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta3/proto/target_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/target_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/target_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/tasks/google/cloud/tasks_v2beta3/proto/task_pb2.py b/tasks/google/cloud/tasks_v2beta3/proto/task_pb2.py index 65bc29c8462f6..4768ce9cc28e8 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/task_pb2.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/task_pb2.py @@ -2,225 +2,394 @@ # source: google/cloud/tasks_v2beta3/proto/task.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.tasks_v2beta3.proto import target_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2 +from google.cloud.tasks_v2beta3.proto import ( + target_pb2 as google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/tasks_v2beta3/proto/task.proto', - package='google.cloud.tasks.v2beta3', - syntax='proto3', - serialized_pb=_b('\n+google/cloud/tasks_v2beta3/proto/task.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta3/proto/target.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xec\x03\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\x17\x61pp_engine_http_request\x18\x03 \x01(\x0b\x32\x30.google.cloud.tasks.v2beta3.AppEngineHttpRequestH\x00\x12\x31\n\rschedule_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x64ispatch_count\x18\x06 \x01(\x05\x12\x16\n\x0eresponse_count\x18\x07 \x01(\x05\x12:\n\rfirst_attempt\x18\x08 \x01(\x0b\x32#.google.cloud.tasks.v2beta3.Attempt\x12\x39\n\x0clast_attempt\x18\t \x01(\x0b\x32#.google.cloud.tasks.v2beta3.Attempt\x12\x33\n\x04view\x18\n \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"1\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\x0e\n\x0cpayload_type\"\xcf\x01\n\x07\x41ttempt\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rdispatch_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rresponse_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0fresponse_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusBn\n\x1e\x63om.google.cloud.tasks.v2beta3B\tTaskProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasksb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/tasks_v2beta3/proto/task.proto", + package="google.cloud.tasks.v2beta3", + syntax="proto3", + serialized_pb=_b( + '\n+google/cloud/tasks_v2beta3/proto/task.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/tasks_v2beta3/proto/target.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xec\x03\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\x17\x61pp_engine_http_request\x18\x03 \x01(\x0b\x32\x30.google.cloud.tasks.v2beta3.AppEngineHttpRequestH\x00\x12\x31\n\rschedule_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x64ispatch_count\x18\x06 \x01(\x05\x12\x16\n\x0eresponse_count\x18\x07 \x01(\x05\x12:\n\rfirst_attempt\x18\x08 \x01(\x0b\x32#.google.cloud.tasks.v2beta3.Attempt\x12\x39\n\x0clast_attempt\x18\t \x01(\x0b\x32#.google.cloud.tasks.v2beta3.Attempt\x12\x33\n\x04view\x18\n \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View"1\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\x0e\n\x0cpayload_type"\xcf\x01\n\x07\x41ttempt\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rdispatch_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rresponse_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0fresponse_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusBn\n\x1e\x63om.google.cloud.tasks.v2beta3B\tTaskProtoP\x01Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasksb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _TASK_VIEW = _descriptor.EnumDescriptor( - name='View', - full_name='google.cloud.tasks.v2beta3.Task.View', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VIEW_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BASIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FULL', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=638, - serialized_end=687, + name="View", + full_name="google.cloud.tasks.v2beta3.Task.View", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VIEW_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BASIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FULL", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=638, + serialized_end=687, ) _sym_db.RegisterEnumDescriptor(_TASK_VIEW) _TASK = _descriptor.Descriptor( - name='Task', - full_name='google.cloud.tasks.v2beta3.Task', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.tasks.v2beta3.Task.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engine_http_request', full_name='google.cloud.tasks.v2beta3.Task.app_engine_http_request', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.tasks.v2beta3.Task.schedule_time', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.tasks.v2beta3.Task.create_time', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dispatch_count', full_name='google.cloud.tasks.v2beta3.Task.dispatch_count', index=4, - number=6, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_count', full_name='google.cloud.tasks.v2beta3.Task.response_count', index=5, - number=7, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='first_attempt', full_name='google.cloud.tasks.v2beta3.Task.first_attempt', index=6, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_attempt', full_name='google.cloud.tasks.v2beta3.Task.last_attempt', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.cloud.tasks.v2beta3.Task.view', index=8, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TASK_VIEW, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='payload_type', full_name='google.cloud.tasks.v2beta3.Task.payload_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=211, - serialized_end=703, + name="Task", + full_name="google.cloud.tasks.v2beta3.Task", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.tasks.v2beta3.Task.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="app_engine_http_request", + full_name="google.cloud.tasks.v2beta3.Task.app_engine_http_request", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.tasks.v2beta3.Task.schedule_time", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.tasks.v2beta3.Task.create_time", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dispatch_count", + full_name="google.cloud.tasks.v2beta3.Task.dispatch_count", + index=4, + number=6, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_count", + full_name="google.cloud.tasks.v2beta3.Task.response_count", + index=5, + number=7, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="first_attempt", + full_name="google.cloud.tasks.v2beta3.Task.first_attempt", + index=6, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="last_attempt", + full_name="google.cloud.tasks.v2beta3.Task.last_attempt", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.cloud.tasks.v2beta3.Task.view", + index=8, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_TASK_VIEW], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="payload_type", + full_name="google.cloud.tasks.v2beta3.Task.payload_type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=211, + serialized_end=703, ) _ATTEMPT = _descriptor.Descriptor( - name='Attempt', - full_name='google.cloud.tasks.v2beta3.Attempt', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.tasks.v2beta3.Attempt.schedule_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dispatch_time', full_name='google.cloud.tasks.v2beta3.Attempt.dispatch_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_time', full_name='google.cloud.tasks.v2beta3.Attempt.response_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response_status', full_name='google.cloud.tasks.v2beta3.Attempt.response_status', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=706, - serialized_end=913, + name="Attempt", + full_name="google.cloud.tasks.v2beta3.Attempt", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.tasks.v2beta3.Attempt.schedule_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dispatch_time", + full_name="google.cloud.tasks.v2beta3.Attempt.dispatch_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_time", + full_name="google.cloud.tasks.v2beta3.Attempt.response_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response_status", + full_name="google.cloud.tasks.v2beta3.Attempt.response_status", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=706, + serialized_end=913, ) -_TASK.fields_by_name['app_engine_http_request'].message_type = google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2._APPENGINEHTTPREQUEST -_TASK.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TASK.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TASK.fields_by_name['first_attempt'].message_type = _ATTEMPT -_TASK.fields_by_name['last_attempt'].message_type = _ATTEMPT -_TASK.fields_by_name['view'].enum_type = _TASK_VIEW +_TASK.fields_by_name[ + "app_engine_http_request" +].message_type = ( + google_dot_cloud_dot_tasks__v2beta3_dot_proto_dot_target__pb2._APPENGINEHTTPREQUEST +) +_TASK.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASK.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASK.fields_by_name["first_attempt"].message_type = _ATTEMPT +_TASK.fields_by_name["last_attempt"].message_type = _ATTEMPT +_TASK.fields_by_name["view"].enum_type = _TASK_VIEW _TASK_VIEW.containing_type = _TASK -_TASK.oneofs_by_name['payload_type'].fields.append( - _TASK.fields_by_name['app_engine_http_request']) -_TASK.fields_by_name['app_engine_http_request'].containing_oneof = _TASK.oneofs_by_name['payload_type'] -_ATTEMPT.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ATTEMPT.fields_by_name['dispatch_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ATTEMPT.fields_by_name['response_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ATTEMPT.fields_by_name['response_status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['Task'] = _TASK -DESCRIPTOR.message_types_by_name['Attempt'] = _ATTEMPT +_TASK.oneofs_by_name["payload_type"].fields.append( + _TASK.fields_by_name["app_engine_http_request"] +) +_TASK.fields_by_name["app_engine_http_request"].containing_oneof = _TASK.oneofs_by_name[ + "payload_type" +] +_ATTEMPT.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ATTEMPT.fields_by_name[ + "dispatch_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ATTEMPT.fields_by_name[ + "response_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ATTEMPT.fields_by_name[ + "response_status" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name["Task"] = _TASK +DESCRIPTOR.message_types_by_name["Attempt"] = _ATTEMPT _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), dict( - DESCRIPTOR = _TASK, - __module__ = 'google.cloud.tasks_v2beta3.proto.task_pb2' - , - __doc__ = """A unit of scheduled work. +Task = _reflection.GeneratedProtocolMessageType( + "Task", + (_message.Message,), + dict( + DESCRIPTOR=_TASK, + __module__="google.cloud.tasks_v2beta3.proto.task_pb2", + __doc__="""A unit of scheduled work. Attributes: @@ -281,15 +450,18 @@ Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has been returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Task) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Task) + ), +) _sym_db.RegisterMessage(Task) -Attempt = _reflection.GeneratedProtocolMessageType('Attempt', (_message.Message,), dict( - DESCRIPTOR = _ATTEMPT, - __module__ = 'google.cloud.tasks_v2beta3.proto.task_pb2' - , - __doc__ = """The status of a task attempt. +Attempt = _reflection.GeneratedProtocolMessageType( + "Attempt", + (_message.Message,), + dict( + DESCRIPTOR=_ATTEMPT, + __module__="google.cloud.tasks_v2beta3.proto.task_pb2", + __doc__="""The status of a task attempt. Attributes: @@ -311,11 +483,17 @@ attempted or is currently running and the ``response_status`` field is meaningless. """, - # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Attempt) - )) + # @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Attempt) + ), +) _sym_db.RegisterMessage(Attempt) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036com.google.cloud.tasks.v2beta3B\tTaskProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\036com.google.cloud.tasks.v2beta3B\tTaskProtoP\001Z?google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/tasks/google/cloud/tasks_v2beta3/proto/task_pb2_grpc.py b/tasks/google/cloud/tasks_v2beta3/proto/task_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/tasks/google/cloud/tasks_v2beta3/proto/task_pb2_grpc.py +++ b/tasks/google/cloud/tasks_v2beta3/proto/task_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2.py b/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2.py index 8a03e826aaeec..b29ec84977891 100644 --- a/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2.py +++ b/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/texttospeech_v1/proto/cloud_tts.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,71 +20,73 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/texttospeech_v1/proto/cloud_tts.proto', - package='google.cloud.texttospeech.v1', - syntax='proto3', - serialized_pb=_b('\n2google/cloud/texttospeech_v1/proto/cloud_tts.proto\x12\x1cgoogle.cloud.texttospeech.v1\x1a\x1cgoogle/api/annotations.proto\"*\n\x11ListVoicesRequest\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\"I\n\x12ListVoicesResponse\x12\x33\n\x06voices\x18\x01 \x03(\x0b\x32#.google.cloud.texttospeech.v1.Voice\"\x94\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\xda\x01\n\x17SynthesizeSpeechRequest\x12;\n\x05input\x18\x01 \x01(\x0b\x32,.google.cloud.texttospeech.v1.SynthesisInput\x12\x41\n\x05voice\x18\x02 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParams\x12?\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32).google.cloud.texttospeech.v1.AudioConfig\"@\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x42\x0e\n\x0cinput_source\"\x7f\n\x14VoiceSelectionParams\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\"\xab\x01\n\x0b\x41udioConfig\x12\x43\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncoding\x12\x15\n\rspeaking_rate\x18\x02 \x01(\x01\x12\r\n\x05pitch\x18\x03 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x04 \x01(\x01\x12\x19\n\x11sample_rate_hertz\x18\x05 \x01(\x05\"1\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*T\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0c\n\x08OGG_OPUS\x10\x03\x32\xb8\x02\n\x0cTextToSpeech\x12\x83\x01\n\nListVoices\x12/.google.cloud.texttospeech.v1.ListVoicesRequest\x1a\x30.google.cloud.texttospeech.v1.ListVoicesResponse\"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/voices\x12\xa1\x01\n\x10SynthesizeSpeech\x12\x35.google.cloud.texttospeech.v1.SynthesizeSpeechRequest\x1a\x36.google.cloud.texttospeech.v1.SynthesizeSpeechResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\"\x13/v1/text:synthesize:\x01*B\xc2\x01\n com.google.cloud.texttospeech.v1B\x11TextToSpeechProtoP\x01ZHgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1;texttospeech\xf8\x01\x01\xaa\x02\x1cGoogle.Cloud.TextToSpeech.V1\xca\x02\x1cGoogle\\Cloud\\TextToSpeech\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + name="google/cloud/texttospeech_v1/proto/cloud_tts.proto", + package="google.cloud.texttospeech.v1", + syntax="proto3", + serialized_pb=_b( + '\n2google/cloud/texttospeech_v1/proto/cloud_tts.proto\x12\x1cgoogle.cloud.texttospeech.v1\x1a\x1cgoogle/api/annotations.proto"*\n\x11ListVoicesRequest\x12\x15\n\rlanguage_code\x18\x01 \x01(\t"I\n\x12ListVoicesResponse\x12\x33\n\x06voices\x18\x01 \x03(\x0b\x32#.google.cloud.texttospeech.v1.Voice"\x94\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05"\xda\x01\n\x17SynthesizeSpeechRequest\x12;\n\x05input\x18\x01 \x01(\x0b\x32,.google.cloud.texttospeech.v1.SynthesisInput\x12\x41\n\x05voice\x18\x02 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParams\x12?\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32).google.cloud.texttospeech.v1.AudioConfig"@\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x42\x0e\n\x0cinput_source"\x7f\n\x14VoiceSelectionParams\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender"\xab\x01\n\x0b\x41udioConfig\x12\x43\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncoding\x12\x15\n\rspeaking_rate\x18\x02 \x01(\x01\x12\r\n\x05pitch\x18\x03 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x04 \x01(\x01\x12\x19\n\x11sample_rate_hertz\x18\x05 \x01(\x05"1\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*T\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0c\n\x08OGG_OPUS\x10\x03\x32\xb8\x02\n\x0cTextToSpeech\x12\x83\x01\n\nListVoices\x12/.google.cloud.texttospeech.v1.ListVoicesRequest\x1a\x30.google.cloud.texttospeech.v1.ListVoicesResponse"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/voices\x12\xa1\x01\n\x10SynthesizeSpeech\x12\x35.google.cloud.texttospeech.v1.SynthesizeSpeechRequest\x1a\x36.google.cloud.texttospeech.v1.SynthesizeSpeechResponse"\x1e\x82\xd3\xe4\x93\x02\x18"\x13/v1/text:synthesize:\x01*B\xc2\x01\n com.google.cloud.texttospeech.v1B\x11TextToSpeechProtoP\x01ZHgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1;texttospeech\xf8\x01\x01\xaa\x02\x1cGoogle.Cloud.TextToSpeech.V1\xca\x02\x1cGoogle\\Cloud\\TextToSpeech\\V1b\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _SSMLVOICEGENDER = _descriptor.EnumDescriptor( - name='SsmlVoiceGender', - full_name='google.cloud.texttospeech.v1.SsmlVoiceGender', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SSML_VOICE_GENDER_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MALE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEMALE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEUTRAL', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1025, - serialized_end=1112, + name="SsmlVoiceGender", + full_name="google.cloud.texttospeech.v1.SsmlVoiceGender", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SSML_VOICE_GENDER_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="MALE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FEMALE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEUTRAL", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1025, + serialized_end=1112, ) _sym_db.RegisterEnumDescriptor(_SSMLVOICEGENDER) SsmlVoiceGender = enum_type_wrapper.EnumTypeWrapper(_SSMLVOICEGENDER) _AUDIOENCODING = _descriptor.EnumDescriptor( - name='AudioEncoding', - full_name='google.cloud.texttospeech.v1.AudioEncoding', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='AUDIO_ENCODING_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINEAR16', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MP3', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OGG_OPUS', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1114, - serialized_end=1198, + name="AudioEncoding", + full_name="google.cloud.texttospeech.v1.AudioEncoding", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="AUDIO_ENCODING_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LINEAR16", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MP3", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OGG_OPUS", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1114, + serialized_end=1198, ) _sym_db.RegisterEnumDescriptor(_AUDIOENCODING) @@ -97,371 +101,579 @@ OGG_OPUS = 3 - _LISTVOICESREQUEST = _descriptor.Descriptor( - name='ListVoicesRequest', - full_name='google.cloud.texttospeech.v1.ListVoicesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.texttospeech.v1.ListVoicesRequest.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=114, - serialized_end=156, + name="ListVoicesRequest", + full_name="google.cloud.texttospeech.v1.ListVoicesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.texttospeech.v1.ListVoicesRequest.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=114, + serialized_end=156, ) _LISTVOICESRESPONSE = _descriptor.Descriptor( - name='ListVoicesResponse', - full_name='google.cloud.texttospeech.v1.ListVoicesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='voices', full_name='google.cloud.texttospeech.v1.ListVoicesResponse.voices', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=158, - serialized_end=231, + name="ListVoicesResponse", + full_name="google.cloud.texttospeech.v1.ListVoicesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="voices", + full_name="google.cloud.texttospeech.v1.ListVoicesResponse.voices", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=158, + serialized_end=231, ) _VOICE = _descriptor.Descriptor( - name='Voice', - full_name='google.cloud.texttospeech.v1.Voice', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_codes', full_name='google.cloud.texttospeech.v1.Voice.language_codes', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.texttospeech.v1.Voice.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssml_gender', full_name='google.cloud.texttospeech.v1.Voice.ssml_gender', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='natural_sample_rate_hertz', full_name='google.cloud.texttospeech.v1.Voice.natural_sample_rate_hertz', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=234, - serialized_end=382, + name="Voice", + full_name="google.cloud.texttospeech.v1.Voice", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_codes", + full_name="google.cloud.texttospeech.v1.Voice.language_codes", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.texttospeech.v1.Voice.name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssml_gender", + full_name="google.cloud.texttospeech.v1.Voice.ssml_gender", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="natural_sample_rate_hertz", + full_name="google.cloud.texttospeech.v1.Voice.natural_sample_rate_hertz", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=234, + serialized_end=382, ) _SYNTHESIZESPEECHREQUEST = _descriptor.Descriptor( - name='SynthesizeSpeechRequest', - full_name='google.cloud.texttospeech.v1.SynthesizeSpeechRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input', full_name='google.cloud.texttospeech.v1.SynthesizeSpeechRequest.input', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='voice', full_name='google.cloud.texttospeech.v1.SynthesizeSpeechRequest.voice', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio_config', full_name='google.cloud.texttospeech.v1.SynthesizeSpeechRequest.audio_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=385, - serialized_end=603, + name="SynthesizeSpeechRequest", + full_name="google.cloud.texttospeech.v1.SynthesizeSpeechRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input", + full_name="google.cloud.texttospeech.v1.SynthesizeSpeechRequest.input", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="voice", + full_name="google.cloud.texttospeech.v1.SynthesizeSpeechRequest.voice", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio_config", + full_name="google.cloud.texttospeech.v1.SynthesizeSpeechRequest.audio_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=385, + serialized_end=603, ) _SYNTHESISINPUT = _descriptor.Descriptor( - name='SynthesisInput', - full_name='google.cloud.texttospeech.v1.SynthesisInput', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.texttospeech.v1.SynthesisInput.text', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssml', full_name='google.cloud.texttospeech.v1.SynthesisInput.ssml', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='input_source', full_name='google.cloud.texttospeech.v1.SynthesisInput.input_source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=605, - serialized_end=669, + name="SynthesisInput", + full_name="google.cloud.texttospeech.v1.SynthesisInput", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.texttospeech.v1.SynthesisInput.text", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssml", + full_name="google.cloud.texttospeech.v1.SynthesisInput.ssml", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="input_source", + full_name="google.cloud.texttospeech.v1.SynthesisInput.input_source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=605, + serialized_end=669, ) _VOICESELECTIONPARAMS = _descriptor.Descriptor( - name='VoiceSelectionParams', - full_name='google.cloud.texttospeech.v1.VoiceSelectionParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.texttospeech.v1.VoiceSelectionParams.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.texttospeech.v1.VoiceSelectionParams.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssml_gender', full_name='google.cloud.texttospeech.v1.VoiceSelectionParams.ssml_gender', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=671, - serialized_end=798, + name="VoiceSelectionParams", + full_name="google.cloud.texttospeech.v1.VoiceSelectionParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.texttospeech.v1.VoiceSelectionParams.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.texttospeech.v1.VoiceSelectionParams.name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssml_gender", + full_name="google.cloud.texttospeech.v1.VoiceSelectionParams.ssml_gender", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=671, + serialized_end=798, ) _AUDIOCONFIG = _descriptor.Descriptor( - name='AudioConfig', - full_name='google.cloud.texttospeech.v1.AudioConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='audio_encoding', full_name='google.cloud.texttospeech.v1.AudioConfig.audio_encoding', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speaking_rate', full_name='google.cloud.texttospeech.v1.AudioConfig.speaking_rate', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pitch', full_name='google.cloud.texttospeech.v1.AudioConfig.pitch', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='volume_gain_db', full_name='google.cloud.texttospeech.v1.AudioConfig.volume_gain_db', index=3, - number=4, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sample_rate_hertz', full_name='google.cloud.texttospeech.v1.AudioConfig.sample_rate_hertz', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=801, - serialized_end=972, + name="AudioConfig", + full_name="google.cloud.texttospeech.v1.AudioConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="audio_encoding", + full_name="google.cloud.texttospeech.v1.AudioConfig.audio_encoding", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speaking_rate", + full_name="google.cloud.texttospeech.v1.AudioConfig.speaking_rate", + index=1, + number=2, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pitch", + full_name="google.cloud.texttospeech.v1.AudioConfig.pitch", + index=2, + number=3, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="volume_gain_db", + full_name="google.cloud.texttospeech.v1.AudioConfig.volume_gain_db", + index=3, + number=4, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sample_rate_hertz", + full_name="google.cloud.texttospeech.v1.AudioConfig.sample_rate_hertz", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=801, + serialized_end=972, ) _SYNTHESIZESPEECHRESPONSE = _descriptor.Descriptor( - name='SynthesizeSpeechResponse', - full_name='google.cloud.texttospeech.v1.SynthesizeSpeechResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='audio_content', full_name='google.cloud.texttospeech.v1.SynthesizeSpeechResponse.audio_content', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=974, - serialized_end=1023, + name="SynthesizeSpeechResponse", + full_name="google.cloud.texttospeech.v1.SynthesizeSpeechResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="audio_content", + full_name="google.cloud.texttospeech.v1.SynthesizeSpeechResponse.audio_content", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=974, + serialized_end=1023, ) -_LISTVOICESRESPONSE.fields_by_name['voices'].message_type = _VOICE -_VOICE.fields_by_name['ssml_gender'].enum_type = _SSMLVOICEGENDER -_SYNTHESIZESPEECHREQUEST.fields_by_name['input'].message_type = _SYNTHESISINPUT -_SYNTHESIZESPEECHREQUEST.fields_by_name['voice'].message_type = _VOICESELECTIONPARAMS -_SYNTHESIZESPEECHREQUEST.fields_by_name['audio_config'].message_type = _AUDIOCONFIG -_SYNTHESISINPUT.oneofs_by_name['input_source'].fields.append( - _SYNTHESISINPUT.fields_by_name['text']) -_SYNTHESISINPUT.fields_by_name['text'].containing_oneof = _SYNTHESISINPUT.oneofs_by_name['input_source'] -_SYNTHESISINPUT.oneofs_by_name['input_source'].fields.append( - _SYNTHESISINPUT.fields_by_name['ssml']) -_SYNTHESISINPUT.fields_by_name['ssml'].containing_oneof = _SYNTHESISINPUT.oneofs_by_name['input_source'] -_VOICESELECTIONPARAMS.fields_by_name['ssml_gender'].enum_type = _SSMLVOICEGENDER -_AUDIOCONFIG.fields_by_name['audio_encoding'].enum_type = _AUDIOENCODING -DESCRIPTOR.message_types_by_name['ListVoicesRequest'] = _LISTVOICESREQUEST -DESCRIPTOR.message_types_by_name['ListVoicesResponse'] = _LISTVOICESRESPONSE -DESCRIPTOR.message_types_by_name['Voice'] = _VOICE -DESCRIPTOR.message_types_by_name['SynthesizeSpeechRequest'] = _SYNTHESIZESPEECHREQUEST -DESCRIPTOR.message_types_by_name['SynthesisInput'] = _SYNTHESISINPUT -DESCRIPTOR.message_types_by_name['VoiceSelectionParams'] = _VOICESELECTIONPARAMS -DESCRIPTOR.message_types_by_name['AudioConfig'] = _AUDIOCONFIG -DESCRIPTOR.message_types_by_name['SynthesizeSpeechResponse'] = _SYNTHESIZESPEECHRESPONSE -DESCRIPTOR.enum_types_by_name['SsmlVoiceGender'] = _SSMLVOICEGENDER -DESCRIPTOR.enum_types_by_name['AudioEncoding'] = _AUDIOENCODING +_LISTVOICESRESPONSE.fields_by_name["voices"].message_type = _VOICE +_VOICE.fields_by_name["ssml_gender"].enum_type = _SSMLVOICEGENDER +_SYNTHESIZESPEECHREQUEST.fields_by_name["input"].message_type = _SYNTHESISINPUT +_SYNTHESIZESPEECHREQUEST.fields_by_name["voice"].message_type = _VOICESELECTIONPARAMS +_SYNTHESIZESPEECHREQUEST.fields_by_name["audio_config"].message_type = _AUDIOCONFIG +_SYNTHESISINPUT.oneofs_by_name["input_source"].fields.append( + _SYNTHESISINPUT.fields_by_name["text"] +) +_SYNTHESISINPUT.fields_by_name[ + "text" +].containing_oneof = _SYNTHESISINPUT.oneofs_by_name["input_source"] +_SYNTHESISINPUT.oneofs_by_name["input_source"].fields.append( + _SYNTHESISINPUT.fields_by_name["ssml"] +) +_SYNTHESISINPUT.fields_by_name[ + "ssml" +].containing_oneof = _SYNTHESISINPUT.oneofs_by_name["input_source"] +_VOICESELECTIONPARAMS.fields_by_name["ssml_gender"].enum_type = _SSMLVOICEGENDER +_AUDIOCONFIG.fields_by_name["audio_encoding"].enum_type = _AUDIOENCODING +DESCRIPTOR.message_types_by_name["ListVoicesRequest"] = _LISTVOICESREQUEST +DESCRIPTOR.message_types_by_name["ListVoicesResponse"] = _LISTVOICESRESPONSE +DESCRIPTOR.message_types_by_name["Voice"] = _VOICE +DESCRIPTOR.message_types_by_name["SynthesizeSpeechRequest"] = _SYNTHESIZESPEECHREQUEST +DESCRIPTOR.message_types_by_name["SynthesisInput"] = _SYNTHESISINPUT +DESCRIPTOR.message_types_by_name["VoiceSelectionParams"] = _VOICESELECTIONPARAMS +DESCRIPTOR.message_types_by_name["AudioConfig"] = _AUDIOCONFIG +DESCRIPTOR.message_types_by_name["SynthesizeSpeechResponse"] = _SYNTHESIZESPEECHRESPONSE +DESCRIPTOR.enum_types_by_name["SsmlVoiceGender"] = _SSMLVOICEGENDER +DESCRIPTOR.enum_types_by_name["AudioEncoding"] = _AUDIOENCODING _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListVoicesRequest = _reflection.GeneratedProtocolMessageType('ListVoicesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTVOICESREQUEST, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """The top-level message sent by the client for the ``ListVoices`` method. +ListVoicesRequest = _reflection.GeneratedProtocolMessageType( + "ListVoicesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTVOICESREQUEST, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""The top-level message sent by the client for the ``ListVoices`` method. Attributes: @@ -476,30 +688,36 @@ supported "cmn-*" voices; specifying "zh-hk" will also get supported "yue-\*" voices. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesRequest) + ), +) _sym_db.RegisterMessage(ListVoicesRequest) -ListVoicesResponse = _reflection.GeneratedProtocolMessageType('ListVoicesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTVOICESRESPONSE, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """The message returned to the client by the ``ListVoices`` method. +ListVoicesResponse = _reflection.GeneratedProtocolMessageType( + "ListVoicesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTVOICESRESPONSE, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""The message returned to the client by the ``ListVoices`` method. Attributes: voices: The list of voices. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesResponse) + ), +) _sym_db.RegisterMessage(ListVoicesResponse) -Voice = _reflection.GeneratedProtocolMessageType('Voice', (_message.Message,), dict( - DESCRIPTOR = _VOICE, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """Description of a voice supported by the TTS service. +Voice = _reflection.GeneratedProtocolMessageType( + "Voice", + (_message.Message,), + dict( + DESCRIPTOR=_VOICE, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""Description of a voice supported by the TTS service. Attributes: @@ -514,15 +732,18 @@ natural_sample_rate_hertz: The natural sample rate (in hertz) for this voice. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.Voice) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.Voice) + ), +) _sym_db.RegisterMessage(Voice) -SynthesizeSpeechRequest = _reflection.GeneratedProtocolMessageType('SynthesizeSpeechRequest', (_message.Message,), dict( - DESCRIPTOR = _SYNTHESIZESPEECHREQUEST, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """The top-level message sent by the client for the ``SynthesizeSpeech`` +SynthesizeSpeechRequest = _reflection.GeneratedProtocolMessageType( + "SynthesizeSpeechRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SYNTHESIZESPEECHREQUEST, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""The top-level message sent by the client for the ``SynthesizeSpeech`` method. @@ -535,15 +756,18 @@ audio_config: Required. The configuration of the synthesized audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) + ), +) _sym_db.RegisterMessage(SynthesizeSpeechRequest) -SynthesisInput = _reflection.GeneratedProtocolMessageType('SynthesisInput', (_message.Message,), dict( - DESCRIPTOR = _SYNTHESISINPUT, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """Contains text input to be synthesized. Either ``text`` or ``ssml`` must +SynthesisInput = _reflection.GeneratedProtocolMessageType( + "SynthesisInput", + (_message.Message,), + dict( + DESCRIPTOR=_SYNTHESISINPUT, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""Contains text input to be synthesized. Either ``text`` or ``ssml`` must be supplied. Supplying both or neither returns [google.rpc.Code.INVALID\_ARGUMENT][]. The input size is limited to 5000 characters. @@ -560,15 +784,18 @@ [google.rpc.Code.INVALID\_ARGUMENT][]. For more information, see `SSML `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesisInput) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesisInput) + ), +) _sym_db.RegisterMessage(SynthesisInput) -VoiceSelectionParams = _reflection.GeneratedProtocolMessageType('VoiceSelectionParams', (_message.Message,), dict( - DESCRIPTOR = _VOICESELECTIONPARAMS, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """Description of which voice to use for a synthesis request. +VoiceSelectionParams = _reflection.GeneratedProtocolMessageType( + "VoiceSelectionParams", + (_message.Message,), + dict( + DESCRIPTOR=_VOICESELECTIONPARAMS, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""Description of which voice to use for a synthesis request. Attributes: @@ -598,15 +825,18 @@ gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.VoiceSelectionParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.VoiceSelectionParams) + ), +) _sym_db.RegisterMessage(VoiceSelectionParams) -AudioConfig = _reflection.GeneratedProtocolMessageType('AudioConfig', (_message.Message,), dict( - DESCRIPTOR = _AUDIOCONFIG, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """Description of audio data to be synthesized. +AudioConfig = _reflection.GeneratedProtocolMessageType( + "AudioConfig", + (_message.Message,), + dict( + DESCRIPTOR=_AUDIOCONFIG, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""Description of audio data to be synthesized. Attributes: @@ -642,15 +872,18 @@ for the encoding chosen, in which case it will fail the request and return [google.rpc.Code.INVALID\_ARGUMENT][]. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.AudioConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.AudioConfig) + ), +) _sym_db.RegisterMessage(AudioConfig) -SynthesizeSpeechResponse = _reflection.GeneratedProtocolMessageType('SynthesizeSpeechResponse', (_message.Message,), dict( - DESCRIPTOR = _SYNTHESIZESPEECHRESPONSE, - __module__ = 'google.cloud.texttospeech_v1.proto.cloud_tts_pb2' - , - __doc__ = """The message returned to the client by the ``SynthesizeSpeech`` method. +SynthesizeSpeechResponse = _reflection.GeneratedProtocolMessageType( + "SynthesizeSpeechResponse", + (_message.Message,), + dict( + DESCRIPTOR=_SYNTHESIZESPEECHRESPONSE, + __module__="google.cloud.texttospeech_v1.proto.cloud_tts_pb2", + __doc__="""The message returned to the client by the ``SynthesizeSpeech`` method. Attributes: @@ -661,44 +894,57 @@ pure binary representation, whereas JSON representations use base64. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) + ), +) _sym_db.RegisterMessage(SynthesizeSpeechResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n com.google.cloud.texttospeech.v1B\021TextToSpeechProtoP\001ZHgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1;texttospeech\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Google\\Cloud\\TextToSpeech\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n com.google.cloud.texttospeech.v1B\021TextToSpeechProtoP\001ZHgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1;texttospeech\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Google\\Cloud\\TextToSpeech\\V1" + ), +) _TEXTTOSPEECH = _descriptor.ServiceDescriptor( - name='TextToSpeech', - full_name='google.cloud.texttospeech.v1.TextToSpeech', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1201, - serialized_end=1513, - methods=[ - _descriptor.MethodDescriptor( - name='ListVoices', - full_name='google.cloud.texttospeech.v1.TextToSpeech.ListVoices', + name="TextToSpeech", + full_name="google.cloud.texttospeech.v1.TextToSpeech", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTVOICESREQUEST, - output_type=_LISTVOICESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\014\022\n/v1/voices')), - ), - _descriptor.MethodDescriptor( - name='SynthesizeSpeech', - full_name='google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech', - index=1, - containing_service=None, - input_type=_SYNTHESIZESPEECHREQUEST, - output_type=_SYNTHESIZESPEECHRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\030\"\023/v1/text:synthesize:\001*')), - ), -]) + options=None, + serialized_start=1201, + serialized_end=1513, + methods=[ + _descriptor.MethodDescriptor( + name="ListVoices", + full_name="google.cloud.texttospeech.v1.TextToSpeech.ListVoices", + index=0, + containing_service=None, + input_type=_LISTVOICESREQUEST, + output_type=_LISTVOICESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\014\022\n/v1/voices"), + ), + ), + _descriptor.MethodDescriptor( + name="SynthesizeSpeech", + full_name="google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech", + index=1, + containing_service=None, + input_type=_SYNTHESIZESPEECHREQUEST, + output_type=_SYNTHESIZESPEECHRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\030"\023/v1/text:synthesize:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_TEXTTOSPEECH) -DESCRIPTOR.services_by_name['TextToSpeech'] = _TEXTTOSPEECH +DESCRIPTOR.services_by_name["TextToSpeech"] = _TEXTTOSPEECH # @@protoc_insertion_point(module_scope) diff --git a/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2_grpc.py b/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2_grpc.py index 83fb74c070d0c..7e4b786496fa5 100644 --- a/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2_grpc.py +++ b/texttospeech/google/cloud/texttospeech_v1/proto/cloud_tts_pb2_grpc.py @@ -1,65 +1,68 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.texttospeech_v1.proto import cloud_tts_pb2 as google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2 +from google.cloud.texttospeech_v1.proto import ( + cloud_tts_pb2 as google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2, +) class TextToSpeechStub(object): - """Service that implements Google Cloud Text-to-Speech API. + """Service that implements Google Cloud Text-to-Speech API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListVoices = channel.unary_unary( - '/google.cloud.texttospeech.v1.TextToSpeech/ListVoices', - request_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.FromString, + self.ListVoices = channel.unary_unary( + "/google.cloud.texttospeech.v1.TextToSpeech/ListVoices", + request_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.FromString, ) - self.SynthesizeSpeech = channel.unary_unary( - '/google.cloud.texttospeech.v1.TextToSpeech/SynthesizeSpeech', - request_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.FromString, + self.SynthesizeSpeech = channel.unary_unary( + "/google.cloud.texttospeech.v1.TextToSpeech/SynthesizeSpeech", + request_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.FromString, ) class TextToSpeechServicer(object): - """Service that implements Google Cloud Text-to-Speech API. + """Service that implements Google Cloud Text-to-Speech API. """ - def ListVoices(self, request, context): - """Returns a list of [Voice][google.cloud.texttospeech.v1.Voice] + def ListVoices(self, request, context): + """Returns a list of [Voice][google.cloud.texttospeech.v1.Voice] supported for synthesis. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SynthesizeSpeech(self, request, context): - """Synthesizes speech synchronously: receive results after all text input + def SynthesizeSpeech(self, request, context): + """Synthesizes speech synchronously: receive results after all text input has been processed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_TextToSpeechServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListVoices': grpc.unary_unary_rpc_method_handler( - servicer.ListVoices, - request_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.FromString, - response_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.SerializeToString, - ), - 'SynthesizeSpeech': grpc.unary_unary_rpc_method_handler( - servicer.SynthesizeSpeech, - request_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.FromString, - response_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.texttospeech.v1.TextToSpeech', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListVoices": grpc.unary_unary_rpc_method_handler( + servicer.ListVoices, + request_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.FromString, + response_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.SerializeToString, + ), + "SynthesizeSpeech": grpc.unary_unary_rpc_method_handler( + servicer.SynthesizeSpeech, + request_deserializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.FromString, + response_serializer=google_dot_cloud_dot_texttospeech__v1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.texttospeech.v1.TextToSpeech", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2.py b/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2.py index 8567b6e2c0f8a..2627e82f7f52b 100644 --- a/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2.py +++ b/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2.py @@ -2,13 +2,15 @@ # source: google/cloud/texttospeech_v1beta1/proto/cloud_tts.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,71 +20,73 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/texttospeech_v1beta1/proto/cloud_tts.proto', - package='google.cloud.texttospeech.v1beta1', - syntax='proto3', - serialized_pb=_b('\n7google/cloud/texttospeech_v1beta1/proto/cloud_tts.proto\x12!google.cloud.texttospeech.v1beta1\x1a\x1cgoogle/api/annotations.proto\"*\n\x11ListVoicesRequest\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\"N\n\x12ListVoicesResponse\x12\x38\n\x06voices\x18\x01 \x03(\x0b\x32(.google.cloud.texttospeech.v1beta1.Voice\"\x99\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\xe9\x01\n\x17SynthesizeSpeechRequest\x12@\n\x05input\x18\x01 \x01(\x0b\x32\x31.google.cloud.texttospeech.v1beta1.SynthesisInput\x12\x46\n\x05voice\x18\x02 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParams\x12\x44\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfig\"@\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x42\x0e\n\x0cinput_source\"\x84\x01\n\x14VoiceSelectionParams\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\"\xcc\x01\n\x0b\x41udioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.AudioEncoding\x12\x15\n\rspeaking_rate\x18\x02 \x01(\x01\x12\r\n\x05pitch\x18\x03 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x04 \x01(\x01\x12\x19\n\x11sample_rate_hertz\x18\x05 \x01(\x05\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x06 \x03(\t\"1\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*T\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0c\n\x08OGG_OPUS\x10\x03\x32\xd6\x02\n\x0cTextToSpeech\x12\x92\x01\n\nListVoices\x12\x34.google.cloud.texttospeech.v1beta1.ListVoicesRequest\x1a\x35.google.cloud.texttospeech.v1beta1.ListVoicesResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1beta1/voices\x12\xb0\x01\n\x10SynthesizeSpeech\x12:.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest\x1a;.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse\"#\x82\xd3\xe4\x93\x02\x1d\"\x18/v1beta1/text:synthesize:\x01*B\x8e\x01\n%com.google.cloud.texttospeech.v1beta1B\x11TextToSpeechProtoP\x01ZMgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + name="google/cloud/texttospeech_v1beta1/proto/cloud_tts.proto", + package="google.cloud.texttospeech.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\n7google/cloud/texttospeech_v1beta1/proto/cloud_tts.proto\x12!google.cloud.texttospeech.v1beta1\x1a\x1cgoogle/api/annotations.proto"*\n\x11ListVoicesRequest\x12\x15\n\rlanguage_code\x18\x01 \x01(\t"N\n\x12ListVoicesResponse\x12\x38\n\x06voices\x18\x01 \x03(\x0b\x32(.google.cloud.texttospeech.v1beta1.Voice"\x99\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05"\xe9\x01\n\x17SynthesizeSpeechRequest\x12@\n\x05input\x18\x01 \x01(\x0b\x32\x31.google.cloud.texttospeech.v1beta1.SynthesisInput\x12\x46\n\x05voice\x18\x02 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParams\x12\x44\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfig"@\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x42\x0e\n\x0cinput_source"\x84\x01\n\x14VoiceSelectionParams\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender"\xcc\x01\n\x0b\x41udioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.AudioEncoding\x12\x15\n\rspeaking_rate\x18\x02 \x01(\x01\x12\r\n\x05pitch\x18\x03 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x04 \x01(\x01\x12\x19\n\x11sample_rate_hertz\x18\x05 \x01(\x05\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x06 \x03(\t"1\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*T\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0c\n\x08OGG_OPUS\x10\x03\x32\xd6\x02\n\x0cTextToSpeech\x12\x92\x01\n\nListVoices\x12\x34.google.cloud.texttospeech.v1beta1.ListVoicesRequest\x1a\x35.google.cloud.texttospeech.v1beta1.ListVoicesResponse"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1beta1/voices\x12\xb0\x01\n\x10SynthesizeSpeech\x12:.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest\x1a;.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse"#\x82\xd3\xe4\x93\x02\x1d"\x18/v1beta1/text:synthesize:\x01*B\x8e\x01\n%com.google.cloud.texttospeech.v1beta1B\x11TextToSpeechProtoP\x01ZMgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _SSMLVOICEGENDER = _descriptor.EnumDescriptor( - name='SsmlVoiceGender', - full_name='google.cloud.texttospeech.v1beta1.SsmlVoiceGender', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SSML_VOICE_GENDER_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MALE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEMALE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEUTRAL', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1099, - serialized_end=1186, + name="SsmlVoiceGender", + full_name="google.cloud.texttospeech.v1beta1.SsmlVoiceGender", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SSML_VOICE_GENDER_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="MALE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FEMALE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NEUTRAL", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1099, + serialized_end=1186, ) _sym_db.RegisterEnumDescriptor(_SSMLVOICEGENDER) SsmlVoiceGender = enum_type_wrapper.EnumTypeWrapper(_SSMLVOICEGENDER) _AUDIOENCODING = _descriptor.EnumDescriptor( - name='AudioEncoding', - full_name='google.cloud.texttospeech.v1beta1.AudioEncoding', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='AUDIO_ENCODING_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINEAR16', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MP3', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OGG_OPUS', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1188, - serialized_end=1272, + name="AudioEncoding", + full_name="google.cloud.texttospeech.v1beta1.AudioEncoding", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="AUDIO_ENCODING_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LINEAR16", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MP3", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OGG_OPUS", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1188, + serialized_end=1272, ) _sym_db.RegisterEnumDescriptor(_AUDIOENCODING) @@ -97,378 +101,597 @@ OGG_OPUS = 3 - _LISTVOICESREQUEST = _descriptor.Descriptor( - name='ListVoicesRequest', - full_name='google.cloud.texttospeech.v1beta1.ListVoicesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.texttospeech.v1beta1.ListVoicesRequest.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=124, - serialized_end=166, + name="ListVoicesRequest", + full_name="google.cloud.texttospeech.v1beta1.ListVoicesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.texttospeech.v1beta1.ListVoicesRequest.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=124, + serialized_end=166, ) _LISTVOICESRESPONSE = _descriptor.Descriptor( - name='ListVoicesResponse', - full_name='google.cloud.texttospeech.v1beta1.ListVoicesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='voices', full_name='google.cloud.texttospeech.v1beta1.ListVoicesResponse.voices', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=168, - serialized_end=246, + name="ListVoicesResponse", + full_name="google.cloud.texttospeech.v1beta1.ListVoicesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="voices", + full_name="google.cloud.texttospeech.v1beta1.ListVoicesResponse.voices", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=168, + serialized_end=246, ) _VOICE = _descriptor.Descriptor( - name='Voice', - full_name='google.cloud.texttospeech.v1beta1.Voice', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_codes', full_name='google.cloud.texttospeech.v1beta1.Voice.language_codes', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.texttospeech.v1beta1.Voice.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssml_gender', full_name='google.cloud.texttospeech.v1beta1.Voice.ssml_gender', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='natural_sample_rate_hertz', full_name='google.cloud.texttospeech.v1beta1.Voice.natural_sample_rate_hertz', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=249, - serialized_end=402, + name="Voice", + full_name="google.cloud.texttospeech.v1beta1.Voice", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_codes", + full_name="google.cloud.texttospeech.v1beta1.Voice.language_codes", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.texttospeech.v1beta1.Voice.name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssml_gender", + full_name="google.cloud.texttospeech.v1beta1.Voice.ssml_gender", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="natural_sample_rate_hertz", + full_name="google.cloud.texttospeech.v1beta1.Voice.natural_sample_rate_hertz", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=249, + serialized_end=402, ) _SYNTHESIZESPEECHREQUEST = _descriptor.Descriptor( - name='SynthesizeSpeechRequest', - full_name='google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input', full_name='google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.input', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='voice', full_name='google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.voice', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio_config', full_name='google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.audio_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=405, - serialized_end=638, + name="SynthesizeSpeechRequest", + full_name="google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input", + full_name="google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.input", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="voice", + full_name="google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.voice", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio_config", + full_name="google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.audio_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=405, + serialized_end=638, ) _SYNTHESISINPUT = _descriptor.Descriptor( - name='SynthesisInput', - full_name='google.cloud.texttospeech.v1beta1.SynthesisInput', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.texttospeech.v1beta1.SynthesisInput.text', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssml', full_name='google.cloud.texttospeech.v1beta1.SynthesisInput.ssml', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='input_source', full_name='google.cloud.texttospeech.v1beta1.SynthesisInput.input_source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=640, - serialized_end=704, + name="SynthesisInput", + full_name="google.cloud.texttospeech.v1beta1.SynthesisInput", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.texttospeech.v1beta1.SynthesisInput.text", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssml", + full_name="google.cloud.texttospeech.v1beta1.SynthesisInput.ssml", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="input_source", + full_name="google.cloud.texttospeech.v1beta1.SynthesisInput.input_source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=640, + serialized_end=704, ) _VOICESELECTIONPARAMS = _descriptor.Descriptor( - name='VoiceSelectionParams', - full_name='google.cloud.texttospeech.v1beta1.VoiceSelectionParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.texttospeech.v1beta1.VoiceSelectionParams.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.texttospeech.v1beta1.VoiceSelectionParams.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ssml_gender', full_name='google.cloud.texttospeech.v1beta1.VoiceSelectionParams.ssml_gender', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=707, - serialized_end=839, + name="VoiceSelectionParams", + full_name="google.cloud.texttospeech.v1beta1.VoiceSelectionParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.texttospeech.v1beta1.VoiceSelectionParams.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.texttospeech.v1beta1.VoiceSelectionParams.name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssml_gender", + full_name="google.cloud.texttospeech.v1beta1.VoiceSelectionParams.ssml_gender", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=707, + serialized_end=839, ) _AUDIOCONFIG = _descriptor.Descriptor( - name='AudioConfig', - full_name='google.cloud.texttospeech.v1beta1.AudioConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='audio_encoding', full_name='google.cloud.texttospeech.v1beta1.AudioConfig.audio_encoding', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speaking_rate', full_name='google.cloud.texttospeech.v1beta1.AudioConfig.speaking_rate', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pitch', full_name='google.cloud.texttospeech.v1beta1.AudioConfig.pitch', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='volume_gain_db', full_name='google.cloud.texttospeech.v1beta1.AudioConfig.volume_gain_db', index=3, - number=4, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sample_rate_hertz', full_name='google.cloud.texttospeech.v1beta1.AudioConfig.sample_rate_hertz', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effects_profile_id', full_name='google.cloud.texttospeech.v1beta1.AudioConfig.effects_profile_id', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=842, - serialized_end=1046, + name="AudioConfig", + full_name="google.cloud.texttospeech.v1beta1.AudioConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="audio_encoding", + full_name="google.cloud.texttospeech.v1beta1.AudioConfig.audio_encoding", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speaking_rate", + full_name="google.cloud.texttospeech.v1beta1.AudioConfig.speaking_rate", + index=1, + number=2, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pitch", + full_name="google.cloud.texttospeech.v1beta1.AudioConfig.pitch", + index=2, + number=3, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="volume_gain_db", + full_name="google.cloud.texttospeech.v1beta1.AudioConfig.volume_gain_db", + index=3, + number=4, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sample_rate_hertz", + full_name="google.cloud.texttospeech.v1beta1.AudioConfig.sample_rate_hertz", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="effects_profile_id", + full_name="google.cloud.texttospeech.v1beta1.AudioConfig.effects_profile_id", + index=5, + number=6, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=842, + serialized_end=1046, ) _SYNTHESIZESPEECHRESPONSE = _descriptor.Descriptor( - name='SynthesizeSpeechResponse', - full_name='google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='audio_content', full_name='google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.audio_content', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1048, - serialized_end=1097, + name="SynthesizeSpeechResponse", + full_name="google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="audio_content", + full_name="google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.audio_content", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1048, + serialized_end=1097, ) -_LISTVOICESRESPONSE.fields_by_name['voices'].message_type = _VOICE -_VOICE.fields_by_name['ssml_gender'].enum_type = _SSMLVOICEGENDER -_SYNTHESIZESPEECHREQUEST.fields_by_name['input'].message_type = _SYNTHESISINPUT -_SYNTHESIZESPEECHREQUEST.fields_by_name['voice'].message_type = _VOICESELECTIONPARAMS -_SYNTHESIZESPEECHREQUEST.fields_by_name['audio_config'].message_type = _AUDIOCONFIG -_SYNTHESISINPUT.oneofs_by_name['input_source'].fields.append( - _SYNTHESISINPUT.fields_by_name['text']) -_SYNTHESISINPUT.fields_by_name['text'].containing_oneof = _SYNTHESISINPUT.oneofs_by_name['input_source'] -_SYNTHESISINPUT.oneofs_by_name['input_source'].fields.append( - _SYNTHESISINPUT.fields_by_name['ssml']) -_SYNTHESISINPUT.fields_by_name['ssml'].containing_oneof = _SYNTHESISINPUT.oneofs_by_name['input_source'] -_VOICESELECTIONPARAMS.fields_by_name['ssml_gender'].enum_type = _SSMLVOICEGENDER -_AUDIOCONFIG.fields_by_name['audio_encoding'].enum_type = _AUDIOENCODING -DESCRIPTOR.message_types_by_name['ListVoicesRequest'] = _LISTVOICESREQUEST -DESCRIPTOR.message_types_by_name['ListVoicesResponse'] = _LISTVOICESRESPONSE -DESCRIPTOR.message_types_by_name['Voice'] = _VOICE -DESCRIPTOR.message_types_by_name['SynthesizeSpeechRequest'] = _SYNTHESIZESPEECHREQUEST -DESCRIPTOR.message_types_by_name['SynthesisInput'] = _SYNTHESISINPUT -DESCRIPTOR.message_types_by_name['VoiceSelectionParams'] = _VOICESELECTIONPARAMS -DESCRIPTOR.message_types_by_name['AudioConfig'] = _AUDIOCONFIG -DESCRIPTOR.message_types_by_name['SynthesizeSpeechResponse'] = _SYNTHESIZESPEECHRESPONSE -DESCRIPTOR.enum_types_by_name['SsmlVoiceGender'] = _SSMLVOICEGENDER -DESCRIPTOR.enum_types_by_name['AudioEncoding'] = _AUDIOENCODING +_LISTVOICESRESPONSE.fields_by_name["voices"].message_type = _VOICE +_VOICE.fields_by_name["ssml_gender"].enum_type = _SSMLVOICEGENDER +_SYNTHESIZESPEECHREQUEST.fields_by_name["input"].message_type = _SYNTHESISINPUT +_SYNTHESIZESPEECHREQUEST.fields_by_name["voice"].message_type = _VOICESELECTIONPARAMS +_SYNTHESIZESPEECHREQUEST.fields_by_name["audio_config"].message_type = _AUDIOCONFIG +_SYNTHESISINPUT.oneofs_by_name["input_source"].fields.append( + _SYNTHESISINPUT.fields_by_name["text"] +) +_SYNTHESISINPUT.fields_by_name[ + "text" +].containing_oneof = _SYNTHESISINPUT.oneofs_by_name["input_source"] +_SYNTHESISINPUT.oneofs_by_name["input_source"].fields.append( + _SYNTHESISINPUT.fields_by_name["ssml"] +) +_SYNTHESISINPUT.fields_by_name[ + "ssml" +].containing_oneof = _SYNTHESISINPUT.oneofs_by_name["input_source"] +_VOICESELECTIONPARAMS.fields_by_name["ssml_gender"].enum_type = _SSMLVOICEGENDER +_AUDIOCONFIG.fields_by_name["audio_encoding"].enum_type = _AUDIOENCODING +DESCRIPTOR.message_types_by_name["ListVoicesRequest"] = _LISTVOICESREQUEST +DESCRIPTOR.message_types_by_name["ListVoicesResponse"] = _LISTVOICESRESPONSE +DESCRIPTOR.message_types_by_name["Voice"] = _VOICE +DESCRIPTOR.message_types_by_name["SynthesizeSpeechRequest"] = _SYNTHESIZESPEECHREQUEST +DESCRIPTOR.message_types_by_name["SynthesisInput"] = _SYNTHESISINPUT +DESCRIPTOR.message_types_by_name["VoiceSelectionParams"] = _VOICESELECTIONPARAMS +DESCRIPTOR.message_types_by_name["AudioConfig"] = _AUDIOCONFIG +DESCRIPTOR.message_types_by_name["SynthesizeSpeechResponse"] = _SYNTHESIZESPEECHRESPONSE +DESCRIPTOR.enum_types_by_name["SsmlVoiceGender"] = _SSMLVOICEGENDER +DESCRIPTOR.enum_types_by_name["AudioEncoding"] = _AUDIOENCODING _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListVoicesRequest = _reflection.GeneratedProtocolMessageType('ListVoicesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTVOICESREQUEST, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """The top-level message sent by the client for the ``ListVoices`` method. +ListVoicesRequest = _reflection.GeneratedProtocolMessageType( + "ListVoicesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTVOICESREQUEST, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""The top-level message sent by the client for the ``ListVoices`` method. Attributes: @@ -483,30 +706,36 @@ supported "cmn-*" voices; specifying "zh-hk" will also get supported "yue-\*" voices. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesRequest) + ), +) _sym_db.RegisterMessage(ListVoicesRequest) -ListVoicesResponse = _reflection.GeneratedProtocolMessageType('ListVoicesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTVOICESRESPONSE, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """The message returned to the client by the ``ListVoices`` method. +ListVoicesResponse = _reflection.GeneratedProtocolMessageType( + "ListVoicesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTVOICESRESPONSE, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""The message returned to the client by the ``ListVoices`` method. Attributes: voices: The list of voices. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesResponse) + ), +) _sym_db.RegisterMessage(ListVoicesResponse) -Voice = _reflection.GeneratedProtocolMessageType('Voice', (_message.Message,), dict( - DESCRIPTOR = _VOICE, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """Description of a voice supported by the TTS service. +Voice = _reflection.GeneratedProtocolMessageType( + "Voice", + (_message.Message,), + dict( + DESCRIPTOR=_VOICE, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""Description of a voice supported by the TTS service. Attributes: @@ -521,15 +750,18 @@ natural_sample_rate_hertz: The natural sample rate (in hertz) for this voice. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.Voice) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.Voice) + ), +) _sym_db.RegisterMessage(Voice) -SynthesizeSpeechRequest = _reflection.GeneratedProtocolMessageType('SynthesizeSpeechRequest', (_message.Message,), dict( - DESCRIPTOR = _SYNTHESIZESPEECHREQUEST, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """The top-level message sent by the client for the ``SynthesizeSpeech`` +SynthesizeSpeechRequest = _reflection.GeneratedProtocolMessageType( + "SynthesizeSpeechRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SYNTHESIZESPEECHREQUEST, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""The top-level message sent by the client for the ``SynthesizeSpeech`` method. @@ -542,15 +774,18 @@ audio_config: Required. The configuration of the synthesized audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) + ), +) _sym_db.RegisterMessage(SynthesizeSpeechRequest) -SynthesisInput = _reflection.GeneratedProtocolMessageType('SynthesisInput', (_message.Message,), dict( - DESCRIPTOR = _SYNTHESISINPUT, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """Contains text input to be synthesized. Either ``text`` or ``ssml`` must +SynthesisInput = _reflection.GeneratedProtocolMessageType( + "SynthesisInput", + (_message.Message,), + dict( + DESCRIPTOR=_SYNTHESISINPUT, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""Contains text input to be synthesized. Either ``text`` or ``ssml`` must be supplied. Supplying both or neither returns [google.rpc.Code.INVALID\_ARGUMENT][]. The input size is limited to 5000 characters. @@ -567,15 +802,18 @@ [google.rpc.Code.INVALID\_ARGUMENT][]. For more information, see `SSML `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesisInput) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesisInput) + ), +) _sym_db.RegisterMessage(SynthesisInput) -VoiceSelectionParams = _reflection.GeneratedProtocolMessageType('VoiceSelectionParams', (_message.Message,), dict( - DESCRIPTOR = _VOICESELECTIONPARAMS, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """Description of which voice to use for a synthesis request. +VoiceSelectionParams = _reflection.GeneratedProtocolMessageType( + "VoiceSelectionParams", + (_message.Message,), + dict( + DESCRIPTOR=_VOICESELECTIONPARAMS, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""Description of which voice to use for a synthesis request. Attributes: @@ -605,15 +843,18 @@ gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.VoiceSelectionParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.VoiceSelectionParams) + ), +) _sym_db.RegisterMessage(VoiceSelectionParams) -AudioConfig = _reflection.GeneratedProtocolMessageType('AudioConfig', (_message.Message,), dict( - DESCRIPTOR = _AUDIOCONFIG, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """Description of audio data to be synthesized. +AudioConfig = _reflection.GeneratedProtocolMessageType( + "AudioConfig", + (_message.Message,), + dict( + DESCRIPTOR=_AUDIOCONFIG, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""Description of audio data to be synthesized. Attributes: @@ -653,15 +894,18 @@ applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.AudioConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.AudioConfig) + ), +) _sym_db.RegisterMessage(AudioConfig) -SynthesizeSpeechResponse = _reflection.GeneratedProtocolMessageType('SynthesizeSpeechResponse', (_message.Message,), dict( - DESCRIPTOR = _SYNTHESIZESPEECHRESPONSE, - __module__ = 'google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2' - , - __doc__ = """The message returned to the client by the ``SynthesizeSpeech`` method. +SynthesizeSpeechResponse = _reflection.GeneratedProtocolMessageType( + "SynthesizeSpeechResponse", + (_message.Message,), + dict( + DESCRIPTOR=_SYNTHESIZESPEECHRESPONSE, + __module__="google.cloud.texttospeech_v1beta1.proto.cloud_tts_pb2", + __doc__="""The message returned to the client by the ``SynthesizeSpeech`` method. Attributes: @@ -672,44 +916,57 @@ pure binary representation, whereas JSON representations use base64. """, - # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) + ), +) _sym_db.RegisterMessage(SynthesizeSpeechResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.cloud.texttospeech.v1beta1B\021TextToSpeechProtoP\001ZMgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n%com.google.cloud.texttospeech.v1beta1B\021TextToSpeechProtoP\001ZMgoogle.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech\370\001\001" + ), +) _TEXTTOSPEECH = _descriptor.ServiceDescriptor( - name='TextToSpeech', - full_name='google.cloud.texttospeech.v1beta1.TextToSpeech', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1275, - serialized_end=1617, - methods=[ - _descriptor.MethodDescriptor( - name='ListVoices', - full_name='google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices', + name="TextToSpeech", + full_name="google.cloud.texttospeech.v1beta1.TextToSpeech", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTVOICESREQUEST, - output_type=_LISTVOICESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\021\022\017/v1beta1/voices')), - ), - _descriptor.MethodDescriptor( - name='SynthesizeSpeech', - full_name='google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech', - index=1, - containing_service=None, - input_type=_SYNTHESIZESPEECHREQUEST, - output_type=_SYNTHESIZESPEECHRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\035\"\030/v1beta1/text:synthesize:\001*')), - ), -]) + options=None, + serialized_start=1275, + serialized_end=1617, + methods=[ + _descriptor.MethodDescriptor( + name="ListVoices", + full_name="google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices", + index=0, + containing_service=None, + input_type=_LISTVOICESREQUEST, + output_type=_LISTVOICESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\021\022\017/v1beta1/voices"), + ), + ), + _descriptor.MethodDescriptor( + name="SynthesizeSpeech", + full_name="google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech", + index=1, + containing_service=None, + input_type=_SYNTHESIZESPEECHREQUEST, + output_type=_SYNTHESIZESPEECHRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\035"\030/v1beta1/text:synthesize:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_TEXTTOSPEECH) -DESCRIPTOR.services_by_name['TextToSpeech'] = _TEXTTOSPEECH +DESCRIPTOR.services_by_name["TextToSpeech"] = _TEXTTOSPEECH # @@protoc_insertion_point(module_scope) diff --git a/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2_grpc.py b/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2_grpc.py index 2b74457f5d250..3aaa817016926 100644 --- a/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2_grpc.py +++ b/texttospeech/google/cloud/texttospeech_v1beta1/proto/cloud_tts_pb2_grpc.py @@ -1,65 +1,68 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.texttospeech_v1beta1.proto import cloud_tts_pb2 as google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2 +from google.cloud.texttospeech_v1beta1.proto import ( + cloud_tts_pb2 as google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2, +) class TextToSpeechStub(object): - """Service that implements Google Cloud Text-to-Speech API. + """Service that implements Google Cloud Text-to-Speech API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListVoices = channel.unary_unary( - '/google.cloud.texttospeech.v1beta1.TextToSpeech/ListVoices', - request_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.FromString, + self.ListVoices = channel.unary_unary( + "/google.cloud.texttospeech.v1beta1.TextToSpeech/ListVoices", + request_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.FromString, ) - self.SynthesizeSpeech = channel.unary_unary( - '/google.cloud.texttospeech.v1beta1.TextToSpeech/SynthesizeSpeech', - request_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.FromString, + self.SynthesizeSpeech = channel.unary_unary( + "/google.cloud.texttospeech.v1beta1.TextToSpeech/SynthesizeSpeech", + request_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.FromString, ) class TextToSpeechServicer(object): - """Service that implements Google Cloud Text-to-Speech API. + """Service that implements Google Cloud Text-to-Speech API. """ - def ListVoices(self, request, context): - """Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice] + def ListVoices(self, request, context): + """Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice] supported for synthesis. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SynthesizeSpeech(self, request, context): - """Synthesizes speech synchronously: receive results after all text input + def SynthesizeSpeech(self, request, context): + """Synthesizes speech synchronously: receive results after all text input has been processed. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_TextToSpeechServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListVoices': grpc.unary_unary_rpc_method_handler( - servicer.ListVoices, - request_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.FromString, - response_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.SerializeToString, - ), - 'SynthesizeSpeech': grpc.unary_unary_rpc_method_handler( - servicer.SynthesizeSpeech, - request_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.FromString, - response_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.texttospeech.v1beta1.TextToSpeech', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListVoices": grpc.unary_unary_rpc_method_handler( + servicer.ListVoices, + request_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesRequest.FromString, + response_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.ListVoicesResponse.SerializeToString, + ), + "SynthesizeSpeech": grpc.unary_unary_rpc_method_handler( + servicer.SynthesizeSpeech, + request_deserializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechRequest.FromString, + response_serializer=google_dot_cloud_dot_texttospeech__v1beta1_dot_proto_dot_cloud__tts__pb2.SynthesizeSpeechResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.texttospeech.v1beta1.TextToSpeech", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/trace/google/cloud/trace_v1/proto/trace_pb2.py b/trace/google/cloud/trace_v1/proto/trace_pb2.py index c200c051a32ae..6b1ab8237b1af 100644 --- a/trace/google/cloud/trace_v1/proto/trace_pb2.py +++ b/trace/google/cloud/trace_v1/proto/trace_pb2.py @@ -3,12 +3,14 @@ # source: google/devtools/cloudtrace_v1/proto/trace.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,481 +22,760 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/cloudtrace_v1/proto/trace.proto', - package='google.devtools.cloudtrace.v1', - syntax='proto3', - serialized_pb=_b('\n/google/devtools/cloudtrace_v1/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"f\n\x05Trace\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\x12\x37\n\x05spans\x18\x03 \x03(\x0b\x32(.google.devtools.cloudtrace.v1.TraceSpan\">\n\x06Traces\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\"\x9d\x03\n\tTraceSpan\x12\x0f\n\x07span_id\x18\x01 \x01(\x06\x12?\n\x04kind\x18\x02 \x01(\x0e\x32\x31.google.devtools.cloudtrace.v1.TraceSpan.SpanKind\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eparent_span_id\x18\x06 \x01(\x06\x12\x44\n\x06labels\x18\x07 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRPC_SERVER\x10\x01\x12\x0e\n\nRPC_CLIENT\x10\x02\"\xe7\x02\n\x11ListTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12G\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\x12\x10\n\x08order_by\x18\x08 \x01(\t\"N\n\x08ViewType\x12\x19\n\x15VIEW_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x0c\n\x08ROOTSPAN\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03\"c\n\x12ListTracesResponse\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"7\n\x0fGetTraceRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\"_\n\x12PatchTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x35\n\x06traces\x18\x02 \x01(\x0b\x32%.google.devtools.cloudtrace.v1.Traces2\xd1\x03\n\x0cTraceService\x12\x9b\x01\n\nListTraces\x12\x30.google.devtools.cloudtrace.v1.ListTracesRequest\x1a\x31.google.devtools.cloudtrace.v1.ListTracesResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /v1/projects/{project_id}/traces\x12\x95\x01\n\x08GetTrace\x12..google.devtools.cloudtrace.v1.GetTraceRequest\x1a$.google.devtools.cloudtrace.v1.Trace\"3\x82\xd3\xe4\x93\x02-\x12+/v1/projects/{project_id}/traces/{trace_id}\x12\x8a\x01\n\x0bPatchTraces\x12\x31.google.devtools.cloudtrace.v1.PatchTracesRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02*2 /v1/projects/{project_id}/traces:\x06tracesB\xaa\x01\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V1\xca\x02\x15Google\\Cloud\\Trace\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/devtools/cloudtrace_v1/proto/trace.proto", + package="google.devtools.cloudtrace.v1", + syntax="proto3", + serialized_pb=_b( + '\n/google/devtools/cloudtrace_v1/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"f\n\x05Trace\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\x12\x37\n\x05spans\x18\x03 \x03(\x0b\x32(.google.devtools.cloudtrace.v1.TraceSpan">\n\x06Traces\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace"\x9d\x03\n\tTraceSpan\x12\x0f\n\x07span_id\x18\x01 \x01(\x06\x12?\n\x04kind\x18\x02 \x01(\x0e\x32\x31.google.devtools.cloudtrace.v1.TraceSpan.SpanKind\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eparent_span_id\x18\x06 \x01(\x06\x12\x44\n\x06labels\x18\x07 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"E\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRPC_SERVER\x10\x01\x12\x0e\n\nRPC_CLIENT\x10\x02"\xe7\x02\n\x11ListTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12G\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\x12\x10\n\x08order_by\x18\x08 \x01(\t"N\n\x08ViewType\x12\x19\n\x15VIEW_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x0c\n\x08ROOTSPAN\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03"c\n\x12ListTracesResponse\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"7\n\x0fGetTraceRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t"_\n\x12PatchTracesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x35\n\x06traces\x18\x02 \x01(\x0b\x32%.google.devtools.cloudtrace.v1.Traces2\xd1\x03\n\x0cTraceService\x12\x9b\x01\n\nListTraces\x12\x30.google.devtools.cloudtrace.v1.ListTracesRequest\x1a\x31.google.devtools.cloudtrace.v1.ListTracesResponse"(\x82\xd3\xe4\x93\x02"\x12 /v1/projects/{project_id}/traces\x12\x95\x01\n\x08GetTrace\x12..google.devtools.cloudtrace.v1.GetTraceRequest\x1a$.google.devtools.cloudtrace.v1.Trace"3\x82\xd3\xe4\x93\x02-\x12+/v1/projects/{project_id}/traces/{trace_id}\x12\x8a\x01\n\x0bPatchTraces\x12\x31.google.devtools.cloudtrace.v1.PatchTracesRequest\x1a\x16.google.protobuf.Empty"0\x82\xd3\xe4\x93\x02*2 /v1/projects/{project_id}/traces:\x06tracesB\xaa\x01\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V1\xca\x02\x15Google\\Cloud\\Trace\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _TRACESPAN_SPANKIND = _descriptor.EnumDescriptor( - name='SpanKind', - full_name='google.devtools.cloudtrace.v1.TraceSpan.SpanKind', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SPAN_KIND_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RPC_SERVER', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RPC_CLIENT', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=687, - serialized_end=756, + name="SpanKind", + full_name="google.devtools.cloudtrace.v1.TraceSpan.SpanKind", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SPAN_KIND_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RPC_SERVER", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RPC_CLIENT", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=687, + serialized_end=756, ) _sym_db.RegisterEnumDescriptor(_TRACESPAN_SPANKIND) _LISTTRACESREQUEST_VIEWTYPE = _descriptor.EnumDescriptor( - name='ViewType', - full_name='google.devtools.cloudtrace.v1.ListTracesRequest.ViewType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VIEW_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MINIMAL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ROOTSPAN', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPLETE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1040, - serialized_end=1118, + name="ViewType", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.ViewType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VIEW_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MINIMAL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ROOTSPAN", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPLETE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1040, + serialized_end=1118, ) _sym_db.RegisterEnumDescriptor(_LISTTRACESREQUEST_VIEWTYPE) _TRACE = _descriptor.Descriptor( - name='Trace', - full_name='google.devtools.cloudtrace.v1.Trace', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.Trace.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trace_id', full_name='google.devtools.cloudtrace.v1.Trace.trace_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spans', full_name='google.devtools.cloudtrace.v1.Trace.spans', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=174, - serialized_end=276, + name="Trace", + full_name="google.devtools.cloudtrace.v1.Trace", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.Trace.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trace_id", + full_name="google.devtools.cloudtrace.v1.Trace.trace_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spans", + full_name="google.devtools.cloudtrace.v1.Trace.spans", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=174, + serialized_end=276, ) _TRACES = _descriptor.Descriptor( - name='Traces', - full_name='google.devtools.cloudtrace.v1.Traces', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='traces', full_name='google.devtools.cloudtrace.v1.Traces.traces', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=278, - serialized_end=340, + name="Traces", + full_name="google.devtools.cloudtrace.v1.Traces", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="traces", + full_name="google.devtools.cloudtrace.v1.Traces.traces", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=278, + serialized_end=340, ) _TRACESPAN_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=640, - serialized_end=685, + name="LabelsEntry", + full_name="google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=640, + serialized_end=685, ) _TRACESPAN = _descriptor.Descriptor( - name='TraceSpan', - full_name='google.devtools.cloudtrace.v1.TraceSpan', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='span_id', full_name='google.devtools.cloudtrace.v1.TraceSpan.span_id', index=0, - number=1, type=6, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='kind', full_name='google.devtools.cloudtrace.v1.TraceSpan.kind', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.devtools.cloudtrace.v1.TraceSpan.name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.devtools.cloudtrace.v1.TraceSpan.start_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.devtools.cloudtrace.v1.TraceSpan.end_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_span_id', full_name='google.devtools.cloudtrace.v1.TraceSpan.parent_span_id', index=5, - number=6, type=6, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.devtools.cloudtrace.v1.TraceSpan.labels', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TRACESPAN_LABELSENTRY, ], - enum_types=[ - _TRACESPAN_SPANKIND, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=343, - serialized_end=756, + name="TraceSpan", + full_name="google.devtools.cloudtrace.v1.TraceSpan", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="span_id", + full_name="google.devtools.cloudtrace.v1.TraceSpan.span_id", + index=0, + number=1, + type=6, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="kind", + full_name="google.devtools.cloudtrace.v1.TraceSpan.kind", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.devtools.cloudtrace.v1.TraceSpan.name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.devtools.cloudtrace.v1.TraceSpan.start_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.devtools.cloudtrace.v1.TraceSpan.end_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent_span_id", + full_name="google.devtools.cloudtrace.v1.TraceSpan.parent_span_id", + index=5, + number=6, + type=6, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.devtools.cloudtrace.v1.TraceSpan.labels", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_TRACESPAN_LABELSENTRY], + enum_types=[_TRACESPAN_SPANKIND], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=343, + serialized_end=756, ) _LISTTRACESREQUEST = _descriptor.Descriptor( - name='ListTracesRequest', - full_name='google.devtools.cloudtrace.v1.ListTracesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.view', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.start_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.end_time', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.filter', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.devtools.cloudtrace.v1.ListTracesRequest.order_by', index=7, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTTRACESREQUEST_VIEWTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=759, - serialized_end=1118, + name="ListTracesRequest", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.view", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.start_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.end_time", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.filter", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.devtools.cloudtrace.v1.ListTracesRequest.order_by", + index=7, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_LISTTRACESREQUEST_VIEWTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=759, + serialized_end=1118, ) _LISTTRACESRESPONSE = _descriptor.Descriptor( - name='ListTracesResponse', - full_name='google.devtools.cloudtrace.v1.ListTracesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='traces', full_name='google.devtools.cloudtrace.v1.ListTracesResponse.traces', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.devtools.cloudtrace.v1.ListTracesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1120, - serialized_end=1219, + name="ListTracesResponse", + full_name="google.devtools.cloudtrace.v1.ListTracesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="traces", + full_name="google.devtools.cloudtrace.v1.ListTracesResponse.traces", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.devtools.cloudtrace.v1.ListTracesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1120, + serialized_end=1219, ) _GETTRACEREQUEST = _descriptor.Descriptor( - name='GetTraceRequest', - full_name='google.devtools.cloudtrace.v1.GetTraceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.GetTraceRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trace_id', full_name='google.devtools.cloudtrace.v1.GetTraceRequest.trace_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1221, - serialized_end=1276, + name="GetTraceRequest", + full_name="google.devtools.cloudtrace.v1.GetTraceRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.GetTraceRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trace_id", + full_name="google.devtools.cloudtrace.v1.GetTraceRequest.trace_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1221, + serialized_end=1276, ) _PATCHTRACESREQUEST = _descriptor.Descriptor( - name='PatchTracesRequest', - full_name='google.devtools.cloudtrace.v1.PatchTracesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='project_id', full_name='google.devtools.cloudtrace.v1.PatchTracesRequest.project_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='traces', full_name='google.devtools.cloudtrace.v1.PatchTracesRequest.traces', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1278, - serialized_end=1373, + name="PatchTracesRequest", + full_name="google.devtools.cloudtrace.v1.PatchTracesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.devtools.cloudtrace.v1.PatchTracesRequest.project_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="traces", + full_name="google.devtools.cloudtrace.v1.PatchTracesRequest.traces", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1278, + serialized_end=1373, ) -_TRACE.fields_by_name['spans'].message_type = _TRACESPAN -_TRACES.fields_by_name['traces'].message_type = _TRACE +_TRACE.fields_by_name["spans"].message_type = _TRACESPAN +_TRACES.fields_by_name["traces"].message_type = _TRACE _TRACESPAN_LABELSENTRY.containing_type = _TRACESPAN -_TRACESPAN.fields_by_name['kind'].enum_type = _TRACESPAN_SPANKIND -_TRACESPAN.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRACESPAN.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TRACESPAN.fields_by_name['labels'].message_type = _TRACESPAN_LABELSENTRY +_TRACESPAN.fields_by_name["kind"].enum_type = _TRACESPAN_SPANKIND +_TRACESPAN.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRACESPAN.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TRACESPAN.fields_by_name["labels"].message_type = _TRACESPAN_LABELSENTRY _TRACESPAN_SPANKIND.containing_type = _TRACESPAN -_LISTTRACESREQUEST.fields_by_name['view'].enum_type = _LISTTRACESREQUEST_VIEWTYPE -_LISTTRACESREQUEST.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LISTTRACESREQUEST.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTTRACESREQUEST.fields_by_name["view"].enum_type = _LISTTRACESREQUEST_VIEWTYPE +_LISTTRACESREQUEST.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTTRACESREQUEST.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _LISTTRACESREQUEST_VIEWTYPE.containing_type = _LISTTRACESREQUEST -_LISTTRACESRESPONSE.fields_by_name['traces'].message_type = _TRACE -_PATCHTRACESREQUEST.fields_by_name['traces'].message_type = _TRACES -DESCRIPTOR.message_types_by_name['Trace'] = _TRACE -DESCRIPTOR.message_types_by_name['Traces'] = _TRACES -DESCRIPTOR.message_types_by_name['TraceSpan'] = _TRACESPAN -DESCRIPTOR.message_types_by_name['ListTracesRequest'] = _LISTTRACESREQUEST -DESCRIPTOR.message_types_by_name['ListTracesResponse'] = _LISTTRACESRESPONSE -DESCRIPTOR.message_types_by_name['GetTraceRequest'] = _GETTRACEREQUEST -DESCRIPTOR.message_types_by_name['PatchTracesRequest'] = _PATCHTRACESREQUEST +_LISTTRACESRESPONSE.fields_by_name["traces"].message_type = _TRACE +_PATCHTRACESREQUEST.fields_by_name["traces"].message_type = _TRACES +DESCRIPTOR.message_types_by_name["Trace"] = _TRACE +DESCRIPTOR.message_types_by_name["Traces"] = _TRACES +DESCRIPTOR.message_types_by_name["TraceSpan"] = _TRACESPAN +DESCRIPTOR.message_types_by_name["ListTracesRequest"] = _LISTTRACESREQUEST +DESCRIPTOR.message_types_by_name["ListTracesResponse"] = _LISTTRACESRESPONSE +DESCRIPTOR.message_types_by_name["GetTraceRequest"] = _GETTRACEREQUEST +DESCRIPTOR.message_types_by_name["PatchTracesRequest"] = _PATCHTRACESREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Trace = _reflection.GeneratedProtocolMessageType('Trace', (_message.Message,), dict( - DESCRIPTOR = _TRACE, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """A trace describes how long it takes for an application to perform an +Trace = _reflection.GeneratedProtocolMessageType( + "Trace", + (_message.Message,), + dict( + DESCRIPTOR=_TRACE, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation. @@ -509,37 +790,45 @@ spans: Collection of spans in the trace. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Trace) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Trace) + ), +) _sym_db.RegisterMessage(Trace) -Traces = _reflection.GeneratedProtocolMessageType('Traces', (_message.Message,), dict( - DESCRIPTOR = _TRACES, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """List of new or updated traces. +Traces = _reflection.GeneratedProtocolMessageType( + "Traces", + (_message.Message,), + dict( + DESCRIPTOR=_TRACES, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""List of new or updated traces. Attributes: traces: List of traces. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Traces) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.Traces) + ), +) _sym_db.RegisterMessage(Traces) -TraceSpan = _reflection.GeneratedProtocolMessageType('TraceSpan', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _TRACESPAN_LABELSENTRY, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry) - )) - , - DESCRIPTOR = _TRACESPAN, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """A span represents a single timed event within a trace. Spans can be +TraceSpan = _reflection.GeneratedProtocolMessageType( + "TraceSpan", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_TRACESPAN_LABELSENTRY, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2" + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry) + ), + ), + DESCRIPTOR=_TRACESPAN, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""A span represents a single timed event within a trace. Spans can be nested and form a trace tree. Often, a trace contains a root span that describes the end-to-end latency of an operation and, optionally, one or more subspans for its suboperations. Spans do not need to be contiguous. @@ -589,16 +878,19 @@ ``/http/user_agent`` - ``/pid`` - ``/stacktrace`` - ``/tid`` """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.TraceSpan) + ), +) _sym_db.RegisterMessage(TraceSpan) _sym_db.RegisterMessage(TraceSpan.LabelsEntry) -ListTracesRequest = _reflection.GeneratedProtocolMessageType('ListTracesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTRACESREQUEST, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The request message for the ``ListTraces`` method. All fields are +ListTracesRequest = _reflection.GeneratedProtocolMessageType( + "ListTracesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRACESREQUEST, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The request message for the ``ListTraces`` method. All fields are required unless specified. @@ -661,15 +953,18 @@ (for example, ``name desc``). Only one sort field is permitted. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesRequest) + ), +) _sym_db.RegisterMessage(ListTracesRequest) -ListTracesResponse = _reflection.GeneratedProtocolMessageType('ListTracesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTRACESRESPONSE, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The response message for the ``ListTraces`` method. +ListTracesResponse = _reflection.GeneratedProtocolMessageType( + "ListTracesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTRACESRESPONSE, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The response message for the ``ListTraces`` method. Attributes: @@ -680,15 +975,18 @@ the request and that this value should be passed to the next request to continue retrieving additional traces. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesResponse) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesResponse) + ), +) _sym_db.RegisterMessage(ListTracesResponse) -GetTraceRequest = _reflection.GeneratedProtocolMessageType('GetTraceRequest', (_message.Message,), dict( - DESCRIPTOR = _GETTRACEREQUEST, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The request message for the ``GetTrace`` method. +GetTraceRequest = _reflection.GeneratedProtocolMessageType( + "GetTraceRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETTRACEREQUEST, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The request message for the ``GetTrace`` method. Attributes: @@ -697,15 +995,18 @@ trace_id: ID of the trace to return. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.GetTraceRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.GetTraceRequest) + ), +) _sym_db.RegisterMessage(GetTraceRequest) -PatchTracesRequest = _reflection.GeneratedProtocolMessageType('PatchTracesRequest', (_message.Message,), dict( - DESCRIPTOR = _PATCHTRACESREQUEST, - __module__ = 'google.devtools.cloudtrace_v1.proto.trace_pb2' - , - __doc__ = """The request message for the ``PatchTraces`` method. +PatchTracesRequest = _reflection.GeneratedProtocolMessageType( + "PatchTracesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_PATCHTRACESREQUEST, + __module__="google.devtools.cloudtrace_v1.proto.trace_pb2", + __doc__="""The request message for the ``PatchTraces`` method. Attributes: @@ -714,55 +1015,77 @@ traces: The body of the message. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.PatchTracesRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.PatchTracesRequest) + ), +) _sym_db.RegisterMessage(PatchTracesRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\252\002\025Google.Cloud.Trace.V1\312\002\025Google\\Cloud\\Trace\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v1;cloudtrace\252\002\025Google.Cloud.Trace.V1\312\002\025Google\\Cloud\\Trace\\V1" + ), +) _TRACESPAN_LABELSENTRY.has_options = True -_TRACESPAN_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_TRACESPAN_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _TRACESERVICE = _descriptor.ServiceDescriptor( - name='TraceService', - full_name='google.devtools.cloudtrace.v1.TraceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1376, - serialized_end=1841, - methods=[ - _descriptor.MethodDescriptor( - name='ListTraces', - full_name='google.devtools.cloudtrace.v1.TraceService.ListTraces', + name="TraceService", + full_name="google.devtools.cloudtrace.v1.TraceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTTRACESREQUEST, - output_type=_LISTTRACESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\"\022 /v1/projects/{project_id}/traces')), - ), - _descriptor.MethodDescriptor( - name='GetTrace', - full_name='google.devtools.cloudtrace.v1.TraceService.GetTrace', - index=1, - containing_service=None, - input_type=_GETTRACEREQUEST, - output_type=_TRACE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002-\022+/v1/projects/{project_id}/traces/{trace_id}')), - ), - _descriptor.MethodDescriptor( - name='PatchTraces', - full_name='google.devtools.cloudtrace.v1.TraceService.PatchTraces', - index=2, - containing_service=None, - input_type=_PATCHTRACESREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002*2 /v1/projects/{project_id}/traces:\006traces')), - ), -]) + options=None, + serialized_start=1376, + serialized_end=1841, + methods=[ + _descriptor.MethodDescriptor( + name="ListTraces", + full_name="google.devtools.cloudtrace.v1.TraceService.ListTraces", + index=0, + containing_service=None, + input_type=_LISTTRACESREQUEST, + output_type=_LISTTRACESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002"\022 /v1/projects/{project_id}/traces'), + ), + ), + _descriptor.MethodDescriptor( + name="GetTrace", + full_name="google.devtools.cloudtrace.v1.TraceService.GetTrace", + index=1, + containing_service=None, + input_type=_GETTRACEREQUEST, + output_type=_TRACE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002-\022+/v1/projects/{project_id}/traces/{trace_id}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="PatchTraces", + full_name="google.devtools.cloudtrace.v1.TraceService.PatchTraces", + index=2, + containing_service=None, + input_type=_PATCHTRACESREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002*2 /v1/projects/{project_id}/traces:\006traces" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_TRACESERVICE) -DESCRIPTOR.services_by_name['TraceService'] = _TRACESERVICE +DESCRIPTOR.services_by_name["TraceService"] = _TRACESERVICE # @@protoc_insertion_point(module_scope) diff --git a/trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py b/trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py index 71f0d876ebcf5..e15c63100fd00 100644 --- a/trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py +++ b/trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py @@ -1,93 +1,96 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.trace_v1.proto import trace_pb2 as google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2 +from google.cloud.trace_v1.proto import ( + trace_pb2 as google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class TraceServiceStub(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. Spans for a single trace may span multiple services. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListTraces = channel.unary_unary( - '/google.devtools.cloudtrace.v1.TraceService/ListTraces', - request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.FromString, + self.ListTraces = channel.unary_unary( + "/google.devtools.cloudtrace.v1.TraceService/ListTraces", + request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.FromString, ) - self.GetTrace = channel.unary_unary( - '/google.devtools.cloudtrace.v1.TraceService/GetTrace', - request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.FromString, + self.GetTrace = channel.unary_unary( + "/google.devtools.cloudtrace.v1.TraceService/GetTrace", + request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.SerializeToString, + response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.FromString, ) - self.PatchTraces = channel.unary_unary( - '/google.devtools.cloudtrace.v1.TraceService/PatchTraces', - request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.PatchTraces = channel.unary_unary( + "/google.devtools.cloudtrace.v1.TraceService/PatchTraces", + request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class TraceServiceServicer(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. Spans for a single trace may span multiple services. """ - def ListTraces(self, request, context): - """Returns of a list of traces that match the specified filter conditions. + def ListTraces(self, request, context): + """Returns of a list of traces that match the specified filter conditions. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetTrace(self, request, context): - """Gets a single trace by its ID. + def GetTrace(self, request, context): + """Gets a single trace by its ID. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def PatchTraces(self, request, context): - """Sends new traces to Stackdriver Trace or updates existing traces. If the ID + def PatchTraces(self, request, context): + """Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_TraceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListTraces': grpc.unary_unary_rpc_method_handler( - servicer.ListTraces, - request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.SerializeToString, - ), - 'GetTrace': grpc.unary_unary_rpc_method_handler( - servicer.GetTrace, - request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.SerializeToString, - ), - 'PatchTraces': grpc.unary_unary_rpc_method_handler( - servicer.PatchTraces, - request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.devtools.cloudtrace.v1.TraceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListTraces": grpc.unary_unary_rpc_method_handler( + servicer.ListTraces, + request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.FromString, + response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.SerializeToString, + ), + "GetTrace": grpc.unary_unary_rpc_method_handler( + servicer.GetTrace, + request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.FromString, + response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.SerializeToString, + ), + "PatchTraces": grpc.unary_unary_rpc_method_handler( + servicer.PatchTraces, + request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.devtools.cloudtrace.v1.TraceService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/trace/google/cloud/trace_v2/proto/trace_pb2.py b/trace/google/cloud/trace_v2/proto/trace_pb2.py index 087ab5d6216b7..7115abbe8538f 100644 --- a/trace/google/cloud/trace_v2/proto/trace_pb2.py +++ b/trace/google/cloud/trace_v2/proto/trace_pb2.py @@ -3,12 +3,14 @@ # source: google/devtools/cloudtrace_v2/proto/trace.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,876 +23,1473 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/cloudtrace_v2/proto/trace.proto', - package='google.devtools.cloudtrace.v2', - syntax='proto3', - serialized_pb=_b('\n/google/devtools/cloudtrace_v2/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xc5\x0f\n\x04Span\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12\x16\n\x0eparent_span_id\x18\x03 \x01(\t\x12\x46\n\x0c\x64isplay_name\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\nattributes\x18\x07 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x12>\n\x0bstack_trace\x18\x08 \x01(\x0b\x32).google.devtools.cloudtrace.v2.StackTrace\x12\x43\n\x0btime_events\x18\t \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.TimeEvents\x12\x38\n\x05links\x18\n \x01(\x0b\x32).google.devtools.cloudtrace.v2.Span.Links\x12\"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x1bsame_process_as_parent_span\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x35\n\x10\x63hild_span_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x1a\xeb\x01\n\nAttributes\x12W\n\rattribute_map\x18\x01 \x03(\x0b\x32@.google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\x05\x1a\x62\n\x11\x41ttributeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.devtools.cloudtrace.v2.AttributeValue:\x02\x38\x01\x1a\xdf\x04\n\tTimeEvent\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\nannotation\x18\x02 \x01(\x0b\x32\x38.google.devtools.cloudtrace.v2.Span.TimeEvent.AnnotationH\x00\x12S\n\rmessage_event\x18\x03 \x01(\x0b\x32:.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEventH\x00\x1a\x97\x01\n\nAnnotation\x12\x45\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\nattributes\x18\x02 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x1a\xdf\x01\n\x0cMessageEvent\x12M\n\x04type\x18\x01 \x01(\x0e\x32?.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type\x12\n\n\x02id\x18\x02 \x01(\x03\x12\x1f\n\x17uncompressed_size_bytes\x18\x03 \x01(\x03\x12\x1d\n\x15\x63ompressed_size_bytes\x18\x04 \x01(\x03\"4\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SENT\x10\x01\x12\x0c\n\x08RECEIVED\x10\x02\x42\x07\n\x05value\x1a\x98\x01\n\nTimeEvents\x12\x41\n\ntime_event\x18\x01 \x03(\x0b\x32-.google.devtools.cloudtrace.v2.Span.TimeEvent\x12!\n\x19\x64ropped_annotations_count\x18\x02 \x01(\x05\x12$\n\x1c\x64ropped_message_events_count\x18\x03 \x01(\x05\x1a\xf7\x01\n\x04Link\x12\x10\n\x08trace_id\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12;\n\x04type\x18\x03 \x01(\x0e\x32-.google.devtools.cloudtrace.v2.Span.Link.Type\x12\x42\n\nattributes\x18\x04 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\"K\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43HILD_LINKED_SPAN\x10\x01\x12\x16\n\x12PARENT_LINKED_SPAN\x10\x02\x1a\\\n\x05Links\x12\x36\n\x04link\x18\x01 \x03(\x0b\x32(.google.devtools.cloudtrace.v2.Span.Link\x12\x1b\n\x13\x64ropped_links_count\x18\x02 \x01(\x05\"\x8e\x01\n\x0e\x41ttributeValue\x12H\n\x0cstring_value\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableStringH\x00\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x42\x07\n\x05value\"\x89\x05\n\nStackTrace\x12K\n\x0cstack_frames\x18\x01 \x01(\x0b\x32\x35.google.devtools.cloudtrace.v2.StackTrace.StackFrames\x12\x1b\n\x13stack_trace_hash_id\x18\x02 \x01(\x03\x1a\x9e\x03\n\nStackFrame\x12G\n\rfunction_name\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12P\n\x16original_function_name\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x43\n\tfile_name\x18\x03 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x13\n\x0bline_number\x18\x04 \x01(\x03\x12\x15\n\rcolumn_number\x18\x05 \x01(\x03\x12:\n\x0bload_module\x18\x06 \x01(\x0b\x32%.google.devtools.cloudtrace.v2.Module\x12H\n\x0esource_version\x18\x07 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x1ap\n\x0bStackFrames\x12\x43\n\x05\x66rame\x18\x01 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v2.StackTrace.StackFrame\x12\x1c\n\x14\x64ropped_frames_count\x18\x02 \x01(\x05\"\x8e\x01\n\x06Module\x12@\n\x06module\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\x08\x62uild_id\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\"@\n\x11TruncatableString\x12\r\n\x05value\x18\x01 \x01(\t\x12\x1c\n\x14truncated_byte_count\x18\x02 \x01(\x05\x42\xaa\x01\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/devtools/cloudtrace_v2/proto/trace.proto", + package="google.devtools.cloudtrace.v2", + syntax="proto3", + serialized_pb=_b( + '\n/google/devtools/cloudtrace_v2/proto/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xc5\x0f\n\x04Span\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12\x16\n\x0eparent_span_id\x18\x03 \x01(\t\x12\x46\n\x0c\x64isplay_name\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\nattributes\x18\x07 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x12>\n\x0bstack_trace\x18\x08 \x01(\x0b\x32).google.devtools.cloudtrace.v2.StackTrace\x12\x43\n\x0btime_events\x18\t \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.TimeEvents\x12\x38\n\x05links\x18\n \x01(\x0b\x32).google.devtools.cloudtrace.v2.Span.Links\x12"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x1bsame_process_as_parent_span\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x35\n\x10\x63hild_span_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x1a\xeb\x01\n\nAttributes\x12W\n\rattribute_map\x18\x01 \x03(\x0b\x32@.google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\x05\x1a\x62\n\x11\x41ttributeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.devtools.cloudtrace.v2.AttributeValue:\x02\x38\x01\x1a\xdf\x04\n\tTimeEvent\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\nannotation\x18\x02 \x01(\x0b\x32\x38.google.devtools.cloudtrace.v2.Span.TimeEvent.AnnotationH\x00\x12S\n\rmessage_event\x18\x03 \x01(\x0b\x32:.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEventH\x00\x1a\x97\x01\n\nAnnotation\x12\x45\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\nattributes\x18\x02 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes\x1a\xdf\x01\n\x0cMessageEvent\x12M\n\x04type\x18\x01 \x01(\x0e\x32?.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type\x12\n\n\x02id\x18\x02 \x01(\x03\x12\x1f\n\x17uncompressed_size_bytes\x18\x03 \x01(\x03\x12\x1d\n\x15\x63ompressed_size_bytes\x18\x04 \x01(\x03"4\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SENT\x10\x01\x12\x0c\n\x08RECEIVED\x10\x02\x42\x07\n\x05value\x1a\x98\x01\n\nTimeEvents\x12\x41\n\ntime_event\x18\x01 \x03(\x0b\x32-.google.devtools.cloudtrace.v2.Span.TimeEvent\x12!\n\x19\x64ropped_annotations_count\x18\x02 \x01(\x05\x12$\n\x1c\x64ropped_message_events_count\x18\x03 \x01(\x05\x1a\xf7\x01\n\x04Link\x12\x10\n\x08trace_id\x18\x01 \x01(\t\x12\x0f\n\x07span_id\x18\x02 \x01(\t\x12;\n\x04type\x18\x03 \x01(\x0e\x32-.google.devtools.cloudtrace.v2.Span.Link.Type\x12\x42\n\nattributes\x18\x04 \x01(\x0b\x32..google.devtools.cloudtrace.v2.Span.Attributes"K\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43HILD_LINKED_SPAN\x10\x01\x12\x16\n\x12PARENT_LINKED_SPAN\x10\x02\x1a\\\n\x05Links\x12\x36\n\x04link\x18\x01 \x03(\x0b\x32(.google.devtools.cloudtrace.v2.Span.Link\x12\x1b\n\x13\x64ropped_links_count\x18\x02 \x01(\x05"\x8e\x01\n\x0e\x41ttributeValue\x12H\n\x0cstring_value\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableStringH\x00\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x42\x07\n\x05value"\x89\x05\n\nStackTrace\x12K\n\x0cstack_frames\x18\x01 \x01(\x0b\x32\x35.google.devtools.cloudtrace.v2.StackTrace.StackFrames\x12\x1b\n\x13stack_trace_hash_id\x18\x02 \x01(\x03\x1a\x9e\x03\n\nStackFrame\x12G\n\rfunction_name\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12P\n\x16original_function_name\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x43\n\tfile_name\x18\x03 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x13\n\x0bline_number\x18\x04 \x01(\x03\x12\x15\n\rcolumn_number\x18\x05 \x01(\x03\x12:\n\x0bload_module\x18\x06 \x01(\x0b\x32%.google.devtools.cloudtrace.v2.Module\x12H\n\x0esource_version\x18\x07 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x1ap\n\x0bStackFrames\x12\x43\n\x05\x66rame\x18\x01 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v2.StackTrace.StackFrame\x12\x1c\n\x14\x64ropped_frames_count\x18\x02 \x01(\x05"\x8e\x01\n\x06Module\x12@\n\x06module\x18\x01 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString\x12\x42\n\x08\x62uild_id\x18\x02 \x01(\x0b\x32\x30.google.devtools.cloudtrace.v2.TruncatableString"@\n\x11TruncatableString\x12\r\n\x05value\x18\x01 \x01(\t\x12\x1c\n\x14truncated_byte_count\x18\x02 \x01(\x05\x42\xaa\x01\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SENT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RECEIVED', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1632, - serialized_end=1684, + name="Type", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SENT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RECEIVED", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1632, + serialized_end=1684, ) _sym_db.RegisterEnumDescriptor(_SPAN_TIMEEVENT_MESSAGEEVENT_TYPE) _SPAN_LINK_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.devtools.cloudtrace.v2.Span.Link.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHILD_LINKED_SPAN', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARENT_LINKED_SPAN', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2023, - serialized_end=2098, + name="Type", + full_name="google.devtools.cloudtrace.v2.Span.Link.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHILD_LINKED_SPAN", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PARENT_LINKED_SPAN", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2023, + serialized_end=2098, ) _sym_db.RegisterEnumDescriptor(_SPAN_LINK_TYPE) _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY = _descriptor.Descriptor( - name='AttributeMapEntry', - full_name='google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=985, - serialized_end=1083, + name="AttributeMapEntry", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=985, + serialized_end=1083, ) _SPAN_ATTRIBUTES = _descriptor.Descriptor( - name='Attributes', - full_name='google.devtools.cloudtrace.v2.Span.Attributes', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='attribute_map', full_name='google.devtools.cloudtrace.v2.Span.Attributes.attribute_map', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_attributes_count', full_name='google.devtools.cloudtrace.v2.Span.Attributes.dropped_attributes_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=848, - serialized_end=1083, + name="Attributes", + full_name="google.devtools.cloudtrace.v2.Span.Attributes", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="attribute_map", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.attribute_map", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_attributes_count", + full_name="google.devtools.cloudtrace.v2.Span.Attributes.dropped_attributes_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=848, + serialized_end=1083, ) _SPAN_TIMEEVENT_ANNOTATION = _descriptor.Descriptor( - name='Annotation', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='description', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.description', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.attributes', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1307, - serialized_end=1458, + name="Annotation", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="description", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.description", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.attributes", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1307, + serialized_end=1458, ) _SPAN_TIMEEVENT_MESSAGEEVENT = _descriptor.Descriptor( - name='MessageEvent', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.id', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uncompressed_size_bytes', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.uncompressed_size_bytes', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='compressed_size_bytes', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.compressed_size_bytes', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1461, - serialized_end=1684, + name="MessageEvent", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="id", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.id", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uncompressed_size_bytes", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.uncompressed_size_bytes", + index=2, + number=3, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="compressed_size_bytes", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.compressed_size_bytes", + index=3, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_SPAN_TIMEEVENT_MESSAGEEVENT_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1461, + serialized_end=1684, ) _SPAN_TIMEEVENT = _descriptor.Descriptor( - name='TimeEvent', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvent', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='annotation', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.annotation', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_event', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.message_event', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPAN_TIMEEVENT_ANNOTATION, _SPAN_TIMEEVENT_MESSAGEEVENT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.Span.TimeEvent.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1086, - serialized_end=1693, + name="TimeEvent", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="annotation", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.annotation", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message_event", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.message_event", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SPAN_TIMEEVENT_ANNOTATION, _SPAN_TIMEEVENT_MESSAGEEVENT], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvent.value", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1086, + serialized_end=1693, ) _SPAN_TIMEEVENTS = _descriptor.Descriptor( - name='TimeEvents', - full_name='google.devtools.cloudtrace.v2.Span.TimeEvents', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_event', full_name='google.devtools.cloudtrace.v2.Span.TimeEvents.time_event', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_annotations_count', full_name='google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_annotations_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_message_events_count', full_name='google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_message_events_count', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1696, - serialized_end=1848, + name="TimeEvents", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_event", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents.time_event", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_annotations_count", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_annotations_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_message_events_count", + full_name="google.devtools.cloudtrace.v2.Span.TimeEvents.dropped_message_events_count", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1696, + serialized_end=1848, ) _SPAN_LINK = _descriptor.Descriptor( - name='Link', - full_name='google.devtools.cloudtrace.v2.Span.Link', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='trace_id', full_name='google.devtools.cloudtrace.v2.Span.Link.trace_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='span_id', full_name='google.devtools.cloudtrace.v2.Span.Link.span_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.devtools.cloudtrace.v2.Span.Link.type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.devtools.cloudtrace.v2.Span.Link.attributes', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SPAN_LINK_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1851, - serialized_end=2098, + name="Link", + full_name="google.devtools.cloudtrace.v2.Span.Link", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="trace_id", + full_name="google.devtools.cloudtrace.v2.Span.Link.trace_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="span_id", + full_name="google.devtools.cloudtrace.v2.Span.Link.span_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.devtools.cloudtrace.v2.Span.Link.type", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.devtools.cloudtrace.v2.Span.Link.attributes", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_SPAN_LINK_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1851, + serialized_end=2098, ) _SPAN_LINKS = _descriptor.Descriptor( - name='Links', - full_name='google.devtools.cloudtrace.v2.Span.Links', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='link', full_name='google.devtools.cloudtrace.v2.Span.Links.link', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_links_count', full_name='google.devtools.cloudtrace.v2.Span.Links.dropped_links_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2100, - serialized_end=2192, + name="Links", + full_name="google.devtools.cloudtrace.v2.Span.Links", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="link", + full_name="google.devtools.cloudtrace.v2.Span.Links.link", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_links_count", + full_name="google.devtools.cloudtrace.v2.Span.Links.dropped_links_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2100, + serialized_end=2192, ) _SPAN = _descriptor.Descriptor( - name='Span', - full_name='google.devtools.cloudtrace.v2.Span', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.devtools.cloudtrace.v2.Span.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='span_id', full_name='google.devtools.cloudtrace.v2.Span.span_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_span_id', full_name='google.devtools.cloudtrace.v2.Span.parent_span_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.devtools.cloudtrace.v2.Span.display_name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.devtools.cloudtrace.v2.Span.start_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.devtools.cloudtrace.v2.Span.end_time', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.devtools.cloudtrace.v2.Span.attributes', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stack_trace', full_name='google.devtools.cloudtrace.v2.Span.stack_trace', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_events', full_name='google.devtools.cloudtrace.v2.Span.time_events', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='links', full_name='google.devtools.cloudtrace.v2.Span.links', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.devtools.cloudtrace.v2.Span.status', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='same_process_as_parent_span', full_name='google.devtools.cloudtrace.v2.Span.same_process_as_parent_span', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='child_span_count', full_name='google.devtools.cloudtrace.v2.Span.child_span_count', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SPAN_ATTRIBUTES, _SPAN_TIMEEVENT, _SPAN_TIMEEVENTS, _SPAN_LINK, _SPAN_LINKS, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=203, - serialized_end=2192, + name="Span", + full_name="google.devtools.cloudtrace.v2.Span", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.devtools.cloudtrace.v2.Span.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="span_id", + full_name="google.devtools.cloudtrace.v2.Span.span_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent_span_id", + full_name="google.devtools.cloudtrace.v2.Span.parent_span_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.devtools.cloudtrace.v2.Span.display_name", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.devtools.cloudtrace.v2.Span.start_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.devtools.cloudtrace.v2.Span.end_time", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="attributes", + full_name="google.devtools.cloudtrace.v2.Span.attributes", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stack_trace", + full_name="google.devtools.cloudtrace.v2.Span.stack_trace", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_events", + full_name="google.devtools.cloudtrace.v2.Span.time_events", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="links", + full_name="google.devtools.cloudtrace.v2.Span.links", + index=9, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.devtools.cloudtrace.v2.Span.status", + index=10, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="same_process_as_parent_span", + full_name="google.devtools.cloudtrace.v2.Span.same_process_as_parent_span", + index=11, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="child_span_count", + full_name="google.devtools.cloudtrace.v2.Span.child_span_count", + index=12, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _SPAN_ATTRIBUTES, + _SPAN_TIMEEVENT, + _SPAN_TIMEEVENTS, + _SPAN_LINK, + _SPAN_LINKS, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=203, + serialized_end=2192, ) _ATTRIBUTEVALUE = _descriptor.Descriptor( - name='AttributeValue', - full_name='google.devtools.cloudtrace.v2.AttributeValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='string_value', full_name='google.devtools.cloudtrace.v2.AttributeValue.string_value', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='int_value', full_name='google.devtools.cloudtrace.v2.AttributeValue.int_value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bool_value', full_name='google.devtools.cloudtrace.v2.AttributeValue.bool_value', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.AttributeValue.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2195, - serialized_end=2337, + name="AttributeValue", + full_name="google.devtools.cloudtrace.v2.AttributeValue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="string_value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.string_value", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="int_value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.int_value", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bool_value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.bool_value", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.AttributeValue.value", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2195, + serialized_end=2337, ) _STACKTRACE_STACKFRAME = _descriptor.Descriptor( - name='StackFrame', - full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='function_name', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.function_name', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='original_function_name', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.original_function_name', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_name', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.file_name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='line_number', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.line_number', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='column_number', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.column_number', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='load_module', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.load_module', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_version', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrame.source_version', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2461, - serialized_end=2875, + name="StackFrame", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="function_name", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.function_name", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="original_function_name", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.original_function_name", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="file_name", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.file_name", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="line_number", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.line_number", + index=3, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="column_number", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.column_number", + index=4, + number=5, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="load_module", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.load_module", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source_version", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrame.source_version", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2461, + serialized_end=2875, ) _STACKTRACE_STACKFRAMES = _descriptor.Descriptor( - name='StackFrames', - full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrames', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='frame', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrames.frame', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dropped_frames_count', full_name='google.devtools.cloudtrace.v2.StackTrace.StackFrames.dropped_frames_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2877, - serialized_end=2989, + name="StackFrames", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrames", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="frame", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrames.frame", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="dropped_frames_count", + full_name="google.devtools.cloudtrace.v2.StackTrace.StackFrames.dropped_frames_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2877, + serialized_end=2989, ) _STACKTRACE = _descriptor.Descriptor( - name='StackTrace', - full_name='google.devtools.cloudtrace.v2.StackTrace', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stack_frames', full_name='google.devtools.cloudtrace.v2.StackTrace.stack_frames', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stack_trace_hash_id', full_name='google.devtools.cloudtrace.v2.StackTrace.stack_trace_hash_id', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_STACKTRACE_STACKFRAME, _STACKTRACE_STACKFRAMES, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2340, - serialized_end=2989, + name="StackTrace", + full_name="google.devtools.cloudtrace.v2.StackTrace", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="stack_frames", + full_name="google.devtools.cloudtrace.v2.StackTrace.stack_frames", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stack_trace_hash_id", + full_name="google.devtools.cloudtrace.v2.StackTrace.stack_trace_hash_id", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_STACKTRACE_STACKFRAME, _STACKTRACE_STACKFRAMES], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2340, + serialized_end=2989, ) _MODULE = _descriptor.Descriptor( - name='Module', - full_name='google.devtools.cloudtrace.v2.Module', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='module', full_name='google.devtools.cloudtrace.v2.Module.module', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='build_id', full_name='google.devtools.cloudtrace.v2.Module.build_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2992, - serialized_end=3134, + name="Module", + full_name="google.devtools.cloudtrace.v2.Module", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="module", + full_name="google.devtools.cloudtrace.v2.Module.module", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="build_id", + full_name="google.devtools.cloudtrace.v2.Module.build_id", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2992, + serialized_end=3134, ) _TRUNCATABLESTRING = _descriptor.Descriptor( - name='TruncatableString', - full_name='google.devtools.cloudtrace.v2.TruncatableString', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value', full_name='google.devtools.cloudtrace.v2.TruncatableString.value', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='truncated_byte_count', full_name='google.devtools.cloudtrace.v2.TruncatableString.truncated_byte_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3136, - serialized_end=3200, + name="TruncatableString", + full_name="google.devtools.cloudtrace.v2.TruncatableString", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="value", + full_name="google.devtools.cloudtrace.v2.TruncatableString.value", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="truncated_byte_count", + full_name="google.devtools.cloudtrace.v2.TruncatableString.truncated_byte_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3136, + serialized_end=3200, ) -_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.fields_by_name['value'].message_type = _ATTRIBUTEVALUE +_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.fields_by_name[ + "value" +].message_type = _ATTRIBUTEVALUE _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.containing_type = _SPAN_ATTRIBUTES -_SPAN_ATTRIBUTES.fields_by_name['attribute_map'].message_type = _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY +_SPAN_ATTRIBUTES.fields_by_name[ + "attribute_map" +].message_type = _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY _SPAN_ATTRIBUTES.containing_type = _SPAN -_SPAN_TIMEEVENT_ANNOTATION.fields_by_name['description'].message_type = _TRUNCATABLESTRING -_SPAN_TIMEEVENT_ANNOTATION.fields_by_name['attributes'].message_type = _SPAN_ATTRIBUTES +_SPAN_TIMEEVENT_ANNOTATION.fields_by_name[ + "description" +].message_type = _TRUNCATABLESTRING +_SPAN_TIMEEVENT_ANNOTATION.fields_by_name["attributes"].message_type = _SPAN_ATTRIBUTES _SPAN_TIMEEVENT_ANNOTATION.containing_type = _SPAN_TIMEEVENT -_SPAN_TIMEEVENT_MESSAGEEVENT.fields_by_name['type'].enum_type = _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE +_SPAN_TIMEEVENT_MESSAGEEVENT.fields_by_name[ + "type" +].enum_type = _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE _SPAN_TIMEEVENT_MESSAGEEVENT.containing_type = _SPAN_TIMEEVENT _SPAN_TIMEEVENT_MESSAGEEVENT_TYPE.containing_type = _SPAN_TIMEEVENT_MESSAGEEVENT -_SPAN_TIMEEVENT.fields_by_name['time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SPAN_TIMEEVENT.fields_by_name['annotation'].message_type = _SPAN_TIMEEVENT_ANNOTATION -_SPAN_TIMEEVENT.fields_by_name['message_event'].message_type = _SPAN_TIMEEVENT_MESSAGEEVENT +_SPAN_TIMEEVENT.fields_by_name[ + "time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SPAN_TIMEEVENT.fields_by_name["annotation"].message_type = _SPAN_TIMEEVENT_ANNOTATION +_SPAN_TIMEEVENT.fields_by_name[ + "message_event" +].message_type = _SPAN_TIMEEVENT_MESSAGEEVENT _SPAN_TIMEEVENT.containing_type = _SPAN -_SPAN_TIMEEVENT.oneofs_by_name['value'].fields.append( - _SPAN_TIMEEVENT.fields_by_name['annotation']) -_SPAN_TIMEEVENT.fields_by_name['annotation'].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name['value'] -_SPAN_TIMEEVENT.oneofs_by_name['value'].fields.append( - _SPAN_TIMEEVENT.fields_by_name['message_event']) -_SPAN_TIMEEVENT.fields_by_name['message_event'].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name['value'] -_SPAN_TIMEEVENTS.fields_by_name['time_event'].message_type = _SPAN_TIMEEVENT +_SPAN_TIMEEVENT.oneofs_by_name["value"].fields.append( + _SPAN_TIMEEVENT.fields_by_name["annotation"] +) +_SPAN_TIMEEVENT.fields_by_name[ + "annotation" +].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name["value"] +_SPAN_TIMEEVENT.oneofs_by_name["value"].fields.append( + _SPAN_TIMEEVENT.fields_by_name["message_event"] +) +_SPAN_TIMEEVENT.fields_by_name[ + "message_event" +].containing_oneof = _SPAN_TIMEEVENT.oneofs_by_name["value"] +_SPAN_TIMEEVENTS.fields_by_name["time_event"].message_type = _SPAN_TIMEEVENT _SPAN_TIMEEVENTS.containing_type = _SPAN -_SPAN_LINK.fields_by_name['type'].enum_type = _SPAN_LINK_TYPE -_SPAN_LINK.fields_by_name['attributes'].message_type = _SPAN_ATTRIBUTES +_SPAN_LINK.fields_by_name["type"].enum_type = _SPAN_LINK_TYPE +_SPAN_LINK.fields_by_name["attributes"].message_type = _SPAN_ATTRIBUTES _SPAN_LINK.containing_type = _SPAN _SPAN_LINK_TYPE.containing_type = _SPAN_LINK -_SPAN_LINKS.fields_by_name['link'].message_type = _SPAN_LINK +_SPAN_LINKS.fields_by_name["link"].message_type = _SPAN_LINK _SPAN_LINKS.containing_type = _SPAN -_SPAN.fields_by_name['display_name'].message_type = _TRUNCATABLESTRING -_SPAN.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SPAN.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SPAN.fields_by_name['attributes'].message_type = _SPAN_ATTRIBUTES -_SPAN.fields_by_name['stack_trace'].message_type = _STACKTRACE -_SPAN.fields_by_name['time_events'].message_type = _SPAN_TIMEEVENTS -_SPAN.fields_by_name['links'].message_type = _SPAN_LINKS -_SPAN.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_SPAN.fields_by_name['same_process_as_parent_span'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_SPAN.fields_by_name['child_span_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_ATTRIBUTEVALUE.fields_by_name['string_value'].message_type = _TRUNCATABLESTRING -_ATTRIBUTEVALUE.oneofs_by_name['value'].fields.append( - _ATTRIBUTEVALUE.fields_by_name['string_value']) -_ATTRIBUTEVALUE.fields_by_name['string_value'].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name['value'] -_ATTRIBUTEVALUE.oneofs_by_name['value'].fields.append( - _ATTRIBUTEVALUE.fields_by_name['int_value']) -_ATTRIBUTEVALUE.fields_by_name['int_value'].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name['value'] -_ATTRIBUTEVALUE.oneofs_by_name['value'].fields.append( - _ATTRIBUTEVALUE.fields_by_name['bool_value']) -_ATTRIBUTEVALUE.fields_by_name['bool_value'].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name['value'] -_STACKTRACE_STACKFRAME.fields_by_name['function_name'].message_type = _TRUNCATABLESTRING -_STACKTRACE_STACKFRAME.fields_by_name['original_function_name'].message_type = _TRUNCATABLESTRING -_STACKTRACE_STACKFRAME.fields_by_name['file_name'].message_type = _TRUNCATABLESTRING -_STACKTRACE_STACKFRAME.fields_by_name['load_module'].message_type = _MODULE -_STACKTRACE_STACKFRAME.fields_by_name['source_version'].message_type = _TRUNCATABLESTRING +_SPAN.fields_by_name["display_name"].message_type = _TRUNCATABLESTRING +_SPAN.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SPAN.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SPAN.fields_by_name["attributes"].message_type = _SPAN_ATTRIBUTES +_SPAN.fields_by_name["stack_trace"].message_type = _STACKTRACE +_SPAN.fields_by_name["time_events"].message_type = _SPAN_TIMEEVENTS +_SPAN.fields_by_name["links"].message_type = _SPAN_LINKS +_SPAN.fields_by_name["status"].message_type = google_dot_rpc_dot_status__pb2._STATUS +_SPAN.fields_by_name[ + "same_process_as_parent_span" +].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_SPAN.fields_by_name[ + "child_span_count" +].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_ATTRIBUTEVALUE.fields_by_name["string_value"].message_type = _TRUNCATABLESTRING +_ATTRIBUTEVALUE.oneofs_by_name["value"].fields.append( + _ATTRIBUTEVALUE.fields_by_name["string_value"] +) +_ATTRIBUTEVALUE.fields_by_name[ + "string_value" +].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name["value"] +_ATTRIBUTEVALUE.oneofs_by_name["value"].fields.append( + _ATTRIBUTEVALUE.fields_by_name["int_value"] +) +_ATTRIBUTEVALUE.fields_by_name[ + "int_value" +].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name["value"] +_ATTRIBUTEVALUE.oneofs_by_name["value"].fields.append( + _ATTRIBUTEVALUE.fields_by_name["bool_value"] +) +_ATTRIBUTEVALUE.fields_by_name[ + "bool_value" +].containing_oneof = _ATTRIBUTEVALUE.oneofs_by_name["value"] +_STACKTRACE_STACKFRAME.fields_by_name["function_name"].message_type = _TRUNCATABLESTRING +_STACKTRACE_STACKFRAME.fields_by_name[ + "original_function_name" +].message_type = _TRUNCATABLESTRING +_STACKTRACE_STACKFRAME.fields_by_name["file_name"].message_type = _TRUNCATABLESTRING +_STACKTRACE_STACKFRAME.fields_by_name["load_module"].message_type = _MODULE +_STACKTRACE_STACKFRAME.fields_by_name[ + "source_version" +].message_type = _TRUNCATABLESTRING _STACKTRACE_STACKFRAME.containing_type = _STACKTRACE -_STACKTRACE_STACKFRAMES.fields_by_name['frame'].message_type = _STACKTRACE_STACKFRAME +_STACKTRACE_STACKFRAMES.fields_by_name["frame"].message_type = _STACKTRACE_STACKFRAME _STACKTRACE_STACKFRAMES.containing_type = _STACKTRACE -_STACKTRACE.fields_by_name['stack_frames'].message_type = _STACKTRACE_STACKFRAMES -_MODULE.fields_by_name['module'].message_type = _TRUNCATABLESTRING -_MODULE.fields_by_name['build_id'].message_type = _TRUNCATABLESTRING -DESCRIPTOR.message_types_by_name['Span'] = _SPAN -DESCRIPTOR.message_types_by_name['AttributeValue'] = _ATTRIBUTEVALUE -DESCRIPTOR.message_types_by_name['StackTrace'] = _STACKTRACE -DESCRIPTOR.message_types_by_name['Module'] = _MODULE -DESCRIPTOR.message_types_by_name['TruncatableString'] = _TRUNCATABLESTRING +_STACKTRACE.fields_by_name["stack_frames"].message_type = _STACKTRACE_STACKFRAMES +_MODULE.fields_by_name["module"].message_type = _TRUNCATABLESTRING +_MODULE.fields_by_name["build_id"].message_type = _TRUNCATABLESTRING +DESCRIPTOR.message_types_by_name["Span"] = _SPAN +DESCRIPTOR.message_types_by_name["AttributeValue"] = _ATTRIBUTEVALUE +DESCRIPTOR.message_types_by_name["StackTrace"] = _STACKTRACE +DESCRIPTOR.message_types_by_name["Module"] = _MODULE +DESCRIPTOR.message_types_by_name["TruncatableString"] = _TRUNCATABLESTRING _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Span = _reflection.GeneratedProtocolMessageType('Span', (_message.Message,), dict( - - Attributes = _reflection.GeneratedProtocolMessageType('Attributes', (_message.Message,), dict( - - AttributeMapEntry = _reflection.GeneratedProtocolMessageType('AttributeMapEntry', (_message.Message,), dict( - DESCRIPTOR = _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry) - )) - , - DESCRIPTOR = _SPAN_ATTRIBUTES, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A set of attributes, each in the format ``[KEY]:[VALUE]``. +Span = _reflection.GeneratedProtocolMessageType( + "Span", + (_message.Message,), + dict( + Attributes=_reflection.GeneratedProtocolMessageType( + "Attributes", + (_message.Message,), + dict( + AttributeMapEntry=_reflection.GeneratedProtocolMessageType( + "AttributeMapEntry", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2" + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry) + ), + ), + DESCRIPTOR=_SPAN_ATTRIBUTES, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A set of attributes, each in the format ``[KEY]:[VALUE]``. Attributes: @@ -907,17 +1506,20 @@ are too many attributes. If this value is 0 then all attributes are valid. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes) - )) - , - - TimeEvent = _reflection.GeneratedProtocolMessageType('TimeEvent', (_message.Message,), dict( - - Annotation = _reflection.GeneratedProtocolMessageType('Annotation', (_message.Message,), dict( - DESCRIPTOR = _SPAN_TIMEEVENT_ANNOTATION, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Text annotation with a set of attributes. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Attributes) + ), + ), + TimeEvent=_reflection.GeneratedProtocolMessageType( + "TimeEvent", + (_message.Message,), + dict( + Annotation=_reflection.GeneratedProtocolMessageType( + "Annotation", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_TIMEEVENT_ANNOTATION, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Text annotation with a set of attributes. Attributes: @@ -928,15 +1530,16 @@ A set of attributes on the annotation. You can have up to 4 attributes per Annotation. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation) - )) - , - - MessageEvent = _reflection.GeneratedProtocolMessageType('MessageEvent', (_message.Message,), dict( - DESCRIPTOR = _SPAN_TIMEEVENT_MESSAGEEVENT, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """An event describing a message sent/received between Spans. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation) + ), + ), + MessageEvent=_reflection.GeneratedProtocolMessageType( + "MessageEvent", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_TIMEEVENT_MESSAGEEVENT, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""An event describing a message sent/received between Spans. Attributes: @@ -953,13 +1556,12 @@ The number of compressed bytes sent or received. If missing assumed to be the same size as uncompressed. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent) - )) - , - DESCRIPTOR = _SPAN_TIMEEVENT, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A time-stamped annotation or message event in the Span. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent) + ), + ), + DESCRIPTOR=_SPAN_TIMEEVENT, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A time-stamped annotation or message event in the Span. Attributes: @@ -973,15 +1575,16 @@ message_event: An event describing a message sent/received between Spans. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent) - )) - , - - TimeEvents = _reflection.GeneratedProtocolMessageType('TimeEvents', (_message.Message,), dict( - DESCRIPTOR = _SPAN_TIMEEVENTS, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A collection of ``TimeEvent``\ s. A ``TimeEvent`` is a time-stamped + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvent) + ), + ), + TimeEvents=_reflection.GeneratedProtocolMessageType( + "TimeEvents", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_TIMEEVENTS, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A collection of ``TimeEvent``\ s. A ``TimeEvent`` is a time-stamped annotation on the span, consisting of either user-supplied key:value pairs, or details of a message sent/received between Spans. @@ -997,15 +1600,16 @@ events. If the value is 0, then no message events were dropped. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvents) - )) - , - - Link = _reflection.GeneratedProtocolMessageType('Link', (_message.Message,), dict( - DESCRIPTOR = _SPAN_LINK, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A pointer from the current span to another span in the same trace or in + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.TimeEvents) + ), + ), + Link=_reflection.GeneratedProtocolMessageType( + "Link", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_LINK, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project. @@ -1023,15 +1627,16 @@ A set of attributes on the link. You have have up to 32 attributes per link. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Link) - )) - , - - Links = _reflection.GeneratedProtocolMessageType('Links', (_message.Message,), dict( - DESCRIPTOR = _SPAN_LINKS, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A collection of links, which are references from this span to a span in + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Link) + ), + ), + Links=_reflection.GeneratedProtocolMessageType( + "Links", + (_message.Message,), + dict( + DESCRIPTOR=_SPAN_LINKS, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A collection of links, which are references from this span to a span in the same or different trace. @@ -1042,13 +1647,12 @@ The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Links) - )) - , - DESCRIPTOR = _SPAN, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A span represents a single operation within a trace. Spans can be nested + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span.Links) + ), + ), + DESCRIPTOR=_SPAN, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A span represents a single operation within a trace. Spans can be nested to form a trace tree. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do @@ -1112,8 +1716,9 @@ this span was active. If set, allows implementation to detect missing child spans. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Span) + ), +) _sym_db.RegisterMessage(Span) _sym_db.RegisterMessage(Span.Attributes) _sym_db.RegisterMessage(Span.Attributes.AttributeMapEntry) @@ -1124,11 +1729,13 @@ _sym_db.RegisterMessage(Span.Link) _sym_db.RegisterMessage(Span.Links) -AttributeValue = _reflection.GeneratedProtocolMessageType('AttributeValue', (_message.Message,), dict( - DESCRIPTOR = _ATTRIBUTEVALUE, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """The allowed types for [VALUE] in a ``[KEY]:[VALUE]`` attribute. +AttributeValue = _reflection.GeneratedProtocolMessageType( + "AttributeValue", + (_message.Message,), + dict( + DESCRIPTOR=_ATTRIBUTEVALUE, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""The allowed types for [VALUE] in a ``[KEY]:[VALUE]`` attribute. Attributes: @@ -1141,17 +1748,22 @@ bool_value: A Boolean value represented by ``true`` or ``false``. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.AttributeValue) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.AttributeValue) + ), +) _sym_db.RegisterMessage(AttributeValue) -StackTrace = _reflection.GeneratedProtocolMessageType('StackTrace', (_message.Message,), dict( - - StackFrame = _reflection.GeneratedProtocolMessageType('StackFrame', (_message.Message,), dict( - DESCRIPTOR = _STACKTRACE_STACKFRAME, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Represents a single stack frame in a stack trace. +StackTrace = _reflection.GeneratedProtocolMessageType( + "StackTrace", + (_message.Message,), + dict( + StackFrame=_reflection.GeneratedProtocolMessageType( + "StackFrame", + (_message.Message,), + dict( + DESCRIPTOR=_STACKTRACE_STACKFRAME, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Represents a single stack frame in a stack trace. Attributes: @@ -1177,15 +1789,16 @@ source_version: The version of the deployed source code (up to 128 bytes). """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrame) - )) - , - - StackFrames = _reflection.GeneratedProtocolMessageType('StackFrames', (_message.Message,), dict( - DESCRIPTOR = _STACKTRACE_STACKFRAMES, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A collection of stack frames, which can be truncated. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrame) + ), + ), + StackFrames=_reflection.GeneratedProtocolMessageType( + "StackFrames", + (_message.Message,), + dict( + DESCRIPTOR=_STACKTRACE_STACKFRAMES, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A collection of stack frames, which can be truncated. Attributes: @@ -1196,13 +1809,12 @@ were too many stack frames. If this value is 0, then no stack frames were dropped. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrames) - )) - , - DESCRIPTOR = _STACKTRACE, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """A call stack appearing in a trace. + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace.StackFrames) + ), + ), + DESCRIPTOR=_STACKTRACE, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""A call stack appearing in a trace. Attributes: @@ -1218,17 +1830,20 @@ within the same request can refer to that stack trace by only setting ``stackTraceHashId``. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.StackTrace) + ), +) _sym_db.RegisterMessage(StackTrace) _sym_db.RegisterMessage(StackTrace.StackFrame) _sym_db.RegisterMessage(StackTrace.StackFrames) -Module = _reflection.GeneratedProtocolMessageType('Module', (_message.Message,), dict( - DESCRIPTOR = _MODULE, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Binary module. +Module = _reflection.GeneratedProtocolMessageType( + "Module", + (_message.Message,), + dict( + DESCRIPTOR=_MODULE, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Binary module. Attributes: @@ -1239,15 +1854,18 @@ A unique identifier for the module, usually a hash of its contents (up to 128 bytes). """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Module) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.Module) + ), +) _sym_db.RegisterMessage(Module) -TruncatableString = _reflection.GeneratedProtocolMessageType('TruncatableString', (_message.Message,), dict( - DESCRIPTOR = _TRUNCATABLESTRING, - __module__ = 'google.devtools.cloudtrace_v2.proto.trace_pb2' - , - __doc__ = """Represents a string that might be shortened to a specified length. +TruncatableString = _reflection.GeneratedProtocolMessageType( + "TruncatableString", + (_message.Message,), + dict( + DESCRIPTOR=_TRUNCATABLESTRING, + __module__="google.devtools.cloudtrace_v2.proto.trace_pb2", + __doc__="""Represents a string that might be shortened to a specified length. Attributes: @@ -1262,13 +1880,21 @@ The number of bytes removed from the original string. If this value is 0, then the string was not shortened. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.TruncatableString) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.TruncatableString) + ), +) _sym_db.RegisterMessage(TruncatableString) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.devtools.cloudtrace.v2B\nTraceProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2" + ), +) _SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY.has_options = True -_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPAN_ATTRIBUTES_ATTRIBUTEMAPENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py b/trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py +++ b/trace/google/cloud/trace_v2/proto/trace_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/trace/google/cloud/trace_v2/proto/tracing_pb2.py b/trace/google/cloud/trace_v2/proto/tracing_pb2.py index 80b9db9ccd958..9c69b08211155 100644 --- a/trace/google/cloud/trace_v2/proto/tracing_pb2.py +++ b/trace/google/cloud/trace_v2/proto/tracing_pb2.py @@ -3,80 +3,112 @@ # source: google/devtools/cloudtrace_v2/proto/tracing.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.trace_v2.proto import trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2 +from google.cloud.trace_v2.proto import ( + trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/devtools/cloudtrace_v2/proto/tracing.proto', - package='google.devtools.cloudtrace.v2', - syntax='proto3', - serialized_pb=_b('\n1google/devtools/cloudtrace_v2/proto/tracing.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a/google/devtools/cloudtrace_v2/proto/trace.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"Z\n\x16\x42\x61tchWriteSpansRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x05spans\x18\x02 \x03(\x0b\x32#.google.devtools.cloudtrace.v2.Span2\xaf\x02\n\x0cTraceService\x12\x94\x01\n\x0f\x42\x61tchWriteSpans\x12\x35.google.devtools.cloudtrace.v2.BatchWriteSpansRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\"\'/v2/{name=projects/*}/traces:batchWrite:\x01*\x12\x87\x01\n\nCreateSpan\x12#.google.devtools.cloudtrace.v2.Span\x1a#.google.devtools.cloudtrace.v2.Span\"/\x82\xd3\xe4\x93\x02)\"$/v2/{name=projects/*/traces/*}/spans:\x01*B\xac\x01\n!com.google.devtools.cloudtrace.v2B\x0cTracingProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/devtools/cloudtrace_v2/proto/tracing.proto", + package="google.devtools.cloudtrace.v2", + syntax="proto3", + serialized_pb=_b( + '\n1google/devtools/cloudtrace_v2/proto/tracing.proto\x12\x1dgoogle.devtools.cloudtrace.v2\x1a\x1cgoogle/api/annotations.proto\x1a/google/devtools/cloudtrace_v2/proto/trace.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"Z\n\x16\x42\x61tchWriteSpansRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x05spans\x18\x02 \x03(\x0b\x32#.google.devtools.cloudtrace.v2.Span2\xaf\x02\n\x0cTraceService\x12\x94\x01\n\x0f\x42\x61tchWriteSpans\x12\x35.google.devtools.cloudtrace.v2.BatchWriteSpansRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,"\'/v2/{name=projects/*}/traces:batchWrite:\x01*\x12\x87\x01\n\nCreateSpan\x12#.google.devtools.cloudtrace.v2.Span\x1a#.google.devtools.cloudtrace.v2.Span"/\x82\xd3\xe4\x93\x02)"$/v2/{name=projects/*/traces/*}/spans:\x01*B\xac\x01\n!com.google.devtools.cloudtrace.v2B\x0cTracingProtoP\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\xaa\x02\x15Google.Cloud.Trace.V2\xca\x02\x15Google\\Cloud\\Trace\\V2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _BATCHWRITESPANSREQUEST = _descriptor.Descriptor( - name='BatchWriteSpansRequest', - full_name='google.devtools.cloudtrace.v2.BatchWriteSpansRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.devtools.cloudtrace.v2.BatchWriteSpansRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spans', full_name='google.devtools.cloudtrace.v2.BatchWriteSpansRequest.spans', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=225, - serialized_end=315, + name="BatchWriteSpansRequest", + full_name="google.devtools.cloudtrace.v2.BatchWriteSpansRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.devtools.cloudtrace.v2.BatchWriteSpansRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spans", + full_name="google.devtools.cloudtrace.v2.BatchWriteSpansRequest.spans", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=225, + serialized_end=315, ) -_BATCHWRITESPANSREQUEST.fields_by_name['spans'].message_type = google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN -DESCRIPTOR.message_types_by_name['BatchWriteSpansRequest'] = _BATCHWRITESPANSREQUEST +_BATCHWRITESPANSREQUEST.fields_by_name[ + "spans" +].message_type = google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN +DESCRIPTOR.message_types_by_name["BatchWriteSpansRequest"] = _BATCHWRITESPANSREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -BatchWriteSpansRequest = _reflection.GeneratedProtocolMessageType('BatchWriteSpansRequest', (_message.Message,), dict( - DESCRIPTOR = _BATCHWRITESPANSREQUEST, - __module__ = 'google.devtools.cloudtrace_v2.proto.tracing_pb2' - , - __doc__ = """The request message for the ``BatchWriteSpans`` method. +BatchWriteSpansRequest = _reflection.GeneratedProtocolMessageType( + "BatchWriteSpansRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHWRITESPANSREQUEST, + __module__="google.devtools.cloudtrace_v2.proto.tracing_pb2", + __doc__="""The request message for the ``BatchWriteSpans`` method. Attributes: @@ -87,44 +119,59 @@ A list of new spans. The span names must not match existing spans, or the results are undefined. """, - # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.BatchWriteSpansRequest) - )) + # @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v2.BatchWriteSpansRequest) + ), +) _sym_db.RegisterMessage(BatchWriteSpansRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.devtools.cloudtrace.v2B\014TracingProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.devtools.cloudtrace.v2B\014TracingProtoP\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudtrace/v2;cloudtrace\252\002\025Google.Cloud.Trace.V2\312\002\025Google\\Cloud\\Trace\\V2" + ), +) _TRACESERVICE = _descriptor.ServiceDescriptor( - name='TraceService', - full_name='google.devtools.cloudtrace.v2.TraceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=318, - serialized_end=621, - methods=[ - _descriptor.MethodDescriptor( - name='BatchWriteSpans', - full_name='google.devtools.cloudtrace.v2.TraceService.BatchWriteSpans', + name="TraceService", + full_name="google.devtools.cloudtrace.v2.TraceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_BATCHWRITESPANSREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\"\'/v2/{name=projects/*}/traces:batchWrite:\001*')), - ), - _descriptor.MethodDescriptor( - name='CreateSpan', - full_name='google.devtools.cloudtrace.v2.TraceService.CreateSpan', - index=1, - containing_service=None, - input_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, - output_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\"$/v2/{name=projects/*/traces/*}/spans:\001*')), - ), -]) + options=None, + serialized_start=318, + serialized_end=621, + methods=[ + _descriptor.MethodDescriptor( + name="BatchWriteSpans", + full_name="google.devtools.cloudtrace.v2.TraceService.BatchWriteSpans", + index=0, + containing_service=None, + input_type=_BATCHWRITESPANSREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\"'/v2/{name=projects/*}/traces:batchWrite:\001*" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateSpan", + full_name="google.devtools.cloudtrace.v2.TraceService.CreateSpan", + index=1, + containing_service=None, + input_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, + output_type=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2._SPAN, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002)"$/v2/{name=projects/*/traces/*}/spans:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_TRACESERVICE) -DESCRIPTOR.services_by_name['TraceService'] = _TRACESERVICE +DESCRIPTOR.services_by_name["TraceService"] = _TRACESERVICE # @@protoc_insertion_point(module_scope) diff --git a/trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py b/trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py index c64c413e20f94..dcc08852bd854 100644 --- a/trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py +++ b/trace/google/cloud/trace_v2/proto/tracing_pb2_grpc.py @@ -1,74 +1,79 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.trace_v2.proto import trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2 -from google.cloud.trace_v2.proto import tracing_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2 +from google.cloud.trace_v2.proto import ( + trace_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2, +) +from google.cloud.trace_v2.proto import ( + tracing_pb2 as google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class TraceServiceStub(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. A single trace may contain span(s) from multiple services. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.BatchWriteSpans = channel.unary_unary( - '/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans', - request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.BatchWriteSpans = channel.unary_unary( + "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", + request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateSpan = channel.unary_unary( - '/google.devtools.cloudtrace.v2.TraceService/CreateSpan', - request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, + self.CreateSpan = channel.unary_unary( + "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", + request_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, + response_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, ) class TraceServiceServicer(object): - """This file describes an API for collecting and viewing traces and spans + """This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. A single trace may contain span(s) from multiple services. """ - def BatchWriteSpans(self, request, context): - """Sends new spans to new or existing traces. You cannot update + def BatchWriteSpans(self, request, context): + """Sends new spans to new or existing traces. You cannot update existing spans. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateSpan(self, request, context): - """Creates a new span. + def CreateSpan(self, request, context): + """Creates a new span. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_TraceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'BatchWriteSpans': grpc.unary_unary_rpc_method_handler( - servicer.BatchWriteSpans, - request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateSpan': grpc.unary_unary_rpc_method_handler( - servicer.CreateSpan, - request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, - response_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.devtools.cloudtrace.v2.TraceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "BatchWriteSpans": grpc.unary_unary_rpc_method_handler( + servicer.BatchWriteSpans, + request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_tracing__pb2.BatchWriteSpansRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateSpan": grpc.unary_unary_rpc_method_handler( + servicer.CreateSpan, + request_deserializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.FromString, + response_serializer=google_dot_devtools_dot_cloudtrace__v2_dot_proto_dot_trace__pb2.Span.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.devtools.cloudtrace.v2.TraceService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py b/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py index 9b0d170a2d9f8..5145aff94197d 100644 --- a/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py +++ b/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py @@ -2,138 +2,142 @@ # source: google/cloud/videointelligence_v1/proto/video_intelligence.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/videointelligence_v1/proto/video_intelligence.proto', - package='google.cloud.videointelligence.v1', - syntax='proto3', - serialized_pb=_b('\n@google/cloud/videointelligence_v1/proto/video_intelligence.proto\x12!google.cloud.videointelligence.v1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xef\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12<\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32*.google.cloud.videointelligence.v1.Feature\x12\x46\n\rvideo_context\x18\x03 \x01(\x0b\x32/.google.cloud.videointelligence.v1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"\xb6\x04\n\x0cVideoContext\x12\x41\n\x08segments\x18\x01 \x03(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment\x12W\n\x16label_detection_config\x18\x02 \x01(\x0b\x32\x37.google.cloud.videointelligence.v1.LabelDetectionConfig\x12\x62\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32<.google.cloud.videointelligence.v1.ShotChangeDetectionConfig\x12l\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32\x41.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig\x12U\n\x15\x66\x61\x63\x65_detection_config\x18\x05 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1.FaceDetectionConfig\x12\x61\n\x1bspeech_transcription_config\x18\x06 \x01(\x0b\x32<.google.cloud.videointelligence.v1.SpeechTranscriptionConfig\"\x95\x01\n\x14LabelDetectionConfig\x12S\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32\x35.google.cloud.videointelligence.v1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t\"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"D\n\x13\x46\x61\x63\x65\x44\x65tectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\x12\x1e\n\x16include_bounding_boxes\x18\x02 \x01(\x08\"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"d\n\x0cLabelSegment\x12@\n\x07segment\x18\x01 \x01(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x94\x02\n\x0fLabelAnnotation\x12\x39\n\x06\x65ntity\x18\x01 \x01(\x0b\x32).google.cloud.videointelligence.v1.Entity\x12\x44\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32).google.cloud.videointelligence.v1.Entity\x12\x41\n\x08segments\x18\x03 \x03(\x0b\x32/.google.cloud.videointelligence.v1.LabelSegment\x12=\n\x06\x66rames\x18\x04 \x03(\x0b\x32-.google.cloud.videointelligence.v1.LabelFrame\"\x95\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12M\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32-.google.cloud.videointelligence.v1.Likelihood\"d\n\x19\x45xplicitContentAnnotation\x12G\n\x06\x66rames\x18\x01 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1.ExplicitContentFrame\"Q\n\x15NormalizedBoundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x02\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\r\n\x05right\x18\x03 \x01(\x02\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x02\"O\n\x0b\x46\x61\x63\x65Segment\x12@\n\x07segment\x18\x01 \x01(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment\"\x98\x01\n\tFaceFrame\x12[\n\x19normalized_bounding_boxes\x18\x01 \x03(\x0b\x32\x38.google.cloud.videointelligence.v1.NormalizedBoundingBox\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xa3\x01\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x11\n\tthumbnail\x18\x01 \x01(\x0c\x12@\n\x08segments\x18\x02 \x03(\x0b\x32..google.cloud.videointelligence.v1.FaceSegment\x12<\n\x06\x66rames\x18\x03 \x03(\x0b\x32,.google.cloud.videointelligence.v1.FaceFrame\"\x98\x05\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12U\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1.LabelAnnotation\x12R\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1.LabelAnnotation\x12S\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1.LabelAnnotation\x12K\n\x10\x66\x61\x63\x65_annotations\x18\x05 \x03(\x0b\x32\x31.google.cloud.videointelligence.v1.FaceAnnotation\x12I\n\x10shot_annotations\x18\x06 \x03(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment\x12Y\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32<.google.cloud.videointelligence.v1.ExplicitContentAnnotation\x12U\n\x15speech_transcriptions\x18\x0b \x03(\x0b\x32\x36.google.cloud.videointelligence.v1.SpeechTranscription\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\"n\n\x15\x41nnotateVideoResponse\x12U\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1.VideoAnnotationResults\"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x15\x41nnotateVideoProgress\x12W\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32:.google.cloud.videointelligence.v1.VideoAnnotationProgress\"\xd4\x02\n\x19SpeechTranscriptionConfig\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x18\n\x10max_alternatives\x18\x02 \x01(\x05\x12\x18\n\x10\x66ilter_profanity\x18\x03 \x01(\x08\x12I\n\x0fspeech_contexts\x18\x04 \x03(\x0b\x32\x30.google.cloud.videointelligence.v1.SpeechContext\x12$\n\x1c\x65nable_automatic_punctuation\x18\x05 \x01(\x08\x12\x14\n\x0c\x61udio_tracks\x18\x06 \x03(\x05\x12\"\n\x1a\x65nable_speaker_diarization\x18\x07 \x01(\x08\x12!\n\x19\x64iarization_speaker_count\x18\x08 \x01(\x05\x12\x1e\n\x16\x65nable_word_confidence\x18\t \x01(\x08\" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\"\x83\x01\n\x13SpeechTranscription\x12U\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32?.google.cloud.videointelligence.v1.SpeechRecognitionAlternative\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x82\x01\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12:\n\x05words\x18\x03 \x03(\x0b\x32+.google.cloud.videointelligence.v1.WordInfo\"\x9d\x01\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x13\n\x0bspeaker_tag\x18\x05 \x01(\x05*\xa0\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x04\x12\x18\n\x14SPEECH_TRANSCRIPTION\x10\x06*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xa4\x01\n\x18VideoIntelligenceService\x12\x87\x01\n\rAnnotateVideo\x12\x37.google.cloud.videointelligence.v1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation\"\x1e\x82\xd3\xe4\x93\x02\x18\"\x13/v1/videos:annotate:\x01*B\xe4\x01\n%com.google.cloud.videointelligence.v1B\x1dVideoIntelligenceServiceProtoP\x01ZRgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1;videointelligence\xaa\x02!Google.Cloud.VideoIntelligence.V1\xca\x02!Google\\Cloud\\VideoIntelligence\\V1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/videointelligence_v1/proto/video_intelligence.proto", + package="google.cloud.videointelligence.v1", + syntax="proto3", + serialized_pb=_b( + '\n@google/cloud/videointelligence_v1/proto/video_intelligence.proto\x12!google.cloud.videointelligence.v1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xef\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12<\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32*.google.cloud.videointelligence.v1.Feature\x12\x46\n\rvideo_context\x18\x03 \x01(\x0b\x32/.google.cloud.videointelligence.v1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t"\xb6\x04\n\x0cVideoContext\x12\x41\n\x08segments\x18\x01 \x03(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment\x12W\n\x16label_detection_config\x18\x02 \x01(\x0b\x32\x37.google.cloud.videointelligence.v1.LabelDetectionConfig\x12\x62\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32<.google.cloud.videointelligence.v1.ShotChangeDetectionConfig\x12l\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32\x41.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig\x12U\n\x15\x66\x61\x63\x65_detection_config\x18\x05 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1.FaceDetectionConfig\x12\x61\n\x1bspeech_transcription_config\x18\x06 \x01(\x0b\x32<.google.cloud.videointelligence.v1.SpeechTranscriptionConfig"\x95\x01\n\x14LabelDetectionConfig\x12S\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32\x35.google.cloud.videointelligence.v1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"D\n\x13\x46\x61\x63\x65\x44\x65tectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\x12\x1e\n\x16include_bounding_boxes\x18\x02 \x01(\x08"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"d\n\x0cLabelSegment\x12@\n\x07segment\x18\x01 \x01(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t"\x94\x02\n\x0fLabelAnnotation\x12\x39\n\x06\x65ntity\x18\x01 \x01(\x0b\x32).google.cloud.videointelligence.v1.Entity\x12\x44\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32).google.cloud.videointelligence.v1.Entity\x12\x41\n\x08segments\x18\x03 \x03(\x0b\x32/.google.cloud.videointelligence.v1.LabelSegment\x12=\n\x06\x66rames\x18\x04 \x03(\x0b\x32-.google.cloud.videointelligence.v1.LabelFrame"\x95\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12M\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32-.google.cloud.videointelligence.v1.Likelihood"d\n\x19\x45xplicitContentAnnotation\x12G\n\x06\x66rames\x18\x01 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1.ExplicitContentFrame"Q\n\x15NormalizedBoundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x02\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\r\n\x05right\x18\x03 \x01(\x02\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x02"O\n\x0b\x46\x61\x63\x65Segment\x12@\n\x07segment\x18\x01 \x01(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment"\x98\x01\n\tFaceFrame\x12[\n\x19normalized_bounding_boxes\x18\x01 \x03(\x0b\x32\x38.google.cloud.videointelligence.v1.NormalizedBoundingBox\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xa3\x01\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x11\n\tthumbnail\x18\x01 \x01(\x0c\x12@\n\x08segments\x18\x02 \x03(\x0b\x32..google.cloud.videointelligence.v1.FaceSegment\x12<\n\x06\x66rames\x18\x03 \x03(\x0b\x32,.google.cloud.videointelligence.v1.FaceFrame"\x98\x05\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12U\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1.LabelAnnotation\x12R\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1.LabelAnnotation\x12S\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1.LabelAnnotation\x12K\n\x10\x66\x61\x63\x65_annotations\x18\x05 \x03(\x0b\x32\x31.google.cloud.videointelligence.v1.FaceAnnotation\x12I\n\x10shot_annotations\x18\x06 \x03(\x0b\x32/.google.cloud.videointelligence.v1.VideoSegment\x12Y\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32<.google.cloud.videointelligence.v1.ExplicitContentAnnotation\x12U\n\x15speech_transcriptions\x18\x0b \x03(\x0b\x32\x36.google.cloud.videointelligence.v1.SpeechTranscription\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"n\n\x15\x41nnotateVideoResponse\x12U\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1.VideoAnnotationResults"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"p\n\x15\x41nnotateVideoProgress\x12W\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32:.google.cloud.videointelligence.v1.VideoAnnotationProgress"\xd4\x02\n\x19SpeechTranscriptionConfig\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x18\n\x10max_alternatives\x18\x02 \x01(\x05\x12\x18\n\x10\x66ilter_profanity\x18\x03 \x01(\x08\x12I\n\x0fspeech_contexts\x18\x04 \x03(\x0b\x32\x30.google.cloud.videointelligence.v1.SpeechContext\x12$\n\x1c\x65nable_automatic_punctuation\x18\x05 \x01(\x08\x12\x14\n\x0c\x61udio_tracks\x18\x06 \x03(\x05\x12"\n\x1a\x65nable_speaker_diarization\x18\x07 \x01(\x08\x12!\n\x19\x64iarization_speaker_count\x18\x08 \x01(\x05\x12\x1e\n\x16\x65nable_word_confidence\x18\t \x01(\x08" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t"\x83\x01\n\x13SpeechTranscription\x12U\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32?.google.cloud.videointelligence.v1.SpeechRecognitionAlternative\x12\x15\n\rlanguage_code\x18\x02 \x01(\t"\x82\x01\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12:\n\x05words\x18\x03 \x03(\x0b\x32+.google.cloud.videointelligence.v1.WordInfo"\x9d\x01\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x13\n\x0bspeaker_tag\x18\x05 \x01(\x05*\xa0\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x04\x12\x18\n\x14SPEECH_TRANSCRIPTION\x10\x06*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xa4\x01\n\x18VideoIntelligenceService\x12\x87\x01\n\rAnnotateVideo\x12\x37.google.cloud.videointelligence.v1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation"\x1e\x82\xd3\xe4\x93\x02\x18"\x13/v1/videos:annotate:\x01*B\xe4\x01\n%com.google.cloud.videointelligence.v1B\x1dVideoIntelligenceServiceProtoP\x01ZRgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1;videointelligence\xaa\x02!Google.Cloud.VideoIntelligence.V1\xca\x02!Google\\Cloud\\VideoIntelligence\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _FEATURE = _descriptor.EnumDescriptor( - name='Feature', - full_name='google.cloud.videointelligence.v1.Feature', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FEATURE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_CHANGE_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPLICIT_CONTENT_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FACE_DETECTION', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPEECH_TRANSCRIPTION', index=5, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4651, - serialized_end=4811, + name="Feature", + full_name="google.cloud.videointelligence.v1.Feature", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FEATURE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_CHANGE_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXPLICIT_CONTENT_DETECTION", + index=3, + number=3, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="FACE_DETECTION", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SPEECH_TRANSCRIPTION", index=5, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4651, + serialized_end=4811, ) _sym_db.RegisterEnumDescriptor(_FEATURE) Feature = enum_type_wrapper.EnumTypeWrapper(_FEATURE) _LABELDETECTIONMODE = _descriptor.EnumDescriptor( - name='LabelDetectionMode', - full_name='google.cloud.videointelligence.v1.LabelDetectionMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION_MODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_MODE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FRAME_MODE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_AND_FRAME_MODE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4813, - serialized_end=4927, + name="LabelDetectionMode", + full_name="google.cloud.videointelligence.v1.LabelDetectionMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION_MODE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SHOT_MODE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FRAME_MODE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_AND_FRAME_MODE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4813, + serialized_end=4927, ) _sym_db.RegisterEnumDescriptor(_LABELDETECTIONMODE) LabelDetectionMode = enum_type_wrapper.EnumTypeWrapper(_LABELDETECTIONMODE) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.videointelligence.v1.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LIKELIHOOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4929, - serialized_end=5045, + name="Likelihood", + full_name="google.cloud.videointelligence.v1.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LIKELIHOOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4929, + serialized_end=5045, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -156,1268 +160,2135 @@ VERY_LIKELY = 5 - _ANNOTATEVIDEOREQUEST = _descriptor.Descriptor( - name='AnnotateVideoRequest', - full_name='google.cloud.videointelligence.v1.AnnotateVideoRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1.AnnotateVideoRequest.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_content', full_name='google.cloud.videointelligence.v1.AnnotateVideoRequest.input_content', index=1, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.videointelligence.v1.AnnotateVideoRequest.features', index=2, - number=2, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_context', full_name='google.cloud.videointelligence.v1.AnnotateVideoRequest.video_context', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_uri', full_name='google.cloud.videointelligence.v1.AnnotateVideoRequest.output_uri', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_id', full_name='google.cloud.videointelligence.v1.AnnotateVideoRequest.location_id', index=5, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=261, - serialized_end=500, + name="AnnotateVideoRequest", + full_name="google.cloud.videointelligence.v1.AnnotateVideoRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1.AnnotateVideoRequest.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_content", + full_name="google.cloud.videointelligence.v1.AnnotateVideoRequest.input_content", + index=1, + number=6, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.videointelligence.v1.AnnotateVideoRequest.features", + index=2, + number=2, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="video_context", + full_name="google.cloud.videointelligence.v1.AnnotateVideoRequest.video_context", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_uri", + full_name="google.cloud.videointelligence.v1.AnnotateVideoRequest.output_uri", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location_id", + full_name="google.cloud.videointelligence.v1.AnnotateVideoRequest.location_id", + index=5, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=261, + serialized_end=500, ) _VIDEOCONTEXT = _descriptor.Descriptor( - name='VideoContext', - full_name='google.cloud.videointelligence.v1.VideoContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1.VideoContext.segments', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_detection_config', full_name='google.cloud.videointelligence.v1.VideoContext.label_detection_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_change_detection_config', full_name='google.cloud.videointelligence.v1.VideoContext.shot_change_detection_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_content_detection_config', full_name='google.cloud.videointelligence.v1.VideoContext.explicit_content_detection_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='face_detection_config', full_name='google.cloud.videointelligence.v1.VideoContext.face_detection_config', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_transcription_config', full_name='google.cloud.videointelligence.v1.VideoContext.speech_transcription_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=503, - serialized_end=1069, + name="VideoContext", + full_name="google.cloud.videointelligence.v1.VideoContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1.VideoContext.segments", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_detection_config", + full_name="google.cloud.videointelligence.v1.VideoContext.label_detection_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_change_detection_config", + full_name="google.cloud.videointelligence.v1.VideoContext.shot_change_detection_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_content_detection_config", + full_name="google.cloud.videointelligence.v1.VideoContext.explicit_content_detection_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="face_detection_config", + full_name="google.cloud.videointelligence.v1.VideoContext.face_detection_config", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_transcription_config", + full_name="google.cloud.videointelligence.v1.VideoContext.speech_transcription_config", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=503, + serialized_end=1069, ) _LABELDETECTIONCONFIG = _descriptor.Descriptor( - name='LabelDetectionConfig', - full_name='google.cloud.videointelligence.v1.LabelDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label_detection_mode', full_name='google.cloud.videointelligence.v1.LabelDetectionConfig.label_detection_mode', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stationary_camera', full_name='google.cloud.videointelligence.v1.LabelDetectionConfig.stationary_camera', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1.LabelDetectionConfig.model', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1072, - serialized_end=1221, + name="LabelDetectionConfig", + full_name="google.cloud.videointelligence.v1.LabelDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label_detection_mode", + full_name="google.cloud.videointelligence.v1.LabelDetectionConfig.label_detection_mode", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stationary_camera", + full_name="google.cloud.videointelligence.v1.LabelDetectionConfig.stationary_camera", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1.LabelDetectionConfig.model", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1072, + serialized_end=1221, ) _SHOTCHANGEDETECTIONCONFIG = _descriptor.Descriptor( - name='ShotChangeDetectionConfig', - full_name='google.cloud.videointelligence.v1.ShotChangeDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1.ShotChangeDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1223, - serialized_end=1265, + name="ShotChangeDetectionConfig", + full_name="google.cloud.videointelligence.v1.ShotChangeDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1.ShotChangeDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1223, + serialized_end=1265, ) _EXPLICITCONTENTDETECTIONCONFIG = _descriptor.Descriptor( - name='ExplicitContentDetectionConfig', - full_name='google.cloud.videointelligence.v1.ExplicitContentDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1.ExplicitContentDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1267, - serialized_end=1314, + name="ExplicitContentDetectionConfig", + full_name="google.cloud.videointelligence.v1.ExplicitContentDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1.ExplicitContentDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1267, + serialized_end=1314, ) _FACEDETECTIONCONFIG = _descriptor.Descriptor( - name='FaceDetectionConfig', - full_name='google.cloud.videointelligence.v1.FaceDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1.FaceDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='include_bounding_boxes', full_name='google.cloud.videointelligence.v1.FaceDetectionConfig.include_bounding_boxes', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1316, - serialized_end=1384, + name="FaceDetectionConfig", + full_name="google.cloud.videointelligence.v1.FaceDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1.FaceDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="include_bounding_boxes", + full_name="google.cloud.videointelligence.v1.FaceDetectionConfig.include_bounding_boxes", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1316, + serialized_end=1384, ) _VIDEOSEGMENT = _descriptor.Descriptor( - name='VideoSegment', - full_name='google.cloud.videointelligence.v1.VideoSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time_offset', full_name='google.cloud.videointelligence.v1.VideoSegment.start_time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time_offset', full_name='google.cloud.videointelligence.v1.VideoSegment.end_time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1386, - serialized_end=1506, + name="VideoSegment", + full_name="google.cloud.videointelligence.v1.VideoSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time_offset", + full_name="google.cloud.videointelligence.v1.VideoSegment.start_time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time_offset", + full_name="google.cloud.videointelligence.v1.VideoSegment.end_time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1386, + serialized_end=1506, ) _LABELSEGMENT = _descriptor.Descriptor( - name='LabelSegment', - full_name='google.cloud.videointelligence.v1.LabelSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1.LabelSegment.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1.LabelSegment.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1508, - serialized_end=1608, + name="LabelSegment", + full_name="google.cloud.videointelligence.v1.LabelSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1.LabelSegment.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1.LabelSegment.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1508, + serialized_end=1608, ) _LABELFRAME = _descriptor.Descriptor( - name='LabelFrame', - full_name='google.cloud.videointelligence.v1.LabelFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1.LabelFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1.LabelFrame.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1610, - serialized_end=1690, + name="LabelFrame", + full_name="google.cloud.videointelligence.v1.LabelFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1.LabelFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1.LabelFrame.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1610, + serialized_end=1690, ) _ENTITY = _descriptor.Descriptor( - name='Entity', - full_name='google.cloud.videointelligence.v1.Entity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.cloud.videointelligence.v1.Entity.entity_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.videointelligence.v1.Entity.description', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1.Entity.language_code', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1692, - serialized_end=1763, + name="Entity", + full_name="google.cloud.videointelligence.v1.Entity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.cloud.videointelligence.v1.Entity.entity_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.videointelligence.v1.Entity.description", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1.Entity.language_code", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1692, + serialized_end=1763, ) _LABELANNOTATION = _descriptor.Descriptor( - name='LabelAnnotation', - full_name='google.cloud.videointelligence.v1.LabelAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity', full_name='google.cloud.videointelligence.v1.LabelAnnotation.entity', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category_entities', full_name='google.cloud.videointelligence.v1.LabelAnnotation.category_entities', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1.LabelAnnotation.segments', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1.LabelAnnotation.frames', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1766, - serialized_end=2042, + name="LabelAnnotation", + full_name="google.cloud.videointelligence.v1.LabelAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity", + full_name="google.cloud.videointelligence.v1.LabelAnnotation.entity", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="category_entities", + full_name="google.cloud.videointelligence.v1.LabelAnnotation.category_entities", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1.LabelAnnotation.segments", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1.LabelAnnotation.frames", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1766, + serialized_end=2042, ) _EXPLICITCONTENTFRAME = _descriptor.Descriptor( - name='ExplicitContentFrame', - full_name='google.cloud.videointelligence.v1.ExplicitContentFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1.ExplicitContentFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pornography_likelihood', full_name='google.cloud.videointelligence.v1.ExplicitContentFrame.pornography_likelihood', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2045, - serialized_end=2194, + name="ExplicitContentFrame", + full_name="google.cloud.videointelligence.v1.ExplicitContentFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1.ExplicitContentFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pornography_likelihood", + full_name="google.cloud.videointelligence.v1.ExplicitContentFrame.pornography_likelihood", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2045, + serialized_end=2194, ) _EXPLICITCONTENTANNOTATION = _descriptor.Descriptor( - name='ExplicitContentAnnotation', - full_name='google.cloud.videointelligence.v1.ExplicitContentAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1.ExplicitContentAnnotation.frames', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2196, - serialized_end=2296, + name="ExplicitContentAnnotation", + full_name="google.cloud.videointelligence.v1.ExplicitContentAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1.ExplicitContentAnnotation.frames", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2196, + serialized_end=2296, ) _NORMALIZEDBOUNDINGBOX = _descriptor.Descriptor( - name='NormalizedBoundingBox', - full_name='google.cloud.videointelligence.v1.NormalizedBoundingBox', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='left', full_name='google.cloud.videointelligence.v1.NormalizedBoundingBox.left', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top', full_name='google.cloud.videointelligence.v1.NormalizedBoundingBox.top', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='right', full_name='google.cloud.videointelligence.v1.NormalizedBoundingBox.right', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bottom', full_name='google.cloud.videointelligence.v1.NormalizedBoundingBox.bottom', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2298, - serialized_end=2379, + name="NormalizedBoundingBox", + full_name="google.cloud.videointelligence.v1.NormalizedBoundingBox", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="left", + full_name="google.cloud.videointelligence.v1.NormalizedBoundingBox.left", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="top", + full_name="google.cloud.videointelligence.v1.NormalizedBoundingBox.top", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="right", + full_name="google.cloud.videointelligence.v1.NormalizedBoundingBox.right", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bottom", + full_name="google.cloud.videointelligence.v1.NormalizedBoundingBox.bottom", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2298, + serialized_end=2379, ) _FACESEGMENT = _descriptor.Descriptor( - name='FaceSegment', - full_name='google.cloud.videointelligence.v1.FaceSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1.FaceSegment.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2381, - serialized_end=2460, + name="FaceSegment", + full_name="google.cloud.videointelligence.v1.FaceSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1.FaceSegment.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2381, + serialized_end=2460, ) _FACEFRAME = _descriptor.Descriptor( - name='FaceFrame', - full_name='google.cloud.videointelligence.v1.FaceFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='normalized_bounding_boxes', full_name='google.cloud.videointelligence.v1.FaceFrame.normalized_bounding_boxes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1.FaceFrame.time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2463, - serialized_end=2615, + name="FaceFrame", + full_name="google.cloud.videointelligence.v1.FaceFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="normalized_bounding_boxes", + full_name="google.cloud.videointelligence.v1.FaceFrame.normalized_bounding_boxes", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1.FaceFrame.time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2463, + serialized_end=2615, ) _FACEANNOTATION = _descriptor.Descriptor( - name='FaceAnnotation', - full_name='google.cloud.videointelligence.v1.FaceAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='thumbnail', full_name='google.cloud.videointelligence.v1.FaceAnnotation.thumbnail', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1.FaceAnnotation.segments', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1.FaceAnnotation.frames', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2618, - serialized_end=2781, + name="FaceAnnotation", + full_name="google.cloud.videointelligence.v1.FaceAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="thumbnail", + full_name="google.cloud.videointelligence.v1.FaceAnnotation.thumbnail", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1.FaceAnnotation.segments", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1.FaceAnnotation.frames", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2618, + serialized_end=2781, ) _VIDEOANNOTATIONRESULTS = _descriptor.Descriptor( - name='VideoAnnotationResults', - full_name='google.cloud.videointelligence.v1.VideoAnnotationResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segment_label_annotations', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.segment_label_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_label_annotations', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.shot_label_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frame_label_annotations', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.frame_label_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='face_annotations', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.face_annotations', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_annotations', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.shot_annotations', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_annotation', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.explicit_annotation', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_transcriptions', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.speech_transcriptions', index=7, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.videointelligence.v1.VideoAnnotationResults.error', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2784, - serialized_end=3448, + name="VideoAnnotationResults", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segment_label_annotations", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.segment_label_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_label_annotations", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.shot_label_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frame_label_annotations", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.frame_label_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="face_annotations", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.face_annotations", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_annotations", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.shot_annotations", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_annotation", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.explicit_annotation", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_transcriptions", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.speech_transcriptions", + index=7, + number=11, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.videointelligence.v1.VideoAnnotationResults.error", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2784, + serialized_end=3448, ) _ANNOTATEVIDEORESPONSE = _descriptor.Descriptor( - name='AnnotateVideoResponse', - full_name='google.cloud.videointelligence.v1.AnnotateVideoResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_results', full_name='google.cloud.videointelligence.v1.AnnotateVideoResponse.annotation_results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3450, - serialized_end=3560, + name="AnnotateVideoResponse", + full_name="google.cloud.videointelligence.v1.AnnotateVideoResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_results", + full_name="google.cloud.videointelligence.v1.AnnotateVideoResponse.annotation_results", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3450, + serialized_end=3560, ) _VIDEOANNOTATIONPROGRESS = _descriptor.Descriptor( - name='VideoAnnotationProgress', - full_name='google.cloud.videointelligence.v1.VideoAnnotationProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1.VideoAnnotationProgress.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress_percent', full_name='google.cloud.videointelligence.v1.VideoAnnotationProgress.progress_percent', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.videointelligence.v1.VideoAnnotationProgress.start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.videointelligence.v1.VideoAnnotationProgress.update_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3563, - serialized_end=3730, + name="VideoAnnotationProgress", + full_name="google.cloud.videointelligence.v1.VideoAnnotationProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1.VideoAnnotationProgress.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.cloud.videointelligence.v1.VideoAnnotationProgress.progress_percent", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.videointelligence.v1.VideoAnnotationProgress.start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.videointelligence.v1.VideoAnnotationProgress.update_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3563, + serialized_end=3730, ) _ANNOTATEVIDEOPROGRESS = _descriptor.Descriptor( - name='AnnotateVideoProgress', - full_name='google.cloud.videointelligence.v1.AnnotateVideoProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_progress', full_name='google.cloud.videointelligence.v1.AnnotateVideoProgress.annotation_progress', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3732, - serialized_end=3844, + name="AnnotateVideoProgress", + full_name="google.cloud.videointelligence.v1.AnnotateVideoProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_progress", + full_name="google.cloud.videointelligence.v1.AnnotateVideoProgress.annotation_progress", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3732, + serialized_end=3844, ) _SPEECHTRANSCRIPTIONCONFIG = _descriptor.Descriptor( - name='SpeechTranscriptionConfig', - full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_alternatives', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.max_alternatives', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter_profanity', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.filter_profanity', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_contexts', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.speech_contexts', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_automatic_punctuation', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.enable_automatic_punctuation', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio_tracks', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.audio_tracks', index=5, - number=6, type=5, cpp_type=1, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_speaker_diarization', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.enable_speaker_diarization', index=6, - number=7, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='diarization_speaker_count', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.diarization_speaker_count', index=7, - number=8, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_word_confidence', full_name='google.cloud.videointelligence.v1.SpeechTranscriptionConfig.enable_word_confidence', index=8, - number=9, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3847, - serialized_end=4187, + name="SpeechTranscriptionConfig", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_alternatives", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.max_alternatives", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter_profanity", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.filter_profanity", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_contexts", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.speech_contexts", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_automatic_punctuation", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.enable_automatic_punctuation", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio_tracks", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.audio_tracks", + index=5, + number=6, + type=5, + cpp_type=1, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_speaker_diarization", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.enable_speaker_diarization", + index=6, + number=7, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="diarization_speaker_count", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.diarization_speaker_count", + index=7, + number=8, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_word_confidence", + full_name="google.cloud.videointelligence.v1.SpeechTranscriptionConfig.enable_word_confidence", + index=8, + number=9, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3847, + serialized_end=4187, ) _SPEECHCONTEXT = _descriptor.Descriptor( - name='SpeechContext', - full_name='google.cloud.videointelligence.v1.SpeechContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='phrases', full_name='google.cloud.videointelligence.v1.SpeechContext.phrases', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4189, - serialized_end=4221, + name="SpeechContext", + full_name="google.cloud.videointelligence.v1.SpeechContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="phrases", + full_name="google.cloud.videointelligence.v1.SpeechContext.phrases", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4189, + serialized_end=4221, ) _SPEECHTRANSCRIPTION = _descriptor.Descriptor( - name='SpeechTranscription', - full_name='google.cloud.videointelligence.v1.SpeechTranscription', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alternatives', full_name='google.cloud.videointelligence.v1.SpeechTranscription.alternatives', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1.SpeechTranscription.language_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4224, - serialized_end=4355, + name="SpeechTranscription", + full_name="google.cloud.videointelligence.v1.SpeechTranscription", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alternatives", + full_name="google.cloud.videointelligence.v1.SpeechTranscription.alternatives", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1.SpeechTranscription.language_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4224, + serialized_end=4355, ) _SPEECHRECOGNITIONALTERNATIVE = _descriptor.Descriptor( - name='SpeechRecognitionAlternative', - full_name='google.cloud.videointelligence.v1.SpeechRecognitionAlternative', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transcript', full_name='google.cloud.videointelligence.v1.SpeechRecognitionAlternative.transcript', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1.SpeechRecognitionAlternative.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='words', full_name='google.cloud.videointelligence.v1.SpeechRecognitionAlternative.words', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4358, - serialized_end=4488, + name="SpeechRecognitionAlternative", + full_name="google.cloud.videointelligence.v1.SpeechRecognitionAlternative", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transcript", + full_name="google.cloud.videointelligence.v1.SpeechRecognitionAlternative.transcript", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1.SpeechRecognitionAlternative.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="words", + full_name="google.cloud.videointelligence.v1.SpeechRecognitionAlternative.words", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4358, + serialized_end=4488, ) _WORDINFO = _descriptor.Descriptor( - name='WordInfo', - full_name='google.cloud.videointelligence.v1.WordInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.videointelligence.v1.WordInfo.start_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.videointelligence.v1.WordInfo.end_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='word', full_name='google.cloud.videointelligence.v1.WordInfo.word', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1.WordInfo.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speaker_tag', full_name='google.cloud.videointelligence.v1.WordInfo.speaker_tag', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4491, - serialized_end=4648, + name="WordInfo", + full_name="google.cloud.videointelligence.v1.WordInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.videointelligence.v1.WordInfo.start_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.videointelligence.v1.WordInfo.end_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="word", + full_name="google.cloud.videointelligence.v1.WordInfo.word", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1.WordInfo.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speaker_tag", + full_name="google.cloud.videointelligence.v1.WordInfo.speaker_tag", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4491, + serialized_end=4648, ) -_ANNOTATEVIDEOREQUEST.fields_by_name['features'].enum_type = _FEATURE -_ANNOTATEVIDEOREQUEST.fields_by_name['video_context'].message_type = _VIDEOCONTEXT -_VIDEOCONTEXT.fields_by_name['segments'].message_type = _VIDEOSEGMENT -_VIDEOCONTEXT.fields_by_name['label_detection_config'].message_type = _LABELDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['shot_change_detection_config'].message_type = _SHOTCHANGEDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['explicit_content_detection_config'].message_type = _EXPLICITCONTENTDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['face_detection_config'].message_type = _FACEDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['speech_transcription_config'].message_type = _SPEECHTRANSCRIPTIONCONFIG -_LABELDETECTIONCONFIG.fields_by_name['label_detection_mode'].enum_type = _LABELDETECTIONMODE -_VIDEOSEGMENT.fields_by_name['start_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_VIDEOSEGMENT.fields_by_name['end_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELSEGMENT.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_LABELFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELANNOTATION.fields_by_name['entity'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['category_entities'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['segments'].message_type = _LABELSEGMENT -_LABELANNOTATION.fields_by_name['frames'].message_type = _LABELFRAME -_EXPLICITCONTENTFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_EXPLICITCONTENTFRAME.fields_by_name['pornography_likelihood'].enum_type = _LIKELIHOOD -_EXPLICITCONTENTANNOTATION.fields_by_name['frames'].message_type = _EXPLICITCONTENTFRAME -_FACESEGMENT.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_FACEFRAME.fields_by_name['normalized_bounding_boxes'].message_type = _NORMALIZEDBOUNDINGBOX -_FACEFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_FACEANNOTATION.fields_by_name['segments'].message_type = _FACESEGMENT -_FACEANNOTATION.fields_by_name['frames'].message_type = _FACEFRAME -_VIDEOANNOTATIONRESULTS.fields_by_name['segment_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['frame_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['face_annotations'].message_type = _FACEANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_annotations'].message_type = _VIDEOSEGMENT -_VIDEOANNOTATIONRESULTS.fields_by_name['explicit_annotation'].message_type = _EXPLICITCONTENTANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['speech_transcriptions'].message_type = _SPEECHTRANSCRIPTION -_VIDEOANNOTATIONRESULTS.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ANNOTATEVIDEORESPONSE.fields_by_name['annotation_results'].message_type = _VIDEOANNOTATIONRESULTS -_VIDEOANNOTATIONPROGRESS.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_VIDEOANNOTATIONPROGRESS.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ANNOTATEVIDEOPROGRESS.fields_by_name['annotation_progress'].message_type = _VIDEOANNOTATIONPROGRESS -_SPEECHTRANSCRIPTIONCONFIG.fields_by_name['speech_contexts'].message_type = _SPEECHCONTEXT -_SPEECHTRANSCRIPTION.fields_by_name['alternatives'].message_type = _SPEECHRECOGNITIONALTERNATIVE -_SPEECHRECOGNITIONALTERNATIVE.fields_by_name['words'].message_type = _WORDINFO -_WORDINFO.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_WORDINFO.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -DESCRIPTOR.message_types_by_name['AnnotateVideoRequest'] = _ANNOTATEVIDEOREQUEST -DESCRIPTOR.message_types_by_name['VideoContext'] = _VIDEOCONTEXT -DESCRIPTOR.message_types_by_name['LabelDetectionConfig'] = _LABELDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ShotChangeDetectionConfig'] = _SHOTCHANGEDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ExplicitContentDetectionConfig'] = _EXPLICITCONTENTDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['FaceDetectionConfig'] = _FACEDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['VideoSegment'] = _VIDEOSEGMENT -DESCRIPTOR.message_types_by_name['LabelSegment'] = _LABELSEGMENT -DESCRIPTOR.message_types_by_name['LabelFrame'] = _LABELFRAME -DESCRIPTOR.message_types_by_name['Entity'] = _ENTITY -DESCRIPTOR.message_types_by_name['LabelAnnotation'] = _LABELANNOTATION -DESCRIPTOR.message_types_by_name['ExplicitContentFrame'] = _EXPLICITCONTENTFRAME -DESCRIPTOR.message_types_by_name['ExplicitContentAnnotation'] = _EXPLICITCONTENTANNOTATION -DESCRIPTOR.message_types_by_name['NormalizedBoundingBox'] = _NORMALIZEDBOUNDINGBOX -DESCRIPTOR.message_types_by_name['FaceSegment'] = _FACESEGMENT -DESCRIPTOR.message_types_by_name['FaceFrame'] = _FACEFRAME -DESCRIPTOR.message_types_by_name['FaceAnnotation'] = _FACEANNOTATION -DESCRIPTOR.message_types_by_name['VideoAnnotationResults'] = _VIDEOANNOTATIONRESULTS -DESCRIPTOR.message_types_by_name['AnnotateVideoResponse'] = _ANNOTATEVIDEORESPONSE -DESCRIPTOR.message_types_by_name['VideoAnnotationProgress'] = _VIDEOANNOTATIONPROGRESS -DESCRIPTOR.message_types_by_name['AnnotateVideoProgress'] = _ANNOTATEVIDEOPROGRESS -DESCRIPTOR.message_types_by_name['SpeechTranscriptionConfig'] = _SPEECHTRANSCRIPTIONCONFIG -DESCRIPTOR.message_types_by_name['SpeechContext'] = _SPEECHCONTEXT -DESCRIPTOR.message_types_by_name['SpeechTranscription'] = _SPEECHTRANSCRIPTION -DESCRIPTOR.message_types_by_name['SpeechRecognitionAlternative'] = _SPEECHRECOGNITIONALTERNATIVE -DESCRIPTOR.message_types_by_name['WordInfo'] = _WORDINFO -DESCRIPTOR.enum_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.enum_types_by_name['LabelDetectionMode'] = _LABELDETECTIONMODE -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +_ANNOTATEVIDEOREQUEST.fields_by_name["features"].enum_type = _FEATURE +_ANNOTATEVIDEOREQUEST.fields_by_name["video_context"].message_type = _VIDEOCONTEXT +_VIDEOCONTEXT.fields_by_name["segments"].message_type = _VIDEOSEGMENT +_VIDEOCONTEXT.fields_by_name[ + "label_detection_config" +].message_type = _LABELDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "shot_change_detection_config" +].message_type = _SHOTCHANGEDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "explicit_content_detection_config" +].message_type = _EXPLICITCONTENTDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "face_detection_config" +].message_type = _FACEDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "speech_transcription_config" +].message_type = _SPEECHTRANSCRIPTIONCONFIG +_LABELDETECTIONCONFIG.fields_by_name[ + "label_detection_mode" +].enum_type = _LABELDETECTIONMODE +_VIDEOSEGMENT.fields_by_name[ + "start_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_VIDEOSEGMENT.fields_by_name[ + "end_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELSEGMENT.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_LABELFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELANNOTATION.fields_by_name["entity"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["category_entities"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["segments"].message_type = _LABELSEGMENT +_LABELANNOTATION.fields_by_name["frames"].message_type = _LABELFRAME +_EXPLICITCONTENTFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_EXPLICITCONTENTFRAME.fields_by_name["pornography_likelihood"].enum_type = _LIKELIHOOD +_EXPLICITCONTENTANNOTATION.fields_by_name["frames"].message_type = _EXPLICITCONTENTFRAME +_FACESEGMENT.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_FACEFRAME.fields_by_name[ + "normalized_bounding_boxes" +].message_type = _NORMALIZEDBOUNDINGBOX +_FACEFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_FACEANNOTATION.fields_by_name["segments"].message_type = _FACESEGMENT +_FACEANNOTATION.fields_by_name["frames"].message_type = _FACEFRAME +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "segment_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "shot_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "frame_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "face_annotations" +].message_type = _FACEANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name["shot_annotations"].message_type = _VIDEOSEGMENT +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "explicit_annotation" +].message_type = _EXPLICITCONTENTANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "speech_transcriptions" +].message_type = _SPEECHTRANSCRIPTION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ANNOTATEVIDEORESPONSE.fields_by_name[ + "annotation_results" +].message_type = _VIDEOANNOTATIONRESULTS +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ANNOTATEVIDEOPROGRESS.fields_by_name[ + "annotation_progress" +].message_type = _VIDEOANNOTATIONPROGRESS +_SPEECHTRANSCRIPTIONCONFIG.fields_by_name[ + "speech_contexts" +].message_type = _SPEECHCONTEXT +_SPEECHTRANSCRIPTION.fields_by_name[ + "alternatives" +].message_type = _SPEECHRECOGNITIONALTERNATIVE +_SPEECHRECOGNITIONALTERNATIVE.fields_by_name["words"].message_type = _WORDINFO +_WORDINFO.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_WORDINFO.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name["AnnotateVideoRequest"] = _ANNOTATEVIDEOREQUEST +DESCRIPTOR.message_types_by_name["VideoContext"] = _VIDEOCONTEXT +DESCRIPTOR.message_types_by_name["LabelDetectionConfig"] = _LABELDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ShotChangeDetectionConfig" +] = _SHOTCHANGEDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ExplicitContentDetectionConfig" +] = _EXPLICITCONTENTDETECTIONCONFIG +DESCRIPTOR.message_types_by_name["FaceDetectionConfig"] = _FACEDETECTIONCONFIG +DESCRIPTOR.message_types_by_name["VideoSegment"] = _VIDEOSEGMENT +DESCRIPTOR.message_types_by_name["LabelSegment"] = _LABELSEGMENT +DESCRIPTOR.message_types_by_name["LabelFrame"] = _LABELFRAME +DESCRIPTOR.message_types_by_name["Entity"] = _ENTITY +DESCRIPTOR.message_types_by_name["LabelAnnotation"] = _LABELANNOTATION +DESCRIPTOR.message_types_by_name["ExplicitContentFrame"] = _EXPLICITCONTENTFRAME +DESCRIPTOR.message_types_by_name[ + "ExplicitContentAnnotation" +] = _EXPLICITCONTENTANNOTATION +DESCRIPTOR.message_types_by_name["NormalizedBoundingBox"] = _NORMALIZEDBOUNDINGBOX +DESCRIPTOR.message_types_by_name["FaceSegment"] = _FACESEGMENT +DESCRIPTOR.message_types_by_name["FaceFrame"] = _FACEFRAME +DESCRIPTOR.message_types_by_name["FaceAnnotation"] = _FACEANNOTATION +DESCRIPTOR.message_types_by_name["VideoAnnotationResults"] = _VIDEOANNOTATIONRESULTS +DESCRIPTOR.message_types_by_name["AnnotateVideoResponse"] = _ANNOTATEVIDEORESPONSE +DESCRIPTOR.message_types_by_name["VideoAnnotationProgress"] = _VIDEOANNOTATIONPROGRESS +DESCRIPTOR.message_types_by_name["AnnotateVideoProgress"] = _ANNOTATEVIDEOPROGRESS +DESCRIPTOR.message_types_by_name[ + "SpeechTranscriptionConfig" +] = _SPEECHTRANSCRIPTIONCONFIG +DESCRIPTOR.message_types_by_name["SpeechContext"] = _SPEECHCONTEXT +DESCRIPTOR.message_types_by_name["SpeechTranscription"] = _SPEECHTRANSCRIPTION +DESCRIPTOR.message_types_by_name[ + "SpeechRecognitionAlternative" +] = _SPEECHRECOGNITIONALTERNATIVE +DESCRIPTOR.message_types_by_name["WordInfo"] = _WORDINFO +DESCRIPTOR.enum_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.enum_types_by_name["LabelDetectionMode"] = _LABELDETECTIONMODE +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType('AnnotateVideoRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOREQUEST, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation request. +AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOREQUEST, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video annotation request. Attributes: @@ -1457,15 +2328,18 @@ west1``, ``asia-east1``. If no region is specified, a region will be determined based on video file location. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.AnnotateVideoRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.AnnotateVideoRequest) + ), +) _sym_db.RegisterMessage(AnnotateVideoRequest) -VideoContext = _reflection.GeneratedProtocolMessageType('VideoContext', (_message.Message,), dict( - DESCRIPTOR = _VIDEOCONTEXT, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video context and/or feature-specific parameters. +VideoContext = _reflection.GeneratedProtocolMessageType( + "VideoContext", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOCONTEXT, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video context and/or feature-specific parameters. Attributes: @@ -1484,15 +2358,18 @@ speech_transcription_config: Config for SPEECH\_TRANSCRIPTION. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoContext) + ), +) _sym_db.RegisterMessage(VideoContext) -LabelDetectionConfig = _reflection.GeneratedProtocolMessageType('LabelDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _LABELDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Config for LABEL\_DETECTION. +LabelDetectionConfig = _reflection.GeneratedProtocolMessageType( + "LabelDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_LABELDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Config for LABEL\_DETECTION. Attributes: @@ -1509,15 +2386,18 @@ Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelDetectionConfig) + ), +) _sym_db.RegisterMessage(LabelDetectionConfig) -ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType('ShotChangeDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _SHOTCHANGEDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Config for SHOT\_CHANGE\_DETECTION. +ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ShotChangeDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_SHOTCHANGEDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Config for SHOT\_CHANGE\_DETECTION. Attributes: @@ -1525,15 +2405,18 @@ Model to use for shot change detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ShotChangeDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ShotChangeDetectionConfig) + ), +) _sym_db.RegisterMessage(ShotChangeDetectionConfig) -ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType('ExplicitContentDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Config for EXPLICIT\_CONTENT\_DETECTION. +ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ExplicitContentDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Config for EXPLICIT\_CONTENT\_DETECTION. Attributes: @@ -1541,15 +2424,18 @@ Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ExplicitContentDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ExplicitContentDetectionConfig) + ), +) _sym_db.RegisterMessage(ExplicitContentDetectionConfig) -FaceDetectionConfig = _reflection.GeneratedProtocolMessageType('FaceDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _FACEDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Config for FACE\_DETECTION. +FaceDetectionConfig = _reflection.GeneratedProtocolMessageType( + "FaceDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_FACEDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Config for FACE\_DETECTION. Attributes: @@ -1560,15 +2446,18 @@ Whether bounding boxes be included in the face annotation output. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceDetectionConfig) + ), +) _sym_db.RegisterMessage(FaceDetectionConfig) -VideoSegment = _reflection.GeneratedProtocolMessageType('VideoSegment', (_message.Message,), dict( - DESCRIPTOR = _VIDEOSEGMENT, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment. +VideoSegment = _reflection.GeneratedProtocolMessageType( + "VideoSegment", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOSEGMENT, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video segment. Attributes: @@ -1579,15 +2468,18 @@ Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoSegment) + ), +) _sym_db.RegisterMessage(VideoSegment) -LabelSegment = _reflection.GeneratedProtocolMessageType('LabelSegment', (_message.Message,), dict( - DESCRIPTOR = _LABELSEGMENT, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment level annotation results for label detection. +LabelSegment = _reflection.GeneratedProtocolMessageType( + "LabelSegment", + (_message.Message,), + dict( + DESCRIPTOR=_LABELSEGMENT, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video segment level annotation results for label detection. Attributes: @@ -1596,15 +2488,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelSegment) + ), +) _sym_db.RegisterMessage(LabelSegment) -LabelFrame = _reflection.GeneratedProtocolMessageType('LabelFrame', (_message.Message,), dict( - DESCRIPTOR = _LABELFRAME, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for label detection. +LabelFrame = _reflection.GeneratedProtocolMessageType( + "LabelFrame", + (_message.Message,), + dict( + DESCRIPTOR=_LABELFRAME, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for label detection. Attributes: @@ -1614,15 +2509,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelFrame) + ), +) _sym_db.RegisterMessage(LabelFrame) -Entity = _reflection.GeneratedProtocolMessageType('Entity', (_message.Message,), dict( - DESCRIPTOR = _ENTITY, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Detected entity from video analysis. +Entity = _reflection.GeneratedProtocolMessageType( + "Entity", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITY, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Detected entity from video analysis. Attributes: @@ -1635,15 +2533,18 @@ language_code: Language code for ``description`` in BCP-47 format. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.Entity) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.Entity) + ), +) _sym_db.RegisterMessage(Entity) -LabelAnnotation = _reflection.GeneratedProtocolMessageType('LabelAnnotation', (_message.Message,), dict( - DESCRIPTOR = _LABELANNOTATION, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Label annotation. +LabelAnnotation = _reflection.GeneratedProtocolMessageType( + "LabelAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_LABELANNOTATION, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Label annotation. Attributes: @@ -1659,15 +2560,18 @@ frames: All video frames where a label was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.LabelAnnotation) + ), +) _sym_db.RegisterMessage(LabelAnnotation) -ExplicitContentFrame = _reflection.GeneratedProtocolMessageType('ExplicitContentFrame', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTFRAME, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for explicit content. +ExplicitContentFrame = _reflection.GeneratedProtocolMessageType( + "ExplicitContentFrame", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTFRAME, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for explicit content. Attributes: @@ -1677,15 +2581,18 @@ pornography_likelihood: Likelihood of the pornography content.. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ExplicitContentFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ExplicitContentFrame) + ), +) _sym_db.RegisterMessage(ExplicitContentFrame) -ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType('ExplicitContentAnnotation', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTANNOTATION, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Explicit content annotation (based on per-frame visual signals only). If +ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType( + "ExplicitContentAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTANNOTATION, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame. @@ -1694,15 +2601,18 @@ frames: All video frames where explicit content was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ExplicitContentAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ExplicitContentAnnotation) + ), +) _sym_db.RegisterMessage(ExplicitContentAnnotation) -NormalizedBoundingBox = _reflection.GeneratedProtocolMessageType('NormalizedBoundingBox', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDBOUNDINGBOX, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Normalized bounding box. The normalized vertex coordinates are relative +NormalizedBoundingBox = _reflection.GeneratedProtocolMessageType( + "NormalizedBoundingBox", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDBOUNDINGBOX, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1]. @@ -1716,30 +2626,36 @@ bottom: Bottom Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.NormalizedBoundingBox) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.NormalizedBoundingBox) + ), +) _sym_db.RegisterMessage(NormalizedBoundingBox) -FaceSegment = _reflection.GeneratedProtocolMessageType('FaceSegment', (_message.Message,), dict( - DESCRIPTOR = _FACESEGMENT, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment level annotation results for face detection. +FaceSegment = _reflection.GeneratedProtocolMessageType( + "FaceSegment", + (_message.Message,), + dict( + DESCRIPTOR=_FACESEGMENT, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video segment level annotation results for face detection. Attributes: segment: Video segment where a face was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceSegment) + ), +) _sym_db.RegisterMessage(FaceSegment) -FaceFrame = _reflection.GeneratedProtocolMessageType('FaceFrame', (_message.Message,), dict( - DESCRIPTOR = _FACEFRAME, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for face detection. +FaceFrame = _reflection.GeneratedProtocolMessageType( + "FaceFrame", + (_message.Message,), + dict( + DESCRIPTOR=_FACEFRAME, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for face detection. Attributes: @@ -1751,15 +2667,18 @@ Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceFrame) + ), +) _sym_db.RegisterMessage(FaceFrame) -FaceAnnotation = _reflection.GeneratedProtocolMessageType('FaceAnnotation', (_message.Message,), dict( - DESCRIPTOR = _FACEANNOTATION, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Face annotation. +FaceAnnotation = _reflection.GeneratedProtocolMessageType( + "FaceAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_FACEANNOTATION, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Face annotation. Attributes: @@ -1770,15 +2689,18 @@ frames: All video frames where a face was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.FaceAnnotation) + ), +) _sym_db.RegisterMessage(FaceAnnotation) -VideoAnnotationResults = _reflection.GeneratedProtocolMessageType('VideoAnnotationResults', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONRESULTS, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation results for a single video. +VideoAnnotationResults = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationResults", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONRESULTS, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Annotation results for a single video. Attributes: @@ -1808,15 +2730,18 @@ ``AnnotateVideoRequest`` some videos may succeed and some may fail. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoAnnotationResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoAnnotationResults) + ), +) _sym_db.RegisterMessage(VideoAnnotationResults) -AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType('AnnotateVideoResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEORESPONSE, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation response. Included in the ``response`` field of the +AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEORESPONSE, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video annotation response. Included in the ``response`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1826,15 +2751,18 @@ Annotation results for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.AnnotateVideoResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.AnnotateVideoResponse) + ), +) _sym_db.RegisterMessage(AnnotateVideoResponse) -VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType('VideoAnnotationProgress', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONPROGRESS, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation progress for a single video. +VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationProgress", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONPROGRESS, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Annotation progress for a single video. Attributes: @@ -1849,15 +2777,18 @@ update_time: Time of the most recent update. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoAnnotationProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.VideoAnnotationProgress) + ), +) _sym_db.RegisterMessage(VideoAnnotationProgress) -AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType('AnnotateVideoProgress', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOPROGRESS, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation progress. Included in the ``metadata`` field of the +AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoProgress", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOPROGRESS, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Video annotation progress. Included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1867,15 +2798,18 @@ Progress metadata for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.AnnotateVideoProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.AnnotateVideoProgress) + ), +) _sym_db.RegisterMessage(AnnotateVideoProgress) -SpeechTranscriptionConfig = _reflection.GeneratedProtocolMessageType('SpeechTranscriptionConfig', (_message.Message,), dict( - DESCRIPTOR = _SPEECHTRANSCRIPTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Config for SPEECH\_TRANSCRIPTION. +SpeechTranscriptionConfig = _reflection.GeneratedProtocolMessageType( + "SpeechTranscriptionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHTRANSCRIPTIONCONFIG, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Config for SPEECH\_TRANSCRIPTION. Attributes: @@ -1934,15 +2868,18 @@ word-level confidence information is returned. The default is ``false``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechTranscriptionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechTranscriptionConfig) + ), +) _sym_db.RegisterMessage(SpeechTranscriptionConfig) -SpeechContext = _reflection.GeneratedProtocolMessageType('SpeechContext', (_message.Message,), dict( - DESCRIPTOR = _SPEECHCONTEXT, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Provides "hints" to the speech recognizer to favor specific words and +SpeechContext = _reflection.GeneratedProtocolMessageType( + "SpeechContext", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHCONTEXT, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Provides "hints" to the speech recognizer to favor specific words and phrases in the results. @@ -1957,15 +2894,18 @@ `usage limits `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechContext) + ), +) _sym_db.RegisterMessage(SpeechContext) -SpeechTranscription = _reflection.GeneratedProtocolMessageType('SpeechTranscription', (_message.Message,), dict( - DESCRIPTOR = _SPEECHTRANSCRIPTION, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """A speech recognition result corresponding to a portion of the audio. +SpeechTranscription = _reflection.GeneratedProtocolMessageType( + "SpeechTranscription", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHTRANSCRIPTION, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""A speech recognition result corresponding to a portion of the audio. Attributes: @@ -1981,15 +2921,18 @@ in this result. This language code was detected to have the most likelihood of being spoken in the audio. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechTranscription) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechTranscription) + ), +) _sym_db.RegisterMessage(SpeechTranscription) -SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType('SpeechRecognitionAlternative', (_message.Message,), dict( - DESCRIPTOR = _SPEECHRECOGNITIONALTERNATIVE, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Alternative hypotheses (a.k.a. n-best list). +SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType( + "SpeechRecognitionAlternative", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHRECOGNITIONALTERNATIVE, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Alternative hypotheses (a.k.a. n-best list). Attributes: @@ -2006,15 +2949,18 @@ words: A list of word-specific information for each recognized word. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechRecognitionAlternative) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.SpeechRecognitionAlternative) + ), +) _sym_db.RegisterMessage(SpeechRecognitionAlternative) -WordInfo = _reflection.GeneratedProtocolMessageType('WordInfo', (_message.Message,), dict( - DESCRIPTOR = _WORDINFO, - __module__ = 'google.cloud.videointelligence_v1.proto.video_intelligence_pb2' - , - __doc__ = """Word-specific information for recognized words. Word information is only +WordInfo = _reflection.GeneratedProtocolMessageType( + "WordInfo", + (_message.Message,), + dict( + DESCRIPTOR=_WORDINFO, + __module__="google.cloud.videointelligence_v1.proto.video_intelligence_pb2", + __doc__="""Word-specific information for recognized words. Word information is only included in the response when certain request parameters are set, such as ``enable_word_time_offsets``. @@ -2049,35 +2995,45 @@ ranges from 1 up to diarization\_speaker\_count, and is only set if speaker diarization is enabled. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.WordInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.WordInfo) + ), +) _sym_db.RegisterMessage(WordInfo) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.cloud.videointelligence.v1B\035VideoIntelligenceServiceProtoP\001ZRgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1;videointelligence\252\002!Google.Cloud.VideoIntelligence.V1\312\002!Google\\Cloud\\VideoIntelligence\\V1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n%com.google.cloud.videointelligence.v1B\035VideoIntelligenceServiceProtoP\001ZRgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1;videointelligence\252\002!Google.Cloud.VideoIntelligence.V1\312\002!Google\\Cloud\\VideoIntelligence\\V1" + ), +) _VIDEOINTELLIGENCESERVICE = _descriptor.ServiceDescriptor( - name='VideoIntelligenceService', - full_name='google.cloud.videointelligence.v1.VideoIntelligenceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=5048, - serialized_end=5212, - methods=[ - _descriptor.MethodDescriptor( - name='AnnotateVideo', - full_name='google.cloud.videointelligence.v1.VideoIntelligenceService.AnnotateVideo', + name="VideoIntelligenceService", + full_name="google.cloud.videointelligence.v1.VideoIntelligenceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_ANNOTATEVIDEOREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\030\"\023/v1/videos:annotate:\001*')), - ), -]) + options=None, + serialized_start=5048, + serialized_end=5212, + methods=[ + _descriptor.MethodDescriptor( + name="AnnotateVideo", + full_name="google.cloud.videointelligence.v1.VideoIntelligenceService.AnnotateVideo", + index=0, + containing_service=None, + input_type=_ANNOTATEVIDEOREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\030"\023/v1/videos:annotate:\001*'), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) -DESCRIPTOR.services_by_name['VideoIntelligenceService'] = _VIDEOINTELLIGENCESERVICE +DESCRIPTOR.services_by_name["VideoIntelligenceService"] = _VIDEOINTELLIGENCESERVICE # @@protoc_insertion_point(module_scope) diff --git a/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py b/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py index c23936c523dfb..672a18eb9f42d 100644 --- a/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py +++ b/videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py @@ -1,50 +1,56 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.videointelligence_v1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.videointelligence_v1.proto import ( + video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class VideoIntelligenceServiceStub(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.AnnotateVideo = channel.unary_unary( - '/google.cloud.videointelligence.v1.VideoIntelligenceService/AnnotateVideo', - request_serializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.AnnotateVideo = channel.unary_unary( + "/google.cloud.videointelligence.v1.VideoIntelligenceService/AnnotateVideo", + request_serializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class VideoIntelligenceServiceServicer(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def AnnotateVideo(self, request, context): - """Performs asynchronous video annotation. Progress and results can be + def AnnotateVideo(self, request, context): + """Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_VideoIntelligenceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'AnnotateVideo': grpc.unary_unary_rpc_method_handler( - servicer.AnnotateVideo, - request_deserializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.videointelligence.v1.VideoIntelligenceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "AnnotateVideo": grpc.unary_unary_rpc_method_handler( + servicer.AnnotateVideo, + request_deserializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.videointelligence.v1.VideoIntelligenceService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py b/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py index 18d570798140b..a1f86799979f4 100644 --- a/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py +++ b/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py @@ -2,168 +2,163 @@ # source: google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto', - package='google.cloud.videointelligence.v1beta1', - syntax='proto3', - serialized_pb=_b('\nEgoogle/cloud/videointelligence_v1beta1/proto/video_intelligence.proto\x12&google.cloud.videointelligence.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xf9\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\t\x12\x41\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32/.google.cloud.videointelligence.v1beta1.Feature\x12K\n\rvideo_context\x18\x03 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"\xd2\x02\n\x0cVideoContext\x12\x46\n\x08segments\x18\x01 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12X\n\x14label_detection_mode\x18\x02 \x01(\x0e\x32:.google.cloud.videointelligence.v1beta1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x03 \x01(\x08\x12\x1d\n\x15label_detection_model\x18\x04 \x01(\t\x12\x1c\n\x14\x66\x61\x63\x65_detection_model\x18\x05 \x01(\t\x12#\n\x1bshot_change_detection_model\x18\x06 \x01(\t\x12#\n\x1bsafe_search_detection_model\x18\x07 \x01(\t\"B\n\x0cVideoSegment\x12\x19\n\x11start_time_offset\x18\x01 \x01(\x03\x12\x17\n\x0f\x65nd_time_offset\x18\x02 \x01(\x03\"\xad\x01\n\rLabelLocation\x12\x45\n\x07segment\x18\x01 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x41\n\x05level\x18\x03 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.LabelLevel\"\x87\x01\n\x0fLabelAnnotation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12H\n\tlocations\x18\x03 \x03(\x0b\x32\x35.google.cloud.videointelligence.v1beta1.LabelLocation\"\xfd\x02\n\x14SafeSearchAnnotation\x12\x41\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x41\n\x05spoof\x18\x02 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x43\n\x07medical\x18\x03 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x43\n\x07violent\x18\x04 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12@\n\x04racy\x18\x05 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x13\n\x0btime_offset\x18\x06 \x01(\x03\"G\n\x0b\x42oundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x05\x12\r\n\x05right\x18\x02 \x01(\x05\x12\x0e\n\x06\x62ottom\x18\x03 \x01(\x05\x12\x0b\n\x03top\x18\x04 \x01(\x05\"n\n\x0c\x46\x61\x63\x65Location\x12I\n\x0c\x62ounding_box\x18\x01 \x01(\x0b\x32\x33.google.cloud.videointelligence.v1beta1.BoundingBox\x12\x13\n\x0btime_offset\x18\x02 \x01(\x03\"\xb4\x01\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x11\n\tthumbnail\x18\x01 \x01(\t\x12\x46\n\x08segments\x18\x02 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12G\n\tlocations\x18\x03 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.FaceLocation\"\xa3\x03\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12R\n\x11label_annotations\x18\x02 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta1.LabelAnnotation\x12P\n\x10\x66\x61\x63\x65_annotations\x18\x03 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1beta1.FaceAnnotation\x12N\n\x10shot_annotations\x18\x04 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12]\n\x17safe_search_annotations\x18\x06 \x03(\x0b\x32<.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation\x12!\n\x05\x65rror\x18\x05 \x01(\x0b\x32\x12.google.rpc.Status\"s\n\x15\x41nnotateVideoResponse\x12Z\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1beta1.VideoAnnotationResults\"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"u\n\x15\x41nnotateVideoProgress\x12\\\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32?.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress*\x81\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x02\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x03\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x04*n\n\nLabelLevel\x12\x1b\n\x17LABEL_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bVIDEO_LEVEL\x10\x01\x12\x11\n\rSEGMENT_LEVEL\x10\x02\x12\x0e\n\nSHOT_LEVEL\x10\x03\x12\x0f\n\x0b\x46RAME_LEVEL\x10\x04*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xae\x01\n\x18VideoIntelligenceService\x12\x91\x01\n\rAnnotateVideo\x12<.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation\"#\x82\xd3\xe4\x93\x02\x1d\"\x18/v1beta1/videos:annotate:\x01*B\xf8\x01\n*com.google.cloud.videointelligence.v1beta1B\x1dVideoIntelligenceServiceProtoP\x01ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence\xaa\x02&Google.Cloud.VideoIntelligence.V1Beta1\xca\x02&Google\\Cloud\\VideoIntelligence\\V1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto", + package="google.cloud.videointelligence.v1beta1", + syntax="proto3", + serialized_pb=_b( + '\nEgoogle/cloud/videointelligence_v1beta1/proto/video_intelligence.proto\x12&google.cloud.videointelligence.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xf9\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\t\x12\x41\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32/.google.cloud.videointelligence.v1beta1.Feature\x12K\n\rvideo_context\x18\x03 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t"\xd2\x02\n\x0cVideoContext\x12\x46\n\x08segments\x18\x01 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12X\n\x14label_detection_mode\x18\x02 \x01(\x0e\x32:.google.cloud.videointelligence.v1beta1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x03 \x01(\x08\x12\x1d\n\x15label_detection_model\x18\x04 \x01(\t\x12\x1c\n\x14\x66\x61\x63\x65_detection_model\x18\x05 \x01(\t\x12#\n\x1bshot_change_detection_model\x18\x06 \x01(\t\x12#\n\x1bsafe_search_detection_model\x18\x07 \x01(\t"B\n\x0cVideoSegment\x12\x19\n\x11start_time_offset\x18\x01 \x01(\x03\x12\x17\n\x0f\x65nd_time_offset\x18\x02 \x01(\x03"\xad\x01\n\rLabelLocation\x12\x45\n\x07segment\x18\x01 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x41\n\x05level\x18\x03 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.LabelLevel"\x87\x01\n\x0fLabelAnnotation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12H\n\tlocations\x18\x03 \x03(\x0b\x32\x35.google.cloud.videointelligence.v1beta1.LabelLocation"\xfd\x02\n\x14SafeSearchAnnotation\x12\x41\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x41\n\x05spoof\x18\x02 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x43\n\x07medical\x18\x03 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x43\n\x07violent\x18\x04 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12@\n\x04racy\x18\x05 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x13\n\x0btime_offset\x18\x06 \x01(\x03"G\n\x0b\x42oundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x05\x12\r\n\x05right\x18\x02 \x01(\x05\x12\x0e\n\x06\x62ottom\x18\x03 \x01(\x05\x12\x0b\n\x03top\x18\x04 \x01(\x05"n\n\x0c\x46\x61\x63\x65Location\x12I\n\x0c\x62ounding_box\x18\x01 \x01(\x0b\x32\x33.google.cloud.videointelligence.v1beta1.BoundingBox\x12\x13\n\x0btime_offset\x18\x02 \x01(\x03"\xb4\x01\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x11\n\tthumbnail\x18\x01 \x01(\t\x12\x46\n\x08segments\x18\x02 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12G\n\tlocations\x18\x03 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.FaceLocation"\xa3\x03\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12R\n\x11label_annotations\x18\x02 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta1.LabelAnnotation\x12P\n\x10\x66\x61\x63\x65_annotations\x18\x03 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1beta1.FaceAnnotation\x12N\n\x10shot_annotations\x18\x04 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12]\n\x17safe_search_annotations\x18\x06 \x03(\x0b\x32<.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation\x12!\n\x05\x65rror\x18\x05 \x01(\x0b\x32\x12.google.rpc.Status"s\n\x15\x41nnotateVideoResponse\x12Z\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1beta1.VideoAnnotationResults"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"u\n\x15\x41nnotateVideoProgress\x12\\\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32?.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress*\x81\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x02\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x03\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x04*n\n\nLabelLevel\x12\x1b\n\x17LABEL_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bVIDEO_LEVEL\x10\x01\x12\x11\n\rSEGMENT_LEVEL\x10\x02\x12\x0e\n\nSHOT_LEVEL\x10\x03\x12\x0f\n\x0b\x46RAME_LEVEL\x10\x04*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xae\x01\n\x18VideoIntelligenceService\x12\x91\x01\n\rAnnotateVideo\x12<.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation"#\x82\xd3\xe4\x93\x02\x1d"\x18/v1beta1/videos:annotate:\x01*B\xf8\x01\n*com.google.cloud.videointelligence.v1beta1B\x1dVideoIntelligenceServiceProtoP\x01ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence\xaa\x02&Google.Cloud.VideoIntelligence.V1Beta1\xca\x02&Google\\Cloud\\VideoIntelligence\\V1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _FEATURE = _descriptor.EnumDescriptor( - name='Feature', - full_name='google.cloud.videointelligence.v1beta1.Feature', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FEATURE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FACE_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_CHANGE_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SAFE_SEARCH_DETECTION', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2794, - serialized_end=2923, + name="Feature", + full_name="google.cloud.videointelligence.v1beta1.Feature", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FEATURE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FACE_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_CHANGE_DETECTION", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SAFE_SEARCH_DETECTION", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2794, + serialized_end=2923, ) _sym_db.RegisterEnumDescriptor(_FEATURE) Feature = enum_type_wrapper.EnumTypeWrapper(_FEATURE) _LABELLEVEL = _descriptor.EnumDescriptor( - name='LabelLevel', - full_name='google.cloud.videointelligence.v1beta1.LabelLevel', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LABEL_LEVEL_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VIDEO_LEVEL', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SEGMENT_LEVEL', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_LEVEL', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FRAME_LEVEL', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2925, - serialized_end=3035, + name="LabelLevel", + full_name="google.cloud.videointelligence.v1beta1.LabelLevel", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LABEL_LEVEL_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VIDEO_LEVEL", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SEGMENT_LEVEL", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_LEVEL", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FRAME_LEVEL", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2925, + serialized_end=3035, ) _sym_db.RegisterEnumDescriptor(_LABELLEVEL) LabelLevel = enum_type_wrapper.EnumTypeWrapper(_LABELLEVEL) _LABELDETECTIONMODE = _descriptor.EnumDescriptor( - name='LabelDetectionMode', - full_name='google.cloud.videointelligence.v1beta1.LabelDetectionMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION_MODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_MODE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FRAME_MODE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_AND_FRAME_MODE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3037, - serialized_end=3151, + name="LabelDetectionMode", + full_name="google.cloud.videointelligence.v1beta1.LabelDetectionMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION_MODE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SHOT_MODE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FRAME_MODE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_AND_FRAME_MODE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3037, + serialized_end=3151, ) _sym_db.RegisterEnumDescriptor(_LABELDETECTIONMODE) LabelDetectionMode = enum_type_wrapper.EnumTypeWrapper(_LABELDETECTIONMODE) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.videointelligence.v1beta1.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3153, - serialized_end=3254, + name="Likelihood", + full_name="google.cloud.videointelligence.v1beta1.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3153, + serialized_end=3254, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -190,702 +185,1208 @@ VERY_LIKELY = 5 - _ANNOTATEVIDEOREQUEST = _descriptor.Descriptor( - name='AnnotateVideoRequest', - full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_content', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.input_content', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.features', index=2, - number=2, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_context', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.video_context', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_uri', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.output_uri', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_id', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.location_id', index=5, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=239, - serialized_end=488, + name="AnnotateVideoRequest", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_content", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.input_content", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.features", + index=2, + number=2, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="video_context", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.video_context", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_uri", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.output_uri", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location_id", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.location_id", + index=5, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=239, + serialized_end=488, ) _VIDEOCONTEXT = _descriptor.Descriptor( - name='VideoContext', - full_name='google.cloud.videointelligence.v1beta1.VideoContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1beta1.VideoContext.segments', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_detection_mode', full_name='google.cloud.videointelligence.v1beta1.VideoContext.label_detection_mode', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stationary_camera', full_name='google.cloud.videointelligence.v1beta1.VideoContext.stationary_camera', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_detection_model', full_name='google.cloud.videointelligence.v1beta1.VideoContext.label_detection_model', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='face_detection_model', full_name='google.cloud.videointelligence.v1beta1.VideoContext.face_detection_model', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_change_detection_model', full_name='google.cloud.videointelligence.v1beta1.VideoContext.shot_change_detection_model', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='safe_search_detection_model', full_name='google.cloud.videointelligence.v1beta1.VideoContext.safe_search_detection_model', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=491, - serialized_end=829, + name="VideoContext", + full_name="google.cloud.videointelligence.v1beta1.VideoContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1beta1.VideoContext.segments", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_detection_mode", + full_name="google.cloud.videointelligence.v1beta1.VideoContext.label_detection_mode", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stationary_camera", + full_name="google.cloud.videointelligence.v1beta1.VideoContext.stationary_camera", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_detection_model", + full_name="google.cloud.videointelligence.v1beta1.VideoContext.label_detection_model", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="face_detection_model", + full_name="google.cloud.videointelligence.v1beta1.VideoContext.face_detection_model", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_change_detection_model", + full_name="google.cloud.videointelligence.v1beta1.VideoContext.shot_change_detection_model", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="safe_search_detection_model", + full_name="google.cloud.videointelligence.v1beta1.VideoContext.safe_search_detection_model", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=491, + serialized_end=829, ) _VIDEOSEGMENT = _descriptor.Descriptor( - name='VideoSegment', - full_name='google.cloud.videointelligence.v1beta1.VideoSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time_offset', full_name='google.cloud.videointelligence.v1beta1.VideoSegment.start_time_offset', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time_offset', full_name='google.cloud.videointelligence.v1beta1.VideoSegment.end_time_offset', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=831, - serialized_end=897, + name="VideoSegment", + full_name="google.cloud.videointelligence.v1beta1.VideoSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time_offset", + full_name="google.cloud.videointelligence.v1beta1.VideoSegment.start_time_offset", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time_offset", + full_name="google.cloud.videointelligence.v1beta1.VideoSegment.end_time_offset", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=831, + serialized_end=897, ) _LABELLOCATION = _descriptor.Descriptor( - name='LabelLocation', - full_name='google.cloud.videointelligence.v1beta1.LabelLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1beta1.LabelLocation.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1beta1.LabelLocation.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='level', full_name='google.cloud.videointelligence.v1beta1.LabelLocation.level', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=900, - serialized_end=1073, + name="LabelLocation", + full_name="google.cloud.videointelligence.v1beta1.LabelLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1beta1.LabelLocation.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1beta1.LabelLocation.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="level", + full_name="google.cloud.videointelligence.v1beta1.LabelLocation.level", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=900, + serialized_end=1073, ) _LABELANNOTATION = _descriptor.Descriptor( - name='LabelAnnotation', - full_name='google.cloud.videointelligence.v1beta1.LabelAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.videointelligence.v1beta1.LabelAnnotation.description', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1beta1.LabelAnnotation.language_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locations', full_name='google.cloud.videointelligence.v1beta1.LabelAnnotation.locations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1076, - serialized_end=1211, + name="LabelAnnotation", + full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation.description", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation.language_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locations", + full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation.locations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1076, + serialized_end=1211, ) _SAFESEARCHANNOTATION = _descriptor.Descriptor( - name='SafeSearchAnnotation', - full_name='google.cloud.videointelligence.v1beta1.SafeSearchAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='adult', full_name='google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.adult', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spoof', full_name='google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.spoof', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='medical', full_name='google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.medical', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='violent', full_name='google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.violent', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='racy', full_name='google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.racy', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.time_offset', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1214, - serialized_end=1595, + name="SafeSearchAnnotation", + full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="adult", + full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.adult", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spoof", + full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.spoof", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="medical", + full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.medical", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="violent", + full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.violent", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="racy", + full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.racy", + index=4, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.time_offset", + index=5, + number=6, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1214, + serialized_end=1595, ) _BOUNDINGBOX = _descriptor.Descriptor( - name='BoundingBox', - full_name='google.cloud.videointelligence.v1beta1.BoundingBox', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='left', full_name='google.cloud.videointelligence.v1beta1.BoundingBox.left', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='right', full_name='google.cloud.videointelligence.v1beta1.BoundingBox.right', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bottom', full_name='google.cloud.videointelligence.v1beta1.BoundingBox.bottom', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top', full_name='google.cloud.videointelligence.v1beta1.BoundingBox.top', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1597, - serialized_end=1668, + name="BoundingBox", + full_name="google.cloud.videointelligence.v1beta1.BoundingBox", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="left", + full_name="google.cloud.videointelligence.v1beta1.BoundingBox.left", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="right", + full_name="google.cloud.videointelligence.v1beta1.BoundingBox.right", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bottom", + full_name="google.cloud.videointelligence.v1beta1.BoundingBox.bottom", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="top", + full_name="google.cloud.videointelligence.v1beta1.BoundingBox.top", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1597, + serialized_end=1668, ) _FACELOCATION = _descriptor.Descriptor( - name='FaceLocation', - full_name='google.cloud.videointelligence.v1beta1.FaceLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.videointelligence.v1beta1.FaceLocation.bounding_box', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1beta1.FaceLocation.time_offset', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1670, - serialized_end=1780, + name="FaceLocation", + full_name="google.cloud.videointelligence.v1beta1.FaceLocation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.videointelligence.v1beta1.FaceLocation.bounding_box", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1beta1.FaceLocation.time_offset", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1670, + serialized_end=1780, ) _FACEANNOTATION = _descriptor.Descriptor( - name='FaceAnnotation', - full_name='google.cloud.videointelligence.v1beta1.FaceAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='thumbnail', full_name='google.cloud.videointelligence.v1beta1.FaceAnnotation.thumbnail', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1beta1.FaceAnnotation.segments', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locations', full_name='google.cloud.videointelligence.v1beta1.FaceAnnotation.locations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1783, - serialized_end=1963, + name="FaceAnnotation", + full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="thumbnail", + full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation.thumbnail", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation.segments", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locations", + full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation.locations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1783, + serialized_end=1963, ) _VIDEOANNOTATIONRESULTS = _descriptor.Descriptor( - name='VideoAnnotationResults', - full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationResults.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_annotations', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationResults.label_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='face_annotations', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationResults.face_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_annotations', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationResults.shot_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='safe_search_annotations', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationResults.safe_search_annotations', index=4, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationResults.error', index=5, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1966, - serialized_end=2385, + name="VideoAnnotationResults", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_annotations", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.label_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="face_annotations", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.face_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_annotations", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.shot_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="safe_search_annotations", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.safe_search_annotations", + index=4, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.error", + index=5, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1966, + serialized_end=2385, ) _ANNOTATEVIDEORESPONSE = _descriptor.Descriptor( - name='AnnotateVideoResponse', - full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_results', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoResponse.annotation_results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2387, - serialized_end=2502, + name="AnnotateVideoResponse", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_results", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoResponse.annotation_results", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2387, + serialized_end=2502, ) _VIDEOANNOTATIONPROGRESS = _descriptor.Descriptor( - name='VideoAnnotationProgress', - full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress_percent', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.progress_percent', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.update_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2505, - serialized_end=2672, + name="VideoAnnotationProgress", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.progress_percent", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.update_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2505, + serialized_end=2672, ) _ANNOTATEVIDEOPROGRESS = _descriptor.Descriptor( - name='AnnotateVideoProgress', - full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_progress', full_name='google.cloud.videointelligence.v1beta1.AnnotateVideoProgress.annotation_progress', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2674, - serialized_end=2791, + name="AnnotateVideoProgress", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_progress", + full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoProgress.annotation_progress", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2674, + serialized_end=2791, ) -_ANNOTATEVIDEOREQUEST.fields_by_name['features'].enum_type = _FEATURE -_ANNOTATEVIDEOREQUEST.fields_by_name['video_context'].message_type = _VIDEOCONTEXT -_VIDEOCONTEXT.fields_by_name['segments'].message_type = _VIDEOSEGMENT -_VIDEOCONTEXT.fields_by_name['label_detection_mode'].enum_type = _LABELDETECTIONMODE -_LABELLOCATION.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_LABELLOCATION.fields_by_name['level'].enum_type = _LABELLEVEL -_LABELANNOTATION.fields_by_name['locations'].message_type = _LABELLOCATION -_SAFESEARCHANNOTATION.fields_by_name['adult'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['spoof'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['medical'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['violent'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['racy'].enum_type = _LIKELIHOOD -_FACELOCATION.fields_by_name['bounding_box'].message_type = _BOUNDINGBOX -_FACEANNOTATION.fields_by_name['segments'].message_type = _VIDEOSEGMENT -_FACEANNOTATION.fields_by_name['locations'].message_type = _FACELOCATION -_VIDEOANNOTATIONRESULTS.fields_by_name['label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['face_annotations'].message_type = _FACEANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_annotations'].message_type = _VIDEOSEGMENT -_VIDEOANNOTATIONRESULTS.fields_by_name['safe_search_annotations'].message_type = _SAFESEARCHANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ANNOTATEVIDEORESPONSE.fields_by_name['annotation_results'].message_type = _VIDEOANNOTATIONRESULTS -_VIDEOANNOTATIONPROGRESS.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_VIDEOANNOTATIONPROGRESS.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ANNOTATEVIDEOPROGRESS.fields_by_name['annotation_progress'].message_type = _VIDEOANNOTATIONPROGRESS -DESCRIPTOR.message_types_by_name['AnnotateVideoRequest'] = _ANNOTATEVIDEOREQUEST -DESCRIPTOR.message_types_by_name['VideoContext'] = _VIDEOCONTEXT -DESCRIPTOR.message_types_by_name['VideoSegment'] = _VIDEOSEGMENT -DESCRIPTOR.message_types_by_name['LabelLocation'] = _LABELLOCATION -DESCRIPTOR.message_types_by_name['LabelAnnotation'] = _LABELANNOTATION -DESCRIPTOR.message_types_by_name['SafeSearchAnnotation'] = _SAFESEARCHANNOTATION -DESCRIPTOR.message_types_by_name['BoundingBox'] = _BOUNDINGBOX -DESCRIPTOR.message_types_by_name['FaceLocation'] = _FACELOCATION -DESCRIPTOR.message_types_by_name['FaceAnnotation'] = _FACEANNOTATION -DESCRIPTOR.message_types_by_name['VideoAnnotationResults'] = _VIDEOANNOTATIONRESULTS -DESCRIPTOR.message_types_by_name['AnnotateVideoResponse'] = _ANNOTATEVIDEORESPONSE -DESCRIPTOR.message_types_by_name['VideoAnnotationProgress'] = _VIDEOANNOTATIONPROGRESS -DESCRIPTOR.message_types_by_name['AnnotateVideoProgress'] = _ANNOTATEVIDEOPROGRESS -DESCRIPTOR.enum_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.enum_types_by_name['LabelLevel'] = _LABELLEVEL -DESCRIPTOR.enum_types_by_name['LabelDetectionMode'] = _LABELDETECTIONMODE -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +_ANNOTATEVIDEOREQUEST.fields_by_name["features"].enum_type = _FEATURE +_ANNOTATEVIDEOREQUEST.fields_by_name["video_context"].message_type = _VIDEOCONTEXT +_VIDEOCONTEXT.fields_by_name["segments"].message_type = _VIDEOSEGMENT +_VIDEOCONTEXT.fields_by_name["label_detection_mode"].enum_type = _LABELDETECTIONMODE +_LABELLOCATION.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_LABELLOCATION.fields_by_name["level"].enum_type = _LABELLEVEL +_LABELANNOTATION.fields_by_name["locations"].message_type = _LABELLOCATION +_SAFESEARCHANNOTATION.fields_by_name["adult"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["spoof"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["medical"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["violent"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["racy"].enum_type = _LIKELIHOOD +_FACELOCATION.fields_by_name["bounding_box"].message_type = _BOUNDINGBOX +_FACEANNOTATION.fields_by_name["segments"].message_type = _VIDEOSEGMENT +_FACEANNOTATION.fields_by_name["locations"].message_type = _FACELOCATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "face_annotations" +].message_type = _FACEANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name["shot_annotations"].message_type = _VIDEOSEGMENT +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "safe_search_annotations" +].message_type = _SAFESEARCHANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ANNOTATEVIDEORESPONSE.fields_by_name[ + "annotation_results" +].message_type = _VIDEOANNOTATIONRESULTS +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ANNOTATEVIDEOPROGRESS.fields_by_name[ + "annotation_progress" +].message_type = _VIDEOANNOTATIONPROGRESS +DESCRIPTOR.message_types_by_name["AnnotateVideoRequest"] = _ANNOTATEVIDEOREQUEST +DESCRIPTOR.message_types_by_name["VideoContext"] = _VIDEOCONTEXT +DESCRIPTOR.message_types_by_name["VideoSegment"] = _VIDEOSEGMENT +DESCRIPTOR.message_types_by_name["LabelLocation"] = _LABELLOCATION +DESCRIPTOR.message_types_by_name["LabelAnnotation"] = _LABELANNOTATION +DESCRIPTOR.message_types_by_name["SafeSearchAnnotation"] = _SAFESEARCHANNOTATION +DESCRIPTOR.message_types_by_name["BoundingBox"] = _BOUNDINGBOX +DESCRIPTOR.message_types_by_name["FaceLocation"] = _FACELOCATION +DESCRIPTOR.message_types_by_name["FaceAnnotation"] = _FACEANNOTATION +DESCRIPTOR.message_types_by_name["VideoAnnotationResults"] = _VIDEOANNOTATIONRESULTS +DESCRIPTOR.message_types_by_name["AnnotateVideoResponse"] = _ANNOTATEVIDEORESPONSE +DESCRIPTOR.message_types_by_name["VideoAnnotationProgress"] = _VIDEOANNOTATIONPROGRESS +DESCRIPTOR.message_types_by_name["AnnotateVideoProgress"] = _ANNOTATEVIDEOPROGRESS +DESCRIPTOR.enum_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.enum_types_by_name["LabelLevel"] = _LABELLEVEL +DESCRIPTOR.enum_types_by_name["LabelDetectionMode"] = _LABELDETECTIONMODE +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType('AnnotateVideoRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOREQUEST, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation request. +AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOREQUEST, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation request. Attributes: @@ -925,15 +1426,18 @@ west1``, ``asia-east1``. If no region is specified, a region will be determined based on video file location. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) + ), +) _sym_db.RegisterMessage(AnnotateVideoRequest) -VideoContext = _reflection.GeneratedProtocolMessageType('VideoContext', (_message.Message,), dict( - DESCRIPTOR = _VIDEOCONTEXT, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video context and/or feature-specific parameters. +VideoContext = _reflection.GeneratedProtocolMessageType( + "VideoContext", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOCONTEXT, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Video context and/or feature-specific parameters. Attributes: @@ -962,15 +1466,18 @@ Model to use for safe search detection. Supported values: "latest" and "stable" (the default). """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoContext) + ), +) _sym_db.RegisterMessage(VideoContext) -VideoSegment = _reflection.GeneratedProtocolMessageType('VideoSegment', (_message.Message,), dict( - DESCRIPTOR = _VIDEOSEGMENT, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment. +VideoSegment = _reflection.GeneratedProtocolMessageType( + "VideoSegment", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOSEGMENT, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Video segment. Attributes: @@ -979,15 +1486,18 @@ end_time_offset: End offset in microseconds (inclusive). Unset means 0. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoSegment) + ), +) _sym_db.RegisterMessage(VideoSegment) -LabelLocation = _reflection.GeneratedProtocolMessageType('LabelLocation', (_message.Message,), dict( - DESCRIPTOR = _LABELLOCATION, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Label location. +LabelLocation = _reflection.GeneratedProtocolMessageType( + "LabelLocation", + (_message.Message,), + dict( + DESCRIPTOR=_LABELLOCATION, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Label location. Attributes: @@ -1001,15 +1511,18 @@ level: Label level. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelLocation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelLocation) + ), +) _sym_db.RegisterMessage(LabelLocation) -LabelAnnotation = _reflection.GeneratedProtocolMessageType('LabelAnnotation', (_message.Message,), dict( - DESCRIPTOR = _LABELANNOTATION, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Label annotation. +LabelAnnotation = _reflection.GeneratedProtocolMessageType( + "LabelAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_LABELANNOTATION, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Label annotation. Attributes: @@ -1020,15 +1533,18 @@ locations: Where the label was detected and with what confidence. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelAnnotation) + ), +) _sym_db.RegisterMessage(LabelAnnotation) -SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType('SafeSearchAnnotation', (_message.Message,), dict( - DESCRIPTOR = _SAFESEARCHANNOTATION, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Safe search annotation (based on per-frame visual signals only). If no +SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( + "SafeSearchAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_SAFESEARCHANNOTATION, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Safe search annotation (based on per-frame visual signals only). If no unsafe content has been detected in a frame, no annotations are present for that frame. If only some types of unsafe content have been detected in a frame, the likelihood is set to ``UNKNOWN`` for all other types of @@ -1050,15 +1566,18 @@ time_offset: Video time offset in microseconds. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) + ), +) _sym_db.RegisterMessage(SafeSearchAnnotation) -BoundingBox = _reflection.GeneratedProtocolMessageType('BoundingBox', (_message.Message,), dict( - DESCRIPTOR = _BOUNDINGBOX, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Bounding box. +BoundingBox = _reflection.GeneratedProtocolMessageType( + "BoundingBox", + (_message.Message,), + dict( + DESCRIPTOR=_BOUNDINGBOX, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Bounding box. Attributes: @@ -1071,15 +1590,18 @@ top: Top Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.BoundingBox) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.BoundingBox) + ), +) _sym_db.RegisterMessage(BoundingBox) -FaceLocation = _reflection.GeneratedProtocolMessageType('FaceLocation', (_message.Message,), dict( - DESCRIPTOR = _FACELOCATION, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Face location. +FaceLocation = _reflection.GeneratedProtocolMessageType( + "FaceLocation", + (_message.Message,), + dict( + DESCRIPTOR=_FACELOCATION, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Face location. Attributes: @@ -1088,15 +1610,18 @@ time_offset: Video time offset in microseconds. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceLocation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceLocation) + ), +) _sym_db.RegisterMessage(FaceLocation) -FaceAnnotation = _reflection.GeneratedProtocolMessageType('FaceAnnotation', (_message.Message,), dict( - DESCRIPTOR = _FACEANNOTATION, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Face annotation. +FaceAnnotation = _reflection.GeneratedProtocolMessageType( + "FaceAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_FACEANNOTATION, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Face annotation. Attributes: @@ -1110,15 +1635,18 @@ locations: Face locations at one frame per second. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceAnnotation) + ), +) _sym_db.RegisterMessage(FaceAnnotation) -VideoAnnotationResults = _reflection.GeneratedProtocolMessageType('VideoAnnotationResults', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONRESULTS, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation results for a single video. +VideoAnnotationResults = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationResults", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONRESULTS, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Annotation results for a single video. Attributes: @@ -1140,15 +1668,18 @@ ``AnnotateVideoRequest`` some videos may succeed and some may fail. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationResults) + ), +) _sym_db.RegisterMessage(VideoAnnotationResults) -AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType('AnnotateVideoResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEORESPONSE, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation response. Included in the ``response`` field of the +AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEORESPONSE, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation response. Included in the ``response`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1158,15 +1689,18 @@ Annotation results for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) + ), +) _sym_db.RegisterMessage(AnnotateVideoResponse) -VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType('VideoAnnotationProgress', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONPROGRESS, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation progress for a single video. +VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationProgress", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONPROGRESS, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Annotation progress for a single video. Attributes: @@ -1181,15 +1715,18 @@ update_time: Time of the most recent update. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) + ), +) _sym_db.RegisterMessage(VideoAnnotationProgress) -AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType('AnnotateVideoProgress', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOPROGRESS, - __module__ = 'google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation progress. Included in the ``metadata`` field of the +AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoProgress", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOPROGRESS, + __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation progress. Included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1199,35 +1736,45 @@ Progress metadata for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) + ), +) _sym_db.RegisterMessage(AnnotateVideoProgress) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n*com.google.cloud.videointelligence.v1beta1B\035VideoIntelligenceServiceProtoP\001ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence\252\002&Google.Cloud.VideoIntelligence.V1Beta1\312\002&Google\\Cloud\\VideoIntelligence\\V1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n*com.google.cloud.videointelligence.v1beta1B\035VideoIntelligenceServiceProtoP\001ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence\252\002&Google.Cloud.VideoIntelligence.V1Beta1\312\002&Google\\Cloud\\VideoIntelligence\\V1beta1" + ), +) _VIDEOINTELLIGENCESERVICE = _descriptor.ServiceDescriptor( - name='VideoIntelligenceService', - full_name='google.cloud.videointelligence.v1beta1.VideoIntelligenceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=3257, - serialized_end=3431, - methods=[ - _descriptor.MethodDescriptor( - name='AnnotateVideo', - full_name='google.cloud.videointelligence.v1beta1.VideoIntelligenceService.AnnotateVideo', + name="VideoIntelligenceService", + full_name="google.cloud.videointelligence.v1beta1.VideoIntelligenceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_ANNOTATEVIDEOREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\035\"\030/v1beta1/videos:annotate:\001*')), - ), -]) + options=None, + serialized_start=3257, + serialized_end=3431, + methods=[ + _descriptor.MethodDescriptor( + name="AnnotateVideo", + full_name="google.cloud.videointelligence.v1beta1.VideoIntelligenceService.AnnotateVideo", + index=0, + containing_service=None, + input_type=_ANNOTATEVIDEOREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\035"\030/v1beta1/videos:annotate:\001*'), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) -DESCRIPTOR.services_by_name['VideoIntelligenceService'] = _VIDEOINTELLIGENCESERVICE +DESCRIPTOR.services_by_name["VideoIntelligenceService"] = _VIDEOINTELLIGENCESERVICE # @@protoc_insertion_point(module_scope) diff --git a/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py b/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py index 9625085d430ff..a8a8f1125e20c 100644 --- a/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py +++ b/videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py @@ -1,50 +1,56 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.videointelligence_v1beta1.proto import ( + video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class VideoIntelligenceServiceStub(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.AnnotateVideo = channel.unary_unary( - '/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo', - request_serializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.AnnotateVideo = channel.unary_unary( + "/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo", + request_serializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class VideoIntelligenceServiceServicer(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def AnnotateVideo(self, request, context): - """Performs asynchronous video annotation. Progress and results can be + def AnnotateVideo(self, request, context): + """Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_VideoIntelligenceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'AnnotateVideo': grpc.unary_unary_rpc_method_handler( - servicer.AnnotateVideo, - request_deserializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.videointelligence.v1beta1.VideoIntelligenceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "AnnotateVideo": grpc.unary_unary_rpc_method_handler( + servicer.AnnotateVideo, + request_deserializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.videointelligence.v1beta1.VideoIntelligenceService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py b/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py index 66000da2d6c57..37eaf6d6c3b76 100644 --- a/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py +++ b/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py @@ -2,134 +2,139 @@ # source: google/cloud/videointelligence_v1beta2/proto/video_intelligence.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/videointelligence_v1beta2/proto/video_intelligence.proto', - package='google.cloud.videointelligence.v1beta2', - syntax='proto3', - serialized_pb=_b('\nEgoogle/cloud/videointelligence_v1beta2/proto/video_intelligence.proto\x12&google.cloud.videointelligence.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xf9\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12\x41\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32/.google.cloud.videointelligence.v1beta2.Feature\x12K\n\rvideo_context\x18\x03 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"\xec\x03\n\x0cVideoContext\x12\x46\n\x08segments\x18\x01 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment\x12\\\n\x16label_detection_config\x18\x02 \x01(\x0b\x32<.google.cloud.videointelligence.v1beta2.LabelDetectionConfig\x12g\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32\x41.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig\x12q\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32\x46.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig\x12Z\n\x15\x66\x61\x63\x65_detection_config\x18\x05 \x01(\x0b\x32;.google.cloud.videointelligence.v1beta2.FaceDetectionConfig\"\x9a\x01\n\x14LabelDetectionConfig\x12X\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32:.google.cloud.videointelligence.v1beta2.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t\"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"D\n\x13\x46\x61\x63\x65\x44\x65tectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\x12\x1e\n\x16include_bounding_boxes\x18\x02 \x01(\x08\"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"i\n\x0cLabelSegment\x12\x45\n\x07segment\x18\x01 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xa8\x02\n\x0fLabelAnnotation\x12>\n\x06\x65ntity\x18\x01 \x01(\x0b\x32..google.cloud.videointelligence.v1beta2.Entity\x12I\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32..google.cloud.videointelligence.v1beta2.Entity\x12\x46\n\x08segments\x18\x03 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.LabelSegment\x12\x42\n\x06\x66rames\x18\x04 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1beta2.LabelFrame\"\x9a\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12R\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta2.Likelihood\"i\n\x19\x45xplicitContentAnnotation\x12L\n\x06\x66rames\x18\x01 \x03(\x0b\x32<.google.cloud.videointelligence.v1beta2.ExplicitContentFrame\"Q\n\x15NormalizedBoundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x02\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\r\n\x05right\x18\x03 \x01(\x02\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x02\"T\n\x0b\x46\x61\x63\x65Segment\x12\x45\n\x07segment\x18\x01 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment\"\x9d\x01\n\tFaceFrame\x12`\n\x19normalized_bounding_boxes\x18\x01 \x03(\x0b\x32=.google.cloud.videointelligence.v1beta2.NormalizedBoundingBox\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xad\x01\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x11\n\tthumbnail\x18\x01 \x01(\x0c\x12\x45\n\x08segments\x18\x02 \x03(\x0b\x32\x33.google.cloud.videointelligence.v1beta2.FaceSegment\x12\x41\n\x06\x66rames\x18\x03 \x03(\x0b\x32\x31.google.cloud.videointelligence.v1beta2.FaceFrame\"\xdf\x04\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12Z\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta2.LabelAnnotation\x12W\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta2.LabelAnnotation\x12X\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta2.LabelAnnotation\x12P\n\x10\x66\x61\x63\x65_annotations\x18\x05 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1beta2.FaceAnnotation\x12N\n\x10shot_annotations\x18\x06 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment\x12^\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32\x41.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\"s\n\x15\x41nnotateVideoResponse\x12Z\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1beta2.VideoAnnotationResults\"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"u\n\x15\x41nnotateVideoProgress\x12\\\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32?.google.cloud.videointelligence.v1beta2.VideoAnnotationProgress*\x86\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x04*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xae\x01\n\x18VideoIntelligenceService\x12\x91\x01\n\rAnnotateVideo\x12<.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation\"#\x82\xd3\xe4\x93\x02\x1d\"\x18/v1beta2/videos:annotate:\x01*B\xf8\x01\n*com.google.cloud.videointelligence.v1beta2B\x1dVideoIntelligenceServiceProtoP\x01ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2;videointelligence\xaa\x02&Google.Cloud.VideoIntelligence.V1Beta2\xca\x02&Google\\Cloud\\VideoIntelligence\\V1beta2b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/videointelligence_v1beta2/proto/video_intelligence.proto", + package="google.cloud.videointelligence.v1beta2", + syntax="proto3", + serialized_pb=_b( + '\nEgoogle/cloud/videointelligence_v1beta2/proto/video_intelligence.proto\x12&google.cloud.videointelligence.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xf9\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12\x41\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32/.google.cloud.videointelligence.v1beta2.Feature\x12K\n\rvideo_context\x18\x03 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t"\xec\x03\n\x0cVideoContext\x12\x46\n\x08segments\x18\x01 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment\x12\\\n\x16label_detection_config\x18\x02 \x01(\x0b\x32<.google.cloud.videointelligence.v1beta2.LabelDetectionConfig\x12g\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32\x41.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig\x12q\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32\x46.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig\x12Z\n\x15\x66\x61\x63\x65_detection_config\x18\x05 \x01(\x0b\x32;.google.cloud.videointelligence.v1beta2.FaceDetectionConfig"\x9a\x01\n\x14LabelDetectionConfig\x12X\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32:.google.cloud.videointelligence.v1beta2.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"D\n\x13\x46\x61\x63\x65\x44\x65tectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\x12\x1e\n\x16include_bounding_boxes\x18\x02 \x01(\x08"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"i\n\x0cLabelSegment\x12\x45\n\x07segment\x18\x01 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t"\xa8\x02\n\x0fLabelAnnotation\x12>\n\x06\x65ntity\x18\x01 \x01(\x0b\x32..google.cloud.videointelligence.v1beta2.Entity\x12I\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32..google.cloud.videointelligence.v1beta2.Entity\x12\x46\n\x08segments\x18\x03 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.LabelSegment\x12\x42\n\x06\x66rames\x18\x04 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1beta2.LabelFrame"\x9a\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12R\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta2.Likelihood"i\n\x19\x45xplicitContentAnnotation\x12L\n\x06\x66rames\x18\x01 \x03(\x0b\x32<.google.cloud.videointelligence.v1beta2.ExplicitContentFrame"Q\n\x15NormalizedBoundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x02\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\r\n\x05right\x18\x03 \x01(\x02\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x02"T\n\x0b\x46\x61\x63\x65Segment\x12\x45\n\x07segment\x18\x01 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment"\x9d\x01\n\tFaceFrame\x12`\n\x19normalized_bounding_boxes\x18\x01 \x03(\x0b\x32=.google.cloud.videointelligence.v1beta2.NormalizedBoundingBox\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xad\x01\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x11\n\tthumbnail\x18\x01 \x01(\x0c\x12\x45\n\x08segments\x18\x02 \x03(\x0b\x32\x33.google.cloud.videointelligence.v1beta2.FaceSegment\x12\x41\n\x06\x66rames\x18\x03 \x03(\x0b\x32\x31.google.cloud.videointelligence.v1beta2.FaceFrame"\xdf\x04\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12Z\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta2.LabelAnnotation\x12W\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta2.LabelAnnotation\x12X\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta2.LabelAnnotation\x12P\n\x10\x66\x61\x63\x65_annotations\x18\x05 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1beta2.FaceAnnotation\x12N\n\x10shot_annotations\x18\x06 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta2.VideoSegment\x12^\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32\x41.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"s\n\x15\x41nnotateVideoResponse\x12Z\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1beta2.VideoAnnotationResults"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"u\n\x15\x41nnotateVideoProgress\x12\\\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32?.google.cloud.videointelligence.v1beta2.VideoAnnotationProgress*\x86\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x04*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xae\x01\n\x18VideoIntelligenceService\x12\x91\x01\n\rAnnotateVideo\x12<.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation"#\x82\xd3\xe4\x93\x02\x1d"\x18/v1beta2/videos:annotate:\x01*B\xf8\x01\n*com.google.cloud.videointelligence.v1beta2B\x1dVideoIntelligenceServiceProtoP\x01ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2;videointelligence\xaa\x02&Google.Cloud.VideoIntelligence.V1Beta2\xca\x02&Google\\Cloud\\VideoIntelligence\\V1beta2b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _FEATURE = _descriptor.EnumDescriptor( - name='Feature', - full_name='google.cloud.videointelligence.v1beta2.Feature', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FEATURE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_CHANGE_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPLICIT_CONTENT_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FACE_DETECTION', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3806, - serialized_end=3940, + name="Feature", + full_name="google.cloud.videointelligence.v1beta2.Feature", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FEATURE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_CHANGE_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXPLICIT_CONTENT_DETECTION", + index=3, + number=3, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="FACE_DETECTION", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3806, + serialized_end=3940, ) _sym_db.RegisterEnumDescriptor(_FEATURE) Feature = enum_type_wrapper.EnumTypeWrapper(_FEATURE) _LABELDETECTIONMODE = _descriptor.EnumDescriptor( - name='LabelDetectionMode', - full_name='google.cloud.videointelligence.v1beta2.LabelDetectionMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION_MODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_MODE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FRAME_MODE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_AND_FRAME_MODE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3942, - serialized_end=4056, + name="LabelDetectionMode", + full_name="google.cloud.videointelligence.v1beta2.LabelDetectionMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION_MODE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SHOT_MODE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FRAME_MODE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_AND_FRAME_MODE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3942, + serialized_end=4056, ) _sym_db.RegisterEnumDescriptor(_LABELDETECTIONMODE) LabelDetectionMode = enum_type_wrapper.EnumTypeWrapper(_LABELDETECTIONMODE) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.videointelligence.v1beta2.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LIKELIHOOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4058, - serialized_end=4174, + name="Likelihood", + full_name="google.cloud.videointelligence.v1beta2.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LIKELIHOOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4058, + serialized_end=4174, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -151,982 +156,1606 @@ VERY_LIKELY = 5 - _ANNOTATEVIDEOREQUEST = _descriptor.Descriptor( - name='AnnotateVideoRequest', - full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_content', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.input_content', index=1, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.features', index=2, - number=2, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_context', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.video_context', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_uri', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.output_uri', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_id', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.location_id', index=5, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=271, - serialized_end=520, + name="AnnotateVideoRequest", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_content", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.input_content", + index=1, + number=6, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.features", + index=2, + number=2, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="video_context", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.video_context", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_uri", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.output_uri", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location_id", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.location_id", + index=5, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=271, + serialized_end=520, ) _VIDEOCONTEXT = _descriptor.Descriptor( - name='VideoContext', - full_name='google.cloud.videointelligence.v1beta2.VideoContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1beta2.VideoContext.segments', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_detection_config', full_name='google.cloud.videointelligence.v1beta2.VideoContext.label_detection_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_change_detection_config', full_name='google.cloud.videointelligence.v1beta2.VideoContext.shot_change_detection_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_content_detection_config', full_name='google.cloud.videointelligence.v1beta2.VideoContext.explicit_content_detection_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='face_detection_config', full_name='google.cloud.videointelligence.v1beta2.VideoContext.face_detection_config', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=523, - serialized_end=1015, + name="VideoContext", + full_name="google.cloud.videointelligence.v1beta2.VideoContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1beta2.VideoContext.segments", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_detection_config", + full_name="google.cloud.videointelligence.v1beta2.VideoContext.label_detection_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_change_detection_config", + full_name="google.cloud.videointelligence.v1beta2.VideoContext.shot_change_detection_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_content_detection_config", + full_name="google.cloud.videointelligence.v1beta2.VideoContext.explicit_content_detection_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="face_detection_config", + full_name="google.cloud.videointelligence.v1beta2.VideoContext.face_detection_config", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=523, + serialized_end=1015, ) _LABELDETECTIONCONFIG = _descriptor.Descriptor( - name='LabelDetectionConfig', - full_name='google.cloud.videointelligence.v1beta2.LabelDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label_detection_mode', full_name='google.cloud.videointelligence.v1beta2.LabelDetectionConfig.label_detection_mode', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stationary_camera', full_name='google.cloud.videointelligence.v1beta2.LabelDetectionConfig.stationary_camera', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1beta2.LabelDetectionConfig.model', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1018, - serialized_end=1172, + name="LabelDetectionConfig", + full_name="google.cloud.videointelligence.v1beta2.LabelDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label_detection_mode", + full_name="google.cloud.videointelligence.v1beta2.LabelDetectionConfig.label_detection_mode", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stationary_camera", + full_name="google.cloud.videointelligence.v1beta2.LabelDetectionConfig.stationary_camera", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1beta2.LabelDetectionConfig.model", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1018, + serialized_end=1172, ) _SHOTCHANGEDETECTIONCONFIG = _descriptor.Descriptor( - name='ShotChangeDetectionConfig', - full_name='google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1174, - serialized_end=1216, + name="ShotChangeDetectionConfig", + full_name="google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1174, + serialized_end=1216, ) _EXPLICITCONTENTDETECTIONCONFIG = _descriptor.Descriptor( - name='ExplicitContentDetectionConfig', - full_name='google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1218, - serialized_end=1265, + name="ExplicitContentDetectionConfig", + full_name="google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1218, + serialized_end=1265, ) _FACEDETECTIONCONFIG = _descriptor.Descriptor( - name='FaceDetectionConfig', - full_name='google.cloud.videointelligence.v1beta2.FaceDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1beta2.FaceDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='include_bounding_boxes', full_name='google.cloud.videointelligence.v1beta2.FaceDetectionConfig.include_bounding_boxes', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1267, - serialized_end=1335, + name="FaceDetectionConfig", + full_name="google.cloud.videointelligence.v1beta2.FaceDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1beta2.FaceDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="include_bounding_boxes", + full_name="google.cloud.videointelligence.v1beta2.FaceDetectionConfig.include_bounding_boxes", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1267, + serialized_end=1335, ) _VIDEOSEGMENT = _descriptor.Descriptor( - name='VideoSegment', - full_name='google.cloud.videointelligence.v1beta2.VideoSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time_offset', full_name='google.cloud.videointelligence.v1beta2.VideoSegment.start_time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time_offset', full_name='google.cloud.videointelligence.v1beta2.VideoSegment.end_time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1337, - serialized_end=1457, + name="VideoSegment", + full_name="google.cloud.videointelligence.v1beta2.VideoSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time_offset", + full_name="google.cloud.videointelligence.v1beta2.VideoSegment.start_time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time_offset", + full_name="google.cloud.videointelligence.v1beta2.VideoSegment.end_time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1337, + serialized_end=1457, ) _LABELSEGMENT = _descriptor.Descriptor( - name='LabelSegment', - full_name='google.cloud.videointelligence.v1beta2.LabelSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1beta2.LabelSegment.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1beta2.LabelSegment.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1459, - serialized_end=1564, + name="LabelSegment", + full_name="google.cloud.videointelligence.v1beta2.LabelSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1beta2.LabelSegment.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1beta2.LabelSegment.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1459, + serialized_end=1564, ) _LABELFRAME = _descriptor.Descriptor( - name='LabelFrame', - full_name='google.cloud.videointelligence.v1beta2.LabelFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1beta2.LabelFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1beta2.LabelFrame.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1566, - serialized_end=1646, + name="LabelFrame", + full_name="google.cloud.videointelligence.v1beta2.LabelFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1beta2.LabelFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1beta2.LabelFrame.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1566, + serialized_end=1646, ) _ENTITY = _descriptor.Descriptor( - name='Entity', - full_name='google.cloud.videointelligence.v1beta2.Entity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.cloud.videointelligence.v1beta2.Entity.entity_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.videointelligence.v1beta2.Entity.description', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1beta2.Entity.language_code', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1648, - serialized_end=1719, + name="Entity", + full_name="google.cloud.videointelligence.v1beta2.Entity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.cloud.videointelligence.v1beta2.Entity.entity_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.videointelligence.v1beta2.Entity.description", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1beta2.Entity.language_code", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1648, + serialized_end=1719, ) _LABELANNOTATION = _descriptor.Descriptor( - name='LabelAnnotation', - full_name='google.cloud.videointelligence.v1beta2.LabelAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity', full_name='google.cloud.videointelligence.v1beta2.LabelAnnotation.entity', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category_entities', full_name='google.cloud.videointelligence.v1beta2.LabelAnnotation.category_entities', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1beta2.LabelAnnotation.segments', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1beta2.LabelAnnotation.frames', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1722, - serialized_end=2018, + name="LabelAnnotation", + full_name="google.cloud.videointelligence.v1beta2.LabelAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity", + full_name="google.cloud.videointelligence.v1beta2.LabelAnnotation.entity", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="category_entities", + full_name="google.cloud.videointelligence.v1beta2.LabelAnnotation.category_entities", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1beta2.LabelAnnotation.segments", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1beta2.LabelAnnotation.frames", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1722, + serialized_end=2018, ) _EXPLICITCONTENTFRAME = _descriptor.Descriptor( - name='ExplicitContentFrame', - full_name='google.cloud.videointelligence.v1beta2.ExplicitContentFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1beta2.ExplicitContentFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pornography_likelihood', full_name='google.cloud.videointelligence.v1beta2.ExplicitContentFrame.pornography_likelihood', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2021, - serialized_end=2175, + name="ExplicitContentFrame", + full_name="google.cloud.videointelligence.v1beta2.ExplicitContentFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1beta2.ExplicitContentFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pornography_likelihood", + full_name="google.cloud.videointelligence.v1beta2.ExplicitContentFrame.pornography_likelihood", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2021, + serialized_end=2175, ) _EXPLICITCONTENTANNOTATION = _descriptor.Descriptor( - name='ExplicitContentAnnotation', - full_name='google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation.frames', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2177, - serialized_end=2282, + name="ExplicitContentAnnotation", + full_name="google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation.frames", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2177, + serialized_end=2282, ) _NORMALIZEDBOUNDINGBOX = _descriptor.Descriptor( - name='NormalizedBoundingBox', - full_name='google.cloud.videointelligence.v1beta2.NormalizedBoundingBox', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='left', full_name='google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.left', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top', full_name='google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.top', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='right', full_name='google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.right', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bottom', full_name='google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.bottom', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2284, - serialized_end=2365, + name="NormalizedBoundingBox", + full_name="google.cloud.videointelligence.v1beta2.NormalizedBoundingBox", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="left", + full_name="google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.left", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="top", + full_name="google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.top", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="right", + full_name="google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.right", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bottom", + full_name="google.cloud.videointelligence.v1beta2.NormalizedBoundingBox.bottom", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2284, + serialized_end=2365, ) _FACESEGMENT = _descriptor.Descriptor( - name='FaceSegment', - full_name='google.cloud.videointelligence.v1beta2.FaceSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1beta2.FaceSegment.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2367, - serialized_end=2451, + name="FaceSegment", + full_name="google.cloud.videointelligence.v1beta2.FaceSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1beta2.FaceSegment.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2367, + serialized_end=2451, ) _FACEFRAME = _descriptor.Descriptor( - name='FaceFrame', - full_name='google.cloud.videointelligence.v1beta2.FaceFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='normalized_bounding_boxes', full_name='google.cloud.videointelligence.v1beta2.FaceFrame.normalized_bounding_boxes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1beta2.FaceFrame.time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2454, - serialized_end=2611, + name="FaceFrame", + full_name="google.cloud.videointelligence.v1beta2.FaceFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="normalized_bounding_boxes", + full_name="google.cloud.videointelligence.v1beta2.FaceFrame.normalized_bounding_boxes", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1beta2.FaceFrame.time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2454, + serialized_end=2611, ) _FACEANNOTATION = _descriptor.Descriptor( - name='FaceAnnotation', - full_name='google.cloud.videointelligence.v1beta2.FaceAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='thumbnail', full_name='google.cloud.videointelligence.v1beta2.FaceAnnotation.thumbnail', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1beta2.FaceAnnotation.segments', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1beta2.FaceAnnotation.frames', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2614, - serialized_end=2787, + name="FaceAnnotation", + full_name="google.cloud.videointelligence.v1beta2.FaceAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="thumbnail", + full_name="google.cloud.videointelligence.v1beta2.FaceAnnotation.thumbnail", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1beta2.FaceAnnotation.segments", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1beta2.FaceAnnotation.frames", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2614, + serialized_end=2787, ) _VIDEOANNOTATIONRESULTS = _descriptor.Descriptor( - name='VideoAnnotationResults', - full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segment_label_annotations', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.segment_label_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_label_annotations', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.shot_label_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frame_label_annotations', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.frame_label_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='face_annotations', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.face_annotations', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_annotations', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.shot_annotations', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_annotation', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.explicit_annotation', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationResults.error', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2790, - serialized_end=3397, + name="VideoAnnotationResults", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segment_label_annotations", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.segment_label_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_label_annotations", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.shot_label_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frame_label_annotations", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.frame_label_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="face_annotations", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.face_annotations", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_annotations", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.shot_annotations", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_annotation", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.explicit_annotation", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationResults.error", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2790, + serialized_end=3397, ) _ANNOTATEVIDEORESPONSE = _descriptor.Descriptor( - name='AnnotateVideoResponse', - full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_results', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoResponse.annotation_results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3399, - serialized_end=3514, + name="AnnotateVideoResponse", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_results", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoResponse.annotation_results", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3399, + serialized_end=3514, ) _VIDEOANNOTATIONPROGRESS = _descriptor.Descriptor( - name='VideoAnnotationProgress', - full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress_percent', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.progress_percent', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.update_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3517, - serialized_end=3684, + name="VideoAnnotationProgress", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.progress_percent", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.videointelligence.v1beta2.VideoAnnotationProgress.update_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3517, + serialized_end=3684, ) _ANNOTATEVIDEOPROGRESS = _descriptor.Descriptor( - name='AnnotateVideoProgress', - full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_progress', full_name='google.cloud.videointelligence.v1beta2.AnnotateVideoProgress.annotation_progress', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3686, - serialized_end=3803, + name="AnnotateVideoProgress", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_progress", + full_name="google.cloud.videointelligence.v1beta2.AnnotateVideoProgress.annotation_progress", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3686, + serialized_end=3803, ) -_ANNOTATEVIDEOREQUEST.fields_by_name['features'].enum_type = _FEATURE -_ANNOTATEVIDEOREQUEST.fields_by_name['video_context'].message_type = _VIDEOCONTEXT -_VIDEOCONTEXT.fields_by_name['segments'].message_type = _VIDEOSEGMENT -_VIDEOCONTEXT.fields_by_name['label_detection_config'].message_type = _LABELDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['shot_change_detection_config'].message_type = _SHOTCHANGEDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['explicit_content_detection_config'].message_type = _EXPLICITCONTENTDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['face_detection_config'].message_type = _FACEDETECTIONCONFIG -_LABELDETECTIONCONFIG.fields_by_name['label_detection_mode'].enum_type = _LABELDETECTIONMODE -_VIDEOSEGMENT.fields_by_name['start_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_VIDEOSEGMENT.fields_by_name['end_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELSEGMENT.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_LABELFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELANNOTATION.fields_by_name['entity'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['category_entities'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['segments'].message_type = _LABELSEGMENT -_LABELANNOTATION.fields_by_name['frames'].message_type = _LABELFRAME -_EXPLICITCONTENTFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_EXPLICITCONTENTFRAME.fields_by_name['pornography_likelihood'].enum_type = _LIKELIHOOD -_EXPLICITCONTENTANNOTATION.fields_by_name['frames'].message_type = _EXPLICITCONTENTFRAME -_FACESEGMENT.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_FACEFRAME.fields_by_name['normalized_bounding_boxes'].message_type = _NORMALIZEDBOUNDINGBOX -_FACEFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_FACEANNOTATION.fields_by_name['segments'].message_type = _FACESEGMENT -_FACEANNOTATION.fields_by_name['frames'].message_type = _FACEFRAME -_VIDEOANNOTATIONRESULTS.fields_by_name['segment_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['frame_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['face_annotations'].message_type = _FACEANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_annotations'].message_type = _VIDEOSEGMENT -_VIDEOANNOTATIONRESULTS.fields_by_name['explicit_annotation'].message_type = _EXPLICITCONTENTANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ANNOTATEVIDEORESPONSE.fields_by_name['annotation_results'].message_type = _VIDEOANNOTATIONRESULTS -_VIDEOANNOTATIONPROGRESS.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_VIDEOANNOTATIONPROGRESS.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ANNOTATEVIDEOPROGRESS.fields_by_name['annotation_progress'].message_type = _VIDEOANNOTATIONPROGRESS -DESCRIPTOR.message_types_by_name['AnnotateVideoRequest'] = _ANNOTATEVIDEOREQUEST -DESCRIPTOR.message_types_by_name['VideoContext'] = _VIDEOCONTEXT -DESCRIPTOR.message_types_by_name['LabelDetectionConfig'] = _LABELDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ShotChangeDetectionConfig'] = _SHOTCHANGEDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ExplicitContentDetectionConfig'] = _EXPLICITCONTENTDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['FaceDetectionConfig'] = _FACEDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['VideoSegment'] = _VIDEOSEGMENT -DESCRIPTOR.message_types_by_name['LabelSegment'] = _LABELSEGMENT -DESCRIPTOR.message_types_by_name['LabelFrame'] = _LABELFRAME -DESCRIPTOR.message_types_by_name['Entity'] = _ENTITY -DESCRIPTOR.message_types_by_name['LabelAnnotation'] = _LABELANNOTATION -DESCRIPTOR.message_types_by_name['ExplicitContentFrame'] = _EXPLICITCONTENTFRAME -DESCRIPTOR.message_types_by_name['ExplicitContentAnnotation'] = _EXPLICITCONTENTANNOTATION -DESCRIPTOR.message_types_by_name['NormalizedBoundingBox'] = _NORMALIZEDBOUNDINGBOX -DESCRIPTOR.message_types_by_name['FaceSegment'] = _FACESEGMENT -DESCRIPTOR.message_types_by_name['FaceFrame'] = _FACEFRAME -DESCRIPTOR.message_types_by_name['FaceAnnotation'] = _FACEANNOTATION -DESCRIPTOR.message_types_by_name['VideoAnnotationResults'] = _VIDEOANNOTATIONRESULTS -DESCRIPTOR.message_types_by_name['AnnotateVideoResponse'] = _ANNOTATEVIDEORESPONSE -DESCRIPTOR.message_types_by_name['VideoAnnotationProgress'] = _VIDEOANNOTATIONPROGRESS -DESCRIPTOR.message_types_by_name['AnnotateVideoProgress'] = _ANNOTATEVIDEOPROGRESS -DESCRIPTOR.enum_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.enum_types_by_name['LabelDetectionMode'] = _LABELDETECTIONMODE -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +_ANNOTATEVIDEOREQUEST.fields_by_name["features"].enum_type = _FEATURE +_ANNOTATEVIDEOREQUEST.fields_by_name["video_context"].message_type = _VIDEOCONTEXT +_VIDEOCONTEXT.fields_by_name["segments"].message_type = _VIDEOSEGMENT +_VIDEOCONTEXT.fields_by_name[ + "label_detection_config" +].message_type = _LABELDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "shot_change_detection_config" +].message_type = _SHOTCHANGEDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "explicit_content_detection_config" +].message_type = _EXPLICITCONTENTDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "face_detection_config" +].message_type = _FACEDETECTIONCONFIG +_LABELDETECTIONCONFIG.fields_by_name[ + "label_detection_mode" +].enum_type = _LABELDETECTIONMODE +_VIDEOSEGMENT.fields_by_name[ + "start_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_VIDEOSEGMENT.fields_by_name[ + "end_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELSEGMENT.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_LABELFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELANNOTATION.fields_by_name["entity"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["category_entities"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["segments"].message_type = _LABELSEGMENT +_LABELANNOTATION.fields_by_name["frames"].message_type = _LABELFRAME +_EXPLICITCONTENTFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_EXPLICITCONTENTFRAME.fields_by_name["pornography_likelihood"].enum_type = _LIKELIHOOD +_EXPLICITCONTENTANNOTATION.fields_by_name["frames"].message_type = _EXPLICITCONTENTFRAME +_FACESEGMENT.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_FACEFRAME.fields_by_name[ + "normalized_bounding_boxes" +].message_type = _NORMALIZEDBOUNDINGBOX +_FACEFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_FACEANNOTATION.fields_by_name["segments"].message_type = _FACESEGMENT +_FACEANNOTATION.fields_by_name["frames"].message_type = _FACEFRAME +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "segment_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "shot_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "frame_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "face_annotations" +].message_type = _FACEANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name["shot_annotations"].message_type = _VIDEOSEGMENT +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "explicit_annotation" +].message_type = _EXPLICITCONTENTANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ANNOTATEVIDEORESPONSE.fields_by_name[ + "annotation_results" +].message_type = _VIDEOANNOTATIONRESULTS +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ANNOTATEVIDEOPROGRESS.fields_by_name[ + "annotation_progress" +].message_type = _VIDEOANNOTATIONPROGRESS +DESCRIPTOR.message_types_by_name["AnnotateVideoRequest"] = _ANNOTATEVIDEOREQUEST +DESCRIPTOR.message_types_by_name["VideoContext"] = _VIDEOCONTEXT +DESCRIPTOR.message_types_by_name["LabelDetectionConfig"] = _LABELDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ShotChangeDetectionConfig" +] = _SHOTCHANGEDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ExplicitContentDetectionConfig" +] = _EXPLICITCONTENTDETECTIONCONFIG +DESCRIPTOR.message_types_by_name["FaceDetectionConfig"] = _FACEDETECTIONCONFIG +DESCRIPTOR.message_types_by_name["VideoSegment"] = _VIDEOSEGMENT +DESCRIPTOR.message_types_by_name["LabelSegment"] = _LABELSEGMENT +DESCRIPTOR.message_types_by_name["LabelFrame"] = _LABELFRAME +DESCRIPTOR.message_types_by_name["Entity"] = _ENTITY +DESCRIPTOR.message_types_by_name["LabelAnnotation"] = _LABELANNOTATION +DESCRIPTOR.message_types_by_name["ExplicitContentFrame"] = _EXPLICITCONTENTFRAME +DESCRIPTOR.message_types_by_name[ + "ExplicitContentAnnotation" +] = _EXPLICITCONTENTANNOTATION +DESCRIPTOR.message_types_by_name["NormalizedBoundingBox"] = _NORMALIZEDBOUNDINGBOX +DESCRIPTOR.message_types_by_name["FaceSegment"] = _FACESEGMENT +DESCRIPTOR.message_types_by_name["FaceFrame"] = _FACEFRAME +DESCRIPTOR.message_types_by_name["FaceAnnotation"] = _FACEANNOTATION +DESCRIPTOR.message_types_by_name["VideoAnnotationResults"] = _VIDEOANNOTATIONRESULTS +DESCRIPTOR.message_types_by_name["AnnotateVideoResponse"] = _ANNOTATEVIDEORESPONSE +DESCRIPTOR.message_types_by_name["VideoAnnotationProgress"] = _VIDEOANNOTATIONPROGRESS +DESCRIPTOR.message_types_by_name["AnnotateVideoProgress"] = _ANNOTATEVIDEOPROGRESS +DESCRIPTOR.enum_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.enum_types_by_name["LabelDetectionMode"] = _LABELDETECTIONMODE +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType('AnnotateVideoRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOREQUEST, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation request. +AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOREQUEST, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video annotation request. Attributes: @@ -1166,15 +1795,18 @@ west1``, ``asia-east1``. If no region is specified, a region will be determined based on video file location. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.AnnotateVideoRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.AnnotateVideoRequest) + ), +) _sym_db.RegisterMessage(AnnotateVideoRequest) -VideoContext = _reflection.GeneratedProtocolMessageType('VideoContext', (_message.Message,), dict( - DESCRIPTOR = _VIDEOCONTEXT, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video context and/or feature-specific parameters. +VideoContext = _reflection.GeneratedProtocolMessageType( + "VideoContext", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOCONTEXT, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video context and/or feature-specific parameters. Attributes: @@ -1191,15 +1823,18 @@ face_detection_config: Config for FACE\_DETECTION. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoContext) + ), +) _sym_db.RegisterMessage(VideoContext) -LabelDetectionConfig = _reflection.GeneratedProtocolMessageType('LabelDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _LABELDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Config for LABEL\_DETECTION. +LabelDetectionConfig = _reflection.GeneratedProtocolMessageType( + "LabelDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_LABELDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Config for LABEL\_DETECTION. Attributes: @@ -1216,15 +1851,18 @@ Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelDetectionConfig) + ), +) _sym_db.RegisterMessage(LabelDetectionConfig) -ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType('ShotChangeDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _SHOTCHANGEDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Config for SHOT\_CHANGE\_DETECTION. +ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ShotChangeDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_SHOTCHANGEDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Config for SHOT\_CHANGE\_DETECTION. Attributes: @@ -1232,15 +1870,18 @@ Model to use for shot change detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig) + ), +) _sym_db.RegisterMessage(ShotChangeDetectionConfig) -ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType('ExplicitContentDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Config for EXPLICIT\_CONTENT\_DETECTION. +ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ExplicitContentDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Config for EXPLICIT\_CONTENT\_DETECTION. Attributes: @@ -1248,15 +1889,18 @@ Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig) + ), +) _sym_db.RegisterMessage(ExplicitContentDetectionConfig) -FaceDetectionConfig = _reflection.GeneratedProtocolMessageType('FaceDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _FACEDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Config for FACE\_DETECTION. +FaceDetectionConfig = _reflection.GeneratedProtocolMessageType( + "FaceDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_FACEDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Config for FACE\_DETECTION. Attributes: @@ -1267,15 +1911,18 @@ Whether bounding boxes be included in the face annotation output. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceDetectionConfig) + ), +) _sym_db.RegisterMessage(FaceDetectionConfig) -VideoSegment = _reflection.GeneratedProtocolMessageType('VideoSegment', (_message.Message,), dict( - DESCRIPTOR = _VIDEOSEGMENT, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video segment. +VideoSegment = _reflection.GeneratedProtocolMessageType( + "VideoSegment", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOSEGMENT, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video segment. Attributes: @@ -1286,15 +1933,18 @@ Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoSegment) + ), +) _sym_db.RegisterMessage(VideoSegment) -LabelSegment = _reflection.GeneratedProtocolMessageType('LabelSegment', (_message.Message,), dict( - DESCRIPTOR = _LABELSEGMENT, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video segment level annotation results for label detection. +LabelSegment = _reflection.GeneratedProtocolMessageType( + "LabelSegment", + (_message.Message,), + dict( + DESCRIPTOR=_LABELSEGMENT, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video segment level annotation results for label detection. Attributes: @@ -1303,15 +1953,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelSegment) + ), +) _sym_db.RegisterMessage(LabelSegment) -LabelFrame = _reflection.GeneratedProtocolMessageType('LabelFrame', (_message.Message,), dict( - DESCRIPTOR = _LABELFRAME, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for label detection. +LabelFrame = _reflection.GeneratedProtocolMessageType( + "LabelFrame", + (_message.Message,), + dict( + DESCRIPTOR=_LABELFRAME, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for label detection. Attributes: @@ -1321,15 +1974,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelFrame) + ), +) _sym_db.RegisterMessage(LabelFrame) -Entity = _reflection.GeneratedProtocolMessageType('Entity', (_message.Message,), dict( - DESCRIPTOR = _ENTITY, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Detected entity from video analysis. +Entity = _reflection.GeneratedProtocolMessageType( + "Entity", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITY, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Detected entity from video analysis. Attributes: @@ -1342,15 +1998,18 @@ language_code: Language code for ``description`` in BCP-47 format. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.Entity) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.Entity) + ), +) _sym_db.RegisterMessage(Entity) -LabelAnnotation = _reflection.GeneratedProtocolMessageType('LabelAnnotation', (_message.Message,), dict( - DESCRIPTOR = _LABELANNOTATION, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Label annotation. +LabelAnnotation = _reflection.GeneratedProtocolMessageType( + "LabelAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_LABELANNOTATION, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Label annotation. Attributes: @@ -1366,15 +2025,18 @@ frames: All video frames where a label was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.LabelAnnotation) + ), +) _sym_db.RegisterMessage(LabelAnnotation) -ExplicitContentFrame = _reflection.GeneratedProtocolMessageType('ExplicitContentFrame', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTFRAME, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for explicit content. +ExplicitContentFrame = _reflection.GeneratedProtocolMessageType( + "ExplicitContentFrame", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTFRAME, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for explicit content. Attributes: @@ -1384,15 +2046,18 @@ pornography_likelihood: Likelihood of the pornography content.. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ExplicitContentFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ExplicitContentFrame) + ), +) _sym_db.RegisterMessage(ExplicitContentFrame) -ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType('ExplicitContentAnnotation', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTANNOTATION, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Explicit content annotation (based on per-frame visual signals only). If +ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType( + "ExplicitContentAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTANNOTATION, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame. @@ -1401,15 +2066,18 @@ frames: All video frames where explicit content was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation) + ), +) _sym_db.RegisterMessage(ExplicitContentAnnotation) -NormalizedBoundingBox = _reflection.GeneratedProtocolMessageType('NormalizedBoundingBox', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDBOUNDINGBOX, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Normalized bounding box. The normalized vertex coordinates are relative +NormalizedBoundingBox = _reflection.GeneratedProtocolMessageType( + "NormalizedBoundingBox", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDBOUNDINGBOX, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1]. @@ -1423,30 +2091,36 @@ bottom: Bottom Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.NormalizedBoundingBox) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.NormalizedBoundingBox) + ), +) _sym_db.RegisterMessage(NormalizedBoundingBox) -FaceSegment = _reflection.GeneratedProtocolMessageType('FaceSegment', (_message.Message,), dict( - DESCRIPTOR = _FACESEGMENT, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video segment level annotation results for face detection. +FaceSegment = _reflection.GeneratedProtocolMessageType( + "FaceSegment", + (_message.Message,), + dict( + DESCRIPTOR=_FACESEGMENT, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video segment level annotation results for face detection. Attributes: segment: Video segment where a face was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceSegment) + ), +) _sym_db.RegisterMessage(FaceSegment) -FaceFrame = _reflection.GeneratedProtocolMessageType('FaceFrame', (_message.Message,), dict( - DESCRIPTOR = _FACEFRAME, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for face detection. +FaceFrame = _reflection.GeneratedProtocolMessageType( + "FaceFrame", + (_message.Message,), + dict( + DESCRIPTOR=_FACEFRAME, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for face detection. Attributes: @@ -1458,15 +2132,18 @@ Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceFrame) + ), +) _sym_db.RegisterMessage(FaceFrame) -FaceAnnotation = _reflection.GeneratedProtocolMessageType('FaceAnnotation', (_message.Message,), dict( - DESCRIPTOR = _FACEANNOTATION, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Face annotation. +FaceAnnotation = _reflection.GeneratedProtocolMessageType( + "FaceAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_FACEANNOTATION, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Face annotation. Attributes: @@ -1477,15 +2154,18 @@ frames: All video frames where a face was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.FaceAnnotation) + ), +) _sym_db.RegisterMessage(FaceAnnotation) -VideoAnnotationResults = _reflection.GeneratedProtocolMessageType('VideoAnnotationResults', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONRESULTS, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Annotation results for a single video. +VideoAnnotationResults = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationResults", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONRESULTS, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Annotation results for a single video. Attributes: @@ -1513,15 +2193,18 @@ ``AnnotateVideoRequest`` some videos may succeed and some may fail. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoAnnotationResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoAnnotationResults) + ), +) _sym_db.RegisterMessage(VideoAnnotationResults) -AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType('AnnotateVideoResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEORESPONSE, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation response. Included in the ``response`` field of the +AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEORESPONSE, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video annotation response. Included in the ``response`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1531,15 +2214,18 @@ Annotation results for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.AnnotateVideoResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.AnnotateVideoResponse) + ), +) _sym_db.RegisterMessage(AnnotateVideoResponse) -VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType('VideoAnnotationProgress', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONPROGRESS, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Annotation progress for a single video. +VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationProgress", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONPROGRESS, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Annotation progress for a single video. Attributes: @@ -1554,15 +2240,18 @@ update_time: Time of the most recent update. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoAnnotationProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.VideoAnnotationProgress) + ), +) _sym_db.RegisterMessage(VideoAnnotationProgress) -AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType('AnnotateVideoProgress', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOPROGRESS, - __module__ = 'google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation progress. Included in the ``metadata`` field of the +AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoProgress", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOPROGRESS, + __module__="google.cloud.videointelligence_v1beta2.proto.video_intelligence_pb2", + __doc__="""Video annotation progress. Included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1572,35 +2261,45 @@ Progress metadata for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.AnnotateVideoProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta2.AnnotateVideoProgress) + ), +) _sym_db.RegisterMessage(AnnotateVideoProgress) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n*com.google.cloud.videointelligence.v1beta2B\035VideoIntelligenceServiceProtoP\001ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2;videointelligence\252\002&Google.Cloud.VideoIntelligence.V1Beta2\312\002&Google\\Cloud\\VideoIntelligence\\V1beta2')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n*com.google.cloud.videointelligence.v1beta2B\035VideoIntelligenceServiceProtoP\001ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2;videointelligence\252\002&Google.Cloud.VideoIntelligence.V1Beta2\312\002&Google\\Cloud\\VideoIntelligence\\V1beta2" + ), +) _VIDEOINTELLIGENCESERVICE = _descriptor.ServiceDescriptor( - name='VideoIntelligenceService', - full_name='google.cloud.videointelligence.v1beta2.VideoIntelligenceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4177, - serialized_end=4351, - methods=[ - _descriptor.MethodDescriptor( - name='AnnotateVideo', - full_name='google.cloud.videointelligence.v1beta2.VideoIntelligenceService.AnnotateVideo', + name="VideoIntelligenceService", + full_name="google.cloud.videointelligence.v1beta2.VideoIntelligenceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_ANNOTATEVIDEOREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\035\"\030/v1beta2/videos:annotate:\001*')), - ), -]) + options=None, + serialized_start=4177, + serialized_end=4351, + methods=[ + _descriptor.MethodDescriptor( + name="AnnotateVideo", + full_name="google.cloud.videointelligence.v1beta2.VideoIntelligenceService.AnnotateVideo", + index=0, + containing_service=None, + input_type=_ANNOTATEVIDEOREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\035"\030/v1beta2/videos:annotate:\001*'), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) -DESCRIPTOR.services_by_name['VideoIntelligenceService'] = _VIDEOINTELLIGENCESERVICE +DESCRIPTOR.services_by_name["VideoIntelligenceService"] = _VIDEOINTELLIGENCESERVICE # @@protoc_insertion_point(module_scope) diff --git a/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py b/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py index f2ac4a1fd11f4..f9df0b90a1da4 100644 --- a/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py +++ b/videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py @@ -1,50 +1,56 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.videointelligence_v1beta2.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta2_dot_proto_dot_video__intelligence__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.videointelligence_v1beta2.proto import ( + video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta2_dot_proto_dot_video__intelligence__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class VideoIntelligenceServiceStub(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.AnnotateVideo = channel.unary_unary( - '/google.cloud.videointelligence.v1beta2.VideoIntelligenceService/AnnotateVideo', - request_serializer=google_dot_cloud_dot_videointelligence__v1beta2_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.AnnotateVideo = channel.unary_unary( + "/google.cloud.videointelligence.v1beta2.VideoIntelligenceService/AnnotateVideo", + request_serializer=google_dot_cloud_dot_videointelligence__v1beta2_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class VideoIntelligenceServiceServicer(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def AnnotateVideo(self, request, context): - """Performs asynchronous video annotation. Progress and results can be + def AnnotateVideo(self, request, context): + """Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_VideoIntelligenceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'AnnotateVideo': grpc.unary_unary_rpc_method_handler( - servicer.AnnotateVideo, - request_deserializer=google_dot_cloud_dot_videointelligence__v1beta2_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.videointelligence.v1beta2.VideoIntelligenceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "AnnotateVideo": grpc.unary_unary_rpc_method_handler( + servicer.AnnotateVideo, + request_deserializer=google_dot_cloud_dot_videointelligence__v1beta2_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.videointelligence.v1beta2.VideoIntelligenceService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py b/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py index e6075327c907e..053faa1681c31 100644 --- a/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py +++ b/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py @@ -2,134 +2,139 @@ # source: google/cloud/videointelligence_v1p1beta1/proto/video_intelligence.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/videointelligence_v1p1beta1/proto/video_intelligence.proto', - package='google.cloud.videointelligence.v1p1beta1', - syntax='proto3', - serialized_pb=_b('\nGgoogle/cloud/videointelligence_v1p1beta1/proto/video_intelligence.proto\x12(google.cloud.videointelligence.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xfd\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12\x43\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32\x31.google.cloud.videointelligence.v1p1beta1.Feature\x12M\n\rvideo_context\x18\x03 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"\x82\x04\n\x0cVideoContext\x12H\n\x08segments\x18\x01 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoSegment\x12^\n\x16label_detection_config\x18\x02 \x01(\x0b\x32>.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig\x12i\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig\x12s\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32H.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig\x12h\n\x1bspeech_transcription_config\x18\x06 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig\"\x9c\x01\n\x14LabelDetectionConfig\x12Z\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32<.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t\"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"k\n\x0cLabelSegment\x12G\n\x07segment\x18\x01 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xb0\x02\n\x0fLabelAnnotation\x12@\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x30.google.cloud.videointelligence.v1p1beta1.Entity\x12K\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32\x30.google.cloud.videointelligence.v1p1beta1.Entity\x12H\n\x08segments\x18\x03 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.LabelSegment\x12\x44\n\x06\x66rames\x18\x04 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1p1beta1.LabelFrame\"\x9c\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12T\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32\x34.google.cloud.videointelligence.v1p1beta1.Likelihood\"k\n\x19\x45xplicitContentAnnotation\x12N\n\x06\x66rames\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame\"\xf5\x04\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\\\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p1beta1.LabelAnnotation\x12Y\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p1beta1.LabelAnnotation\x12Z\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p1beta1.LabelAnnotation\x12P\n\x10shot_annotations\x18\x06 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoSegment\x12`\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation\x12\\\n\x15speech_transcriptions\x18\x0b \x03(\x0b\x32=.google.cloud.videointelligence.v1p1beta1.SpeechTranscription\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\"u\n\x15\x41nnotateVideoResponse\x12\\\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32@.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults\"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x15\x41nnotateVideoProgress\x12^\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32\x41.google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress\"\xf4\x01\n\x19SpeechTranscriptionConfig\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x18\n\x10max_alternatives\x18\x02 \x01(\x05\x12\x18\n\x10\x66ilter_profanity\x18\x03 \x01(\x08\x12P\n\x0fspeech_contexts\x18\x04 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1p1beta1.SpeechContext\x12$\n\x1c\x65nable_automatic_punctuation\x18\x05 \x01(\x08\x12\x14\n\x0c\x61udio_tracks\x18\x06 \x03(\x05\" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\"s\n\x13SpeechTranscription\x12\\\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x46.google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative\"\x89\x01\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x41\n\x05words\x18\x03 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1p1beta1.WordInfo\"t\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t*\x8c\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x18\n\x14SPEECH_TRANSCRIPTION\x10\x06*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb2\x01\n\x18VideoIntelligenceService\x12\x95\x01\n\rAnnotateVideo\x12>.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1p1beta1/videos:annotate:\x01*B\x80\x02\n,com.google.cloud.videointelligence.v1p1beta1B\x1dVideoIntelligenceServiceProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p1beta1;videointelligence\xaa\x02(Google.Cloud.VideoIntelligence.V1P1Beta1\xca\x02(Google\\Cloud\\VideoIntelligence\\V1p1beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/videointelligence_v1p1beta1/proto/video_intelligence.proto", + package="google.cloud.videointelligence.v1p1beta1", + syntax="proto3", + serialized_pb=_b( + '\nGgoogle/cloud/videointelligence_v1p1beta1/proto/video_intelligence.proto\x12(google.cloud.videointelligence.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xfd\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12\x43\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32\x31.google.cloud.videointelligence.v1p1beta1.Feature\x12M\n\rvideo_context\x18\x03 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t"\x82\x04\n\x0cVideoContext\x12H\n\x08segments\x18\x01 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoSegment\x12^\n\x16label_detection_config\x18\x02 \x01(\x0b\x32>.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig\x12i\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig\x12s\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32H.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig\x12h\n\x1bspeech_transcription_config\x18\x06 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig"\x9c\x01\n\x14LabelDetectionConfig\x12Z\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32<.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"k\n\x0cLabelSegment\x12G\n\x07segment\x18\x01 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t"\xb0\x02\n\x0fLabelAnnotation\x12@\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x30.google.cloud.videointelligence.v1p1beta1.Entity\x12K\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32\x30.google.cloud.videointelligence.v1p1beta1.Entity\x12H\n\x08segments\x18\x03 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.LabelSegment\x12\x44\n\x06\x66rames\x18\x04 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1p1beta1.LabelFrame"\x9c\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12T\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32\x34.google.cloud.videointelligence.v1p1beta1.Likelihood"k\n\x19\x45xplicitContentAnnotation\x12N\n\x06\x66rames\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame"\xf5\x04\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\\\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p1beta1.LabelAnnotation\x12Y\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p1beta1.LabelAnnotation\x12Z\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p1beta1.LabelAnnotation\x12P\n\x10shot_annotations\x18\x06 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p1beta1.VideoSegment\x12`\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation\x12\\\n\x15speech_transcriptions\x18\x0b \x03(\x0b\x32=.google.cloud.videointelligence.v1p1beta1.SpeechTranscription\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"u\n\x15\x41nnotateVideoResponse\x12\\\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32@.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"w\n\x15\x41nnotateVideoProgress\x12^\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32\x41.google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress"\xf4\x01\n\x19SpeechTranscriptionConfig\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x18\n\x10max_alternatives\x18\x02 \x01(\x05\x12\x18\n\x10\x66ilter_profanity\x18\x03 \x01(\x08\x12P\n\x0fspeech_contexts\x18\x04 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1p1beta1.SpeechContext\x12$\n\x1c\x65nable_automatic_punctuation\x18\x05 \x01(\x08\x12\x14\n\x0c\x61udio_tracks\x18\x06 \x03(\x05" \n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t"s\n\x13SpeechTranscription\x12\\\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x46.google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative"\x89\x01\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x41\n\x05words\x18\x03 \x03(\x0b\x32\x32.google.cloud.videointelligence.v1p1beta1.WordInfo"t\n\x08WordInfo\x12-\n\nstart_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12+\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t*\x8c\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x18\n\x14SPEECH_TRANSCRIPTION\x10\x06*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb2\x01\n\x18VideoIntelligenceService\x12\x95\x01\n\rAnnotateVideo\x12>.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation"%\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p1beta1/videos:annotate:\x01*B\x80\x02\n,com.google.cloud.videointelligence.v1p1beta1B\x1dVideoIntelligenceServiceProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p1beta1;videointelligence\xaa\x02(Google.Cloud.VideoIntelligence.V1P1Beta1\xca\x02(Google\\Cloud\\VideoIntelligence\\V1p1beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _FEATURE = _descriptor.EnumDescriptor( - name='Feature', - full_name='google.cloud.videointelligence.v1p1beta1.Feature', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FEATURE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_CHANGE_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPLICIT_CONTENT_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPEECH_TRANSCRIPTION', index=4, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3959, - serialized_end=4099, + name="Feature", + full_name="google.cloud.videointelligence.v1p1beta1.Feature", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FEATURE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_CHANGE_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXPLICIT_CONTENT_DETECTION", + index=3, + number=3, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SPEECH_TRANSCRIPTION", index=4, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3959, + serialized_end=4099, ) _sym_db.RegisterEnumDescriptor(_FEATURE) Feature = enum_type_wrapper.EnumTypeWrapper(_FEATURE) _LABELDETECTIONMODE = _descriptor.EnumDescriptor( - name='LabelDetectionMode', - full_name='google.cloud.videointelligence.v1p1beta1.LabelDetectionMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION_MODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_MODE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FRAME_MODE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_AND_FRAME_MODE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4101, - serialized_end=4215, + name="LabelDetectionMode", + full_name="google.cloud.videointelligence.v1p1beta1.LabelDetectionMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION_MODE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SHOT_MODE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FRAME_MODE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_AND_FRAME_MODE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4101, + serialized_end=4215, ) _sym_db.RegisterEnumDescriptor(_LABELDETECTIONMODE) LabelDetectionMode = enum_type_wrapper.EnumTypeWrapper(_LABELDETECTIONMODE) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.videointelligence.v1p1beta1.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LIKELIHOOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4217, - serialized_end=4333, + name="Likelihood", + full_name="google.cloud.videointelligence.v1p1beta1.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LIKELIHOOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4217, + serialized_end=4333, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -151,996 +156,1650 @@ VERY_LIKELY = 5 - _ANNOTATEVIDEOREQUEST = _descriptor.Descriptor( - name='AnnotateVideoRequest', - full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_content', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.input_content', index=1, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.features', index=2, - number=2, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_context', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.video_context', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_uri', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.output_uri', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_id', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.location_id', index=5, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=275, - serialized_end=528, + name="AnnotateVideoRequest", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_content", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.input_content", + index=1, + number=6, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.features", + index=2, + number=2, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="video_context", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.video_context", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_uri", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.output_uri", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location_id", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.location_id", + index=5, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=275, + serialized_end=528, ) _VIDEOCONTEXT = _descriptor.Descriptor( - name='VideoContext', - full_name='google.cloud.videointelligence.v1p1beta1.VideoContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1p1beta1.VideoContext.segments', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_detection_config', full_name='google.cloud.videointelligence.v1p1beta1.VideoContext.label_detection_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_change_detection_config', full_name='google.cloud.videointelligence.v1p1beta1.VideoContext.shot_change_detection_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_content_detection_config', full_name='google.cloud.videointelligence.v1p1beta1.VideoContext.explicit_content_detection_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_transcription_config', full_name='google.cloud.videointelligence.v1p1beta1.VideoContext.speech_transcription_config', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=531, - serialized_end=1045, + name="VideoContext", + full_name="google.cloud.videointelligence.v1p1beta1.VideoContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1p1beta1.VideoContext.segments", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_detection_config", + full_name="google.cloud.videointelligence.v1p1beta1.VideoContext.label_detection_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_change_detection_config", + full_name="google.cloud.videointelligence.v1p1beta1.VideoContext.shot_change_detection_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_content_detection_config", + full_name="google.cloud.videointelligence.v1p1beta1.VideoContext.explicit_content_detection_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_transcription_config", + full_name="google.cloud.videointelligence.v1p1beta1.VideoContext.speech_transcription_config", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=531, + serialized_end=1045, ) _LABELDETECTIONCONFIG = _descriptor.Descriptor( - name='LabelDetectionConfig', - full_name='google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label_detection_mode', full_name='google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig.label_detection_mode', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stationary_camera', full_name='google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig.stationary_camera', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig.model', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1048, - serialized_end=1204, + name="LabelDetectionConfig", + full_name="google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label_detection_mode", + full_name="google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig.label_detection_mode", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stationary_camera", + full_name="google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig.stationary_camera", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig.model", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1048, + serialized_end=1204, ) _SHOTCHANGEDETECTIONCONFIG = _descriptor.Descriptor( - name='ShotChangeDetectionConfig', - full_name='google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1206, - serialized_end=1248, + name="ShotChangeDetectionConfig", + full_name="google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1206, + serialized_end=1248, ) _EXPLICITCONTENTDETECTIONCONFIG = _descriptor.Descriptor( - name='ExplicitContentDetectionConfig', - full_name='google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1250, - serialized_end=1297, + name="ExplicitContentDetectionConfig", + full_name="google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1250, + serialized_end=1297, ) _VIDEOSEGMENT = _descriptor.Descriptor( - name='VideoSegment', - full_name='google.cloud.videointelligence.v1p1beta1.VideoSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time_offset', full_name='google.cloud.videointelligence.v1p1beta1.VideoSegment.start_time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time_offset', full_name='google.cloud.videointelligence.v1p1beta1.VideoSegment.end_time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1299, - serialized_end=1419, + name="VideoSegment", + full_name="google.cloud.videointelligence.v1p1beta1.VideoSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time_offset", + full_name="google.cloud.videointelligence.v1p1beta1.VideoSegment.start_time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time_offset", + full_name="google.cloud.videointelligence.v1p1beta1.VideoSegment.end_time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1299, + serialized_end=1419, ) _LABELSEGMENT = _descriptor.Descriptor( - name='LabelSegment', - full_name='google.cloud.videointelligence.v1p1beta1.LabelSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1p1beta1.LabelSegment.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1p1beta1.LabelSegment.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1421, - serialized_end=1528, + name="LabelSegment", + full_name="google.cloud.videointelligence.v1p1beta1.LabelSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1p1beta1.LabelSegment.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1p1beta1.LabelSegment.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1421, + serialized_end=1528, ) _LABELFRAME = _descriptor.Descriptor( - name='LabelFrame', - full_name='google.cloud.videointelligence.v1p1beta1.LabelFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1p1beta1.LabelFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1p1beta1.LabelFrame.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1530, - serialized_end=1610, + name="LabelFrame", + full_name="google.cloud.videointelligence.v1p1beta1.LabelFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1p1beta1.LabelFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1p1beta1.LabelFrame.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1530, + serialized_end=1610, ) _ENTITY = _descriptor.Descriptor( - name='Entity', - full_name='google.cloud.videointelligence.v1p1beta1.Entity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.cloud.videointelligence.v1p1beta1.Entity.entity_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.videointelligence.v1p1beta1.Entity.description', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1p1beta1.Entity.language_code', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1612, - serialized_end=1683, + name="Entity", + full_name="google.cloud.videointelligence.v1p1beta1.Entity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.cloud.videointelligence.v1p1beta1.Entity.entity_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.videointelligence.v1p1beta1.Entity.description", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1p1beta1.Entity.language_code", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1612, + serialized_end=1683, ) _LABELANNOTATION = _descriptor.Descriptor( - name='LabelAnnotation', - full_name='google.cloud.videointelligence.v1p1beta1.LabelAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity', full_name='google.cloud.videointelligence.v1p1beta1.LabelAnnotation.entity', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category_entities', full_name='google.cloud.videointelligence.v1p1beta1.LabelAnnotation.category_entities', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1p1beta1.LabelAnnotation.segments', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1p1beta1.LabelAnnotation.frames', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1686, - serialized_end=1990, + name="LabelAnnotation", + full_name="google.cloud.videointelligence.v1p1beta1.LabelAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity", + full_name="google.cloud.videointelligence.v1p1beta1.LabelAnnotation.entity", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="category_entities", + full_name="google.cloud.videointelligence.v1p1beta1.LabelAnnotation.category_entities", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1p1beta1.LabelAnnotation.segments", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1p1beta1.LabelAnnotation.frames", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1686, + serialized_end=1990, ) _EXPLICITCONTENTFRAME = _descriptor.Descriptor( - name='ExplicitContentFrame', - full_name='google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pornography_likelihood', full_name='google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame.pornography_likelihood', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1993, - serialized_end=2149, + name="ExplicitContentFrame", + full_name="google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pornography_likelihood", + full_name="google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame.pornography_likelihood", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1993, + serialized_end=2149, ) _EXPLICITCONTENTANNOTATION = _descriptor.Descriptor( - name='ExplicitContentAnnotation', - full_name='google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation.frames', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2151, - serialized_end=2258, + name="ExplicitContentAnnotation", + full_name="google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation.frames", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2151, + serialized_end=2258, ) _VIDEOANNOTATIONRESULTS = _descriptor.Descriptor( - name='VideoAnnotationResults', - full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segment_label_annotations', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.segment_label_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_label_annotations', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.shot_label_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frame_label_annotations', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.frame_label_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_annotations', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.shot_annotations', index=4, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_annotation', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.explicit_annotation', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_transcriptions', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.speech_transcriptions', index=6, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.error', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2261, - serialized_end=2890, + name="VideoAnnotationResults", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segment_label_annotations", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.segment_label_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_label_annotations", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.shot_label_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frame_label_annotations", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.frame_label_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_annotations", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.shot_annotations", + index=4, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_annotation", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.explicit_annotation", + index=5, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_transcriptions", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.speech_transcriptions", + index=6, + number=11, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.error", + index=7, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2261, + serialized_end=2890, ) _ANNOTATEVIDEORESPONSE = _descriptor.Descriptor( - name='AnnotateVideoResponse', - full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_results', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse.annotation_results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2892, - serialized_end=3009, + name="AnnotateVideoResponse", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_results", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse.annotation_results", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2892, + serialized_end=3009, ) _VIDEOANNOTATIONPROGRESS = _descriptor.Descriptor( - name='VideoAnnotationProgress', - full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress_percent', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.progress_percent', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.update_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3012, - serialized_end=3179, + name="VideoAnnotationProgress", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.progress_percent", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress.update_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3012, + serialized_end=3179, ) _ANNOTATEVIDEOPROGRESS = _descriptor.Descriptor( - name='AnnotateVideoProgress', - full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_progress', full_name='google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress.annotation_progress', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3181, - serialized_end=3300, + name="AnnotateVideoProgress", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_progress", + full_name="google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress.annotation_progress", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3181, + serialized_end=3300, ) _SPEECHTRANSCRIPTIONCONFIG = _descriptor.Descriptor( - name='SpeechTranscriptionConfig', - full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_alternatives', full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.max_alternatives', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter_profanity', full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.filter_profanity', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speech_contexts', full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.speech_contexts', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_automatic_punctuation', full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.enable_automatic_punctuation', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio_tracks', full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.audio_tracks', index=5, - number=6, type=5, cpp_type=1, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3303, - serialized_end=3547, + name="SpeechTranscriptionConfig", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_alternatives", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.max_alternatives", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter_profanity", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.filter_profanity", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="speech_contexts", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.speech_contexts", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enable_automatic_punctuation", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.enable_automatic_punctuation", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="audio_tracks", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.audio_tracks", + index=5, + number=6, + type=5, + cpp_type=1, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3303, + serialized_end=3547, ) _SPEECHCONTEXT = _descriptor.Descriptor( - name='SpeechContext', - full_name='google.cloud.videointelligence.v1p1beta1.SpeechContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='phrases', full_name='google.cloud.videointelligence.v1p1beta1.SpeechContext.phrases', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3549, - serialized_end=3581, + name="SpeechContext", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="phrases", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechContext.phrases", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3549, + serialized_end=3581, ) _SPEECHTRANSCRIPTION = _descriptor.Descriptor( - name='SpeechTranscription', - full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscription', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alternatives', full_name='google.cloud.videointelligence.v1p1beta1.SpeechTranscription.alternatives', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3583, - serialized_end=3698, + name="SpeechTranscription", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscription", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alternatives", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechTranscription.alternatives", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3583, + serialized_end=3698, ) _SPEECHRECOGNITIONALTERNATIVE = _descriptor.Descriptor( - name='SpeechRecognitionAlternative', - full_name='google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transcript', full_name='google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative.transcript', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='words', full_name='google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative.words', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3701, - serialized_end=3838, + name="SpeechRecognitionAlternative", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="transcript", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative.transcript", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="words", + full_name="google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative.words", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3701, + serialized_end=3838, ) _WORDINFO = _descriptor.Descriptor( - name='WordInfo', - full_name='google.cloud.videointelligence.v1p1beta1.WordInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.videointelligence.v1p1beta1.WordInfo.start_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.videointelligence.v1p1beta1.WordInfo.end_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='word', full_name='google.cloud.videointelligence.v1p1beta1.WordInfo.word', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3840, - serialized_end=3956, + name="WordInfo", + full_name="google.cloud.videointelligence.v1p1beta1.WordInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.videointelligence.v1p1beta1.WordInfo.start_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.videointelligence.v1p1beta1.WordInfo.end_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="word", + full_name="google.cloud.videointelligence.v1p1beta1.WordInfo.word", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3840, + serialized_end=3956, ) -_ANNOTATEVIDEOREQUEST.fields_by_name['features'].enum_type = _FEATURE -_ANNOTATEVIDEOREQUEST.fields_by_name['video_context'].message_type = _VIDEOCONTEXT -_VIDEOCONTEXT.fields_by_name['segments'].message_type = _VIDEOSEGMENT -_VIDEOCONTEXT.fields_by_name['label_detection_config'].message_type = _LABELDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['shot_change_detection_config'].message_type = _SHOTCHANGEDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['explicit_content_detection_config'].message_type = _EXPLICITCONTENTDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['speech_transcription_config'].message_type = _SPEECHTRANSCRIPTIONCONFIG -_LABELDETECTIONCONFIG.fields_by_name['label_detection_mode'].enum_type = _LABELDETECTIONMODE -_VIDEOSEGMENT.fields_by_name['start_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_VIDEOSEGMENT.fields_by_name['end_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELSEGMENT.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_LABELFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELANNOTATION.fields_by_name['entity'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['category_entities'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['segments'].message_type = _LABELSEGMENT -_LABELANNOTATION.fields_by_name['frames'].message_type = _LABELFRAME -_EXPLICITCONTENTFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_EXPLICITCONTENTFRAME.fields_by_name['pornography_likelihood'].enum_type = _LIKELIHOOD -_EXPLICITCONTENTANNOTATION.fields_by_name['frames'].message_type = _EXPLICITCONTENTFRAME -_VIDEOANNOTATIONRESULTS.fields_by_name['segment_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['frame_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_annotations'].message_type = _VIDEOSEGMENT -_VIDEOANNOTATIONRESULTS.fields_by_name['explicit_annotation'].message_type = _EXPLICITCONTENTANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['speech_transcriptions'].message_type = _SPEECHTRANSCRIPTION -_VIDEOANNOTATIONRESULTS.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ANNOTATEVIDEORESPONSE.fields_by_name['annotation_results'].message_type = _VIDEOANNOTATIONRESULTS -_VIDEOANNOTATIONPROGRESS.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_VIDEOANNOTATIONPROGRESS.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ANNOTATEVIDEOPROGRESS.fields_by_name['annotation_progress'].message_type = _VIDEOANNOTATIONPROGRESS -_SPEECHTRANSCRIPTIONCONFIG.fields_by_name['speech_contexts'].message_type = _SPEECHCONTEXT -_SPEECHTRANSCRIPTION.fields_by_name['alternatives'].message_type = _SPEECHRECOGNITIONALTERNATIVE -_SPEECHRECOGNITIONALTERNATIVE.fields_by_name['words'].message_type = _WORDINFO -_WORDINFO.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_WORDINFO.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -DESCRIPTOR.message_types_by_name['AnnotateVideoRequest'] = _ANNOTATEVIDEOREQUEST -DESCRIPTOR.message_types_by_name['VideoContext'] = _VIDEOCONTEXT -DESCRIPTOR.message_types_by_name['LabelDetectionConfig'] = _LABELDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ShotChangeDetectionConfig'] = _SHOTCHANGEDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ExplicitContentDetectionConfig'] = _EXPLICITCONTENTDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['VideoSegment'] = _VIDEOSEGMENT -DESCRIPTOR.message_types_by_name['LabelSegment'] = _LABELSEGMENT -DESCRIPTOR.message_types_by_name['LabelFrame'] = _LABELFRAME -DESCRIPTOR.message_types_by_name['Entity'] = _ENTITY -DESCRIPTOR.message_types_by_name['LabelAnnotation'] = _LABELANNOTATION -DESCRIPTOR.message_types_by_name['ExplicitContentFrame'] = _EXPLICITCONTENTFRAME -DESCRIPTOR.message_types_by_name['ExplicitContentAnnotation'] = _EXPLICITCONTENTANNOTATION -DESCRIPTOR.message_types_by_name['VideoAnnotationResults'] = _VIDEOANNOTATIONRESULTS -DESCRIPTOR.message_types_by_name['AnnotateVideoResponse'] = _ANNOTATEVIDEORESPONSE -DESCRIPTOR.message_types_by_name['VideoAnnotationProgress'] = _VIDEOANNOTATIONPROGRESS -DESCRIPTOR.message_types_by_name['AnnotateVideoProgress'] = _ANNOTATEVIDEOPROGRESS -DESCRIPTOR.message_types_by_name['SpeechTranscriptionConfig'] = _SPEECHTRANSCRIPTIONCONFIG -DESCRIPTOR.message_types_by_name['SpeechContext'] = _SPEECHCONTEXT -DESCRIPTOR.message_types_by_name['SpeechTranscription'] = _SPEECHTRANSCRIPTION -DESCRIPTOR.message_types_by_name['SpeechRecognitionAlternative'] = _SPEECHRECOGNITIONALTERNATIVE -DESCRIPTOR.message_types_by_name['WordInfo'] = _WORDINFO -DESCRIPTOR.enum_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.enum_types_by_name['LabelDetectionMode'] = _LABELDETECTIONMODE -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +_ANNOTATEVIDEOREQUEST.fields_by_name["features"].enum_type = _FEATURE +_ANNOTATEVIDEOREQUEST.fields_by_name["video_context"].message_type = _VIDEOCONTEXT +_VIDEOCONTEXT.fields_by_name["segments"].message_type = _VIDEOSEGMENT +_VIDEOCONTEXT.fields_by_name[ + "label_detection_config" +].message_type = _LABELDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "shot_change_detection_config" +].message_type = _SHOTCHANGEDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "explicit_content_detection_config" +].message_type = _EXPLICITCONTENTDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "speech_transcription_config" +].message_type = _SPEECHTRANSCRIPTIONCONFIG +_LABELDETECTIONCONFIG.fields_by_name[ + "label_detection_mode" +].enum_type = _LABELDETECTIONMODE +_VIDEOSEGMENT.fields_by_name[ + "start_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_VIDEOSEGMENT.fields_by_name[ + "end_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELSEGMENT.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_LABELFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELANNOTATION.fields_by_name["entity"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["category_entities"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["segments"].message_type = _LABELSEGMENT +_LABELANNOTATION.fields_by_name["frames"].message_type = _LABELFRAME +_EXPLICITCONTENTFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_EXPLICITCONTENTFRAME.fields_by_name["pornography_likelihood"].enum_type = _LIKELIHOOD +_EXPLICITCONTENTANNOTATION.fields_by_name["frames"].message_type = _EXPLICITCONTENTFRAME +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "segment_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "shot_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "frame_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name["shot_annotations"].message_type = _VIDEOSEGMENT +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "explicit_annotation" +].message_type = _EXPLICITCONTENTANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "speech_transcriptions" +].message_type = _SPEECHTRANSCRIPTION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ANNOTATEVIDEORESPONSE.fields_by_name[ + "annotation_results" +].message_type = _VIDEOANNOTATIONRESULTS +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ANNOTATEVIDEOPROGRESS.fields_by_name[ + "annotation_progress" +].message_type = _VIDEOANNOTATIONPROGRESS +_SPEECHTRANSCRIPTIONCONFIG.fields_by_name[ + "speech_contexts" +].message_type = _SPEECHCONTEXT +_SPEECHTRANSCRIPTION.fields_by_name[ + "alternatives" +].message_type = _SPEECHRECOGNITIONALTERNATIVE +_SPEECHRECOGNITIONALTERNATIVE.fields_by_name["words"].message_type = _WORDINFO +_WORDINFO.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_WORDINFO.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name["AnnotateVideoRequest"] = _ANNOTATEVIDEOREQUEST +DESCRIPTOR.message_types_by_name["VideoContext"] = _VIDEOCONTEXT +DESCRIPTOR.message_types_by_name["LabelDetectionConfig"] = _LABELDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ShotChangeDetectionConfig" +] = _SHOTCHANGEDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ExplicitContentDetectionConfig" +] = _EXPLICITCONTENTDETECTIONCONFIG +DESCRIPTOR.message_types_by_name["VideoSegment"] = _VIDEOSEGMENT +DESCRIPTOR.message_types_by_name["LabelSegment"] = _LABELSEGMENT +DESCRIPTOR.message_types_by_name["LabelFrame"] = _LABELFRAME +DESCRIPTOR.message_types_by_name["Entity"] = _ENTITY +DESCRIPTOR.message_types_by_name["LabelAnnotation"] = _LABELANNOTATION +DESCRIPTOR.message_types_by_name["ExplicitContentFrame"] = _EXPLICITCONTENTFRAME +DESCRIPTOR.message_types_by_name[ + "ExplicitContentAnnotation" +] = _EXPLICITCONTENTANNOTATION +DESCRIPTOR.message_types_by_name["VideoAnnotationResults"] = _VIDEOANNOTATIONRESULTS +DESCRIPTOR.message_types_by_name["AnnotateVideoResponse"] = _ANNOTATEVIDEORESPONSE +DESCRIPTOR.message_types_by_name["VideoAnnotationProgress"] = _VIDEOANNOTATIONPROGRESS +DESCRIPTOR.message_types_by_name["AnnotateVideoProgress"] = _ANNOTATEVIDEOPROGRESS +DESCRIPTOR.message_types_by_name[ + "SpeechTranscriptionConfig" +] = _SPEECHTRANSCRIPTIONCONFIG +DESCRIPTOR.message_types_by_name["SpeechContext"] = _SPEECHCONTEXT +DESCRIPTOR.message_types_by_name["SpeechTranscription"] = _SPEECHTRANSCRIPTION +DESCRIPTOR.message_types_by_name[ + "SpeechRecognitionAlternative" +] = _SPEECHRECOGNITIONALTERNATIVE +DESCRIPTOR.message_types_by_name["WordInfo"] = _WORDINFO +DESCRIPTOR.enum_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.enum_types_by_name["LabelDetectionMode"] = _LABELDETECTIONMODE +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType('AnnotateVideoRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOREQUEST, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation request. +AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOREQUEST, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation request. Attributes: @@ -1180,15 +1839,18 @@ west1``, ``asia-east1``. If no region is specified, a region will be determined based on video file location. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest) + ), +) _sym_db.RegisterMessage(AnnotateVideoRequest) -VideoContext = _reflection.GeneratedProtocolMessageType('VideoContext', (_message.Message,), dict( - DESCRIPTOR = _VIDEOCONTEXT, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video context and/or feature-specific parameters. +VideoContext = _reflection.GeneratedProtocolMessageType( + "VideoContext", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOCONTEXT, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video context and/or feature-specific parameters. Attributes: @@ -1205,15 +1867,18 @@ speech_transcription_config: Config for SPEECH\_TRANSCRIPTION. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoContext) + ), +) _sym_db.RegisterMessage(VideoContext) -LabelDetectionConfig = _reflection.GeneratedProtocolMessageType('LabelDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _LABELDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for LABEL\_DETECTION. +LabelDetectionConfig = _reflection.GeneratedProtocolMessageType( + "LabelDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_LABELDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Config for LABEL\_DETECTION. Attributes: @@ -1230,15 +1895,18 @@ Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig) + ), +) _sym_db.RegisterMessage(LabelDetectionConfig) -ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType('ShotChangeDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _SHOTCHANGEDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for SHOT\_CHANGE\_DETECTION. +ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ShotChangeDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_SHOTCHANGEDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Config for SHOT\_CHANGE\_DETECTION. Attributes: @@ -1246,15 +1914,18 @@ Model to use for shot change detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig) + ), +) _sym_db.RegisterMessage(ShotChangeDetectionConfig) -ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType('ExplicitContentDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for EXPLICIT\_CONTENT\_DETECTION. +ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ExplicitContentDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Config for EXPLICIT\_CONTENT\_DETECTION. Attributes: @@ -1262,15 +1933,18 @@ Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig) + ), +) _sym_db.RegisterMessage(ExplicitContentDetectionConfig) -VideoSegment = _reflection.GeneratedProtocolMessageType('VideoSegment', (_message.Message,), dict( - DESCRIPTOR = _VIDEOSEGMENT, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment. +VideoSegment = _reflection.GeneratedProtocolMessageType( + "VideoSegment", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOSEGMENT, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video segment. Attributes: @@ -1281,15 +1955,18 @@ Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoSegment) + ), +) _sym_db.RegisterMessage(VideoSegment) -LabelSegment = _reflection.GeneratedProtocolMessageType('LabelSegment', (_message.Message,), dict( - DESCRIPTOR = _LABELSEGMENT, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment level annotation results for label detection. +LabelSegment = _reflection.GeneratedProtocolMessageType( + "LabelSegment", + (_message.Message,), + dict( + DESCRIPTOR=_LABELSEGMENT, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video segment level annotation results for label detection. Attributes: @@ -1298,15 +1975,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelSegment) + ), +) _sym_db.RegisterMessage(LabelSegment) -LabelFrame = _reflection.GeneratedProtocolMessageType('LabelFrame', (_message.Message,), dict( - DESCRIPTOR = _LABELFRAME, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for label detection. +LabelFrame = _reflection.GeneratedProtocolMessageType( + "LabelFrame", + (_message.Message,), + dict( + DESCRIPTOR=_LABELFRAME, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for label detection. Attributes: @@ -1316,15 +1996,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelFrame) + ), +) _sym_db.RegisterMessage(LabelFrame) -Entity = _reflection.GeneratedProtocolMessageType('Entity', (_message.Message,), dict( - DESCRIPTOR = _ENTITY, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Detected entity from video analysis. +Entity = _reflection.GeneratedProtocolMessageType( + "Entity", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITY, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Detected entity from video analysis. Attributes: @@ -1337,15 +2020,18 @@ language_code: Language code for ``description`` in BCP-47 format. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.Entity) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.Entity) + ), +) _sym_db.RegisterMessage(Entity) -LabelAnnotation = _reflection.GeneratedProtocolMessageType('LabelAnnotation', (_message.Message,), dict( - DESCRIPTOR = _LABELANNOTATION, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Label annotation. +LabelAnnotation = _reflection.GeneratedProtocolMessageType( + "LabelAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_LABELANNOTATION, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Label annotation. Attributes: @@ -1361,15 +2047,18 @@ frames: All video frames where a label was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.LabelAnnotation) + ), +) _sym_db.RegisterMessage(LabelAnnotation) -ExplicitContentFrame = _reflection.GeneratedProtocolMessageType('ExplicitContentFrame', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTFRAME, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for explicit content. +ExplicitContentFrame = _reflection.GeneratedProtocolMessageType( + "ExplicitContentFrame", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTFRAME, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for explicit content. Attributes: @@ -1379,15 +2068,18 @@ pornography_likelihood: Likelihood of the pornography content.. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame) + ), +) _sym_db.RegisterMessage(ExplicitContentFrame) -ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType('ExplicitContentAnnotation', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTANNOTATION, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Explicit content annotation (based on per-frame visual signals only). If +ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType( + "ExplicitContentAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTANNOTATION, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame. @@ -1396,15 +2088,18 @@ frames: All video frames where explicit content was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation) + ), +) _sym_db.RegisterMessage(ExplicitContentAnnotation) -VideoAnnotationResults = _reflection.GeneratedProtocolMessageType('VideoAnnotationResults', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONRESULTS, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation results for a single video. +VideoAnnotationResults = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationResults", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONRESULTS, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Annotation results for a single video. Attributes: @@ -1431,15 +2126,18 @@ single ``AnnotateVideoRequest`` some videos may succeed and some may fail. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults) + ), +) _sym_db.RegisterMessage(VideoAnnotationResults) -AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType('AnnotateVideoResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEORESPONSE, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation response. Included in the ``response`` field of the +AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEORESPONSE, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation response. Included in the ``response`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1449,15 +2147,18 @@ Annotation results for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse) + ), +) _sym_db.RegisterMessage(AnnotateVideoResponse) -VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType('VideoAnnotationProgress', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONPROGRESS, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation progress for a single video. +VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationProgress", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONPROGRESS, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Annotation progress for a single video. Attributes: @@ -1472,15 +2173,18 @@ update_time: Output only. Time of the most recent update. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress) + ), +) _sym_db.RegisterMessage(VideoAnnotationProgress) -AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType('AnnotateVideoProgress', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOPROGRESS, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation progress. Included in the ``metadata`` field of the +AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoProgress", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOPROGRESS, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation progress. Included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1490,15 +2194,18 @@ Progress metadata for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress) + ), +) _sym_db.RegisterMessage(AnnotateVideoProgress) -SpeechTranscriptionConfig = _reflection.GeneratedProtocolMessageType('SpeechTranscriptionConfig', (_message.Message,), dict( - DESCRIPTOR = _SPEECHTRANSCRIPTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for SPEECH\_TRANSCRIPTION. +SpeechTranscriptionConfig = _reflection.GeneratedProtocolMessageType( + "SpeechTranscriptionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHTRANSCRIPTIONCONFIG, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Config for SPEECH\_TRANSCRIPTION. Attributes: @@ -1539,15 +2246,18 @@ multiple audio tracks, specify up to two tracks. Default: track 0. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig) + ), +) _sym_db.RegisterMessage(SpeechTranscriptionConfig) -SpeechContext = _reflection.GeneratedProtocolMessageType('SpeechContext', (_message.Message,), dict( - DESCRIPTOR = _SPEECHCONTEXT, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Provides "hints" to the speech recognizer to favor specific words and +SpeechContext = _reflection.GeneratedProtocolMessageType( + "SpeechContext", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHCONTEXT, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Provides "hints" to the speech recognizer to favor specific words and phrases in the results. @@ -1562,15 +2272,18 @@ `usage limits `__. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechContext) + ), +) _sym_db.RegisterMessage(SpeechContext) -SpeechTranscription = _reflection.GeneratedProtocolMessageType('SpeechTranscription', (_message.Message,), dict( - DESCRIPTOR = _SPEECHTRANSCRIPTION, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """A speech recognition result corresponding to a portion of the audio. +SpeechTranscription = _reflection.GeneratedProtocolMessageType( + "SpeechTranscription", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHTRANSCRIPTION, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""A speech recognition result corresponding to a portion of the audio. Attributes: @@ -1581,15 +2294,18 @@ (first) alternative being the most probable, as ranked by the recognizer. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechTranscription) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechTranscription) + ), +) _sym_db.RegisterMessage(SpeechTranscription) -SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType('SpeechRecognitionAlternative', (_message.Message,), dict( - DESCRIPTOR = _SPEECHRECOGNITIONALTERNATIVE, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Alternative hypotheses (a.k.a. n-best list). +SpeechRecognitionAlternative = _reflection.GeneratedProtocolMessageType( + "SpeechRecognitionAlternative", + (_message.Message,), + dict( + DESCRIPTOR=_SPEECHRECOGNITIONALTERNATIVE, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Alternative hypotheses (a.k.a. n-best list). Attributes: @@ -1609,15 +2325,18 @@ Output only. A list of word-specific information for each recognized word. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative) + ), +) _sym_db.RegisterMessage(SpeechRecognitionAlternative) -WordInfo = _reflection.GeneratedProtocolMessageType('WordInfo', (_message.Message,), dict( - DESCRIPTOR = _WORDINFO, - __module__ = 'google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2' - , - __doc__ = """Word-specific information for recognized words. Word information is only +WordInfo = _reflection.GeneratedProtocolMessageType( + "WordInfo", + (_message.Message,), + dict( + DESCRIPTOR=_WORDINFO, + __module__="google.cloud.videointelligence_v1p1beta1.proto.video_intelligence_pb2", + __doc__="""Word-specific information for recognized words. Word information is only included in the response when certain request parameters are set, such as ``enable_word_time_offsets``. @@ -1639,35 +2358,45 @@ Output only. The word corresponding to this set of information. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.WordInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p1beta1.WordInfo) + ), +) _sym_db.RegisterMessage(WordInfo) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n,com.google.cloud.videointelligence.v1p1beta1B\035VideoIntelligenceServiceProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p1beta1;videointelligence\252\002(Google.Cloud.VideoIntelligence.V1P1Beta1\312\002(Google\\Cloud\\VideoIntelligence\\V1p1beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n,com.google.cloud.videointelligence.v1p1beta1B\035VideoIntelligenceServiceProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p1beta1;videointelligence\252\002(Google.Cloud.VideoIntelligence.V1P1Beta1\312\002(Google\\Cloud\\VideoIntelligence\\V1p1beta1" + ), +) _VIDEOINTELLIGENCESERVICE = _descriptor.ServiceDescriptor( - name='VideoIntelligenceService', - full_name='google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4336, - serialized_end=4514, - methods=[ - _descriptor.MethodDescriptor( - name='AnnotateVideo', - full_name='google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService.AnnotateVideo', + name="VideoIntelligenceService", + full_name="google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_ANNOTATEVIDEOREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037\"\032/v1p1beta1/videos:annotate:\001*')), - ), -]) + options=None, + serialized_start=4336, + serialized_end=4514, + methods=[ + _descriptor.MethodDescriptor( + name="AnnotateVideo", + full_name="google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService.AnnotateVideo", + index=0, + containing_service=None, + input_type=_ANNOTATEVIDEOREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\037"\032/v1p1beta1/videos:annotate:\001*'), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) -DESCRIPTOR.services_by_name['VideoIntelligenceService'] = _VIDEOINTELLIGENCESERVICE +DESCRIPTOR.services_by_name["VideoIntelligenceService"] = _VIDEOINTELLIGENCESERVICE # @@protoc_insertion_point(module_scope) diff --git a/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py b/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py index dba2b2400dd43..91583de368524 100644 --- a/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py +++ b/videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py @@ -1,50 +1,56 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.videointelligence_v1p1beta1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1p1beta1_dot_proto_dot_video__intelligence__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.videointelligence_v1p1beta1.proto import ( + video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1p1beta1_dot_proto_dot_video__intelligence__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class VideoIntelligenceServiceStub(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.AnnotateVideo = channel.unary_unary( - '/google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService/AnnotateVideo', - request_serializer=google_dot_cloud_dot_videointelligence__v1p1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.AnnotateVideo = channel.unary_unary( + "/google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService/AnnotateVideo", + request_serializer=google_dot_cloud_dot_videointelligence__v1p1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class VideoIntelligenceServiceServicer(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def AnnotateVideo(self, request, context): - """Performs asynchronous video annotation. Progress and results can be + def AnnotateVideo(self, request, context): + """Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_VideoIntelligenceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'AnnotateVideo': grpc.unary_unary_rpc_method_handler( - servicer.AnnotateVideo, - request_deserializer=google_dot_cloud_dot_videointelligence__v1p1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "AnnotateVideo": grpc.unary_unary_rpc_method_handler( + servicer.AnnotateVideo, + request_deserializer=google_dot_cloud_dot_videointelligence__v1p1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py b/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py index ffd82b7293df9..855d7a90483bd 100644 --- a/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py +++ b/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py @@ -2,138 +2,142 @@ # source: google/cloud/videointelligence_v1p2beta1/proto/video_intelligence.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/videointelligence_v1p2beta1/proto/video_intelligence.proto', - package='google.cloud.videointelligence.v1p2beta1', - syntax='proto3', - serialized_pb=_b('\nGgoogle/cloud/videointelligence_v1p2beta1/proto/video_intelligence.proto\x12(google.cloud.videointelligence.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xfd\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12\x43\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32\x31.google.cloud.videointelligence.v1p2beta1.Feature\x12M\n\rvideo_context\x18\x03 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t\"\xf6\x03\n\x0cVideoContext\x12H\n\x08segments\x18\x01 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12^\n\x16label_detection_config\x18\x02 \x01(\x0b\x32>.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig\x12i\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig\x12s\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32H.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig\x12\\\n\x15text_detection_config\x18\x08 \x01(\x0b\x32=.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig\"\x9c\x01\n\x14LabelDetectionConfig\x12Z\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32<.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t\"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t\"-\n\x13TextDetectionConfig\x12\x16\n\x0elanguage_hints\x18\x01 \x03(\t\"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"k\n\x0cLabelSegment\x12G\n\x07segment\x18\x01 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xb0\x02\n\x0fLabelAnnotation\x12@\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x30.google.cloud.videointelligence.v1p2beta1.Entity\x12K\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32\x30.google.cloud.videointelligence.v1p2beta1.Entity\x12H\n\x08segments\x18\x03 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.LabelSegment\x12\x44\n\x06\x66rames\x18\x04 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1p2beta1.LabelFrame\"\x9c\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12T\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32\x34.google.cloud.videointelligence.v1p2beta1.Likelihood\"k\n\x19\x45xplicitContentAnnotation\x12N\n\x06\x66rames\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame\"Q\n\x15NormalizedBoundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x02\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\r\n\x05right\x18\x03 \x01(\x02\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x02\"\xcb\x05\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\\\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p2beta1.LabelAnnotation\x12Y\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p2beta1.LabelAnnotation\x12Z\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p2beta1.LabelAnnotation\x12P\n\x10shot_annotations\x18\x06 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12`\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation\x12R\n\x10text_annotations\x18\x0c \x03(\x0b\x32\x38.google.cloud.videointelligence.v1p2beta1.TextAnnotation\x12^\n\x12object_annotations\x18\x0e \x03(\x0b\x32\x42.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\"u\n\x15\x41nnotateVideoResponse\x12\\\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32@.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults\"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x15\x41nnotateVideoProgress\x12^\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32\x41.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"f\n\x16NormalizedBoundingPoly\x12L\n\x08vertices\x18\x01 \x03(\x0b\x32:.google.cloud.videointelligence.v1p2beta1.NormalizedVertex\"\xaf\x01\n\x0bTextSegment\x12G\n\x07segment\x18\x01 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x43\n\x06\x66rames\x18\x03 \x03(\x0b\x32\x33.google.cloud.videointelligence.v1p2beta1.TextFrame\"\x9b\x01\n\tTextFrame\x12^\n\x14rotated_bounding_box\x18\x01 \x01(\x0b\x32@.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"g\n\x0eTextAnnotation\x12\x0c\n\x04text\x18\x01 \x01(\t\x12G\n\x08segments\x18\x02 \x03(\x0b\x32\x35.google.cloud.videointelligence.v1p2beta1.TextSegment\"\xa7\x01\n\x13ObjectTrackingFrame\x12`\n\x17normalized_bounding_box\x18\x01 \x01(\x0b\x32?.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x88\x02\n\x18ObjectTrackingAnnotation\x12@\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x30.google.cloud.videointelligence.v1p2beta1.Entity\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12M\n\x06\x66rames\x18\x02 \x03(\x0b\x32=.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame\x12G\n\x07segment\x18\x03 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment*\x9b\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x12\n\x0eTEXT_DETECTION\x10\x07\x12\x13\n\x0fOBJECT_TRACKING\x10\t*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb2\x01\n\x18VideoIntelligenceService\x12\x95\x01\n\rAnnotateVideo\x12>.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1p2beta1/videos:annotate:\x01*B\x80\x02\n,com.google.cloud.videointelligence.v1p2beta1B\x1dVideoIntelligenceServiceProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence\xaa\x02(Google.Cloud.VideoIntelligence.V1P2Beta1\xca\x02(Google\\Cloud\\VideoIntelligence\\V1p2beta1b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + name="google/cloud/videointelligence_v1p2beta1/proto/video_intelligence.proto", + package="google.cloud.videointelligence.v1p2beta1", + syntax="proto3", + serialized_pb=_b( + '\nGgoogle/cloud/videointelligence_v1p2beta1/proto/video_intelligence.proto\x12(google.cloud.videointelligence.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xfd\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\x0c\x12\x43\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32\x31.google.cloud.videointelligence.v1p2beta1.Feature\x12M\n\rvideo_context\x18\x03 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t"\xf6\x03\n\x0cVideoContext\x12H\n\x08segments\x18\x01 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12^\n\x16label_detection_config\x18\x02 \x01(\x0b\x32>.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig\x12i\n\x1cshot_change_detection_config\x18\x03 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig\x12s\n!explicit_content_detection_config\x18\x04 \x01(\x0b\x32H.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig\x12\\\n\x15text_detection_config\x18\x08 \x01(\x0b\x32=.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig"\x9c\x01\n\x14LabelDetectionConfig\x12Z\n\x14label_detection_mode\x18\x01 \x01(\x0e\x32<.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x02 \x01(\x08\x12\r\n\x05model\x18\x03 \x01(\t"*\n\x19ShotChangeDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"/\n\x1e\x45xplicitContentDetectionConfig\x12\r\n\x05model\x18\x01 \x01(\t"-\n\x13TextDetectionConfig\x12\x16\n\x0elanguage_hints\x18\x01 \x03(\t"x\n\x0cVideoSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"k\n\x0cLabelSegment\x12G\n\x07segment\x18\x01 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02"P\n\nLabelFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x02 \x01(\x02"G\n\x06\x45ntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t"\xb0\x02\n\x0fLabelAnnotation\x12@\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x30.google.cloud.videointelligence.v1p2beta1.Entity\x12K\n\x11\x63\x61tegory_entities\x18\x02 \x03(\x0b\x32\x30.google.cloud.videointelligence.v1p2beta1.Entity\x12H\n\x08segments\x18\x03 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.LabelSegment\x12\x44\n\x06\x66rames\x18\x04 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1p2beta1.LabelFrame"\x9c\x01\n\x14\x45xplicitContentFrame\x12.\n\x0btime_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12T\n\x16pornography_likelihood\x18\x02 \x01(\x0e\x32\x34.google.cloud.videointelligence.v1p2beta1.Likelihood"k\n\x19\x45xplicitContentAnnotation\x12N\n\x06\x66rames\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame"Q\n\x15NormalizedBoundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x02\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\r\n\x05right\x18\x03 \x01(\x02\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x02"\xcb\x05\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\\\n\x19segment_label_annotations\x18\x02 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p2beta1.LabelAnnotation\x12Y\n\x16shot_label_annotations\x18\x03 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p2beta1.LabelAnnotation\x12Z\n\x17\x66rame_label_annotations\x18\x04 \x03(\x0b\x32\x39.google.cloud.videointelligence.v1p2beta1.LabelAnnotation\x12P\n\x10shot_annotations\x18\x06 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12`\n\x13\x65xplicit_annotation\x18\x07 \x01(\x0b\x32\x43.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation\x12R\n\x10text_annotations\x18\x0c \x03(\x0b\x32\x38.google.cloud.videointelligence.v1p2beta1.TextAnnotation\x12^\n\x12object_annotations\x18\x0e \x03(\x0b\x32\x42.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"u\n\x15\x41nnotateVideoResponse\x12\\\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32@.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"w\n\x15\x41nnotateVideoProgress\x12^\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32\x41.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"f\n\x16NormalizedBoundingPoly\x12L\n\x08vertices\x18\x01 \x03(\x0b\x32:.google.cloud.videointelligence.v1p2beta1.NormalizedVertex"\xaf\x01\n\x0bTextSegment\x12G\n\x07segment\x18\x01 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x43\n\x06\x66rames\x18\x03 \x03(\x0b\x32\x33.google.cloud.videointelligence.v1p2beta1.TextFrame"\x9b\x01\n\tTextFrame\x12^\n\x14rotated_bounding_box\x18\x01 \x01(\x0b\x32@.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"g\n\x0eTextAnnotation\x12\x0c\n\x04text\x18\x01 \x01(\t\x12G\n\x08segments\x18\x02 \x03(\x0b\x32\x35.google.cloud.videointelligence.v1p2beta1.TextSegment"\xa7\x01\n\x13ObjectTrackingFrame\x12`\n\x17normalized_bounding_box\x18\x01 \x01(\x0b\x32?.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\x88\x02\n\x18ObjectTrackingAnnotation\x12@\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x30.google.cloud.videointelligence.v1p2beta1.Entity\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12M\n\x06\x66rames\x18\x02 \x03(\x0b\x32=.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame\x12G\n\x07segment\x18\x03 \x01(\x0b\x32\x36.google.cloud.videointelligence.v1p2beta1.VideoSegment*\x9b\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x02\x12\x1e\n\x1a\x45XPLICIT_CONTENT_DETECTION\x10\x03\x12\x12\n\x0eTEXT_DETECTION\x10\x07\x12\x13\n\x0fOBJECT_TRACKING\x10\t*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*t\n\nLikelihood\x12\x1a\n\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb2\x01\n\x18VideoIntelligenceService\x12\x95\x01\n\rAnnotateVideo\x12>.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation"%\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p2beta1/videos:annotate:\x01*B\x80\x02\n,com.google.cloud.videointelligence.v1p2beta1B\x1dVideoIntelligenceServiceProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence\xaa\x02(Google.Cloud.VideoIntelligence.V1P2Beta1\xca\x02(Google\\Cloud\\VideoIntelligence\\V1p2beta1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _FEATURE = _descriptor.EnumDescriptor( - name='Feature', - full_name='google.cloud.videointelligence.v1p2beta1.Feature', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FEATURE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_CHANGE_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPLICIT_CONTENT_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT_DETECTION', index=4, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OBJECT_TRACKING', index=5, number=9, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4531, - serialized_end=4686, + name="Feature", + full_name="google.cloud.videointelligence.v1p2beta1.Feature", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FEATURE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_CHANGE_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EXPLICIT_CONTENT_DETECTION", + index=3, + number=3, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="TEXT_DETECTION", index=4, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OBJECT_TRACKING", index=5, number=9, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4531, + serialized_end=4686, ) _sym_db.RegisterEnumDescriptor(_FEATURE) Feature = enum_type_wrapper.EnumTypeWrapper(_FEATURE) _LABELDETECTIONMODE = _descriptor.EnumDescriptor( - name='LabelDetectionMode', - full_name='google.cloud.videointelligence.v1p2beta1.LabelDetectionMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION_MODE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_MODE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FRAME_MODE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOT_AND_FRAME_MODE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4688, - serialized_end=4802, + name="LabelDetectionMode", + full_name="google.cloud.videointelligence.v1p2beta1.LabelDetectionMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION_MODE_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SHOT_MODE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FRAME_MODE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SHOT_AND_FRAME_MODE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4688, + serialized_end=4802, ) _sym_db.RegisterEnumDescriptor(_LABELDETECTIONMODE) LabelDetectionMode = enum_type_wrapper.EnumTypeWrapper(_LABELDETECTIONMODE) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.videointelligence.v1p2beta1.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='LIKELIHOOD_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=4804, - serialized_end=4920, + name="Likelihood", + full_name="google.cloud.videointelligence.v1p2beta1.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="LIKELIHOOD_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=4804, + serialized_end=4920, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -156,1159 +160,1885 @@ VERY_LIKELY = 5 - _ANNOTATEVIDEOREQUEST = _descriptor.Descriptor( - name='AnnotateVideoRequest', - full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_content', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.input_content', index=1, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.features', index=2, - number=2, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_context', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.video_context', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_uri', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.output_uri', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_id', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.location_id', index=5, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=275, - serialized_end=528, + name="AnnotateVideoRequest", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_content", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.input_content", + index=1, + number=6, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.features", + index=2, + number=2, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="video_context", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.video_context", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_uri", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.output_uri", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location_id", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.location_id", + index=5, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=275, + serialized_end=528, ) _VIDEOCONTEXT = _descriptor.Descriptor( - name='VideoContext', - full_name='google.cloud.videointelligence.v1p2beta1.VideoContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1p2beta1.VideoContext.segments', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_detection_config', full_name='google.cloud.videointelligence.v1p2beta1.VideoContext.label_detection_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_change_detection_config', full_name='google.cloud.videointelligence.v1p2beta1.VideoContext.shot_change_detection_config', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_content_detection_config', full_name='google.cloud.videointelligence.v1p2beta1.VideoContext.explicit_content_detection_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_detection_config', full_name='google.cloud.videointelligence.v1p2beta1.VideoContext.text_detection_config', index=4, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=531, - serialized_end=1033, + name="VideoContext", + full_name="google.cloud.videointelligence.v1p2beta1.VideoContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1p2beta1.VideoContext.segments", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_detection_config", + full_name="google.cloud.videointelligence.v1p2beta1.VideoContext.label_detection_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_change_detection_config", + full_name="google.cloud.videointelligence.v1p2beta1.VideoContext.shot_change_detection_config", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_content_detection_config", + full_name="google.cloud.videointelligence.v1p2beta1.VideoContext.explicit_content_detection_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_detection_config", + full_name="google.cloud.videointelligence.v1p2beta1.VideoContext.text_detection_config", + index=4, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=531, + serialized_end=1033, ) _LABELDETECTIONCONFIG = _descriptor.Descriptor( - name='LabelDetectionConfig', - full_name='google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label_detection_mode', full_name='google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.label_detection_mode', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stationary_camera', full_name='google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.stationary_camera', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.model', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1036, - serialized_end=1192, + name="LabelDetectionConfig", + full_name="google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label_detection_mode", + full_name="google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.label_detection_mode", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="stationary_camera", + full_name="google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.stationary_camera", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.model", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1036, + serialized_end=1192, ) _SHOTCHANGEDETECTIONCONFIG = _descriptor.Descriptor( - name='ShotChangeDetectionConfig', - full_name='google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1194, - serialized_end=1236, + name="ShotChangeDetectionConfig", + full_name="google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1194, + serialized_end=1236, ) _EXPLICITCONTENTDETECTIONCONFIG = _descriptor.Descriptor( - name='ExplicitContentDetectionConfig', - full_name='google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.model', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1238, - serialized_end=1285, + name="ExplicitContentDetectionConfig", + full_name="google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.model", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1238, + serialized_end=1285, ) _TEXTDETECTIONCONFIG = _descriptor.Descriptor( - name='TextDetectionConfig', - full_name='google.cloud.videointelligence.v1p2beta1.TextDetectionConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_hints', full_name='google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.language_hints', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1287, - serialized_end=1332, + name="TextDetectionConfig", + full_name="google.cloud.videointelligence.v1p2beta1.TextDetectionConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_hints", + full_name="google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.language_hints", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1287, + serialized_end=1332, ) _VIDEOSEGMENT = _descriptor.Descriptor( - name='VideoSegment', - full_name='google.cloud.videointelligence.v1p2beta1.VideoSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_time_offset', full_name='google.cloud.videointelligence.v1p2beta1.VideoSegment.start_time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time_offset', full_name='google.cloud.videointelligence.v1p2beta1.VideoSegment.end_time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1334, - serialized_end=1454, + name="VideoSegment", + full_name="google.cloud.videointelligence.v1p2beta1.VideoSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="start_time_offset", + full_name="google.cloud.videointelligence.v1p2beta1.VideoSegment.start_time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time_offset", + full_name="google.cloud.videointelligence.v1p2beta1.VideoSegment.end_time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1334, + serialized_end=1454, ) _LABELSEGMENT = _descriptor.Descriptor( - name='LabelSegment', - full_name='google.cloud.videointelligence.v1p2beta1.LabelSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1p2beta1.LabelSegment.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1p2beta1.LabelSegment.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1456, - serialized_end=1563, + name="LabelSegment", + full_name="google.cloud.videointelligence.v1p2beta1.LabelSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1p2beta1.LabelSegment.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1p2beta1.LabelSegment.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1456, + serialized_end=1563, ) _LABELFRAME = _descriptor.Descriptor( - name='LabelFrame', - full_name='google.cloud.videointelligence.v1p2beta1.LabelFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1p2beta1.LabelFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1p2beta1.LabelFrame.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1565, - serialized_end=1645, + name="LabelFrame", + full_name="google.cloud.videointelligence.v1p2beta1.LabelFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1p2beta1.LabelFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1p2beta1.LabelFrame.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1565, + serialized_end=1645, ) _ENTITY = _descriptor.Descriptor( - name='Entity', - full_name='google.cloud.videointelligence.v1p2beta1.Entity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.cloud.videointelligence.v1p2beta1.Entity.entity_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.videointelligence.v1p2beta1.Entity.description', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.videointelligence.v1p2beta1.Entity.language_code', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1647, - serialized_end=1718, + name="Entity", + full_name="google.cloud.videointelligence.v1p2beta1.Entity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.cloud.videointelligence.v1p2beta1.Entity.entity_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.videointelligence.v1p2beta1.Entity.description", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.videointelligence.v1p2beta1.Entity.language_code", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1647, + serialized_end=1718, ) _LABELANNOTATION = _descriptor.Descriptor( - name='LabelAnnotation', - full_name='google.cloud.videointelligence.v1p2beta1.LabelAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity', full_name='google.cloud.videointelligence.v1p2beta1.LabelAnnotation.entity', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category_entities', full_name='google.cloud.videointelligence.v1p2beta1.LabelAnnotation.category_entities', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1p2beta1.LabelAnnotation.segments', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1p2beta1.LabelAnnotation.frames', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1721, - serialized_end=2025, + name="LabelAnnotation", + full_name="google.cloud.videointelligence.v1p2beta1.LabelAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity", + full_name="google.cloud.videointelligence.v1p2beta1.LabelAnnotation.entity", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="category_entities", + full_name="google.cloud.videointelligence.v1p2beta1.LabelAnnotation.category_entities", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1p2beta1.LabelAnnotation.segments", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1p2beta1.LabelAnnotation.frames", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1721, + serialized_end=2025, ) _EXPLICITCONTENTFRAME = _descriptor.Descriptor( - name='ExplicitContentFrame', - full_name='google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.time_offset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pornography_likelihood', full_name='google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.pornography_likelihood', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2028, - serialized_end=2184, + name="ExplicitContentFrame", + full_name="google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.time_offset", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pornography_likelihood", + full_name="google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.pornography_likelihood", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2028, + serialized_end=2184, ) _EXPLICITCONTENTANNOTATION = _descriptor.Descriptor( - name='ExplicitContentAnnotation', - full_name='google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.frames', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2186, - serialized_end=2293, + name="ExplicitContentAnnotation", + full_name="google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.frames", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2186, + serialized_end=2293, ) _NORMALIZEDBOUNDINGBOX = _descriptor.Descriptor( - name='NormalizedBoundingBox', - full_name='google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='left', full_name='google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.left', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top', full_name='google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.top', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='right', full_name='google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.right', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bottom', full_name='google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.bottom', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2295, - serialized_end=2376, + name="NormalizedBoundingBox", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="left", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.left", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="top", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.top", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="right", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.right", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bottom", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.bottom", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2295, + serialized_end=2376, ) _VIDEOANNOTATIONRESULTS = _descriptor.Descriptor( - name='VideoAnnotationResults', - full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segment_label_annotations', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.segment_label_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_label_annotations', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.shot_label_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frame_label_annotations', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.frame_label_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shot_annotations', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.shot_annotations', index=4, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicit_annotation', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.explicit_annotation', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_annotations', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.text_annotations', index=6, - number=12, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='object_annotations', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.object_annotations', index=7, - number=14, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.error', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2379, - serialized_end=3094, + name="VideoAnnotationResults", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segment_label_annotations", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.segment_label_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_label_annotations", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.shot_label_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frame_label_annotations", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.frame_label_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="shot_annotations", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.shot_annotations", + index=4, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="explicit_annotation", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.explicit_annotation", + index=5, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_annotations", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.text_annotations", + index=6, + number=12, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="object_annotations", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.object_annotations", + index=7, + number=14, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.error", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2379, + serialized_end=3094, ) _ANNOTATEVIDEORESPONSE = _descriptor.Descriptor( - name='AnnotateVideoResponse', - full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_results', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.annotation_results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3096, - serialized_end=3213, + name="AnnotateVideoResponse", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_results", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.annotation_results", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3096, + serialized_end=3213, ) _VIDEOANNOTATIONPROGRESS = _descriptor.Descriptor( - name='VideoAnnotationProgress', - full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_uri', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.input_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='progress_percent', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.progress_percent', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.start_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.update_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3216, - serialized_end=3383, + name="VideoAnnotationProgress", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_uri", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.input_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.progress_percent", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.update_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3216, + serialized_end=3383, ) _ANNOTATEVIDEOPROGRESS = _descriptor.Descriptor( - name='AnnotateVideoProgress', - full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='annotation_progress', full_name='google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.annotation_progress', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3385, - serialized_end=3504, + name="AnnotateVideoProgress", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="annotation_progress", + full_name="google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.annotation_progress", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3385, + serialized_end=3504, ) _NORMALIZEDVERTEX = _descriptor.Descriptor( - name='NormalizedVertex', - full_name='google.cloud.videointelligence.v1p2beta1.NormalizedVertex', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='x', full_name='google.cloud.videointelligence.v1p2beta1.NormalizedVertex.x', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='y', full_name='google.cloud.videointelligence.v1p2beta1.NormalizedVertex.y', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3506, - serialized_end=3546, + name="NormalizedVertex", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedVertex", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="x", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedVertex.x", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="y", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedVertex.y", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3506, + serialized_end=3546, ) _NORMALIZEDBOUNDINGPOLY = _descriptor.Descriptor( - name='NormalizedBoundingPoly', - full_name='google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='vertices', full_name='google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.vertices', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3548, - serialized_end=3650, + name="NormalizedBoundingPoly", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="vertices", + full_name="google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.vertices", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3548, + serialized_end=3650, ) _TEXTSEGMENT = _descriptor.Descriptor( - name='TextSegment', - full_name='google.cloud.videointelligence.v1p2beta1.TextSegment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1p2beta1.TextSegment.segment', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1p2beta1.TextSegment.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1p2beta1.TextSegment.frames', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3653, - serialized_end=3828, + name="TextSegment", + full_name="google.cloud.videointelligence.v1p2beta1.TextSegment", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1p2beta1.TextSegment.segment", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1p2beta1.TextSegment.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1p2beta1.TextSegment.frames", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3653, + serialized_end=3828, ) _TEXTFRAME = _descriptor.Descriptor( - name='TextFrame', - full_name='google.cloud.videointelligence.v1p2beta1.TextFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='rotated_bounding_box', full_name='google.cloud.videointelligence.v1p2beta1.TextFrame.rotated_bounding_box', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1p2beta1.TextFrame.time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3831, - serialized_end=3986, + name="TextFrame", + full_name="google.cloud.videointelligence.v1p2beta1.TextFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="rotated_bounding_box", + full_name="google.cloud.videointelligence.v1p2beta1.TextFrame.rotated_bounding_box", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1p2beta1.TextFrame.time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3831, + serialized_end=3986, ) _TEXTANNOTATION = _descriptor.Descriptor( - name='TextAnnotation', - full_name='google.cloud.videointelligence.v1p2beta1.TextAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.videointelligence.v1p2beta1.TextAnnotation.text', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.cloud.videointelligence.v1p2beta1.TextAnnotation.segments', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3988, - serialized_end=4091, + name="TextAnnotation", + full_name="google.cloud.videointelligence.v1p2beta1.TextAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.videointelligence.v1p2beta1.TextAnnotation.text", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segments", + full_name="google.cloud.videointelligence.v1p2beta1.TextAnnotation.segments", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3988, + serialized_end=4091, ) _OBJECTTRACKINGFRAME = _descriptor.Descriptor( - name='ObjectTrackingFrame', - full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='normalized_bounding_box', full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.normalized_bounding_box', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_offset', full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.time_offset', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4094, - serialized_end=4261, + name="ObjectTrackingFrame", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="normalized_bounding_box", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.normalized_bounding_box", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_offset", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.time_offset", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4094, + serialized_end=4261, ) _OBJECTTRACKINGANNOTATION = _descriptor.Descriptor( - name='ObjectTrackingAnnotation', - full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity', full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.entity', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.confidence', index=1, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frames', full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.frames', index=2, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segment', full_name='google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.segment', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4264, - serialized_end=4528, + name="ObjectTrackingAnnotation", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.entity", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.confidence", + index=1, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frames", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.frames", + index=2, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="segment", + full_name="google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.segment", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4264, + serialized_end=4528, ) -_ANNOTATEVIDEOREQUEST.fields_by_name['features'].enum_type = _FEATURE -_ANNOTATEVIDEOREQUEST.fields_by_name['video_context'].message_type = _VIDEOCONTEXT -_VIDEOCONTEXT.fields_by_name['segments'].message_type = _VIDEOSEGMENT -_VIDEOCONTEXT.fields_by_name['label_detection_config'].message_type = _LABELDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['shot_change_detection_config'].message_type = _SHOTCHANGEDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['explicit_content_detection_config'].message_type = _EXPLICITCONTENTDETECTIONCONFIG -_VIDEOCONTEXT.fields_by_name['text_detection_config'].message_type = _TEXTDETECTIONCONFIG -_LABELDETECTIONCONFIG.fields_by_name['label_detection_mode'].enum_type = _LABELDETECTIONMODE -_VIDEOSEGMENT.fields_by_name['start_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_VIDEOSEGMENT.fields_by_name['end_time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELSEGMENT.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_LABELFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LABELANNOTATION.fields_by_name['entity'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['category_entities'].message_type = _ENTITY -_LABELANNOTATION.fields_by_name['segments'].message_type = _LABELSEGMENT -_LABELANNOTATION.fields_by_name['frames'].message_type = _LABELFRAME -_EXPLICITCONTENTFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_EXPLICITCONTENTFRAME.fields_by_name['pornography_likelihood'].enum_type = _LIKELIHOOD -_EXPLICITCONTENTANNOTATION.fields_by_name['frames'].message_type = _EXPLICITCONTENTFRAME -_VIDEOANNOTATIONRESULTS.fields_by_name['segment_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['frame_label_annotations'].message_type = _LABELANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['shot_annotations'].message_type = _VIDEOSEGMENT -_VIDEOANNOTATIONRESULTS.fields_by_name['explicit_annotation'].message_type = _EXPLICITCONTENTANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['text_annotations'].message_type = _TEXTANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['object_annotations'].message_type = _OBJECTTRACKINGANNOTATION -_VIDEOANNOTATIONRESULTS.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ANNOTATEVIDEORESPONSE.fields_by_name['annotation_results'].message_type = _VIDEOANNOTATIONRESULTS -_VIDEOANNOTATIONPROGRESS.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_VIDEOANNOTATIONPROGRESS.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ANNOTATEVIDEOPROGRESS.fields_by_name['annotation_progress'].message_type = _VIDEOANNOTATIONPROGRESS -_NORMALIZEDBOUNDINGPOLY.fields_by_name['vertices'].message_type = _NORMALIZEDVERTEX -_TEXTSEGMENT.fields_by_name['segment'].message_type = _VIDEOSEGMENT -_TEXTSEGMENT.fields_by_name['frames'].message_type = _TEXTFRAME -_TEXTFRAME.fields_by_name['rotated_bounding_box'].message_type = _NORMALIZEDBOUNDINGPOLY -_TEXTFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_TEXTANNOTATION.fields_by_name['segments'].message_type = _TEXTSEGMENT -_OBJECTTRACKINGFRAME.fields_by_name['normalized_bounding_box'].message_type = _NORMALIZEDBOUNDINGBOX -_OBJECTTRACKINGFRAME.fields_by_name['time_offset'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_OBJECTTRACKINGANNOTATION.fields_by_name['entity'].message_type = _ENTITY -_OBJECTTRACKINGANNOTATION.fields_by_name['frames'].message_type = _OBJECTTRACKINGFRAME -_OBJECTTRACKINGANNOTATION.fields_by_name['segment'].message_type = _VIDEOSEGMENT -DESCRIPTOR.message_types_by_name['AnnotateVideoRequest'] = _ANNOTATEVIDEOREQUEST -DESCRIPTOR.message_types_by_name['VideoContext'] = _VIDEOCONTEXT -DESCRIPTOR.message_types_by_name['LabelDetectionConfig'] = _LABELDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ShotChangeDetectionConfig'] = _SHOTCHANGEDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['ExplicitContentDetectionConfig'] = _EXPLICITCONTENTDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['TextDetectionConfig'] = _TEXTDETECTIONCONFIG -DESCRIPTOR.message_types_by_name['VideoSegment'] = _VIDEOSEGMENT -DESCRIPTOR.message_types_by_name['LabelSegment'] = _LABELSEGMENT -DESCRIPTOR.message_types_by_name['LabelFrame'] = _LABELFRAME -DESCRIPTOR.message_types_by_name['Entity'] = _ENTITY -DESCRIPTOR.message_types_by_name['LabelAnnotation'] = _LABELANNOTATION -DESCRIPTOR.message_types_by_name['ExplicitContentFrame'] = _EXPLICITCONTENTFRAME -DESCRIPTOR.message_types_by_name['ExplicitContentAnnotation'] = _EXPLICITCONTENTANNOTATION -DESCRIPTOR.message_types_by_name['NormalizedBoundingBox'] = _NORMALIZEDBOUNDINGBOX -DESCRIPTOR.message_types_by_name['VideoAnnotationResults'] = _VIDEOANNOTATIONRESULTS -DESCRIPTOR.message_types_by_name['AnnotateVideoResponse'] = _ANNOTATEVIDEORESPONSE -DESCRIPTOR.message_types_by_name['VideoAnnotationProgress'] = _VIDEOANNOTATIONPROGRESS -DESCRIPTOR.message_types_by_name['AnnotateVideoProgress'] = _ANNOTATEVIDEOPROGRESS -DESCRIPTOR.message_types_by_name['NormalizedVertex'] = _NORMALIZEDVERTEX -DESCRIPTOR.message_types_by_name['NormalizedBoundingPoly'] = _NORMALIZEDBOUNDINGPOLY -DESCRIPTOR.message_types_by_name['TextSegment'] = _TEXTSEGMENT -DESCRIPTOR.message_types_by_name['TextFrame'] = _TEXTFRAME -DESCRIPTOR.message_types_by_name['TextAnnotation'] = _TEXTANNOTATION -DESCRIPTOR.message_types_by_name['ObjectTrackingFrame'] = _OBJECTTRACKINGFRAME -DESCRIPTOR.message_types_by_name['ObjectTrackingAnnotation'] = _OBJECTTRACKINGANNOTATION -DESCRIPTOR.enum_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.enum_types_by_name['LabelDetectionMode'] = _LABELDETECTIONMODE -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +_ANNOTATEVIDEOREQUEST.fields_by_name["features"].enum_type = _FEATURE +_ANNOTATEVIDEOREQUEST.fields_by_name["video_context"].message_type = _VIDEOCONTEXT +_VIDEOCONTEXT.fields_by_name["segments"].message_type = _VIDEOSEGMENT +_VIDEOCONTEXT.fields_by_name[ + "label_detection_config" +].message_type = _LABELDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "shot_change_detection_config" +].message_type = _SHOTCHANGEDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "explicit_content_detection_config" +].message_type = _EXPLICITCONTENTDETECTIONCONFIG +_VIDEOCONTEXT.fields_by_name[ + "text_detection_config" +].message_type = _TEXTDETECTIONCONFIG +_LABELDETECTIONCONFIG.fields_by_name[ + "label_detection_mode" +].enum_type = _LABELDETECTIONMODE +_VIDEOSEGMENT.fields_by_name[ + "start_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_VIDEOSEGMENT.fields_by_name[ + "end_time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELSEGMENT.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_LABELFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LABELANNOTATION.fields_by_name["entity"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["category_entities"].message_type = _ENTITY +_LABELANNOTATION.fields_by_name["segments"].message_type = _LABELSEGMENT +_LABELANNOTATION.fields_by_name["frames"].message_type = _LABELFRAME +_EXPLICITCONTENTFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_EXPLICITCONTENTFRAME.fields_by_name["pornography_likelihood"].enum_type = _LIKELIHOOD +_EXPLICITCONTENTANNOTATION.fields_by_name["frames"].message_type = _EXPLICITCONTENTFRAME +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "segment_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "shot_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "frame_label_annotations" +].message_type = _LABELANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name["shot_annotations"].message_type = _VIDEOSEGMENT +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "explicit_annotation" +].message_type = _EXPLICITCONTENTANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "text_annotations" +].message_type = _TEXTANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "object_annotations" +].message_type = _OBJECTTRACKINGANNOTATION +_VIDEOANNOTATIONRESULTS.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ANNOTATEVIDEORESPONSE.fields_by_name[ + "annotation_results" +].message_type = _VIDEOANNOTATIONRESULTS +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_VIDEOANNOTATIONPROGRESS.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ANNOTATEVIDEOPROGRESS.fields_by_name[ + "annotation_progress" +].message_type = _VIDEOANNOTATIONPROGRESS +_NORMALIZEDBOUNDINGPOLY.fields_by_name["vertices"].message_type = _NORMALIZEDVERTEX +_TEXTSEGMENT.fields_by_name["segment"].message_type = _VIDEOSEGMENT +_TEXTSEGMENT.fields_by_name["frames"].message_type = _TEXTFRAME +_TEXTFRAME.fields_by_name["rotated_bounding_box"].message_type = _NORMALIZEDBOUNDINGPOLY +_TEXTFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TEXTANNOTATION.fields_by_name["segments"].message_type = _TEXTSEGMENT +_OBJECTTRACKINGFRAME.fields_by_name[ + "normalized_bounding_box" +].message_type = _NORMALIZEDBOUNDINGBOX +_OBJECTTRACKINGFRAME.fields_by_name[ + "time_offset" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_OBJECTTRACKINGANNOTATION.fields_by_name["entity"].message_type = _ENTITY +_OBJECTTRACKINGANNOTATION.fields_by_name["frames"].message_type = _OBJECTTRACKINGFRAME +_OBJECTTRACKINGANNOTATION.fields_by_name["segment"].message_type = _VIDEOSEGMENT +DESCRIPTOR.message_types_by_name["AnnotateVideoRequest"] = _ANNOTATEVIDEOREQUEST +DESCRIPTOR.message_types_by_name["VideoContext"] = _VIDEOCONTEXT +DESCRIPTOR.message_types_by_name["LabelDetectionConfig"] = _LABELDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ShotChangeDetectionConfig" +] = _SHOTCHANGEDETECTIONCONFIG +DESCRIPTOR.message_types_by_name[ + "ExplicitContentDetectionConfig" +] = _EXPLICITCONTENTDETECTIONCONFIG +DESCRIPTOR.message_types_by_name["TextDetectionConfig"] = _TEXTDETECTIONCONFIG +DESCRIPTOR.message_types_by_name["VideoSegment"] = _VIDEOSEGMENT +DESCRIPTOR.message_types_by_name["LabelSegment"] = _LABELSEGMENT +DESCRIPTOR.message_types_by_name["LabelFrame"] = _LABELFRAME +DESCRIPTOR.message_types_by_name["Entity"] = _ENTITY +DESCRIPTOR.message_types_by_name["LabelAnnotation"] = _LABELANNOTATION +DESCRIPTOR.message_types_by_name["ExplicitContentFrame"] = _EXPLICITCONTENTFRAME +DESCRIPTOR.message_types_by_name[ + "ExplicitContentAnnotation" +] = _EXPLICITCONTENTANNOTATION +DESCRIPTOR.message_types_by_name["NormalizedBoundingBox"] = _NORMALIZEDBOUNDINGBOX +DESCRIPTOR.message_types_by_name["VideoAnnotationResults"] = _VIDEOANNOTATIONRESULTS +DESCRIPTOR.message_types_by_name["AnnotateVideoResponse"] = _ANNOTATEVIDEORESPONSE +DESCRIPTOR.message_types_by_name["VideoAnnotationProgress"] = _VIDEOANNOTATIONPROGRESS +DESCRIPTOR.message_types_by_name["AnnotateVideoProgress"] = _ANNOTATEVIDEOPROGRESS +DESCRIPTOR.message_types_by_name["NormalizedVertex"] = _NORMALIZEDVERTEX +DESCRIPTOR.message_types_by_name["NormalizedBoundingPoly"] = _NORMALIZEDBOUNDINGPOLY +DESCRIPTOR.message_types_by_name["TextSegment"] = _TEXTSEGMENT +DESCRIPTOR.message_types_by_name["TextFrame"] = _TEXTFRAME +DESCRIPTOR.message_types_by_name["TextAnnotation"] = _TEXTANNOTATION +DESCRIPTOR.message_types_by_name["ObjectTrackingFrame"] = _OBJECTTRACKINGFRAME +DESCRIPTOR.message_types_by_name["ObjectTrackingAnnotation"] = _OBJECTTRACKINGANNOTATION +DESCRIPTOR.enum_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.enum_types_by_name["LabelDetectionMode"] = _LABELDETECTIONMODE +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType('AnnotateVideoRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOREQUEST, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation request. +AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOREQUEST, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation request. Attributes: @@ -1348,15 +2078,18 @@ west1``, ``asia-east1``. If no region is specified, a region will be determined based on video file location. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) + ), +) _sym_db.RegisterMessage(AnnotateVideoRequest) -VideoContext = _reflection.GeneratedProtocolMessageType('VideoContext', (_message.Message,), dict( - DESCRIPTOR = _VIDEOCONTEXT, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video context and/or feature-specific parameters. +VideoContext = _reflection.GeneratedProtocolMessageType( + "VideoContext", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOCONTEXT, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video context and/or feature-specific parameters. Attributes: @@ -1373,15 +2106,18 @@ text_detection_config: Config for TEXT\_DETECTION. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoContext) + ), +) _sym_db.RegisterMessage(VideoContext) -LabelDetectionConfig = _reflection.GeneratedProtocolMessageType('LabelDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _LABELDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for LABEL\_DETECTION. +LabelDetectionConfig = _reflection.GeneratedProtocolMessageType( + "LabelDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_LABELDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Config for LABEL\_DETECTION. Attributes: @@ -1398,15 +2134,18 @@ Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) + ), +) _sym_db.RegisterMessage(LabelDetectionConfig) -ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType('ShotChangeDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _SHOTCHANGEDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for SHOT\_CHANGE\_DETECTION. +ShotChangeDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ShotChangeDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_SHOTCHANGEDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Config for SHOT\_CHANGE\_DETECTION. Attributes: @@ -1414,15 +2153,18 @@ Model to use for shot change detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) + ), +) _sym_db.RegisterMessage(ShotChangeDetectionConfig) -ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType('ExplicitContentDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for EXPLICIT\_CONTENT\_DETECTION. +ExplicitContentDetectionConfig = _reflection.GeneratedProtocolMessageType( + "ExplicitContentDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Config for EXPLICIT\_CONTENT\_DETECTION. Attributes: @@ -1430,15 +2172,18 @@ Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) + ), +) _sym_db.RegisterMessage(ExplicitContentDetectionConfig) -TextDetectionConfig = _reflection.GeneratedProtocolMessageType('TextDetectionConfig', (_message.Message,), dict( - DESCRIPTOR = _TEXTDETECTIONCONFIG, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Config for TEXT\_DETECTION. +TextDetectionConfig = _reflection.GeneratedProtocolMessageType( + "TextDetectionConfig", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTDETECTIONCONFIG, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Config for TEXT\_DETECTION. Attributes: @@ -1449,15 +2194,18 @@ format. Automatic language detection is performed if no hint is provided. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) + ), +) _sym_db.RegisterMessage(TextDetectionConfig) -VideoSegment = _reflection.GeneratedProtocolMessageType('VideoSegment', (_message.Message,), dict( - DESCRIPTOR = _VIDEOSEGMENT, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment. +VideoSegment = _reflection.GeneratedProtocolMessageType( + "VideoSegment", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOSEGMENT, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video segment. Attributes: @@ -1468,15 +2216,18 @@ Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoSegment) + ), +) _sym_db.RegisterMessage(VideoSegment) -LabelSegment = _reflection.GeneratedProtocolMessageType('LabelSegment', (_message.Message,), dict( - DESCRIPTOR = _LABELSEGMENT, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment level annotation results for label detection. +LabelSegment = _reflection.GeneratedProtocolMessageType( + "LabelSegment", + (_message.Message,), + dict( + DESCRIPTOR=_LABELSEGMENT, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video segment level annotation results for label detection. Attributes: @@ -1485,15 +2236,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelSegment) + ), +) _sym_db.RegisterMessage(LabelSegment) -LabelFrame = _reflection.GeneratedProtocolMessageType('LabelFrame', (_message.Message,), dict( - DESCRIPTOR = _LABELFRAME, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for label detection. +LabelFrame = _reflection.GeneratedProtocolMessageType( + "LabelFrame", + (_message.Message,), + dict( + DESCRIPTOR=_LABELFRAME, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for label detection. Attributes: @@ -1503,15 +2257,18 @@ confidence: Confidence that the label is accurate. Range: [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelFrame) + ), +) _sym_db.RegisterMessage(LabelFrame) -Entity = _reflection.GeneratedProtocolMessageType('Entity', (_message.Message,), dict( - DESCRIPTOR = _ENTITY, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Detected entity from video analysis. +Entity = _reflection.GeneratedProtocolMessageType( + "Entity", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITY, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Detected entity from video analysis. Attributes: @@ -1524,15 +2281,18 @@ language_code: Language code for ``description`` in BCP-47 format. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.Entity) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.Entity) + ), +) _sym_db.RegisterMessage(Entity) -LabelAnnotation = _reflection.GeneratedProtocolMessageType('LabelAnnotation', (_message.Message,), dict( - DESCRIPTOR = _LABELANNOTATION, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Label annotation. +LabelAnnotation = _reflection.GeneratedProtocolMessageType( + "LabelAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_LABELANNOTATION, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Label annotation. Attributes: @@ -1548,15 +2308,18 @@ frames: All video frames where a label was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelAnnotation) + ), +) _sym_db.RegisterMessage(LabelAnnotation) -ExplicitContentFrame = _reflection.GeneratedProtocolMessageType('ExplicitContentFrame', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTFRAME, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for explicit content. +ExplicitContentFrame = _reflection.GeneratedProtocolMessageType( + "ExplicitContentFrame", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTFRAME, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for explicit content. Attributes: @@ -1566,15 +2329,18 @@ pornography_likelihood: Likelihood of the pornography content.. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) + ), +) _sym_db.RegisterMessage(ExplicitContentFrame) -ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType('ExplicitContentAnnotation', (_message.Message,), dict( - DESCRIPTOR = _EXPLICITCONTENTANNOTATION, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Explicit content annotation (based on per-frame visual signals only). If +ExplicitContentAnnotation = _reflection.GeneratedProtocolMessageType( + "ExplicitContentAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_EXPLICITCONTENTANNOTATION, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame. @@ -1583,15 +2349,18 @@ frames: All video frames where explicit content was detected. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) + ), +) _sym_db.RegisterMessage(ExplicitContentAnnotation) -NormalizedBoundingBox = _reflection.GeneratedProtocolMessageType('NormalizedBoundingBox', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDBOUNDINGBOX, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Normalized bounding box. The normalized vertex coordinates are relative +NormalizedBoundingBox = _reflection.GeneratedProtocolMessageType( + "NormalizedBoundingBox", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDBOUNDINGBOX, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1]. @@ -1605,15 +2374,18 @@ bottom: Bottom Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) + ), +) _sym_db.RegisterMessage(NormalizedBoundingBox) -VideoAnnotationResults = _reflection.GeneratedProtocolMessageType('VideoAnnotationResults', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONRESULTS, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation results for a single video. +VideoAnnotationResults = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationResults", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONRESULTS, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Annotation results for a single video. Attributes: @@ -1644,15 +2416,18 @@ ``AnnotateVideoRequest`` some videos may succeed and some may fail. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) + ), +) _sym_db.RegisterMessage(VideoAnnotationResults) -AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType('AnnotateVideoResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEORESPONSE, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation response. Included in the ``response`` field of the +AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEORESPONSE, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation response. Included in the ``response`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1662,15 +2437,18 @@ Annotation results for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) + ), +) _sym_db.RegisterMessage(AnnotateVideoResponse) -VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType('VideoAnnotationProgress', (_message.Message,), dict( - DESCRIPTOR = _VIDEOANNOTATIONPROGRESS, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotation progress for a single video. +VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType( + "VideoAnnotationProgress", + (_message.Message,), + dict( + DESCRIPTOR=_VIDEOANNOTATIONPROGRESS, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Annotation progress for a single video. Attributes: @@ -1685,15 +2463,18 @@ update_time: Time of the most recent update. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) + ), +) _sym_db.RegisterMessage(VideoAnnotationProgress) -AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType('AnnotateVideoProgress', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEVIDEOPROGRESS, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video annotation progress. Included in the ``metadata`` field of the +AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType( + "AnnotateVideoProgress", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEVIDEOPROGRESS, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video annotation progress. Included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. @@ -1703,30 +2484,36 @@ Progress metadata for all videos specified in ``AnnotateVideoRequest``. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) + ), +) _sym_db.RegisterMessage(AnnotateVideoProgress) -NormalizedVertex = _reflection.GeneratedProtocolMessageType('NormalizedVertex', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDVERTEX, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """X coordinate. +NormalizedVertex = _reflection.GeneratedProtocolMessageType( + "NormalizedVertex", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDVERTEX, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""X coordinate. Attributes: y: Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedVertex) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedVertex) + ), +) _sym_db.RegisterMessage(NormalizedVertex) -NormalizedBoundingPoly = _reflection.GeneratedProtocolMessageType('NormalizedBoundingPoly', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDBOUNDINGPOLY, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Normalized bounding polygon for text (that might not be aligned with +NormalizedBoundingPoly = _reflection.GeneratedProtocolMessageType( + "NormalizedBoundingPoly", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDBOUNDINGPOLY, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Normalized bounding polygon for text (that might not be aligned with axis). Contains list of the corner points in clockwise order starting from top-left corner. For example, for a rectangular bounding box: When the text is horizontal it might look like: 0----1 \| \| 3----2 @@ -1743,15 +2530,18 @@ vertices: Normalized vertices of the bounding polygon. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) + ), +) _sym_db.RegisterMessage(NormalizedBoundingPoly) -TextSegment = _reflection.GeneratedProtocolMessageType('TextSegment', (_message.Message,), dict( - DESCRIPTOR = _TEXTSEGMENT, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video segment level annotation results for text detection. +TextSegment = _reflection.GeneratedProtocolMessageType( + "TextSegment", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTSEGMENT, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video segment level annotation results for text detection. Attributes: @@ -1764,15 +2554,18 @@ Information related to the frames where OCR detected text appears. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextSegment) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextSegment) + ), +) _sym_db.RegisterMessage(TextSegment) -TextFrame = _reflection.GeneratedProtocolMessageType('TextFrame', (_message.Message,), dict( - DESCRIPTOR = _TEXTFRAME, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotation results for text annotation (OCR). Contains +TextFrame = _reflection.GeneratedProtocolMessageType( + "TextFrame", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTFRAME, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotation results for text annotation (OCR). Contains information regarding timestamp and bounding box locations for the frames containing detected OCR text snippets. @@ -1783,15 +2576,18 @@ time_offset: Timestamp of this frame. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextFrame) + ), +) _sym_db.RegisterMessage(TextFrame) -TextAnnotation = _reflection.GeneratedProtocolMessageType('TextAnnotation', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotations related to one detected OCR text snippet. This will contain +TextAnnotation = _reflection.GeneratedProtocolMessageType( + "TextAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection. @@ -1802,15 +2598,18 @@ segments: All video segments where OCR detected text appears. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextAnnotation) + ), +) _sym_db.RegisterMessage(TextAnnotation) -ObjectTrackingFrame = _reflection.GeneratedProtocolMessageType('ObjectTrackingFrame', (_message.Message,), dict( - DESCRIPTOR = _OBJECTTRACKINGFRAME, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Video frame level annotations for object detection and tracking. This +ObjectTrackingFrame = _reflection.GeneratedProtocolMessageType( + "ObjectTrackingFrame", + (_message.Message,), + dict( + DESCRIPTOR=_OBJECTTRACKINGFRAME, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Video frame level annotations for object detection and tracking. This field stores per frame location, time offset, and confidence. @@ -1821,15 +2620,18 @@ time_offset: The timestamp of the frame in microseconds. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) + ), +) _sym_db.RegisterMessage(ObjectTrackingFrame) -ObjectTrackingAnnotation = _reflection.GeneratedProtocolMessageType('ObjectTrackingAnnotation', (_message.Message,), dict( - DESCRIPTOR = _OBJECTTRACKINGANNOTATION, - __module__ = 'google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2' - , - __doc__ = """Annotations corresponding to one tracked object. +ObjectTrackingAnnotation = _reflection.GeneratedProtocolMessageType( + "ObjectTrackingAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_OBJECTTRACKINGANNOTATION, + __module__="google.cloud.videointelligence_v1p2beta1.proto.video_intelligence_pb2", + __doc__="""Annotations corresponding to one tracked object. Attributes: @@ -1845,35 +2647,45 @@ Each object track corresponds to one video segment where it appears. """, - # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) + ), +) _sym_db.RegisterMessage(ObjectTrackingAnnotation) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n,com.google.cloud.videointelligence.v1p2beta1B\035VideoIntelligenceServiceProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence\252\002(Google.Cloud.VideoIntelligence.V1P2Beta1\312\002(Google\\Cloud\\VideoIntelligence\\V1p2beta1')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n,com.google.cloud.videointelligence.v1p2beta1B\035VideoIntelligenceServiceProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence\252\002(Google.Cloud.VideoIntelligence.V1P2Beta1\312\002(Google\\Cloud\\VideoIntelligence\\V1p2beta1" + ), +) _VIDEOINTELLIGENCESERVICE = _descriptor.ServiceDescriptor( - name='VideoIntelligenceService', - full_name='google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=4923, - serialized_end=5101, - methods=[ - _descriptor.MethodDescriptor( - name='AnnotateVideo', - full_name='google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService.AnnotateVideo', + name="VideoIntelligenceService", + full_name="google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_ANNOTATEVIDEOREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037\"\032/v1p2beta1/videos:annotate:\001*')), - ), -]) + options=None, + serialized_start=4923, + serialized_end=5101, + methods=[ + _descriptor.MethodDescriptor( + name="AnnotateVideo", + full_name="google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService.AnnotateVideo", + index=0, + containing_service=None, + input_type=_ANNOTATEVIDEOREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\037"\032/v1p2beta1/videos:annotate:\001*'), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) -DESCRIPTOR.services_by_name['VideoIntelligenceService'] = _VIDEOINTELLIGENCESERVICE +DESCRIPTOR.services_by_name["VideoIntelligenceService"] = _VIDEOINTELLIGENCESERVICE # @@protoc_insertion_point(module_scope) diff --git a/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py b/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py index e7b602b2cb72c..72674da5e4ef5 100644 --- a/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py +++ b/videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py @@ -1,50 +1,56 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.videointelligence_v1p2beta1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1p2beta1_dot_proto_dot_video__intelligence__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.videointelligence_v1p2beta1.proto import ( + video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1p2beta1_dot_proto_dot_video__intelligence__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class VideoIntelligenceServiceStub(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.AnnotateVideo = channel.unary_unary( - '/google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService/AnnotateVideo', - request_serializer=google_dot_cloud_dot_videointelligence__v1p2beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.AnnotateVideo = channel.unary_unary( + "/google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService/AnnotateVideo", + request_serializer=google_dot_cloud_dot_videointelligence__v1p2beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class VideoIntelligenceServiceServicer(object): - """Service that implements Google Cloud Video Intelligence API. + """Service that implements Google Cloud Video Intelligence API. """ - def AnnotateVideo(self, request, context): - """Performs asynchronous video annotation. Progress and results can be + def AnnotateVideo(self, request, context): + """Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_VideoIntelligenceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'AnnotateVideo': grpc.unary_unary_rpc_method_handler( - servicer.AnnotateVideo, - request_deserializer=google_dot_cloud_dot_videointelligence__v1p2beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "AnnotateVideo": grpc.unary_unary_rpc_method_handler( + servicer.AnnotateVideo, + request_deserializer=google_dot_cloud_dot_videointelligence__v1p2beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/vision/google/cloud/vision_v1/proto/geometry_pb2.py b/vision/google/cloud/vision_v1/proto/geometry_pb2.py index 31c35ef0dd117..f9cc6da465943 100644 --- a/vision/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/vision/google/cloud/vision_v1/proto/geometry_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/vision_v1/proto/geometry.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,217 +19,312 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1/proto/geometry.proto', - package='google.cloud.vision.v1', - syntax='proto3', - serialized_pb=_b('\n+google/cloud/vision_v1/proto/geometry.proto\x12\x16google.cloud.vision.v1\x1a\x1cgoogle/api/annotations.proto\"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x87\x01\n\x0c\x42oundingPoly\x12\x30\n\x08vertices\x18\x01 \x03(\x0b\x32\x1e.google.cloud.vision.v1.Vertex\x12\x45\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.NormalizedVertex\"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42u\n\x1a\x63om.google.cloud.vision.v1B\rGeometryProtoP\x01Z\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x42\n\tlandmarks\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12:\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12=\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12<\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12?\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x44\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12>\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12?\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x1a\xb9\x07\n\x08Landmark\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.google.cloud.vision.v1.FaceAnnotation.Landmark.Type\x12\x32\n\x08position\x18\x04 \x01(\x0b\x32 .google.cloud.vision.v1.Position\"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10\"\"4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04\"\xab\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12;\n\rbounding_poly\x18\x07 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x37\n\tlocations\x18\x08 \x03(\x0b\x32$.google.cloud.vision.v1.LocationInfo\x12\x34\n\nproperties\x18\t \x03(\x0b\x32 .google.cloud.vision.v1.Property\"\x99\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12;\n\rbounding_poly\x18\x05 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\"\x99\x02\n\x14SafeSearchAnnotation\x12\x31\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x31\n\x05spoof\x18\x02 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x33\n\x07medical\x18\x03 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x34\n\x08violence\x18\x04 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x30\n\x04racy\x18\t \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02\"M\n\x18\x44ominantColorsAnnotation\x12\x31\n\x06\x63olors\x18\x01 \x03(\x0b\x32!.google.cloud.vision.v1.ColorInfo\"\\\n\x0fImageProperties\x12I\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x30.google.cloud.vision.v1.DominantColorsAnnotation\"x\n\x08\x43ropHint\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02\"K\n\x13\x43ropHintsAnnotation\x12\x34\n\ncrop_hints\x18\x01 \x03(\x0b\x32 .google.cloud.vision.v1.CropHint\"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02\"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08\"\xbc\x02\n\x0cImageContext\x12:\n\rlat_long_rect\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12\x42\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1.CropHintsParams\x12J\n\x15product_search_params\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1.ProductSearchParams\x12H\n\x14web_detection_params\x18\x06 \x01(\x0b\x32*.google.cloud.vision.v1.WebDetectionParams\"\xb4\x01\n\x14\x41nnotateImageRequest\x12,\n\x05image\x18\x01 \x01(\x0b\x32\x1d.google.cloud.vision.v1.Image\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05\"\xe4\x07\n\x15\x41nnotateImageResponse\x12@\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.FaceAnnotation\x12\x46\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x42\n\x10logo_annotations\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x43\n\x11label_annotations\x18\x04 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12W\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x31.google.cloud.vision.v1.LocalizedObjectAnnotation\x12\x42\n\x10text_annotations\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x44\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32&.google.cloud.vision.v1.TextAnnotation\x12L\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32,.google.cloud.vision.v1.SafeSearchAnnotation\x12L\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32\'.google.cloud.vision.v1.ImageProperties\x12J\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32+.google.cloud.vision.v1.CropHintsAnnotation\x12;\n\rweb_detection\x18\r \x01(\x0b\x32$.google.cloud.vision.v1.WebDetection\x12L\n\x16product_search_results\x18\x0e \x01(\x0b\x32,.google.cloud.vision.v1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x07\x63ontext\x18\x15 \x01(\x0b\x32..google.cloud.vision.v1.ImageAnnotationContext\"\x93\x01\n\x14\x41nnotateFileResponse\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12@\n\tresponses\x18\x02 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\"\\\n\x1a\x42\x61tchAnnotateImagesRequest\x12>\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequest\"_\n\x1b\x42\x61tchAnnotateImagesResponse\x12@\n\tresponses\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\"\x82\x02\n\x18\x41syncAnnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12;\n\routput_config\x18\x04 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"X\n\x19\x41syncAnnotateFileResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"d\n\x1e\x41syncBatchAnnotateFilesRequest\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32\x30.google.cloud.vision.v1.AsyncAnnotateFileRequest\"g\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x44\n\tresponses\x18\x01 \x03(\x0b\x32\x31.google.cloud.vision.v1.AsyncAnnotateFileResponse\"W\n\x0bInputConfig\x12\x35\n\ngcs_source\x18\x01 \x01(\x0b\x32!.google.cloud.vision.v1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t\"c\n\x0cOutputConfig\x12?\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05\"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x88\x02\n\x11OperationMetadata\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.vision.v1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xcd\x02\n\x0eImageAnnotator\x12\x9e\x01\n\x13\x42\x61tchAnnotateImages\x12\x32.google.cloud.vision.v1.BatchAnnotateImagesRequest\x1a\x33.google.cloud.vision.v1.BatchAnnotateImagesResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\"\x13/v1/images:annotate:\x01*\x12\x99\x01\n\x17\x41syncBatchAnnotateFiles\x12\x36.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation\"\'\x82\xd3\xe4\x93\x02!\"\x1c/v1/files:asyncBatchAnnotate:\x01*B{\n\x1a\x63om.google.cloud.vision.v1B\x13ImageAnnotatorProtoP\x01Z\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x42\n\tlandmarks\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12:\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12=\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12<\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x44\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12>\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x1a\xb9\x07\n\x08Landmark\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.google.cloud.vision.v1.FaceAnnotation.Landmark.Type\x12\x32\n\x08position\x18\x04 \x01(\x0b\x32 .google.cloud.vision.v1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xab\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12;\n\rbounding_poly\x18\x07 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x37\n\tlocations\x18\x08 \x03(\x0b\x32$.google.cloud.vision.v1.LocationInfo\x12\x34\n\nproperties\x18\t \x03(\x0b\x32 .google.cloud.vision.v1.Property"\x99\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12;\n\rbounding_poly\x18\x05 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly"\x99\x02\n\x14SafeSearchAnnotation\x12\x31\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x31\n\x05spoof\x18\x02 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x33\n\x07medical\x18\x03 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x34\n\x08violence\x18\x04 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x30\n\x04racy\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"M\n\x18\x44ominantColorsAnnotation\x12\x31\n\x06\x63olors\x18\x01 \x03(\x0b\x32!.google.cloud.vision.v1.ColorInfo"\\\n\x0fImageProperties\x12I\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x30.google.cloud.vision.v1.DominantColorsAnnotation"x\n\x08\x43ropHint\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"K\n\x13\x43ropHintsAnnotation\x12\x34\n\ncrop_hints\x18\x01 \x03(\x0b\x32 .google.cloud.vision.v1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xbc\x02\n\x0cImageContext\x12:\n\rlat_long_rect\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12\x42\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1.CropHintsParams\x12J\n\x15product_search_params\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1.ProductSearchParams\x12H\n\x14web_detection_params\x18\x06 \x01(\x0b\x32*.google.cloud.vision.v1.WebDetectionParams"\xb4\x01\n\x14\x41nnotateImageRequest\x12,\n\x05image\x18\x01 \x01(\x0b\x32\x1d.google.cloud.vision.v1.Image\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xe4\x07\n\x15\x41nnotateImageResponse\x12@\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.FaceAnnotation\x12\x46\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x42\n\x10logo_annotations\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x43\n\x11label_annotations\x18\x04 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12W\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x31.google.cloud.vision.v1.LocalizedObjectAnnotation\x12\x42\n\x10text_annotations\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x44\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32&.google.cloud.vision.v1.TextAnnotation\x12L\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32,.google.cloud.vision.v1.SafeSearchAnnotation\x12L\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32\'.google.cloud.vision.v1.ImageProperties\x12J\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32+.google.cloud.vision.v1.CropHintsAnnotation\x12;\n\rweb_detection\x18\r \x01(\x0b\x32$.google.cloud.vision.v1.WebDetection\x12L\n\x16product_search_results\x18\x0e \x01(\x0b\x32,.google.cloud.vision.v1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x07\x63ontext\x18\x15 \x01(\x0b\x32..google.cloud.vision.v1.ImageAnnotationContext"\x93\x01\n\x14\x41nnotateFileResponse\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12@\n\tresponses\x18\x02 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse"\\\n\x1a\x42\x61tchAnnotateImagesRequest\x12>\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequest"_\n\x1b\x42\x61tchAnnotateImagesResponse\x12@\n\tresponses\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse"\x82\x02\n\x18\x41syncAnnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12;\n\routput_config\x18\x04 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"X\n\x19\x41syncAnnotateFileResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"d\n\x1e\x41syncBatchAnnotateFilesRequest\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32\x30.google.cloud.vision.v1.AsyncAnnotateFileRequest"g\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x44\n\tresponses\x18\x01 \x03(\x0b\x32\x31.google.cloud.vision.v1.AsyncAnnotateFileResponse"W\n\x0bInputConfig\x12\x35\n\ngcs_source\x18\x01 \x01(\x0b\x32!.google.cloud.vision.v1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"c\n\x0cOutputConfig\x12?\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x88\x02\n\x11OperationMetadata\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.vision.v1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xcd\x02\n\x0eImageAnnotator\x12\x9e\x01\n\x13\x42\x61tchAnnotateImages\x12\x32.google.cloud.vision.v1.BatchAnnotateImagesRequest\x1a\x33.google.cloud.vision.v1.BatchAnnotateImagesResponse"\x1e\x82\xd3\xe4\x93\x02\x18"\x13/v1/images:annotate:\x01*\x12\x99\x01\n\x17\x41syncBatchAnnotateFiles\x12\x36.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"\'\x82\xd3\xe4\x93\x02!"\x1c/v1/files:asyncBatchAnnotate:\x01*B{\n\x1a\x63om.google.cloud.vision.v1B\x13ImageAnnotatorProtoP\x01Z\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t\"C\n\"RemoveProductFromProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t\"V\n\x1fListProductsInProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"n\n ListProductsInProductSetResponse\x12\x31\n\x08products\x18\x01 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t\"r\n\x1cImportProductSetsInputConfig\x12H\n\ngcs_source\x18\x01 \x01(\x0b\x32\x32.google.cloud.vision.v1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source\"v\n\x18ImportProductSetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12J\n\x0cinput_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.ImportProductSetsInputConfig\"\x83\x01\n\x19ImportProductSetsResponse\x12@\n\x10reference_images\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x97\x02\n\x16\x42\x61tchOperationMetadata\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x32\xcf\x18\n\rProductSearch\x12\xad\x01\n\x10\x43reateProductSet\x12/.google.cloud.vision.v1.CreateProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\"D\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\x12\xab\x01\n\x0fListProductSets\x12..google.cloud.vision.v1.ListProductSetsRequest\x1a/.google.cloud.vision.v1.ListProductSetsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/productSets\x12\x9a\x01\n\rGetProductSet\x12,.google.cloud.vision.v1.GetProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/productSets/*}\x12\xb9\x01\n\x10UpdateProductSet\x12/.google.cloud.vision.v1.UpdateProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\"P\x82\xd3\xe4\x93\x02J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\x12\x94\x01\n\x10\x44\x65leteProductSet\x12/.google.cloud.vision.v1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/productSets/*}\x12\x9d\x01\n\rCreateProduct\x12,.google.cloud.vision.v1.CreateProductRequest\x1a\x1f.google.cloud.vision.v1.Product\"=\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/products:\x07product\x12\x9f\x01\n\x0cListProducts\x12+.google.cloud.vision.v1.ListProductsRequest\x1a,.google.cloud.vision.v1.ListProductsResponse\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/products\x12\x8e\x01\n\nGetProduct\x12).google.cloud.vision.v1.GetProductRequest\x1a\x1f.google.cloud.vision.v1.Product\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/products/*}\x12\xa5\x01\n\rUpdateProduct\x12,.google.cloud.vision.v1.UpdateProductRequest\x1a\x1f.google.cloud.vision.v1.Product\"E\x82\xd3\xe4\x93\x02?24/v1/{product.name=projects/*/locations/*/products/*}:\x07product\x12\x8b\x01\n\rDeleteProduct\x12,.google.cloud.vision.v1.DeleteProductRequest\x1a\x16.google.protobuf.Empty\"4\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/products/*}\x12\xcc\x01\n\x14\x43reateReferenceImage\x12\x33.google.cloud.vision.v1.CreateReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage\"W\x82\xd3\xe4\x93\x02Q\">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\x12\xab\x01\n\x14\x44\x65leteReferenceImage\x12\x33.google.cloud.vision.v1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty\"F\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xc6\x01\n\x13ListReferenceImages\x12\x32.google.cloud.vision.v1.ListReferenceImagesRequest\x1a\x33.google.cloud.vision.v1.ListReferenceImagesResponse\"F\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\x12\xb5\x01\n\x11GetReferenceImage\x12\x30.google.cloud.vision.v1.GetReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage\"F\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xae\x01\n\x16\x41\x64\x64ProductToProductSet\x12\x35.google.cloud.vision.v1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty\"E\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\x12\xbb\x01\n\x1bRemoveProductFromProductSet\x12:.google.cloud.vision.v1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\x12\xcf\x01\n\x18ListProductsInProductSet\x12\x37.google.cloud.vision.v1.ListProductsInProductSetRequest\x1a\x38.google.cloud.vision.v1.ListProductsInProductSetResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/productSets/*}/products\x12\xa7\x01\n\x11ImportProductSets\x12\x30.google.cloud.vision.v1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation\"A\x82\xd3\xe4\x93\x02;\"6/v1/{parent=projects/*/locations/*}/productSets:import:\x01*B\x81\x01\n\x1a\x63om.google.cloud.vision.v1B\x19ProductSearchServiceProtoP\x01Z\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t"C\n"RemoveProductFromProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t"V\n\x1fListProductsInProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"n\n ListProductsInProductSetResponse\x12\x31\n\x08products\x18\x01 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"r\n\x1cImportProductSetsInputConfig\x12H\n\ngcs_source\x18\x01 \x01(\x0b\x32\x32.google.cloud.vision.v1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"v\n\x18ImportProductSetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12J\n\x0cinput_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.ImportProductSetsInputConfig"\x83\x01\n\x19ImportProductSetsResponse\x12@\n\x10reference_images\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x97\x02\n\x16\x42\x61tchOperationMetadata\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x32\xcf\x18\n\rProductSearch\x12\xad\x01\n\x10\x43reateProductSet\x12/.google.cloud.vision.v1.CreateProductSetRequest\x1a".google.cloud.vision.v1.ProductSet"D\x82\xd3\xe4\x93\x02>"//v1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\x12\xab\x01\n\x0fListProductSets\x12..google.cloud.vision.v1.ListProductSetsRequest\x1a/.google.cloud.vision.v1.ListProductSetsResponse"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/productSets\x12\x9a\x01\n\rGetProductSet\x12,.google.cloud.vision.v1.GetProductSetRequest\x1a".google.cloud.vision.v1.ProductSet"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/productSets/*}\x12\xb9\x01\n\x10UpdateProductSet\x12/.google.cloud.vision.v1.UpdateProductSetRequest\x1a".google.cloud.vision.v1.ProductSet"P\x82\xd3\xe4\x93\x02J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\x12\x94\x01\n\x10\x44\x65leteProductSet\x12/.google.cloud.vision.v1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty"7\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/productSets/*}\x12\x9d\x01\n\rCreateProduct\x12,.google.cloud.vision.v1.CreateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"=\x82\xd3\xe4\x93\x02\x37",/v1/{parent=projects/*/locations/*}/products:\x07product\x12\x9f\x01\n\x0cListProducts\x12+.google.cloud.vision.v1.ListProductsRequest\x1a,.google.cloud.vision.v1.ListProductsResponse"4\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/products\x12\x8e\x01\n\nGetProduct\x12).google.cloud.vision.v1.GetProductRequest\x1a\x1f.google.cloud.vision.v1.Product"4\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/products/*}\x12\xa5\x01\n\rUpdateProduct\x12,.google.cloud.vision.v1.UpdateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"E\x82\xd3\xe4\x93\x02?24/v1/{product.name=projects/*/locations/*/products/*}:\x07product\x12\x8b\x01\n\rDeleteProduct\x12,.google.cloud.vision.v1.DeleteProductRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/products/*}\x12\xcc\x01\n\x14\x43reateReferenceImage\x12\x33.google.cloud.vision.v1.CreateReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"W\x82\xd3\xe4\x93\x02Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\x12\xab\x01\n\x14\x44\x65leteReferenceImage\x12\x33.google.cloud.vision.v1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"F\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xc6\x01\n\x13ListReferenceImages\x12\x32.google.cloud.vision.v1.ListReferenceImagesRequest\x1a\x33.google.cloud.vision.v1.ListReferenceImagesResponse"F\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\x12\xb5\x01\n\x11GetReferenceImage\x12\x30.google.cloud.vision.v1.GetReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"F\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xae\x01\n\x16\x41\x64\x64ProductToProductSet\x12\x35.google.cloud.vision.v1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\x12\xbb\x01\n\x1bRemoveProductFromProductSet\x12:.google.cloud.vision.v1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"H\x82\xd3\xe4\x93\x02\x42"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\x12\xcf\x01\n\x18ListProductsInProductSet\x12\x37.google.cloud.vision.v1.ListProductsInProductSetRequest\x1a\x38.google.cloud.vision.v1.ListProductsInProductSetResponse"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/productSets/*}/products\x12\xa7\x01\n\x11ImportProductSets\x12\x30.google.cloud.vision.v1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"A\x82\xd3\xe4\x93\x02;"6/v1/{parent=projects/*/locations/*}/productSets:import:\x01*B\x81\x01\n\x1a\x63om.google.cloud.vision.v1B\x19ProductSearchServiceProtoP\x01Z\"//v1/{parent=projects/*/locations/*}/productSets:\013product_set')), - ), - _descriptor.MethodDescriptor( - name='ListProductSets', - full_name='google.cloud.vision.v1.ProductSearch.ListProductSets', - index=1, - containing_service=None, - input_type=_LISTPRODUCTSETSREQUEST, - output_type=_LISTPRODUCTSETSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/productSets')), - ), - _descriptor.MethodDescriptor( - name='GetProductSet', - full_name='google.cloud.vision.v1.ProductSearch.GetProductSet', - index=2, - containing_service=None, - input_type=_GETPRODUCTSETREQUEST, - output_type=_PRODUCTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/productSets/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateProductSet', - full_name='google.cloud.vision.v1.ProductSearch.UpdateProductSet', - index=3, - containing_service=None, - input_type=_UPDATEPRODUCTSETREQUEST, - output_type=_PRODUCTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set')), - ), - _descriptor.MethodDescriptor( - name='DeleteProductSet', - full_name='google.cloud.vision.v1.ProductSearch.DeleteProductSet', - index=4, - containing_service=None, - input_type=_DELETEPRODUCTSETREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021*//v1/{name=projects/*/locations/*/productSets/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateProduct', - full_name='google.cloud.vision.v1.ProductSearch.CreateProduct', - index=5, - containing_service=None, - input_type=_CREATEPRODUCTREQUEST, - output_type=_PRODUCT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\",/v1/{parent=projects/*/locations/*}/products:\007product')), - ), - _descriptor.MethodDescriptor( - name='ListProducts', - full_name='google.cloud.vision.v1.ProductSearch.ListProducts', - index=6, - containing_service=None, - input_type=_LISTPRODUCTSREQUEST, - output_type=_LISTPRODUCTSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/products')), - ), - _descriptor.MethodDescriptor( - name='GetProduct', - full_name='google.cloud.vision.v1.ProductSearch.GetProduct', - index=7, - containing_service=None, - input_type=_GETPRODUCTREQUEST, - output_type=_PRODUCT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/products/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateProduct', - full_name='google.cloud.vision.v1.ProductSearch.UpdateProduct', - index=8, - containing_service=None, - input_type=_UPDATEPRODUCTREQUEST, - output_type=_PRODUCT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?24/v1/{product.name=projects/*/locations/*/products/*}:\007product')), - ), - _descriptor.MethodDescriptor( - name='DeleteProduct', - full_name='google.cloud.vision.v1.ProductSearch.DeleteProduct', - index=9, - containing_service=None, - input_type=_DELETEPRODUCTREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/products/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateReferenceImage', - full_name='google.cloud.vision.v1.ProductSearch.CreateReferenceImage', - index=10, - containing_service=None, - input_type=_CREATEREFERENCEIMAGEREQUEST, - output_type=_REFERENCEIMAGE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Q\">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image')), - ), - _descriptor.MethodDescriptor( - name='DeleteReferenceImage', - full_name='google.cloud.vision.v1.ProductSearch.DeleteReferenceImage', - index=11, - containing_service=None, - input_type=_DELETEREFERENCEIMAGEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}')), - ), - _descriptor.MethodDescriptor( - name='ListReferenceImages', - full_name='google.cloud.vision.v1.ProductSearch.ListReferenceImages', - index=12, - containing_service=None, - input_type=_LISTREFERENCEIMAGESREQUEST, - output_type=_LISTREFERENCEIMAGESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\022>/v1/{parent=projects/*/locations/*/products/*}/referenceImages')), - ), - _descriptor.MethodDescriptor( - name='GetReferenceImage', - full_name='google.cloud.vision.v1.ProductSearch.GetReferenceImage', - index=13, - containing_service=None, - input_type=_GETREFERENCEIMAGEREQUEST, - output_type=_REFERENCEIMAGE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}')), - ), - _descriptor.MethodDescriptor( - name='AddProductToProductSet', - full_name='google.cloud.vision.v1.ProductSearch.AddProductToProductSet', - index=14, - containing_service=None, - input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?\":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*')), - ), - _descriptor.MethodDescriptor( - name='RemoveProductFromProductSet', - full_name='google.cloud.vision.v1.ProductSearch.RemoveProductFromProductSet', - index=15, - containing_service=None, - input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B\"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListProductsInProductSet', - full_name='google.cloud.vision.v1.ProductSearch.ListProductsInProductSet', - index=16, - containing_service=None, - input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, - output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/productSets/*}/products')), - ), - _descriptor.MethodDescriptor( - name='ImportProductSets', - full_name='google.cloud.vision.v1.ProductSearch.ImportProductSets', - index=17, - containing_service=None, - input_type=_IMPORTPRODUCTSETSREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\"6/v1/{parent=projects/*/locations/*}/productSets:import:\001*')), - ), -]) + options=None, + serialized_start=3271, + serialized_end=6422, + methods=[ + _descriptor.MethodDescriptor( + name="CreateProductSet", + full_name="google.cloud.vision.v1.ProductSearch.CreateProductSet", + index=0, + containing_service=None, + input_type=_CREATEPRODUCTSETREQUEST, + output_type=_PRODUCTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002>"//v1/{parent=projects/*/locations/*}/productSets:\013product_set' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListProductSets", + full_name="google.cloud.vision.v1.ProductSearch.ListProductSets", + index=1, + containing_service=None, + input_type=_LISTPRODUCTSETSREQUEST, + output_type=_LISTPRODUCTSETSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/productSets" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetProductSet", + full_name="google.cloud.vision.v1.ProductSearch.GetProductSet", + index=2, + containing_service=None, + input_type=_GETPRODUCTSETREQUEST, + output_type=_PRODUCTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/productSets/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateProductSet", + full_name="google.cloud.vision.v1.ProductSearch.UpdateProductSet", + index=3, + containing_service=None, + input_type=_UPDATEPRODUCTSETREQUEST, + output_type=_PRODUCTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteProductSet", + full_name="google.cloud.vision.v1.ProductSearch.DeleteProductSet", + index=4, + containing_service=None, + input_type=_DELETEPRODUCTSETREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0021*//v1/{name=projects/*/locations/*/productSets/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateProduct", + full_name="google.cloud.vision.v1.ProductSearch.CreateProduct", + index=5, + containing_service=None, + input_type=_CREATEPRODUCTREQUEST, + output_type=_PRODUCT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027",/v1/{parent=projects/*/locations/*}/products:\007product' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListProducts", + full_name="google.cloud.vision.v1.ProductSearch.ListProducts", + index=6, + containing_service=None, + input_type=_LISTPRODUCTSREQUEST, + output_type=_LISTPRODUCTSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/products" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetProduct", + full_name="google.cloud.vision.v1.ProductSearch.GetProduct", + index=7, + containing_service=None, + input_type=_GETPRODUCTREQUEST, + output_type=_PRODUCT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/products/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateProduct", + full_name="google.cloud.vision.v1.ProductSearch.UpdateProduct", + index=8, + containing_service=None, + input_type=_UPDATEPRODUCTREQUEST, + output_type=_PRODUCT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002?24/v1/{product.name=projects/*/locations/*/products/*}:\007product" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteProduct", + full_name="google.cloud.vision.v1.ProductSearch.DeleteProduct", + index=9, + containing_service=None, + input_type=_DELETEPRODUCTREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/products/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateReferenceImage", + full_name="google.cloud.vision.v1.ProductSearch.CreateReferenceImage", + index=10, + containing_service=None, + input_type=_CREATEREFERENCEIMAGEREQUEST, + output_type=_REFERENCEIMAGE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteReferenceImage", + full_name="google.cloud.vision.v1.ProductSearch.DeleteReferenceImage", + index=11, + containing_service=None, + input_type=_DELETEREFERENCEIMAGEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListReferenceImages", + full_name="google.cloud.vision.v1.ProductSearch.ListReferenceImages", + index=12, + containing_service=None, + input_type=_LISTREFERENCEIMAGESREQUEST, + output_type=_LISTREFERENCEIMAGESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002@\022>/v1/{parent=projects/*/locations/*/products/*}/referenceImages" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetReferenceImage", + full_name="google.cloud.vision.v1.ProductSearch.GetReferenceImage", + index=13, + containing_service=None, + input_type=_GETREFERENCEIMAGEREQUEST, + output_type=_REFERENCEIMAGE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="AddProductToProductSet", + full_name="google.cloud.vision.v1.ProductSearch.AddProductToProductSet", + index=14, + containing_service=None, + input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="RemoveProductFromProductSet", + full_name="google.cloud.vision.v1.ProductSearch.RemoveProductFromProductSet", + index=15, + containing_service=None, + input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002B"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListProductsInProductSet", + full_name="google.cloud.vision.v1.ProductSearch.ListProductsInProductSet", + index=16, + containing_service=None, + input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, + output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/productSets/*}/products" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ImportProductSets", + full_name="google.cloud.vision.v1.ProductSearch.ImportProductSets", + index=17, + containing_service=None, + input_type=_IMPORTPRODUCTSETSREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002;"6/v1/{parent=projects/*/locations/*}/productSets:import:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_PRODUCTSEARCH) -DESCRIPTOR.services_by_name['ProductSearch'] = _PRODUCTSEARCH +DESCRIPTOR.services_by_name["ProductSearch"] = _PRODUCTSEARCH # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py b/vision/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py index 1d2dc51d9486d..3e2ed41ff98be 100644 --- a/vision/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py +++ b/vision/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.vision_v1.proto import product_search_service_pb2 as google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.vision_v1.proto import ( + product_search_service_pb2 as google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class ProductSearchStub(object): - """Manages Products and ProductSets of reference images for use in product + """Manages Products and ProductSets of reference images for use in product search. It uses the following resource model: - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named @@ -23,106 +27,106 @@ class ProductSearchStub(object): `projects/*/locations/*/products/*/referenceImages/*` """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateProductSet = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/CreateProductSet', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + self.CreateProductSet = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/CreateProductSet", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, ) - self.ListProductSets = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/ListProductSets', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.FromString, + self.ListProductSets = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/ListProductSets", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.FromString, ) - self.GetProductSet = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/GetProductSet', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + self.GetProductSet = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/GetProductSet", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, ) - self.UpdateProductSet = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/UpdateProductSet', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + self.UpdateProductSet = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/UpdateProductSet", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, ) - self.DeleteProductSet = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/DeleteProductSet', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteProductSet = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/DeleteProductSet", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateProduct = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/CreateProduct', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, + self.CreateProduct = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/CreateProduct", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, ) - self.ListProducts = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/ListProducts', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.FromString, + self.ListProducts = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/ListProducts", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.FromString, ) - self.GetProduct = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/GetProduct', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, + self.GetProduct = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/GetProduct", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, ) - self.UpdateProduct = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/UpdateProduct', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, + self.UpdateProduct = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/UpdateProduct", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, ) - self.DeleteProduct = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/DeleteProduct', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteProduct = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/DeleteProduct", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateReferenceImage = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/CreateReferenceImage', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + self.CreateReferenceImage = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/CreateReferenceImage", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, ) - self.DeleteReferenceImage = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/DeleteReferenceImage', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteReferenceImage = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/DeleteReferenceImage", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListReferenceImages = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/ListReferenceImages', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.FromString, + self.ListReferenceImages = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/ListReferenceImages", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.FromString, ) - self.GetReferenceImage = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/GetReferenceImage', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + self.GetReferenceImage = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/GetReferenceImage", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, ) - self.AddProductToProductSet = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/AddProductToProductSet', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.AddProductToProductSet = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/AddProductToProductSet", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.RemoveProductFromProductSet = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/RemoveProductFromProductSet', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.RemoveProductFromProductSet = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/RemoveProductFromProductSet", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListProductsInProductSet = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/ListProductsInProductSet', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.FromString, + self.ListProductsInProductSet = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/ListProductsInProductSet", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.FromString, ) - self.ImportProductSets = channel.unary_unary( - '/google.cloud.vision.v1.ProductSearch/ImportProductSets', - request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.ImportProductSets = channel.unary_unary( + "/google.cloud.vision.v1.ProductSearch/ImportProductSets", + request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class ProductSearchServicer(object): - """Manages Products and ProductSets of reference images for use in product + """Manages Products and ProductSets of reference images for use in product search. It uses the following resource model: - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named @@ -138,43 +142,43 @@ class ProductSearchServicer(object): `projects/*/locations/*/products/*/referenceImages/*` """ - def CreateProductSet(self, request, context): - """Creates and returns a new ProductSet resource. + def CreateProductSet(self, request, context): + """Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListProductSets(self, request, context): - """Lists ProductSets in an unspecified order. + def ListProductSets(self, request, context): + """Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetProductSet(self, request, context): - """Gets information associated with a ProductSet. + def GetProductSet(self, request, context): + """Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateProductSet(self, request, context): - """Makes changes to a ProductSet resource. + def UpdateProductSet(self, request, context): + """Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: @@ -183,12 +187,12 @@ def UpdateProductSet(self, request, context): * Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteProductSet(self, request, context): - """Permanently deletes a ProductSet. Products and ReferenceImages in the + def DeleteProductSet(self, request, context): + """Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. The actual image files are not deleted from Google Cloud Storage. @@ -197,12 +201,12 @@ def DeleteProductSet(self, request, context): * Returns NOT_FOUND if the ProductSet does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateProduct(self, request, context): - """Creates and returns a new product resource. + def CreateProduct(self, request, context): + """Creates and returns a new product resource. Possible errors: @@ -211,34 +215,34 @@ def CreateProduct(self, request, context): * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListProducts(self, request, context): - """Lists products in an unspecified order. + def ListProducts(self, request, context): + """Lists products in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetProduct(self, request, context): - """Gets information associated with a Product. + def GetProduct(self, request, context): + """Gets information associated with a Product. Possible errors: * Returns NOT_FOUND if the Product does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateProduct(self, request, context): - """Makes changes to a Product resource. + def UpdateProduct(self, request, context): + """Makes changes to a Product resource. Only the `display_name`, `description`, and `labels` fields can be updated right now. @@ -254,12 +258,12 @@ def UpdateProduct(self, request, context): longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteProduct(self, request, context): - """Permanently deletes a product and its reference images. + def DeleteProduct(self, request, context): + """Permanently deletes a product and its reference images. Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work @@ -269,12 +273,12 @@ def DeleteProduct(self, request, context): * Returns NOT_FOUND if the product does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateReferenceImage(self, request, context): - """Creates and returns a new ReferenceImage resource. + def CreateReferenceImage(self, request, context): + """Creates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are @@ -294,12 +298,12 @@ def CreateReferenceImage(self, request, context): compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteReferenceImage(self, request, context): - """Permanently deletes a reference image. + def DeleteReferenceImage(self, request, context): + """Permanently deletes a reference image. The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related @@ -311,12 +315,12 @@ def DeleteReferenceImage(self, request, context): * Returns NOT_FOUND if the reference image does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListReferenceImages(self, request, context): - """Lists reference images. + def ListReferenceImages(self, request, context): + """Lists reference images. Possible errors: @@ -324,23 +328,23 @@ def ListReferenceImages(self, request, context): * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetReferenceImage(self, request, context): - """Gets information associated with a ReferenceImage. + def GetReferenceImage(self, request, context): + """Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AddProductToProductSet(self, request, context): - """Adds a Product to the specified ProductSet. If the Product is already + def AddProductToProductSet(self, request, context): + """Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. @@ -349,23 +353,23 @@ def AddProductToProductSet(self, request, context): * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RemoveProductFromProductSet(self, request, context): - """Removes a Product from the specified ProductSet. + def RemoveProductFromProductSet(self, request, context): + """Removes a Product from the specified ProductSet. Possible errors: * Returns NOT_FOUND If the Product is not found under the ProductSet. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListProductsInProductSet(self, request, context): - """Lists the Products in a ProductSet, in an unspecified order. If the + def ListProductsInProductSet(self, request, context): + """Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. @@ -373,12 +377,12 @@ def ListProductsInProductSet(self, request, context): * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ImportProductSets(self, request, context): - """Asynchronous API that imports a list of reference images to specified + def ImportProductSets(self, request, context): + """Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the @@ -390,104 +394,105 @@ def ImportProductSets(self, request, context): For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ProductSearchServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateProductSet': grpc.unary_unary_rpc_method_handler( - servicer.CreateProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, - ), - 'ListProductSets': grpc.unary_unary_rpc_method_handler( - servicer.ListProductSets, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.SerializeToString, - ), - 'GetProductSet': grpc.unary_unary_rpc_method_handler( - servicer.GetProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, - ), - 'UpdateProductSet': grpc.unary_unary_rpc_method_handler( - servicer.UpdateProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, - ), - 'DeleteProductSet': grpc.unary_unary_rpc_method_handler( - servicer.DeleteProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateProduct': grpc.unary_unary_rpc_method_handler( - servicer.CreateProduct, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, - ), - 'ListProducts': grpc.unary_unary_rpc_method_handler( - servicer.ListProducts, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.SerializeToString, - ), - 'GetProduct': grpc.unary_unary_rpc_method_handler( - servicer.GetProduct, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, - ), - 'UpdateProduct': grpc.unary_unary_rpc_method_handler( - servicer.UpdateProduct, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, - ), - 'DeleteProduct': grpc.unary_unary_rpc_method_handler( - servicer.DeleteProduct, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateReferenceImage': grpc.unary_unary_rpc_method_handler( - servicer.CreateReferenceImage, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, - ), - 'DeleteReferenceImage': grpc.unary_unary_rpc_method_handler( - servicer.DeleteReferenceImage, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListReferenceImages': grpc.unary_unary_rpc_method_handler( - servicer.ListReferenceImages, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.SerializeToString, - ), - 'GetReferenceImage': grpc.unary_unary_rpc_method_handler( - servicer.GetReferenceImage, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, - ), - 'AddProductToProductSet': grpc.unary_unary_rpc_method_handler( - servicer.AddProductToProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'RemoveProductFromProductSet': grpc.unary_unary_rpc_method_handler( - servicer.RemoveProductFromProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListProductsInProductSet': grpc.unary_unary_rpc_method_handler( - servicer.ListProductsInProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.SerializeToString, - ), - 'ImportProductSets': grpc.unary_unary_rpc_method_handler( - servicer.ImportProductSets, - request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.vision.v1.ProductSearch', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateProductSet": grpc.unary_unary_rpc_method_handler( + servicer.CreateProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, + ), + "ListProductSets": grpc.unary_unary_rpc_method_handler( + servicer.ListProductSets, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.SerializeToString, + ), + "GetProductSet": grpc.unary_unary_rpc_method_handler( + servicer.GetProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, + ), + "UpdateProductSet": grpc.unary_unary_rpc_method_handler( + servicer.UpdateProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, + ), + "DeleteProductSet": grpc.unary_unary_rpc_method_handler( + servicer.DeleteProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateProduct": grpc.unary_unary_rpc_method_handler( + servicer.CreateProduct, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, + ), + "ListProducts": grpc.unary_unary_rpc_method_handler( + servicer.ListProducts, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.SerializeToString, + ), + "GetProduct": grpc.unary_unary_rpc_method_handler( + servicer.GetProduct, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, + ), + "UpdateProduct": grpc.unary_unary_rpc_method_handler( + servicer.UpdateProduct, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, + ), + "DeleteProduct": grpc.unary_unary_rpc_method_handler( + servicer.DeleteProduct, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateReferenceImage": grpc.unary_unary_rpc_method_handler( + servicer.CreateReferenceImage, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, + ), + "DeleteReferenceImage": grpc.unary_unary_rpc_method_handler( + servicer.DeleteReferenceImage, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListReferenceImages": grpc.unary_unary_rpc_method_handler( + servicer.ListReferenceImages, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.SerializeToString, + ), + "GetReferenceImage": grpc.unary_unary_rpc_method_handler( + servicer.GetReferenceImage, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, + ), + "AddProductToProductSet": grpc.unary_unary_rpc_method_handler( + servicer.AddProductToProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "RemoveProductFromProductSet": grpc.unary_unary_rpc_method_handler( + servicer.RemoveProductFromProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListProductsInProductSet": grpc.unary_unary_rpc_method_handler( + servicer.ListProductsInProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.SerializeToString, + ), + "ImportProductSets": grpc.unary_unary_rpc_method_handler( + servicer.ImportProductSets, + request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.vision.v1.ProductSearch", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/vision/google/cloud/vision_v1/proto/text_annotation_pb2.py b/vision/google/cloud/vision_v1/proto/text_annotation_pb2.py index 656b000210bfe..110a1ca426d38 100644 --- a/vision/google/cloud/vision_v1/proto/text_annotation_pb2.py +++ b/vision/google/cloud/vision_v1/proto/text_annotation_pb2.py @@ -2,570 +2,897 @@ # source: google/cloud/vision_v1/proto/text_annotation.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1_dot_proto_dot_geometry__pb2 +from google.cloud.vision_v1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1_dot_proto_dot_geometry__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1/proto/text_annotation.proto', - package='google.cloud.vision.v1', - syntax='proto3', - serialized_pb=_b('\n2google/cloud/vision_v1/proto/text_annotation.proto\x12\x16google.cloud.vision.v1\x1a\x1cgoogle/api/annotations.proto\x1a+google/cloud/vision_v1/proto/geometry.proto\"\x96\x04\n\x0eTextAnnotation\x12+\n\x05pages\x18\x01 \x03(\x0b\x32\x1c.google.cloud.vision.v1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xd5\x01\n\rDetectedBreak\x12L\n\x04type\x18\x01 \x01(\x0e\x32>.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08\"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xb1\x01\n\x0cTextProperty\x12S\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1.TextAnnotation.DetectedLanguage\x12L\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.TextAnnotation.DetectedBreak\"\xaf\x01\n\x04Page\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12-\n\x06\x62locks\x18\x04 \x03(\x0b\x32\x1d.google.cloud.vision.v1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"\xe6\x02\n\x05\x42lock\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x35\n\nparagraphs\x18\x03 \x03(\x0b\x32!.google.cloud.vision.v1.Paragraph\x12;\n\nblock_type\x18\x04 \x01(\x0e\x32\'.google.cloud.vision.v1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05\"\xcf\x01\n\tParagraph\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12+\n\x05words\x18\x03 \x03(\x0b\x32\x1c.google.cloud.vision.v1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xce\x01\n\x04Word\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12/\n\x07symbols\x18\x03 \x03(\x0b\x32\x1e.google.cloud.vision.v1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xad\x01\n\x06Symbol\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42{\n\x1a\x63om.google.cloud.vision.v1B\x13TextAnnotationProtoP\x01Z.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xb1\x01\n\x0cTextProperty\x12S\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1.TextAnnotation.DetectedLanguage\x12L\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.TextAnnotation.DetectedBreak"\xaf\x01\n\x04Page\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12-\n\x06\x62locks\x18\x04 \x03(\x0b\x32\x1d.google.cloud.vision.v1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\xe6\x02\n\x05\x42lock\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x35\n\nparagraphs\x18\x03 \x03(\x0b\x32!.google.cloud.vision.v1.Paragraph\x12;\n\nblock_type\x18\x04 \x01(\x0e\x32\'.google.cloud.vision.v1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xcf\x01\n\tParagraph\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12+\n\x05words\x18\x03 \x03(\x0b\x32\x1c.google.cloud.vision.v1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xce\x01\n\x04Word\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12/\n\x07symbols\x18\x03 \x03(\x0b\x32\x1e.google.cloud.vision.v1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xad\x01\n\x06Symbol\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42{\n\x1a\x63om.google.cloud.vision.v1B\x13TextAnnotationProtoP\x01Z Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own @@ -632,18 +960,21 @@ text: UTF-8 text detected on the pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation) + ), +) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) _sym_db.RegisterMessage(TextAnnotation.DetectedBreak) _sym_db.RegisterMessage(TextAnnotation.TextProperty) -Page = _reflection.GeneratedProtocolMessageType('Page', (_message.Message,), dict( - DESCRIPTOR = _PAGE, - __module__ = 'google.cloud.vision_v1.proto.text_annotation_pb2' - , - __doc__ = """Detected page from OCR. +Page = _reflection.GeneratedProtocolMessageType( + "Page", + (_message.Message,), + dict( + DESCRIPTOR=_PAGE, + __module__="google.cloud.vision_v1.proto.text_annotation_pb2", + __doc__="""Detected page from OCR. Attributes: @@ -660,15 +991,18 @@ confidence: Confidence of the OCR results on the page. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Page) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Page) + ), +) _sym_db.RegisterMessage(Page) -Block = _reflection.GeneratedProtocolMessageType('Block', (_message.Message,), dict( - DESCRIPTOR = _BLOCK, - __module__ = 'google.cloud.vision_v1.proto.text_annotation_pb2' - , - __doc__ = """Logical element on the page. +Block = _reflection.GeneratedProtocolMessageType( + "Block", + (_message.Message,), + dict( + DESCRIPTOR=_BLOCK, + __module__="google.cloud.vision_v1.proto.text_annotation_pb2", + __doc__="""Logical element on the page. Attributes: @@ -693,15 +1027,18 @@ confidence: Confidence of the OCR results on the block. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Block) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Block) + ), +) _sym_db.RegisterMessage(Block) -Paragraph = _reflection.GeneratedProtocolMessageType('Paragraph', (_message.Message,), dict( - DESCRIPTOR = _PARAGRAPH, - __module__ = 'google.cloud.vision_v1.proto.text_annotation_pb2' - , - __doc__ = """Structural unit of text representing a number of words in certain order. +Paragraph = _reflection.GeneratedProtocolMessageType( + "Paragraph", + (_message.Message,), + dict( + DESCRIPTOR=_PARAGRAPH, + __module__="google.cloud.vision_v1.proto.text_annotation_pb2", + __doc__="""Structural unit of text representing a number of words in certain order. Attributes: @@ -722,15 +1059,18 @@ confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Paragraph) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Paragraph) + ), +) _sym_db.RegisterMessage(Paragraph) -Word = _reflection.GeneratedProtocolMessageType('Word', (_message.Message,), dict( - DESCRIPTOR = _WORD, - __module__ = 'google.cloud.vision_v1.proto.text_annotation_pb2' - , - __doc__ = """A word representation. +Word = _reflection.GeneratedProtocolMessageType( + "Word", + (_message.Message,), + dict( + DESCRIPTOR=_WORD, + __module__="google.cloud.vision_v1.proto.text_annotation_pb2", + __doc__="""A word representation. Attributes: @@ -752,15 +1092,18 @@ confidence: Confidence of the OCR results for the word. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Word) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Word) + ), +) _sym_db.RegisterMessage(Word) -Symbol = _reflection.GeneratedProtocolMessageType('Symbol', (_message.Message,), dict( - DESCRIPTOR = _SYMBOL, - __module__ = 'google.cloud.vision_v1.proto.text_annotation_pb2' - , - __doc__ = """A single symbol representation. +Symbol = _reflection.GeneratedProtocolMessageType( + "Symbol", + (_message.Message,), + dict( + DESCRIPTOR=_SYMBOL, + __module__="google.cloud.vision_v1.proto.text_annotation_pb2", + __doc__="""A single symbol representation. Attributes: @@ -781,11 +1124,17 @@ confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Symbol) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Symbol) + ), +) _sym_db.RegisterMessage(Symbol) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\032com.google.cloud.vision.v1B\023TextAnnotationProtoP\001Z\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p1beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.Property\"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02\"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.ColorInfo\"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p1beta1.DominantColorsAnnotation\"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02\"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.CropHint\"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02\"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08\"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p1beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p1beta1.WebDetectionParams\"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p1beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p1beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.ImageContext\"\xc2\x06\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p1beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p1beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p1beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p1beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.AnnotateImageRequest\"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.AnnotateImageResponse*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xc6\x01\n\x0eImageAnnotator\x12\xb3\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1p1beta1/images:annotate:\x01*B\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_text__annotation__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_web__detection__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,google_dot_type_dot_color__pb2.DESCRIPTOR,google_dot_type_dot_latlng__pb2.DESCRIPTOR,]) + name="google/cloud/vision_v1p1beta1/proto/image_annotator.proto", + package="google.cloud.vision.v1p1beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/vision_v1p1beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p1beta1/proto/geometry.proto\x1a\x39google/cloud/vision_v1p1beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p1beta1/proto/web_detection.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\xe1\x02\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p1beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xf6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p1beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p1beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p1beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p1beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p1beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p1beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p1beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p1beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.ImageContext"\xc2\x06\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p1beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p1beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p1beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p1beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.AnnotateImageRequest"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.AnnotateImageResponse*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xc6\x01\n\x0eImageAnnotator\x12\xb3\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse"%\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p1beta1/images:annotate:\x01*B\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_text__annotation__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_web__detection__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + google_dot_type_dot_color__pb2.DESCRIPTOR, + google_dot_type_dot_latlng__pb2.DESCRIPTOR, + ], +) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.vision.v1p1beta1.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=5631, - serialized_end=5732, + name="Likelihood", + full_name="google.cloud.vision.v1p1beta1.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=5631, + serialized_end=5732, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -79,1352 +91,2143 @@ _FEATURE_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.vision.v1p1beta1.Feature.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FACE_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LANDMARK_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOGO_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT_DETECTION', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DOCUMENT_TEXT_DETECTION', index=6, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SAFE_SEARCH_DETECTION', index=7, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE_PROPERTIES', index=8, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CROP_HINTS', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEB_DETECTION', index=10, number=10, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=474, - serialized_end=720, + name="Type", + full_name="google.cloud.vision.v1p1beta1.Feature.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FACE_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LANDMARK_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOGO_DETECTION", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT_DETECTION", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DOCUMENT_TEXT_DETECTION", index=6, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SAFE_SEARCH_DETECTION", index=7, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE_PROPERTIES", index=8, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CROP_HINTS", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WEB_DETECTION", index=10, number=10, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=474, + serialized_end=720, ) _sym_db.RegisterEnumDescriptor(_FEATURE_TYPE) _FACEANNOTATION_LANDMARK_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_LANDMARK', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_OF_LEFT_EYEBROW', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_OF_LEFT_EYEBROW', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_OF_RIGHT_EYEBROW', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_OF_RIGHT_EYEBROW', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MIDPOINT_BETWEEN_EYES', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_TIP', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPPER_LIP', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOWER_LIP', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_LEFT', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_RIGHT', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_CENTER', index=13, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_RIGHT', index=14, number=14, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_LEFT', index=15, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_CENTER', index=16, number=16, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_TOP_BOUNDARY', index=17, number=17, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_RIGHT_CORNER', index=18, number=18, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_BOTTOM_BOUNDARY', index=19, number=19, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_LEFT_CORNER', index=20, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_TOP_BOUNDARY', index=21, number=21, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_RIGHT_CORNER', index=22, number=22, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_BOTTOM_BOUNDARY', index=23, number=23, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_LEFT_CORNER', index=24, number=24, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYEBROW_UPPER_MIDPOINT', index=25, number=25, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYEBROW_UPPER_MIDPOINT', index=26, number=26, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EAR_TRAGION', index=27, number=27, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EAR_TRAGION', index=28, number=28, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_PUPIL', index=29, number=29, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_PUPIL', index=30, number=30, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FOREHEAD_GLABELLA', index=31, number=31, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_GNATHION', index=32, number=32, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_LEFT_GONION', index=33, number=33, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_RIGHT_GONION', index=34, number=34, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1865, - serialized_end=2685, + name="Type", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN_LANDMARK", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_OF_LEFT_EYEBROW", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_OF_LEFT_EYEBROW", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_OF_RIGHT_EYEBROW", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_OF_RIGHT_EYEBROW", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MIDPOINT_BETWEEN_EYES", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_TIP", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPPER_LIP", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOWER_LIP", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_LEFT", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_RIGHT", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_CENTER", index=13, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_RIGHT", index=14, number=14, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_LEFT", index=15, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_CENTER", index=16, number=16, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_TOP_BOUNDARY", index=17, number=17, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_RIGHT_CORNER", index=18, number=18, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_BOTTOM_BOUNDARY", + index=19, + number=19, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_LEFT_CORNER", index=20, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_TOP_BOUNDARY", index=21, number=21, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_RIGHT_CORNER", index=22, number=22, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_BOTTOM_BOUNDARY", + index=23, + number=23, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_LEFT_CORNER", index=24, number=24, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYEBROW_UPPER_MIDPOINT", + index=25, + number=25, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYEBROW_UPPER_MIDPOINT", + index=26, + number=26, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EAR_TRAGION", index=27, number=27, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EAR_TRAGION", index=28, number=28, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_PUPIL", index=29, number=29, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_PUPIL", index=30, number=30, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FOREHEAD_GLABELLA", index=31, number=31, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_GNATHION", index=32, number=32, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_LEFT_GONION", index=33, number=33, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_RIGHT_GONION", index=34, number=34, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1865, + serialized_end=2685, ) _sym_db.RegisterEnumDescriptor(_FACEANNOTATION_LANDMARK_TYPE) _FEATURE = _descriptor.Descriptor( - name='Feature', - full_name='google.cloud.vision.v1p1beta1.Feature', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p1beta1.Feature.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_results', full_name='google.cloud.vision.v1p1beta1.Feature.max_results', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.vision.v1p1beta1.Feature.model', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEATURE_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=367, - serialized_end=720, + name="Feature", + full_name="google.cloud.vision.v1p1beta1.Feature", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p1beta1.Feature.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_results", + full_name="google.cloud.vision.v1p1beta1.Feature.max_results", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.vision.v1p1beta1.Feature.model", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_FEATURE_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=367, + serialized_end=720, ) _IMAGESOURCE = _descriptor.Descriptor( - name='ImageSource', - full_name='google.cloud.vision.v1p1beta1.ImageSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_image_uri', full_name='google.cloud.vision.v1p1beta1.ImageSource.gcs_image_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_uri', full_name='google.cloud.vision.v1p1beta1.ImageSource.image_uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=722, - serialized_end=777, + name="ImageSource", + full_name="google.cloud.vision.v1p1beta1.ImageSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_image_uri", + full_name="google.cloud.vision.v1p1beta1.ImageSource.gcs_image_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_uri", + full_name="google.cloud.vision.v1p1beta1.ImageSource.image_uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=722, + serialized_end=777, ) _IMAGE = _descriptor.Descriptor( - name='Image', - full_name='google.cloud.vision.v1p1beta1.Image', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.vision.v1p1beta1.Image.content', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source', full_name='google.cloud.vision.v1p1beta1.Image.source', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=779, - serialized_end=863, + name="Image", + full_name="google.cloud.vision.v1p1beta1.Image", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.vision.v1p1beta1.Image.content", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source", + full_name="google.cloud.vision.v1p1beta1.Image.source", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=779, + serialized_end=863, ) _FACEANNOTATION_LANDMARK = _descriptor.Descriptor( - name='Landmark', - full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.type', index=0, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='position', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.position', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FACEANNOTATION_LANDMARK_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1718, - serialized_end=2685, + name="Landmark", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.type", + index=0, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="position", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.position", + index=1, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_FACEANNOTATION_LANDMARK_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1718, + serialized_end=2685, ) _FACEANNOTATION = _descriptor.Descriptor( - name='FaceAnnotation', - full_name='google.cloud.vision.v1p1beta1.FaceAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.bounding_poly', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='fd_bounding_poly', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.fd_bounding_poly', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmarks', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.landmarks', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='roll_angle', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.roll_angle', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pan_angle', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.pan_angle', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tilt_angle', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.tilt_angle', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detection_confidence', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.detection_confidence', index=6, - number=7, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmarking_confidence', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.landmarking_confidence', index=7, - number=8, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='joy_likelihood', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.joy_likelihood', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sorrow_likelihood', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.sorrow_likelihood', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='anger_likelihood', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.anger_likelihood', index=10, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='surprise_likelihood', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.surprise_likelihood', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='under_exposed_likelihood', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.under_exposed_likelihood', index=12, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blurred_likelihood', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.blurred_likelihood', index=13, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headwear_likelihood', full_name='google.cloud.vision.v1p1beta1.FaceAnnotation.headwear_likelihood', index=14, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_FACEANNOTATION_LANDMARK, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=866, - serialized_end=2685, + name="FaceAnnotation", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.bounding_poly", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="fd_bounding_poly", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.fd_bounding_poly", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmarks", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.landmarks", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="roll_angle", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.roll_angle", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pan_angle", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.pan_angle", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tilt_angle", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.tilt_angle", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detection_confidence", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.detection_confidence", + index=6, + number=7, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmarking_confidence", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.landmarking_confidence", + index=7, + number=8, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="joy_likelihood", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.joy_likelihood", + index=8, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sorrow_likelihood", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.sorrow_likelihood", + index=9, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="anger_likelihood", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.anger_likelihood", + index=10, + number=11, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="surprise_likelihood", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.surprise_likelihood", + index=11, + number=12, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="under_exposed_likelihood", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.under_exposed_likelihood", + index=12, + number=13, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blurred_likelihood", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.blurred_likelihood", + index=13, + number=14, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headwear_likelihood", + full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.headwear_likelihood", + index=14, + number=15, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_FACEANNOTATION_LANDMARK], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=866, + serialized_end=2685, ) _LOCATIONINFO = _descriptor.Descriptor( - name='LocationInfo', - full_name='google.cloud.vision.v1p1beta1.LocationInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='lat_lng', full_name='google.cloud.vision.v1p1beta1.LocationInfo.lat_lng', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2687, - serialized_end=2739, + name="LocationInfo", + full_name="google.cloud.vision.v1p1beta1.LocationInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="lat_lng", + full_name="google.cloud.vision.v1p1beta1.LocationInfo.lat_lng", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2687, + serialized_end=2739, ) _PROPERTY = _descriptor.Descriptor( - name='Property', - full_name='google.cloud.vision.v1p1beta1.Property', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p1beta1.Property.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.vision.v1p1beta1.Property.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uint64_value', full_name='google.cloud.vision.v1p1beta1.Property.uint64_value', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2741, - serialized_end=2802, + name="Property", + full_name="google.cloud.vision.v1p1beta1.Property", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p1beta1.Property.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.vision.v1p1beta1.Property.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uint64_value", + full_name="google.cloud.vision.v1p1beta1.Property.uint64_value", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2741, + serialized_end=2802, ) _ENTITYANNOTATION = _descriptor.Descriptor( - name='EntityAnnotation', - full_name='google.cloud.vision.v1p1beta1.EntityAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mid', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.mid', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locale', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.locale', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.score', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topicality', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.topicality', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.bounding_poly', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locations', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.locations', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.vision.v1p1beta1.EntityAnnotation.properties', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2805, - serialized_end=3121, + name="EntityAnnotation", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="mid", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.mid", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locale", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.locale", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.score", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="topicality", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.topicality", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.bounding_poly", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locations", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.locations", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.vision.v1p1beta1.EntityAnnotation.properties", + index=8, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2805, + serialized_end=3121, ) _SAFESEARCHANNOTATION = _descriptor.Descriptor( - name='SafeSearchAnnotation', - full_name='google.cloud.vision.v1p1beta1.SafeSearchAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='adult', full_name='google.cloud.vision.v1p1beta1.SafeSearchAnnotation.adult', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spoof', full_name='google.cloud.vision.v1p1beta1.SafeSearchAnnotation.spoof', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='medical', full_name='google.cloud.vision.v1p1beta1.SafeSearchAnnotation.medical', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='violence', full_name='google.cloud.vision.v1p1beta1.SafeSearchAnnotation.violence', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='racy', full_name='google.cloud.vision.v1p1beta1.SafeSearchAnnotation.racy', index=4, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3124, - serialized_end=3440, + name="SafeSearchAnnotation", + full_name="google.cloud.vision.v1p1beta1.SafeSearchAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="adult", + full_name="google.cloud.vision.v1p1beta1.SafeSearchAnnotation.adult", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spoof", + full_name="google.cloud.vision.v1p1beta1.SafeSearchAnnotation.spoof", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="medical", + full_name="google.cloud.vision.v1p1beta1.SafeSearchAnnotation.medical", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="violence", + full_name="google.cloud.vision.v1p1beta1.SafeSearchAnnotation.violence", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="racy", + full_name="google.cloud.vision.v1p1beta1.SafeSearchAnnotation.racy", + index=4, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3124, + serialized_end=3440, ) _LATLONGRECT = _descriptor.Descriptor( - name='LatLongRect', - full_name='google.cloud.vision.v1p1beta1.LatLongRect', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='min_lat_lng', full_name='google.cloud.vision.v1p1beta1.LatLongRect.min_lat_lng', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_lat_lng', full_name='google.cloud.vision.v1p1beta1.LatLongRect.max_lat_lng', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3442, - serialized_end=3539, + name="LatLongRect", + full_name="google.cloud.vision.v1p1beta1.LatLongRect", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="min_lat_lng", + full_name="google.cloud.vision.v1p1beta1.LatLongRect.min_lat_lng", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_lat_lng", + full_name="google.cloud.vision.v1p1beta1.LatLongRect.max_lat_lng", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3442, + serialized_end=3539, ) _COLORINFO = _descriptor.Descriptor( - name='ColorInfo', - full_name='google.cloud.vision.v1p1beta1.ColorInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='color', full_name='google.cloud.vision.v1p1beta1.ColorInfo.color', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p1beta1.ColorInfo.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pixel_fraction', full_name='google.cloud.vision.v1p1beta1.ColorInfo.pixel_fraction', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3541, - serialized_end=3626, + name="ColorInfo", + full_name="google.cloud.vision.v1p1beta1.ColorInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="color", + full_name="google.cloud.vision.v1p1beta1.ColorInfo.color", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p1beta1.ColorInfo.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pixel_fraction", + full_name="google.cloud.vision.v1p1beta1.ColorInfo.pixel_fraction", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3541, + serialized_end=3626, ) _DOMINANTCOLORSANNOTATION = _descriptor.Descriptor( - name='DominantColorsAnnotation', - full_name='google.cloud.vision.v1p1beta1.DominantColorsAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='colors', full_name='google.cloud.vision.v1p1beta1.DominantColorsAnnotation.colors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3628, - serialized_end=3712, + name="DominantColorsAnnotation", + full_name="google.cloud.vision.v1p1beta1.DominantColorsAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="colors", + full_name="google.cloud.vision.v1p1beta1.DominantColorsAnnotation.colors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3628, + serialized_end=3712, ) _IMAGEPROPERTIES = _descriptor.Descriptor( - name='ImageProperties', - full_name='google.cloud.vision.v1p1beta1.ImageProperties', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='dominant_colors', full_name='google.cloud.vision.v1p1beta1.ImageProperties.dominant_colors', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3714, - serialized_end=3813, + name="ImageProperties", + full_name="google.cloud.vision.v1p1beta1.ImageProperties", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="dominant_colors", + full_name="google.cloud.vision.v1p1beta1.ImageProperties.dominant_colors", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3714, + serialized_end=3813, ) _CROPHINT = _descriptor.Descriptor( - name='CropHint', - full_name='google.cloud.vision.v1p1beta1.CropHint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p1beta1.CropHint.bounding_poly', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.CropHint.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='importance_fraction', full_name='google.cloud.vision.v1p1beta1.CropHint.importance_fraction', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3815, - serialized_end=3942, + name="CropHint", + full_name="google.cloud.vision.v1p1beta1.CropHint", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p1beta1.CropHint.bounding_poly", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.CropHint.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="importance_fraction", + full_name="google.cloud.vision.v1p1beta1.CropHint.importance_fraction", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3815, + serialized_end=3942, ) _CROPHINTSANNOTATION = _descriptor.Descriptor( - name='CropHintsAnnotation', - full_name='google.cloud.vision.v1p1beta1.CropHintsAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crop_hints', full_name='google.cloud.vision.v1p1beta1.CropHintsAnnotation.crop_hints', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3944, - serialized_end=4026, + name="CropHintsAnnotation", + full_name="google.cloud.vision.v1p1beta1.CropHintsAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crop_hints", + full_name="google.cloud.vision.v1p1beta1.CropHintsAnnotation.crop_hints", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3944, + serialized_end=4026, ) _CROPHINTSPARAMS = _descriptor.Descriptor( - name='CropHintsParams', - full_name='google.cloud.vision.v1p1beta1.CropHintsParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='aspect_ratios', full_name='google.cloud.vision.v1p1beta1.CropHintsParams.aspect_ratios', index=0, - number=1, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4028, - serialized_end=4068, + name="CropHintsParams", + full_name="google.cloud.vision.v1p1beta1.CropHintsParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="aspect_ratios", + full_name="google.cloud.vision.v1p1beta1.CropHintsParams.aspect_ratios", + index=0, + number=1, + type=2, + cpp_type=6, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4028, + serialized_end=4068, ) _WEBDETECTIONPARAMS = _descriptor.Descriptor( - name='WebDetectionParams', - full_name='google.cloud.vision.v1p1beta1.WebDetectionParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='include_geo_results', full_name='google.cloud.vision.v1p1beta1.WebDetectionParams.include_geo_results', index=0, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4070, - serialized_end=4119, + name="WebDetectionParams", + full_name="google.cloud.vision.v1p1beta1.WebDetectionParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="include_geo_results", + full_name="google.cloud.vision.v1p1beta1.WebDetectionParams.include_geo_results", + index=0, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4070, + serialized_end=4119, ) _IMAGECONTEXT = _descriptor.Descriptor( - name='ImageContext', - full_name='google.cloud.vision.v1p1beta1.ImageContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='lat_long_rect', full_name='google.cloud.vision.v1p1beta1.ImageContext.lat_long_rect', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_hints', full_name='google.cloud.vision.v1p1beta1.ImageContext.language_hints', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crop_hints_params', full_name='google.cloud.vision.v1p1beta1.ImageContext.crop_hints_params', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='web_detection_params', full_name='google.cloud.vision.v1p1beta1.ImageContext.web_detection_params', index=3, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4122, - serialized_end=4383, + name="ImageContext", + full_name="google.cloud.vision.v1p1beta1.ImageContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="lat_long_rect", + full_name="google.cloud.vision.v1p1beta1.ImageContext.lat_long_rect", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_hints", + full_name="google.cloud.vision.v1p1beta1.ImageContext.language_hints", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crop_hints_params", + full_name="google.cloud.vision.v1p1beta1.ImageContext.crop_hints_params", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="web_detection_params", + full_name="google.cloud.vision.v1p1beta1.ImageContext.web_detection_params", + index=3, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4122, + serialized_end=4383, ) _ANNOTATEIMAGEREQUEST = _descriptor.Descriptor( - name='AnnotateImageRequest', - full_name='google.cloud.vision.v1p1beta1.AnnotateImageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image', full_name='google.cloud.vision.v1p1beta1.AnnotateImageRequest.image', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.vision.v1p1beta1.AnnotateImageRequest.features', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_context', full_name='google.cloud.vision.v1p1beta1.AnnotateImageRequest.image_context', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4386, - serialized_end=4587, + name="AnnotateImageRequest", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageRequest.image", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageRequest.features", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_context", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageRequest.image_context", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4386, + serialized_end=4587, ) _ANNOTATEIMAGERESPONSE = _descriptor.Descriptor( - name='AnnotateImageResponse', - full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='face_annotations', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.face_annotations', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmark_annotations', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.landmark_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logo_annotations', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.logo_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_annotations', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.label_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_annotations', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.text_annotations', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_text_annotation', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.full_text_annotation', index=5, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='safe_search_annotation', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.safe_search_annotation', index=6, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_properties_annotation', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.image_properties_annotation', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crop_hints_annotation', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.crop_hints_annotation', index=8, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='web_detection', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.web_detection', index=9, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.vision.v1p1beta1.AnnotateImageResponse.error', index=10, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4590, - serialized_end=5424, + name="AnnotateImageResponse", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="face_annotations", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.face_annotations", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmark_annotations", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.landmark_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logo_annotations", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.logo_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_annotations", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.label_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_annotations", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.text_annotations", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_text_annotation", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.full_text_annotation", + index=5, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="safe_search_annotation", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.safe_search_annotation", + index=6, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_properties_annotation", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.image_properties_annotation", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crop_hints_annotation", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.crop_hints_annotation", + index=8, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="web_detection", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.web_detection", + index=9, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.vision.v1p1beta1.AnnotateImageResponse.error", + index=10, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4590, + serialized_end=5424, ) _BATCHANNOTATEIMAGESREQUEST = _descriptor.Descriptor( - name='BatchAnnotateImagesRequest', - full_name='google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='requests', full_name='google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.requests', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5426, - serialized_end=5525, + name="BatchAnnotateImagesRequest", + full_name="google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="requests", + full_name="google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.requests", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5426, + serialized_end=5525, ) _BATCHANNOTATEIMAGESRESPONSE = _descriptor.Descriptor( - name='BatchAnnotateImagesResponse', - full_name='google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='responses', full_name='google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.responses', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5527, - serialized_end=5629, + name="BatchAnnotateImagesResponse", + full_name="google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="responses", + full_name="google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.responses", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5527, + serialized_end=5629, ) -_FEATURE.fields_by_name['type'].enum_type = _FEATURE_TYPE +_FEATURE.fields_by_name["type"].enum_type = _FEATURE_TYPE _FEATURE_TYPE.containing_type = _FEATURE -_IMAGE.fields_by_name['source'].message_type = _IMAGESOURCE -_FACEANNOTATION_LANDMARK.fields_by_name['type'].enum_type = _FACEANNOTATION_LANDMARK_TYPE -_FACEANNOTATION_LANDMARK.fields_by_name['position'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._POSITION +_IMAGE.fields_by_name["source"].message_type = _IMAGESOURCE +_FACEANNOTATION_LANDMARK.fields_by_name[ + "type" +].enum_type = _FACEANNOTATION_LANDMARK_TYPE +_FACEANNOTATION_LANDMARK.fields_by_name[ + "position" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._POSITION +) _FACEANNOTATION_LANDMARK.containing_type = _FACEANNOTATION _FACEANNOTATION_LANDMARK_TYPE.containing_type = _FACEANNOTATION_LANDMARK -_FACEANNOTATION.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_FACEANNOTATION.fields_by_name['fd_bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_FACEANNOTATION.fields_by_name['landmarks'].message_type = _FACEANNOTATION_LANDMARK -_FACEANNOTATION.fields_by_name['joy_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['sorrow_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['anger_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['surprise_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['under_exposed_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['blurred_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['headwear_likelihood'].enum_type = _LIKELIHOOD -_LOCATIONINFO.fields_by_name['lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_ENTITYANNOTATION.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_ENTITYANNOTATION.fields_by_name['locations'].message_type = _LOCATIONINFO -_ENTITYANNOTATION.fields_by_name['properties'].message_type = _PROPERTY -_SAFESEARCHANNOTATION.fields_by_name['adult'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['spoof'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['medical'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['violence'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['racy'].enum_type = _LIKELIHOOD -_LATLONGRECT.fields_by_name['min_lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_LATLONGRECT.fields_by_name['max_lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_COLORINFO.fields_by_name['color'].message_type = google_dot_type_dot_color__pb2._COLOR -_DOMINANTCOLORSANNOTATION.fields_by_name['colors'].message_type = _COLORINFO -_IMAGEPROPERTIES.fields_by_name['dominant_colors'].message_type = _DOMINANTCOLORSANNOTATION -_CROPHINT.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_CROPHINTSANNOTATION.fields_by_name['crop_hints'].message_type = _CROPHINT -_IMAGECONTEXT.fields_by_name['lat_long_rect'].message_type = _LATLONGRECT -_IMAGECONTEXT.fields_by_name['crop_hints_params'].message_type = _CROPHINTSPARAMS -_IMAGECONTEXT.fields_by_name['web_detection_params'].message_type = _WEBDETECTIONPARAMS -_ANNOTATEIMAGEREQUEST.fields_by_name['image'].message_type = _IMAGE -_ANNOTATEIMAGEREQUEST.fields_by_name['features'].message_type = _FEATURE -_ANNOTATEIMAGEREQUEST.fields_by_name['image_context'].message_type = _IMAGECONTEXT -_ANNOTATEIMAGERESPONSE.fields_by_name['face_annotations'].message_type = _FACEANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['landmark_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['logo_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['label_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['text_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['full_text_annotation'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_text__annotation__pb2._TEXTANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['safe_search_annotation'].message_type = _SAFESEARCHANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['image_properties_annotation'].message_type = _IMAGEPROPERTIES -_ANNOTATEIMAGERESPONSE.fields_by_name['crop_hints_annotation'].message_type = _CROPHINTSANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['web_detection'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_web__detection__pb2._WEBDETECTION -_ANNOTATEIMAGERESPONSE.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_BATCHANNOTATEIMAGESREQUEST.fields_by_name['requests'].message_type = _ANNOTATEIMAGEREQUEST -_BATCHANNOTATEIMAGESRESPONSE.fields_by_name['responses'].message_type = _ANNOTATEIMAGERESPONSE -DESCRIPTOR.message_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.message_types_by_name['ImageSource'] = _IMAGESOURCE -DESCRIPTOR.message_types_by_name['Image'] = _IMAGE -DESCRIPTOR.message_types_by_name['FaceAnnotation'] = _FACEANNOTATION -DESCRIPTOR.message_types_by_name['LocationInfo'] = _LOCATIONINFO -DESCRIPTOR.message_types_by_name['Property'] = _PROPERTY -DESCRIPTOR.message_types_by_name['EntityAnnotation'] = _ENTITYANNOTATION -DESCRIPTOR.message_types_by_name['SafeSearchAnnotation'] = _SAFESEARCHANNOTATION -DESCRIPTOR.message_types_by_name['LatLongRect'] = _LATLONGRECT -DESCRIPTOR.message_types_by_name['ColorInfo'] = _COLORINFO -DESCRIPTOR.message_types_by_name['DominantColorsAnnotation'] = _DOMINANTCOLORSANNOTATION -DESCRIPTOR.message_types_by_name['ImageProperties'] = _IMAGEPROPERTIES -DESCRIPTOR.message_types_by_name['CropHint'] = _CROPHINT -DESCRIPTOR.message_types_by_name['CropHintsAnnotation'] = _CROPHINTSANNOTATION -DESCRIPTOR.message_types_by_name['CropHintsParams'] = _CROPHINTSPARAMS -DESCRIPTOR.message_types_by_name['WebDetectionParams'] = _WEBDETECTIONPARAMS -DESCRIPTOR.message_types_by_name['ImageContext'] = _IMAGECONTEXT -DESCRIPTOR.message_types_by_name['AnnotateImageRequest'] = _ANNOTATEIMAGEREQUEST -DESCRIPTOR.message_types_by_name['AnnotateImageResponse'] = _ANNOTATEIMAGERESPONSE -DESCRIPTOR.message_types_by_name['BatchAnnotateImagesRequest'] = _BATCHANNOTATEIMAGESREQUEST -DESCRIPTOR.message_types_by_name['BatchAnnotateImagesResponse'] = _BATCHANNOTATEIMAGESRESPONSE -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +_FACEANNOTATION.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_FACEANNOTATION.fields_by_name[ + "fd_bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_FACEANNOTATION.fields_by_name["landmarks"].message_type = _FACEANNOTATION_LANDMARK +_FACEANNOTATION.fields_by_name["joy_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["sorrow_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["anger_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["surprise_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["under_exposed_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["blurred_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["headwear_likelihood"].enum_type = _LIKELIHOOD +_LOCATIONINFO.fields_by_name[ + "lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_ENTITYANNOTATION.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_ENTITYANNOTATION.fields_by_name["locations"].message_type = _LOCATIONINFO +_ENTITYANNOTATION.fields_by_name["properties"].message_type = _PROPERTY +_SAFESEARCHANNOTATION.fields_by_name["adult"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["spoof"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["medical"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["violence"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["racy"].enum_type = _LIKELIHOOD +_LATLONGRECT.fields_by_name[ + "min_lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_LATLONGRECT.fields_by_name[ + "max_lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_COLORINFO.fields_by_name["color"].message_type = google_dot_type_dot_color__pb2._COLOR +_DOMINANTCOLORSANNOTATION.fields_by_name["colors"].message_type = _COLORINFO +_IMAGEPROPERTIES.fields_by_name[ + "dominant_colors" +].message_type = _DOMINANTCOLORSANNOTATION +_CROPHINT.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_CROPHINTSANNOTATION.fields_by_name["crop_hints"].message_type = _CROPHINT +_IMAGECONTEXT.fields_by_name["lat_long_rect"].message_type = _LATLONGRECT +_IMAGECONTEXT.fields_by_name["crop_hints_params"].message_type = _CROPHINTSPARAMS +_IMAGECONTEXT.fields_by_name["web_detection_params"].message_type = _WEBDETECTIONPARAMS +_ANNOTATEIMAGEREQUEST.fields_by_name["image"].message_type = _IMAGE +_ANNOTATEIMAGEREQUEST.fields_by_name["features"].message_type = _FEATURE +_ANNOTATEIMAGEREQUEST.fields_by_name["image_context"].message_type = _IMAGECONTEXT +_ANNOTATEIMAGERESPONSE.fields_by_name["face_annotations"].message_type = _FACEANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "landmark_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "logo_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "label_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "text_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "full_text_annotation" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_text__annotation__pb2._TEXTANNOTATION +) +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "safe_search_annotation" +].message_type = _SAFESEARCHANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "image_properties_annotation" +].message_type = _IMAGEPROPERTIES +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "crop_hints_annotation" +].message_type = _CROPHINTSANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "web_detection" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_web__detection__pb2._WEBDETECTION +) +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_BATCHANNOTATEIMAGESREQUEST.fields_by_name[ + "requests" +].message_type = _ANNOTATEIMAGEREQUEST +_BATCHANNOTATEIMAGESRESPONSE.fields_by_name[ + "responses" +].message_type = _ANNOTATEIMAGERESPONSE +DESCRIPTOR.message_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.message_types_by_name["ImageSource"] = _IMAGESOURCE +DESCRIPTOR.message_types_by_name["Image"] = _IMAGE +DESCRIPTOR.message_types_by_name["FaceAnnotation"] = _FACEANNOTATION +DESCRIPTOR.message_types_by_name["LocationInfo"] = _LOCATIONINFO +DESCRIPTOR.message_types_by_name["Property"] = _PROPERTY +DESCRIPTOR.message_types_by_name["EntityAnnotation"] = _ENTITYANNOTATION +DESCRIPTOR.message_types_by_name["SafeSearchAnnotation"] = _SAFESEARCHANNOTATION +DESCRIPTOR.message_types_by_name["LatLongRect"] = _LATLONGRECT +DESCRIPTOR.message_types_by_name["ColorInfo"] = _COLORINFO +DESCRIPTOR.message_types_by_name["DominantColorsAnnotation"] = _DOMINANTCOLORSANNOTATION +DESCRIPTOR.message_types_by_name["ImageProperties"] = _IMAGEPROPERTIES +DESCRIPTOR.message_types_by_name["CropHint"] = _CROPHINT +DESCRIPTOR.message_types_by_name["CropHintsAnnotation"] = _CROPHINTSANNOTATION +DESCRIPTOR.message_types_by_name["CropHintsParams"] = _CROPHINTSPARAMS +DESCRIPTOR.message_types_by_name["WebDetectionParams"] = _WEBDETECTIONPARAMS +DESCRIPTOR.message_types_by_name["ImageContext"] = _IMAGECONTEXT +DESCRIPTOR.message_types_by_name["AnnotateImageRequest"] = _ANNOTATEIMAGEREQUEST +DESCRIPTOR.message_types_by_name["AnnotateImageResponse"] = _ANNOTATEIMAGERESPONSE +DESCRIPTOR.message_types_by_name[ + "BatchAnnotateImagesRequest" +] = _BATCHANNOTATEIMAGESREQUEST +DESCRIPTOR.message_types_by_name[ + "BatchAnnotateImagesResponse" +] = _BATCHANNOTATEIMAGESRESPONSE +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Feature = _reflection.GeneratedProtocolMessageType('Feature', (_message.Message,), dict( - DESCRIPTOR = _FEATURE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Users describe the type of Google Cloud Vision API tasks to perform over +Feature = _reflection.GeneratedProtocolMessageType( + "Feature", + (_message.Message,), + dict( + DESCRIPTOR=_FEATURE, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Users describe the type of Google Cloud Vision API tasks to perform over images by using *Feature*\ s. Each Feature indicates a type of image detection task to perform. Features encode the Cloud Vision API vertical to operate on and the number of top-scoring results to return. @@ -1439,15 +2242,18 @@ Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Feature) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Feature) + ), +) _sym_db.RegisterMessage(Feature) -ImageSource = _reflection.GeneratedProtocolMessageType('ImageSource', (_message.Message,), dict( - DESCRIPTOR = _IMAGESOURCE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """External image source (Google Cloud Storage image location). +ImageSource = _reflection.GeneratedProtocolMessageType( + "ImageSource", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGESOURCE, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""External image source (Google Cloud Storage image location). Attributes: @@ -1470,15 +2276,18 @@ ``gcs_image_uri`` and ``image_uri`` are specified, ``image_uri`` takes precedence. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageSource) + ), +) _sym_db.RegisterMessage(ImageSource) -Image = _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), dict( - DESCRIPTOR = _IMAGE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Client image to perform Google Cloud Vision API tasks over. +Image = _reflection.GeneratedProtocolMessageType( + "Image", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGE, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Client image to perform Google Cloud Vision API tasks over. Attributes: @@ -1492,17 +2301,22 @@ precedence and is used to perform the image annotation request. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Image) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Image) + ), +) _sym_db.RegisterMessage(Image) -FaceAnnotation = _reflection.GeneratedProtocolMessageType('FaceAnnotation', (_message.Message,), dict( - - Landmark = _reflection.GeneratedProtocolMessageType('Landmark', (_message.Message,), dict( - DESCRIPTOR = _FACEANNOTATION_LANDMARK, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """A face-specific landmark (for example, a face feature). +FaceAnnotation = _reflection.GeneratedProtocolMessageType( + "FaceAnnotation", + (_message.Message,), + dict( + Landmark=_reflection.GeneratedProtocolMessageType( + "Landmark", + (_message.Message,), + dict( + DESCRIPTOR=_FACEANNOTATION_LANDMARK, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""A face-specific landmark (for example, a face feature). Attributes: @@ -1511,13 +2325,12 @@ position: Face landmark position. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) - )) - , - DESCRIPTOR = _FACEANNOTATION, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """A face annotation object contains the results of face detection. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) + ), + ), + DESCRIPTOR=_FACEANNOTATION, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""A face annotation object contains the results of face detection. Attributes: @@ -1570,31 +2383,37 @@ headwear_likelihood: Headwear likelihood. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation) + ), +) _sym_db.RegisterMessage(FaceAnnotation) _sym_db.RegisterMessage(FaceAnnotation.Landmark) -LocationInfo = _reflection.GeneratedProtocolMessageType('LocationInfo', (_message.Message,), dict( - DESCRIPTOR = _LOCATIONINFO, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Detected entity location information. +LocationInfo = _reflection.GeneratedProtocolMessageType( + "LocationInfo", + (_message.Message,), + dict( + DESCRIPTOR=_LOCATIONINFO, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Detected entity location information. Attributes: lat_lng: lat/long location coordinates. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LocationInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LocationInfo) + ), +) _sym_db.RegisterMessage(LocationInfo) -Property = _reflection.GeneratedProtocolMessageType('Property', (_message.Message,), dict( - DESCRIPTOR = _PROPERTY, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """A ``Property`` consists of a user-supplied name/value pair. +Property = _reflection.GeneratedProtocolMessageType( + "Property", + (_message.Message,), + dict( + DESCRIPTOR=_PROPERTY, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""A ``Property`` consists of a user-supplied name/value pair. Attributes: @@ -1605,15 +2424,18 @@ uint64_value: Value of numeric properties. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Property) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Property) + ), +) _sym_db.RegisterMessage(Property) -EntityAnnotation = _reflection.GeneratedProtocolMessageType('EntityAnnotation', (_message.Message,), dict( - DESCRIPTOR = _ENTITYANNOTATION, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of detected entity features. +EntityAnnotation = _reflection.GeneratedProtocolMessageType( + "EntityAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITYANNOTATION, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Set of detected entity features. Attributes: @@ -1656,15 +2478,18 @@ (name/value) fields, such a score or string that qualifies the entity. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.EntityAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.EntityAnnotation) + ), +) _sym_db.RegisterMessage(EntityAnnotation) -SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType('SafeSearchAnnotation', (_message.Message,), dict( - DESCRIPTOR = _SAFESEARCHANNOTATION, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of features pertaining to the image, computed by computer vision +SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( + "SafeSearchAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_SAFESEARCHANNOTATION, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). @@ -1688,15 +2513,18 @@ clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) + ), +) _sym_db.RegisterMessage(SafeSearchAnnotation) -LatLongRect = _reflection.GeneratedProtocolMessageType('LatLongRect', (_message.Message,), dict( - DESCRIPTOR = _LATLONGRECT, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Rectangle determined by min and max ``LatLng`` pairs. +LatLongRect = _reflection.GeneratedProtocolMessageType( + "LatLongRect", + (_message.Message,), + dict( + DESCRIPTOR=_LATLONGRECT, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Rectangle determined by min and max ``LatLng`` pairs. Attributes: @@ -1705,15 +2533,18 @@ max_lat_lng: Max lat/long pair. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LatLongRect) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LatLongRect) + ), +) _sym_db.RegisterMessage(LatLongRect) -ColorInfo = _reflection.GeneratedProtocolMessageType('ColorInfo', (_message.Message,), dict( - DESCRIPTOR = _COLORINFO, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Color information consists of RGB channels, score, and the fraction of +ColorInfo = _reflection.GeneratedProtocolMessageType( + "ColorInfo", + (_message.Message,), + dict( + DESCRIPTOR=_COLORINFO, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. @@ -1726,45 +2557,54 @@ The fraction of pixels the color occupies in the image. Value in range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ColorInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ColorInfo) + ), +) _sym_db.RegisterMessage(ColorInfo) -DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType('DominantColorsAnnotation', (_message.Message,), dict( - DESCRIPTOR = _DOMINANTCOLORSANNOTATION, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of dominant colors and their corresponding scores. +DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType( + "DominantColorsAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_DOMINANTCOLORSANNOTATION, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Set of dominant colors and their corresponding scores. Attributes: colors: RGB color values with their score and pixel fraction. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) + ), +) _sym_db.RegisterMessage(DominantColorsAnnotation) -ImageProperties = _reflection.GeneratedProtocolMessageType('ImageProperties', (_message.Message,), dict( - DESCRIPTOR = _IMAGEPROPERTIES, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Stores image properties, such as dominant colors. +ImageProperties = _reflection.GeneratedProtocolMessageType( + "ImageProperties", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGEPROPERTIES, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Stores image properties, such as dominant colors. Attributes: dominant_colors: If present, dominant colors completed successfully. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageProperties) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageProperties) + ), +) _sym_db.RegisterMessage(ImageProperties) -CropHint = _reflection.GeneratedProtocolMessageType('CropHint', (_message.Message,), dict( - DESCRIPTOR = _CROPHINT, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Single crop hint that is used to generate a new crop when serving an +CropHint = _reflection.GeneratedProtocolMessageType( + "CropHint", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINT, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Single crop hint that is used to generate a new crop when serving an image. @@ -1779,15 +2619,18 @@ Fraction of importance of this salient region with respect to the original image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHint) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHint) + ), +) _sym_db.RegisterMessage(CropHint) -CropHintsAnnotation = _reflection.GeneratedProtocolMessageType('CropHintsAnnotation', (_message.Message,), dict( - DESCRIPTOR = _CROPHINTSANNOTATION, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of crop hints that are used to generate new crops when serving +CropHintsAnnotation = _reflection.GeneratedProtocolMessageType( + "CropHintsAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINTSANNOTATION, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Set of crop hints that are used to generate new crops when serving images. @@ -1795,15 +2638,18 @@ crop_hints: Crop hint results. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsAnnotation) + ), +) _sym_db.RegisterMessage(CropHintsAnnotation) -CropHintsParams = _reflection.GeneratedProtocolMessageType('CropHintsParams', (_message.Message,), dict( - DESCRIPTOR = _CROPHINTSPARAMS, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Parameters for crop hints annotation request. +CropHintsParams = _reflection.GeneratedProtocolMessageType( + "CropHintsParams", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINTSPARAMS, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Parameters for crop hints annotation request. Attributes: @@ -1815,15 +2661,18 @@ number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsParams) + ), +) _sym_db.RegisterMessage(CropHintsParams) -WebDetectionParams = _reflection.GeneratedProtocolMessageType('WebDetectionParams', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTIONPARAMS, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Parameters for web detection request. +WebDetectionParams = _reflection.GeneratedProtocolMessageType( + "WebDetectionParams", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTIONPARAMS, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Parameters for web detection request. Attributes: @@ -1831,15 +2680,18 @@ Whether to include results derived from the geo information in the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetectionParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetectionParams) + ), +) _sym_db.RegisterMessage(WebDetectionParams) -ImageContext = _reflection.GeneratedProtocolMessageType('ImageContext', (_message.Message,), dict( - DESCRIPTOR = _IMAGECONTEXT, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Image context and/or feature-specific parameters. +ImageContext = _reflection.GeneratedProtocolMessageType( + "ImageContext", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGECONTEXT, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Image context and/or feature-specific parameters. Attributes: @@ -1861,15 +2713,18 @@ web_detection_params: Parameters for web detection. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageContext) + ), +) _sym_db.RegisterMessage(ImageContext) -AnnotateImageRequest = _reflection.GeneratedProtocolMessageType('AnnotateImageRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEIMAGEREQUEST, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Request for performing Google Cloud Vision API tasks over a +AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateImageRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEIMAGEREQUEST, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features. @@ -1881,15 +2736,18 @@ image_context: Additional context that may accompany the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageRequest) + ), +) _sym_db.RegisterMessage(AnnotateImageRequest) -AnnotateImageResponse = _reflection.GeneratedProtocolMessageType('AnnotateImageResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEIMAGERESPONSE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to an image annotation request. +AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateImageResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEIMAGERESPONSE, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Response to an image annotation request. Attributes: @@ -1920,15 +2778,18 @@ that filled-in image annotations are guaranteed to be correct, even when ``error`` is set. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageResponse) + ), +) _sym_db.RegisterMessage(AnnotateImageResponse) -BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType('BatchAnnotateImagesRequest', (_message.Message,), dict( - DESCRIPTOR = _BATCHANNOTATEIMAGESREQUEST, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Multiple image annotation requests are batched into a single service +BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( + "BatchAnnotateImagesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Multiple image annotation requests are batched into a single service call. @@ -1936,15 +2797,18 @@ requests: Individual image annotation requests for this batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) + ), +) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) -BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType('BatchAnnotateImagesResponse', (_message.Message,), dict( - DESCRIPTOR = _BATCHANNOTATEIMAGESRESPONSE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to a batch image annotation request. +BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( + "BatchAnnotateImagesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, + __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + __doc__="""Response to a batch image annotation request. Attributes: @@ -1952,35 +2816,45 @@ Individual responses to image annotation requests within the batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) + ), +) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p1beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p1beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001" + ), +) _IMAGEANNOTATOR = _descriptor.ServiceDescriptor( - name='ImageAnnotator', - full_name='google.cloud.vision.v1p1beta1.ImageAnnotator', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=5735, - serialized_end=5933, - methods=[ - _descriptor.MethodDescriptor( - name='BatchAnnotateImages', - full_name='google.cloud.vision.v1p1beta1.ImageAnnotator.BatchAnnotateImages', + name="ImageAnnotator", + full_name="google.cloud.vision.v1p1beta1.ImageAnnotator", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_BATCHANNOTATEIMAGESREQUEST, - output_type=_BATCHANNOTATEIMAGESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037\"\032/v1p1beta1/images:annotate:\001*')), - ), -]) + options=None, + serialized_start=5735, + serialized_end=5933, + methods=[ + _descriptor.MethodDescriptor( + name="BatchAnnotateImages", + full_name="google.cloud.vision.v1p1beta1.ImageAnnotator.BatchAnnotateImages", + index=0, + containing_service=None, + input_type=_BATCHANNOTATEIMAGESREQUEST, + output_type=_BATCHANNOTATEIMAGESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\037"\032/v1p1beta1/images:annotate:\001*'), + ), + ) + ], +) _sym_db.RegisterServiceDescriptor(_IMAGEANNOTATOR) -DESCRIPTOR.services_by_name['ImageAnnotator'] = _IMAGEANNOTATOR +DESCRIPTOR.services_by_name["ImageAnnotator"] = _IMAGEANNOTATOR # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py b/vision/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py index 277708bd6e3be..f945f4db9c14c 100644 --- a/vision/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py @@ -1,50 +1,53 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.vision_v1p1beta1.proto import image_annotator_pb2 as google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2 +from google.cloud.vision_v1p1beta1.proto import ( + image_annotator_pb2 as google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2, +) class ImageAnnotatorStub(object): - """Service that performs Google Cloud Vision API detection tasks over client + """Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.BatchAnnotateImages = channel.unary_unary( - '/google.cloud.vision.v1p1beta1.ImageAnnotator/BatchAnnotateImages', - request_serializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + self.BatchAnnotateImages = channel.unary_unary( + "/google.cloud.vision.v1p1beta1.ImageAnnotator/BatchAnnotateImages", + request_serializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, ) class ImageAnnotatorServicer(object): - """Service that performs Google Cloud Vision API detection tasks over client + """Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images. """ - def BatchAnnotateImages(self, request, context): - """Run image detection and annotation for a batch of images. + def BatchAnnotateImages(self, request, context): + """Run image detection and annotation for a batch of images. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ImageAnnotatorServicer_to_server(servicer, server): - rpc_method_handlers = { - 'BatchAnnotateImages': grpc.unary_unary_rpc_method_handler( - servicer.BatchAnnotateImages, - request_deserializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.vision.v1p1beta1.ImageAnnotator', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "BatchAnnotateImages": grpc.unary_unary_rpc_method_handler( + servicer.BatchAnnotateImages, + request_deserializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString, + ) + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.vision.v1p1beta1.ImageAnnotator", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py b/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py index acde121b9925e..a548640b98aee 100644 --- a/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py +++ b/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py @@ -2,570 +2,897 @@ # source: google/cloud/vision_v1p1beta1/proto/text_annotation.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1p1beta1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2 +from google.cloud.vision_v1p1beta1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p1beta1/proto/text_annotation.proto', - package='google.cloud.vision.v1p1beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/vision_v1p1beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p1beta1/proto/geometry.proto\"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08\"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak\"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p1beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p1beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05\"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p1beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,]) - + name="google/cloud/vision_v1p1beta1/proto/text_annotation.proto", + package="google.cloud.vision.v1p1beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/vision_v1p1beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p1beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p1beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p1beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p1beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + ], +) _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE = _descriptor.EnumDescriptor( - name='BreakType', - full_name='google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPACE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SURE_SPACE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EOL_SURE_SPACE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HYPHEN', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINE_BREAK', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=444, - serialized_end=543, + name="BreakType", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SPACE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SURE_SPACE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EOL_SURE_SPACE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HYPHEN", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LINE_BREAK", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=444, + serialized_end=543, ) _sym_db.RegisterEnumDescriptor(_TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE) _BLOCK_BLOCKTYPE = _descriptor.EnumDescriptor( - name='BlockType', - full_name='google.cloud.vision.v1p1beta1.Block.BlockType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TABLE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PICTURE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RULER', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BARCODE', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1236, - serialized_end=1318, + name="BlockType", + full_name="google.cloud.vision.v1p1beta1.Block.BlockType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TABLE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PICTURE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RULER", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BARCODE", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1236, + serialized_end=1318, ) _sym_db.RegisterEnumDescriptor(_BLOCK_BLOCKTYPE) _TEXTANNOTATION_DETECTEDLANGUAGE = _descriptor.Descriptor( - name='DetectedLanguage', - full_name='google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=259, - serialized_end=320, + name="DetectedLanguage", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=259, + serialized_end=320, ) _TEXTANNOTATION_DETECTEDBREAK = _descriptor.Descriptor( - name='DetectedBreak', - full_name='google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_prefix', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.is_prefix', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=323, - serialized_end=543, + name="DetectedBreak", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_prefix", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.is_prefix", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=323, + serialized_end=543, ) _TEXTANNOTATION_TEXTPROPERTY = _descriptor.Descriptor( - name='TextProperty', - full_name='google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='detected_languages', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.detected_languages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detected_break', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.detected_break', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=546, - serialized_end=737, + name="TextProperty", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="detected_languages", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.detected_languages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detected_break", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.detected_break", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=546, + serialized_end=737, ) _TEXTANNOTATION = _descriptor.Descriptor( - name='TextAnnotation', - full_name='google.cloud.vision.v1p1beta1.TextAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pages', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.pages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.vision.v1p1beta1.TextAnnotation.text', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TEXTANNOTATION_DETECTEDLANGUAGE, _TEXTANNOTATION_DETECTEDBREAK, _TEXTANNOTATION_TEXTPROPERTY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=175, - serialized_end=737, + name="TextAnnotation", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="pages", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.pages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.vision.v1p1beta1.TextAnnotation.text", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _TEXTANNOTATION_DETECTEDLANGUAGE, + _TEXTANNOTATION_DETECTEDBREAK, + _TEXTANNOTATION_TEXTPROPERTY, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=175, + serialized_end=737, ) _PAGE = _descriptor.Descriptor( - name='Page', - full_name='google.cloud.vision.v1p1beta1.Page', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p1beta1.Page.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='width', full_name='google.cloud.vision.v1p1beta1.Page.width', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='height', full_name='google.cloud.vision.v1p1beta1.Page.height', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blocks', full_name='google.cloud.vision.v1p1beta1.Page.blocks', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.Page.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=740, - serialized_end=929, + name="Page", + full_name="google.cloud.vision.v1p1beta1.Page", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p1beta1.Page.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="width", + full_name="google.cloud.vision.v1p1beta1.Page.width", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="height", + full_name="google.cloud.vision.v1p1beta1.Page.height", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blocks", + full_name="google.cloud.vision.v1p1beta1.Page.blocks", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.Page.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=740, + serialized_end=929, ) _BLOCK = _descriptor.Descriptor( - name='Block', - full_name='google.cloud.vision.v1p1beta1.Block', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p1beta1.Block.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p1beta1.Block.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='paragraphs', full_name='google.cloud.vision.v1p1beta1.Block.paragraphs', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='block_type', full_name='google.cloud.vision.v1p1beta1.Block.block_type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.Block.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _BLOCK_BLOCKTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=932, - serialized_end=1318, + name="Block", + full_name="google.cloud.vision.v1p1beta1.Block", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p1beta1.Block.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p1beta1.Block.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="paragraphs", + full_name="google.cloud.vision.v1p1beta1.Block.paragraphs", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="block_type", + full_name="google.cloud.vision.v1p1beta1.Block.block_type", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.Block.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_BLOCK_BLOCKTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=932, + serialized_end=1318, ) _PARAGRAPH = _descriptor.Descriptor( - name='Paragraph', - full_name='google.cloud.vision.v1p1beta1.Paragraph', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p1beta1.Paragraph.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p1beta1.Paragraph.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='words', full_name='google.cloud.vision.v1p1beta1.Paragraph.words', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.Paragraph.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1321, - serialized_end=1549, + name="Paragraph", + full_name="google.cloud.vision.v1p1beta1.Paragraph", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p1beta1.Paragraph.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p1beta1.Paragraph.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="words", + full_name="google.cloud.vision.v1p1beta1.Paragraph.words", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.Paragraph.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1321, + serialized_end=1549, ) _WORD = _descriptor.Descriptor( - name='Word', - full_name='google.cloud.vision.v1p1beta1.Word', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p1beta1.Word.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p1beta1.Word.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='symbols', full_name='google.cloud.vision.v1p1beta1.Word.symbols', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.Word.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1552, - serialized_end=1779, + name="Word", + full_name="google.cloud.vision.v1p1beta1.Word", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p1beta1.Word.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p1beta1.Word.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="symbols", + full_name="google.cloud.vision.v1p1beta1.Word.symbols", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.Word.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1552, + serialized_end=1779, ) _SYMBOL = _descriptor.Descriptor( - name='Symbol', - full_name='google.cloud.vision.v1p1beta1.Symbol', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p1beta1.Symbol.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p1beta1.Symbol.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.vision.v1p1beta1.Symbol.text', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p1beta1.Symbol.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1782, - serialized_end=1969, + name="Symbol", + full_name="google.cloud.vision.v1p1beta1.Symbol", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p1beta1.Symbol.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p1beta1.Symbol.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.vision.v1p1beta1.Symbol.text", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p1beta1.Symbol.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1782, + serialized_end=1969, ) _TEXTANNOTATION_DETECTEDLANGUAGE.containing_type = _TEXTANNOTATION -_TEXTANNOTATION_DETECTEDBREAK.fields_by_name['type'].enum_type = _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE +_TEXTANNOTATION_DETECTEDBREAK.fields_by_name[ + "type" +].enum_type = _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE _TEXTANNOTATION_DETECTEDBREAK.containing_type = _TEXTANNOTATION _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE.containing_type = _TEXTANNOTATION_DETECTEDBREAK -_TEXTANNOTATION_TEXTPROPERTY.fields_by_name['detected_languages'].message_type = _TEXTANNOTATION_DETECTEDLANGUAGE -_TEXTANNOTATION_TEXTPROPERTY.fields_by_name['detected_break'].message_type = _TEXTANNOTATION_DETECTEDBREAK +_TEXTANNOTATION_TEXTPROPERTY.fields_by_name[ + "detected_languages" +].message_type = _TEXTANNOTATION_DETECTEDLANGUAGE +_TEXTANNOTATION_TEXTPROPERTY.fields_by_name[ + "detected_break" +].message_type = _TEXTANNOTATION_DETECTEDBREAK _TEXTANNOTATION_TEXTPROPERTY.containing_type = _TEXTANNOTATION -_TEXTANNOTATION.fields_by_name['pages'].message_type = _PAGE -_PAGE.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_PAGE.fields_by_name['blocks'].message_type = _BLOCK -_BLOCK.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_BLOCK.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_BLOCK.fields_by_name['paragraphs'].message_type = _PARAGRAPH -_BLOCK.fields_by_name['block_type'].enum_type = _BLOCK_BLOCKTYPE +_TEXTANNOTATION.fields_by_name["pages"].message_type = _PAGE +_PAGE.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_PAGE.fields_by_name["blocks"].message_type = _BLOCK +_BLOCK.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_BLOCK.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_BLOCK.fields_by_name["paragraphs"].message_type = _PARAGRAPH +_BLOCK.fields_by_name["block_type"].enum_type = _BLOCK_BLOCKTYPE _BLOCK_BLOCKTYPE.containing_type = _BLOCK -_PARAGRAPH.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_PARAGRAPH.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_PARAGRAPH.fields_by_name['words'].message_type = _WORD -_WORD.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_WORD.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_WORD.fields_by_name['symbols'].message_type = _SYMBOL -_SYMBOL.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_SYMBOL.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -DESCRIPTOR.message_types_by_name['TextAnnotation'] = _TEXTANNOTATION -DESCRIPTOR.message_types_by_name['Page'] = _PAGE -DESCRIPTOR.message_types_by_name['Block'] = _BLOCK -DESCRIPTOR.message_types_by_name['Paragraph'] = _PARAGRAPH -DESCRIPTOR.message_types_by_name['Word'] = _WORD -DESCRIPTOR.message_types_by_name['Symbol'] = _SYMBOL +_PARAGRAPH.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_PARAGRAPH.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_PARAGRAPH.fields_by_name["words"].message_type = _WORD +_WORD.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_WORD.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_WORD.fields_by_name["symbols"].message_type = _SYMBOL +_SYMBOL.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_SYMBOL.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +DESCRIPTOR.message_types_by_name["TextAnnotation"] = _TEXTANNOTATION +DESCRIPTOR.message_types_by_name["Page"] = _PAGE +DESCRIPTOR.message_types_by_name["Block"] = _BLOCK +DESCRIPTOR.message_types_by_name["Paragraph"] = _PARAGRAPH +DESCRIPTOR.message_types_by_name["Word"] = _WORD +DESCRIPTOR.message_types_by_name["Symbol"] = _SYMBOL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TextAnnotation = _reflection.GeneratedProtocolMessageType('TextAnnotation', (_message.Message,), dict( - - DetectedLanguage = _reflection.GeneratedProtocolMessageType('DetectedLanguage', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_DETECTEDLANGUAGE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected language for a structural component. +TextAnnotation = _reflection.GeneratedProtocolMessageType( + "TextAnnotation", + (_message.Message,), + dict( + DetectedLanguage=_reflection.GeneratedProtocolMessageType( + "DetectedLanguage", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_DETECTEDLANGUAGE, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""Detected language for a structural component. Attributes: @@ -576,15 +903,16 @@ confidence: Confidence of detected language. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) - )) - , - - DetectedBreak = _reflection.GeneratedProtocolMessageType('DetectedBreak', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_DETECTEDBREAK, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected start or end of a structural component. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) + ), + ), + DetectedBreak=_reflection.GeneratedProtocolMessageType( + "DetectedBreak", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_DETECTEDBREAK, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""Detected start or end of a structural component. Attributes: @@ -593,15 +921,16 @@ is_prefix: True if break prepends the element. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) - )) - , - - TextProperty = _reflection.GeneratedProtocolMessageType('TextProperty', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_TEXTPROPERTY, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """Additional information detected on the structural component. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) + ), + ), + TextProperty=_reflection.GeneratedProtocolMessageType( + "TextProperty", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_TEXTPROPERTY, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""Additional information detected on the structural component. Attributes: @@ -610,13 +939,12 @@ detected_break: Detected start or end of a text segment. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) - )) - , - DESCRIPTOR = _TEXTANNOTATION, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """TextAnnotation contains a structured representation of OCR extracted + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) + ), + ), + DESCRIPTOR=_TEXTANNOTATION, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own @@ -632,18 +960,21 @@ text: UTF-8 text detected on the pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation) + ), +) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) _sym_db.RegisterMessage(TextAnnotation.DetectedBreak) _sym_db.RegisterMessage(TextAnnotation.TextProperty) -Page = _reflection.GeneratedProtocolMessageType('Page', (_message.Message,), dict( - DESCRIPTOR = _PAGE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected page from OCR. +Page = _reflection.GeneratedProtocolMessageType( + "Page", + (_message.Message,), + dict( + DESCRIPTOR=_PAGE, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""Detected page from OCR. Attributes: @@ -658,15 +989,18 @@ confidence: Confidence of the OCR results on the page. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Page) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Page) + ), +) _sym_db.RegisterMessage(Page) -Block = _reflection.GeneratedProtocolMessageType('Block', (_message.Message,), dict( - DESCRIPTOR = _BLOCK, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """Logical element on the page. +Block = _reflection.GeneratedProtocolMessageType( + "Block", + (_message.Message,), + dict( + DESCRIPTOR=_BLOCK, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""Logical element on the page. Attributes: @@ -690,15 +1024,18 @@ confidence: Confidence of the OCR results on the block. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Block) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Block) + ), +) _sym_db.RegisterMessage(Block) -Paragraph = _reflection.GeneratedProtocolMessageType('Paragraph', (_message.Message,), dict( - DESCRIPTOR = _PARAGRAPH, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """Structural unit of text representing a number of words in certain order. +Paragraph = _reflection.GeneratedProtocolMessageType( + "Paragraph", + (_message.Message,), + dict( + DESCRIPTOR=_PARAGRAPH, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""Structural unit of text representing a number of words in certain order. Attributes: @@ -719,15 +1056,18 @@ confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Paragraph) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Paragraph) + ), +) _sym_db.RegisterMessage(Paragraph) -Word = _reflection.GeneratedProtocolMessageType('Word', (_message.Message,), dict( - DESCRIPTOR = _WORD, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """A word representation. +Word = _reflection.GeneratedProtocolMessageType( + "Word", + (_message.Message,), + dict( + DESCRIPTOR=_WORD, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""A word representation. Attributes: @@ -749,15 +1089,18 @@ confidence: Confidence of the OCR results for the word. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Word) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Word) + ), +) _sym_db.RegisterMessage(Word) -Symbol = _reflection.GeneratedProtocolMessageType('Symbol', (_message.Message,), dict( - DESCRIPTOR = _SYMBOL, - __module__ = 'google.cloud.vision_v1p1beta1.proto.text_annotation_pb2' - , - __doc__ = """A single symbol representation. +Symbol = _reflection.GeneratedProtocolMessageType( + "Symbol", + (_message.Message,), + dict( + DESCRIPTOR=_SYMBOL, + __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + __doc__="""A single symbol representation. Attributes: @@ -778,11 +1121,17 @@ confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Symbol) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Symbol) + ), +) _sym_db.RegisterMessage(Symbol) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p1beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p1beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py b/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py b/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py index 9dae06bb61fdb..f99fdc9488aa4 100644 --- a/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py +++ b/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/vision_v1p1beta1/proto/web_detection.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,279 +19,483 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p1beta1/proto/web_detection.proto', - package='google.cloud.vision.v1p1beta1', - syntax='proto3', - serialized_pb=_b('\n7google/cloud/vision_v1p1beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p1beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p1beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/vision_v1p1beta1/proto/web_detection.proto", + package="google.cloud.vision.v1p1beta1", + syntax="proto3", + serialized_pb=_b( + '\n7google/cloud/vision_v1p1beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p1beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p1beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _WEBDETECTION_WEBENTITY = _descriptor.Descriptor( - name='WebEntity', - full_name='google.cloud.vision.v1p1beta1.WebDetection.WebEntity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebEntity.entity_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebEntity.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebEntity.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=642, - serialized_end=708, + name="WebEntity", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebEntity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebEntity.entity_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebEntity.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebEntity.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=642, + serialized_end=708, ) _WEBDETECTION_WEBIMAGE = _descriptor.Descriptor( - name='WebImage', - full_name='google.cloud.vision.v1p1beta1.WebDetection.WebImage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebImage.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebImage.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=710, - serialized_end=748, + name="WebImage", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebImage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebImage.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebImage.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=710, + serialized_end=748, ) _WEBDETECTION_WEBPAGE = _descriptor.Descriptor( - name='WebPage', - full_name='google.cloud.vision.v1p1beta1.WebDetection.WebPage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebPage.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebPage.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_title', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebPage.page_title', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_matching_images', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebPage.full_matching_images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_matching_images', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebPage.partial_matching_images', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=751, - serialized_end=979, + name="WebPage", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebPage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebPage.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebPage.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_title", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebPage.page_title", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_matching_images", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebPage.full_matching_images", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partial_matching_images", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebPage.partial_matching_images", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=751, + serialized_end=979, ) _WEBDETECTION_WEBLABEL = _descriptor.Descriptor( - name='WebLabel', - full_name='google.cloud.vision.v1p1beta1.WebDetection.WebLabel', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebLabel.label', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.vision.v1p1beta1.WebDetection.WebLabel.language_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=981, - serialized_end=1029, + name="WebLabel", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebLabel", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebLabel.label", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.vision.v1p1beta1.WebDetection.WebLabel.language_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=981, + serialized_end=1029, ) _WEBDETECTION = _descriptor.Descriptor( - name='WebDetection', - full_name='google.cloud.vision.v1p1beta1.WebDetection', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='web_entities', full_name='google.cloud.vision.v1p1beta1.WebDetection.web_entities', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_matching_images', full_name='google.cloud.vision.v1p1beta1.WebDetection.full_matching_images', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_matching_images', full_name='google.cloud.vision.v1p1beta1.WebDetection.partial_matching_images', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pages_with_matching_images', full_name='google.cloud.vision.v1p1beta1.WebDetection.pages_with_matching_images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='visually_similar_images', full_name='google.cloud.vision.v1p1beta1.WebDetection.visually_similar_images', index=4, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='best_guess_labels', full_name='google.cloud.vision.v1p1beta1.WebDetection.best_guess_labels', index=5, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_WEBDETECTION_WEBENTITY, _WEBDETECTION_WEBIMAGE, _WEBDETECTION_WEBPAGE, _WEBDETECTION_WEBLABEL, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=121, - serialized_end=1029, + name="WebDetection", + full_name="google.cloud.vision.v1p1beta1.WebDetection", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="web_entities", + full_name="google.cloud.vision.v1p1beta1.WebDetection.web_entities", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_matching_images", + full_name="google.cloud.vision.v1p1beta1.WebDetection.full_matching_images", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partial_matching_images", + full_name="google.cloud.vision.v1p1beta1.WebDetection.partial_matching_images", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pages_with_matching_images", + full_name="google.cloud.vision.v1p1beta1.WebDetection.pages_with_matching_images", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="visually_similar_images", + full_name="google.cloud.vision.v1p1beta1.WebDetection.visually_similar_images", + index=4, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="best_guess_labels", + full_name="google.cloud.vision.v1p1beta1.WebDetection.best_guess_labels", + index=5, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _WEBDETECTION_WEBENTITY, + _WEBDETECTION_WEBIMAGE, + _WEBDETECTION_WEBPAGE, + _WEBDETECTION_WEBLABEL, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=121, + serialized_end=1029, ) _WEBDETECTION_WEBENTITY.containing_type = _WEBDETECTION _WEBDETECTION_WEBIMAGE.containing_type = _WEBDETECTION -_WEBDETECTION_WEBPAGE.fields_by_name['full_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION_WEBPAGE.fields_by_name['partial_matching_images'].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION_WEBPAGE.fields_by_name[ + "full_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION_WEBPAGE.fields_by_name[ + "partial_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE _WEBDETECTION_WEBPAGE.containing_type = _WEBDETECTION _WEBDETECTION_WEBLABEL.containing_type = _WEBDETECTION -_WEBDETECTION.fields_by_name['web_entities'].message_type = _WEBDETECTION_WEBENTITY -_WEBDETECTION.fields_by_name['full_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['partial_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['pages_with_matching_images'].message_type = _WEBDETECTION_WEBPAGE -_WEBDETECTION.fields_by_name['visually_similar_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['best_guess_labels'].message_type = _WEBDETECTION_WEBLABEL -DESCRIPTOR.message_types_by_name['WebDetection'] = _WEBDETECTION +_WEBDETECTION.fields_by_name["web_entities"].message_type = _WEBDETECTION_WEBENTITY +_WEBDETECTION.fields_by_name[ + "full_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name[ + "partial_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name[ + "pages_with_matching_images" +].message_type = _WEBDETECTION_WEBPAGE +_WEBDETECTION.fields_by_name[ + "visually_similar_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name["best_guess_labels"].message_type = _WEBDETECTION_WEBLABEL +DESCRIPTOR.message_types_by_name["WebDetection"] = _WEBDETECTION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -WebDetection = _reflection.GeneratedProtocolMessageType('WebDetection', (_message.Message,), dict( - - WebEntity = _reflection.GeneratedProtocolMessageType('WebEntity', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBENTITY, - __module__ = 'google.cloud.vision_v1p1beta1.proto.web_detection_pb2' - , - __doc__ = """Entity deduced from similar images on the Internet. +WebDetection = _reflection.GeneratedProtocolMessageType( + "WebDetection", + (_message.Message,), + dict( + WebEntity=_reflection.GeneratedProtocolMessageType( + "WebEntity", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBENTITY, + __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + __doc__="""Entity deduced from similar images on the Internet. Attributes: @@ -301,15 +507,16 @@ description: Canonical description of the entity, in English. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) - )) - , - - WebImage = _reflection.GeneratedProtocolMessageType('WebImage', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBIMAGE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.web_detection_pb2' - , - __doc__ = """Metadata for online images. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) + ), + ), + WebImage=_reflection.GeneratedProtocolMessageType( + "WebImage", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBIMAGE, + __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + __doc__="""Metadata for online images. Attributes: @@ -318,15 +525,16 @@ score: (Deprecated) Overall relevancy score for the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebImage) - )) - , - - WebPage = _reflection.GeneratedProtocolMessageType('WebPage', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBPAGE, - __module__ = 'google.cloud.vision_v1p1beta1.proto.web_detection_pb2' - , - __doc__ = """Metadata for web pages. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebImage) + ), + ), + WebPage=_reflection.GeneratedProtocolMessageType( + "WebPage", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBPAGE, + __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + __doc__="""Metadata for web pages. Attributes: @@ -345,15 +553,16 @@ original image will likely have partial matching for its crops. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebPage) - )) - , - - WebLabel = _reflection.GeneratedProtocolMessageType('WebLabel', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBLABEL, - __module__ = 'google.cloud.vision_v1p1beta1.proto.web_detection_pb2' - , - __doc__ = """Label to provide extra metadata for the web detection. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebPage) + ), + ), + WebLabel=_reflection.GeneratedProtocolMessageType( + "WebLabel", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBLABEL, + __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + __doc__="""Label to provide extra metadata for the web detection. Attributes: @@ -364,13 +573,12 @@ "sr-Latn". For more information, see http://www.unicode.org/re ports/tr35/#Unicode\_locale\_identifier. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) - )) - , - DESCRIPTOR = _WEBDETECTION, - __module__ = 'google.cloud.vision_v1p1beta1.proto.web_detection_pb2' - , - __doc__ = """Relevant information for the image from the Internet. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) + ), + ), + DESCRIPTOR=_WEBDETECTION, + __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + __doc__="""Relevant information for the image from the Internet. Attributes: @@ -391,8 +599,9 @@ best_guess_labels: Best guess text labels for the request image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection) + ), +) _sym_db.RegisterMessage(WebDetection) _sym_db.RegisterMessage(WebDetection.WebEntity) _sym_db.RegisterMessage(WebDetection.WebImage) @@ -401,5 +610,10 @@ DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p1beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p1beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py b/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py b/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py index 8043ba726d2d7..fbc19d312f29d 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py @@ -2,230 +2,325 @@ # source: google/cloud/vision_v1p2beta1/proto/geometry.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p2beta1/proto/geometry.proto', - package='google.cloud.vision.v1p2beta1', - syntax='proto3', - serialized_pb=_b('\n2google/cloud/vision_v1p2beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.NormalizedVertex\"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3') + name="google/cloud/vision_v1p2beta1/proto/geometry.proto", + package="google.cloud.vision.v1p2beta1", + syntax="proto3", + serialized_pb=_b( + '\n2google/cloud/vision_v1p2beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p2beta1"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' + ), ) - - _VERTEX = _descriptor.Descriptor( - name='Vertex', - full_name='google.cloud.vision.v1p2beta1.Vertex', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='x', full_name='google.cloud.vision.v1p2beta1.Vertex.x', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='y', full_name='google.cloud.vision.v1p2beta1.Vertex.y', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=85, - serialized_end=115, + name="Vertex", + full_name="google.cloud.vision.v1p2beta1.Vertex", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="x", + full_name="google.cloud.vision.v1p2beta1.Vertex.x", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="y", + full_name="google.cloud.vision.v1p2beta1.Vertex.y", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=85, + serialized_end=115, ) _NORMALIZEDVERTEX = _descriptor.Descriptor( - name='NormalizedVertex', - full_name='google.cloud.vision.v1p2beta1.NormalizedVertex', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='x', full_name='google.cloud.vision.v1p2beta1.NormalizedVertex.x', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='y', full_name='google.cloud.vision.v1p2beta1.NormalizedVertex.y', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=117, - serialized_end=157, + name="NormalizedVertex", + full_name="google.cloud.vision.v1p2beta1.NormalizedVertex", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="x", + full_name="google.cloud.vision.v1p2beta1.NormalizedVertex.x", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="y", + full_name="google.cloud.vision.v1p2beta1.NormalizedVertex.y", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=117, + serialized_end=157, ) _BOUNDINGPOLY = _descriptor.Descriptor( - name='BoundingPoly', - full_name='google.cloud.vision.v1p2beta1.BoundingPoly', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='vertices', full_name='google.cloud.vision.v1p2beta1.BoundingPoly.vertices', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='normalized_vertices', full_name='google.cloud.vision.v1p2beta1.BoundingPoly.normalized_vertices', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=160, - serialized_end=309, + name="BoundingPoly", + full_name="google.cloud.vision.v1p2beta1.BoundingPoly", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="vertices", + full_name="google.cloud.vision.v1p2beta1.BoundingPoly.vertices", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="normalized_vertices", + full_name="google.cloud.vision.v1p2beta1.BoundingPoly.normalized_vertices", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=160, + serialized_end=309, ) _POSITION = _descriptor.Descriptor( - name='Position', - full_name='google.cloud.vision.v1p2beta1.Position', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='x', full_name='google.cloud.vision.v1p2beta1.Position.x', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='y', full_name='google.cloud.vision.v1p2beta1.Position.y', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='z', full_name='google.cloud.vision.v1p2beta1.Position.z', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=311, - serialized_end=354, + name="Position", + full_name="google.cloud.vision.v1p2beta1.Position", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="x", + full_name="google.cloud.vision.v1p2beta1.Position.x", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="y", + full_name="google.cloud.vision.v1p2beta1.Position.y", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="z", + full_name="google.cloud.vision.v1p2beta1.Position.z", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=311, + serialized_end=354, ) -_BOUNDINGPOLY.fields_by_name['vertices'].message_type = _VERTEX -_BOUNDINGPOLY.fields_by_name['normalized_vertices'].message_type = _NORMALIZEDVERTEX -DESCRIPTOR.message_types_by_name['Vertex'] = _VERTEX -DESCRIPTOR.message_types_by_name['NormalizedVertex'] = _NORMALIZEDVERTEX -DESCRIPTOR.message_types_by_name['BoundingPoly'] = _BOUNDINGPOLY -DESCRIPTOR.message_types_by_name['Position'] = _POSITION +_BOUNDINGPOLY.fields_by_name["vertices"].message_type = _VERTEX +_BOUNDINGPOLY.fields_by_name["normalized_vertices"].message_type = _NORMALIZEDVERTEX +DESCRIPTOR.message_types_by_name["Vertex"] = _VERTEX +DESCRIPTOR.message_types_by_name["NormalizedVertex"] = _NORMALIZEDVERTEX +DESCRIPTOR.message_types_by_name["BoundingPoly"] = _BOUNDINGPOLY +DESCRIPTOR.message_types_by_name["Position"] = _POSITION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Vertex = _reflection.GeneratedProtocolMessageType('Vertex', (_message.Message,), dict( - DESCRIPTOR = _VERTEX, - __module__ = 'google.cloud.vision_v1p2beta1.proto.geometry_pb2' - , - __doc__ = """X coordinate. +Vertex = _reflection.GeneratedProtocolMessageType( + "Vertex", + (_message.Message,), + dict( + DESCRIPTOR=_VERTEX, + __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", + __doc__="""X coordinate. Attributes: y: Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Vertex) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Vertex) + ), +) _sym_db.RegisterMessage(Vertex) -NormalizedVertex = _reflection.GeneratedProtocolMessageType('NormalizedVertex', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDVERTEX, - __module__ = 'google.cloud.vision_v1p2beta1.proto.geometry_pb2' - , - __doc__ = """X coordinate. +NormalizedVertex = _reflection.GeneratedProtocolMessageType( + "NormalizedVertex", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDVERTEX, + __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", + __doc__="""X coordinate. Attributes: y: Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.NormalizedVertex) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.NormalizedVertex) + ), +) _sym_db.RegisterMessage(NormalizedVertex) -BoundingPoly = _reflection.GeneratedProtocolMessageType('BoundingPoly', (_message.Message,), dict( - DESCRIPTOR = _BOUNDINGPOLY, - __module__ = 'google.cloud.vision_v1p2beta1.proto.geometry_pb2' - , - __doc__ = """A bounding polygon for the detected image annotation. +BoundingPoly = _reflection.GeneratedProtocolMessageType( + "BoundingPoly", + (_message.Message,), + dict( + DESCRIPTOR=_BOUNDINGPOLY, + __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", + __doc__="""A bounding polygon for the detected image annotation. Attributes: @@ -234,15 +329,18 @@ normalized_vertices: The bounding polygon normalized vertices. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BoundingPoly) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BoundingPoly) + ), +) _sym_db.RegisterMessage(BoundingPoly) -Position = _reflection.GeneratedProtocolMessageType('Position', (_message.Message,), dict( - DESCRIPTOR = _POSITION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.geometry_pb2' - , - __doc__ = """A 3D position in the image, used primarily for Face detection landmarks. +Position = _reflection.GeneratedProtocolMessageType( + "Position", + (_message.Message,), + dict( + DESCRIPTOR=_POSITION, + __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", + __doc__="""A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. @@ -255,11 +353,17 @@ z: Z coordinate (or depth). """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Position) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Position) + ), +) _sym_db.RegisterMessage(Position) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py b/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py b/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py index 460c839181463..52d8f3c668471 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py @@ -2,23 +2,33 @@ # source: google/cloud/vision_v1p2beta1/proto/image_annotator.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1p2beta1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2 -from google.cloud.vision_v1p2beta1.proto import text_annotation_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_text__annotation__pb2 -from google.cloud.vision_v1p2beta1.proto import web_detection_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_web__detection__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.vision_v1p2beta1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2, +) +from google.cloud.vision_v1p2beta1.proto import ( + text_annotation_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_text__annotation__pb2, +) +from google.cloud.vision_v1p2beta1.proto import ( + web_detection_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_web__detection__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 from google.type import color_pb2 as google_dot_type_dot_color__pb2 @@ -26,48 +36,54 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p2beta1/proto/image_annotator.proto', - package='google.cloud.vision.v1p2beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/vision_v1p2beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto\x1a\x39google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p2beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto\"\xe1\x02\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p2beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t\"\xf6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.ImageSource\"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p2beta1.Position\"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10\"\"4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04\"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p2beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.Property\"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02\"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.ColorInfo\"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p2beta1.DominantColorsAnnotation\"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02\"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.CropHint\"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02\"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08\"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p2beta1.WebDetectionParams\"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p2beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext\":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05\"\x8a\x07\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p2beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p2beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p2beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p2beta1.ImageAnnotationContext\"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse\"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.AnnotateImageRequest\"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse\"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig\"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig\"k\n\x1e\x41syncBatchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest\"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse\"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p2beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t\"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05\"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p2beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf0\x02\n\x0eImageAnnotator\x12\xb3\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1p2beta1/images:annotate:\x01*\x12\xa7\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation\".\x82\xd3\xe4\x93\x02(\"#/v1p2beta1/files:asyncBatchAnnotate:\x01*B\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_text__annotation__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_web__detection__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,google_dot_type_dot_color__pb2.DESCRIPTOR,google_dot_type_dot_latlng__pb2.DESCRIPTOR,]) + name="google/cloud/vision_v1p2beta1/proto/image_annotator.proto", + package="google.cloud.vision.v1p2beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/vision_v1p2beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto\x1a\x39google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p2beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\xe1\x02\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p2beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xf6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p2beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p2beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p2beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p2beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p2beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\x8a\x07\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p2beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p2beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p2beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p2beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.AnnotateImageRequest"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"k\n\x1e\x41syncBatchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p2beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p2beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf0\x02\n\x0eImageAnnotator\x12\xb3\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse"%\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p2beta1/images:annotate:\x01*\x12\xa7\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation".\x82\xd3\xe4\x93\x02("#/v1p2beta1/files:asyncBatchAnnotate:\x01*B\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_text__annotation__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_web__detection__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + google_dot_type_dot_color__pb2.DESCRIPTOR, + google_dot_type_dot_latlng__pb2.DESCRIPTOR, + ], +) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.vision.v1p2beta1.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=7139, - serialized_end=7240, + name="Likelihood", + full_name="google.cloud.vision.v1p2beta1.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=7139, + serialized_end=7240, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -81,1825 +97,2822 @@ _FEATURE_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.vision.v1p2beta1.Feature.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FACE_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LANDMARK_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOGO_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT_DETECTION', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DOCUMENT_TEXT_DETECTION', index=6, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SAFE_SEARCH_DETECTION', index=7, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE_PROPERTIES', index=8, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CROP_HINTS', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEB_DETECTION', index=10, number=10, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=544, - serialized_end=790, + name="Type", + full_name="google.cloud.vision.v1p2beta1.Feature.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FACE_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LANDMARK_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOGO_DETECTION", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT_DETECTION", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DOCUMENT_TEXT_DETECTION", index=6, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SAFE_SEARCH_DETECTION", index=7, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE_PROPERTIES", index=8, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CROP_HINTS", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WEB_DETECTION", index=10, number=10, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=544, + serialized_end=790, ) _sym_db.RegisterEnumDescriptor(_FEATURE_TYPE) _FACEANNOTATION_LANDMARK_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_LANDMARK', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_OF_LEFT_EYEBROW', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_OF_LEFT_EYEBROW', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_OF_RIGHT_EYEBROW', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_OF_RIGHT_EYEBROW', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MIDPOINT_BETWEEN_EYES', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_TIP', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPPER_LIP', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOWER_LIP', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_LEFT', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_RIGHT', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_CENTER', index=13, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_RIGHT', index=14, number=14, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_LEFT', index=15, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_CENTER', index=16, number=16, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_TOP_BOUNDARY', index=17, number=17, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_RIGHT_CORNER', index=18, number=18, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_BOTTOM_BOUNDARY', index=19, number=19, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_LEFT_CORNER', index=20, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_TOP_BOUNDARY', index=21, number=21, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_RIGHT_CORNER', index=22, number=22, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_BOTTOM_BOUNDARY', index=23, number=23, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_LEFT_CORNER', index=24, number=24, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYEBROW_UPPER_MIDPOINT', index=25, number=25, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYEBROW_UPPER_MIDPOINT', index=26, number=26, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EAR_TRAGION', index=27, number=27, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EAR_TRAGION', index=28, number=28, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_PUPIL', index=29, number=29, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_PUPIL', index=30, number=30, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FOREHEAD_GLABELLA', index=31, number=31, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_GNATHION', index=32, number=32, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_LEFT_GONION', index=33, number=33, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_RIGHT_GONION', index=34, number=34, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1935, - serialized_end=2755, + name="Type", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN_LANDMARK", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_OF_LEFT_EYEBROW", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_OF_LEFT_EYEBROW", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_OF_RIGHT_EYEBROW", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_OF_RIGHT_EYEBROW", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MIDPOINT_BETWEEN_EYES", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_TIP", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPPER_LIP", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOWER_LIP", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_LEFT", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_RIGHT", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_CENTER", index=13, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_RIGHT", index=14, number=14, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_LEFT", index=15, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_CENTER", index=16, number=16, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_TOP_BOUNDARY", index=17, number=17, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_RIGHT_CORNER", index=18, number=18, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_BOTTOM_BOUNDARY", + index=19, + number=19, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_LEFT_CORNER", index=20, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_TOP_BOUNDARY", index=21, number=21, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_RIGHT_CORNER", index=22, number=22, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_BOTTOM_BOUNDARY", + index=23, + number=23, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_LEFT_CORNER", index=24, number=24, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYEBROW_UPPER_MIDPOINT", + index=25, + number=25, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYEBROW_UPPER_MIDPOINT", + index=26, + number=26, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EAR_TRAGION", index=27, number=27, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EAR_TRAGION", index=28, number=28, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_PUPIL", index=29, number=29, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_PUPIL", index=30, number=30, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FOREHEAD_GLABELLA", index=31, number=31, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_GNATHION", index=32, number=32, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_LEFT_GONION", index=33, number=33, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_RIGHT_GONION", index=34, number=34, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1935, + serialized_end=2755, ) _sym_db.RegisterEnumDescriptor(_FACEANNOTATION_LANDMARK_TYPE) _OPERATIONMETADATA_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.vision.v1p2beta1.OperationMetadata.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELLED', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=7056, - serialized_end=7137, + name="State", + full_name="google.cloud.vision.v1p2beta1.OperationMetadata.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=7056, + serialized_end=7137, ) _sym_db.RegisterEnumDescriptor(_OPERATIONMETADATA_STATE) _FEATURE = _descriptor.Descriptor( - name='Feature', - full_name='google.cloud.vision.v1p2beta1.Feature', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p2beta1.Feature.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_results', full_name='google.cloud.vision.v1p2beta1.Feature.max_results', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.vision.v1p2beta1.Feature.model', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEATURE_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=437, - serialized_end=790, + name="Feature", + full_name="google.cloud.vision.v1p2beta1.Feature", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p2beta1.Feature.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_results", + full_name="google.cloud.vision.v1p2beta1.Feature.max_results", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.vision.v1p2beta1.Feature.model", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_FEATURE_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=437, + serialized_end=790, ) _IMAGESOURCE = _descriptor.Descriptor( - name='ImageSource', - full_name='google.cloud.vision.v1p2beta1.ImageSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_image_uri', full_name='google.cloud.vision.v1p2beta1.ImageSource.gcs_image_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_uri', full_name='google.cloud.vision.v1p2beta1.ImageSource.image_uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=792, - serialized_end=847, + name="ImageSource", + full_name="google.cloud.vision.v1p2beta1.ImageSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_image_uri", + full_name="google.cloud.vision.v1p2beta1.ImageSource.gcs_image_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_uri", + full_name="google.cloud.vision.v1p2beta1.ImageSource.image_uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=792, + serialized_end=847, ) _IMAGE = _descriptor.Descriptor( - name='Image', - full_name='google.cloud.vision.v1p2beta1.Image', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.vision.v1p2beta1.Image.content', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source', full_name='google.cloud.vision.v1p2beta1.Image.source', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=849, - serialized_end=933, + name="Image", + full_name="google.cloud.vision.v1p2beta1.Image", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.vision.v1p2beta1.Image.content", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source", + full_name="google.cloud.vision.v1p2beta1.Image.source", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=849, + serialized_end=933, ) _FACEANNOTATION_LANDMARK = _descriptor.Descriptor( - name='Landmark', - full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.type', index=0, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='position', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.position', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FACEANNOTATION_LANDMARK_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1788, - serialized_end=2755, + name="Landmark", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.type", + index=0, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="position", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.position", + index=1, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_FACEANNOTATION_LANDMARK_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1788, + serialized_end=2755, ) _FACEANNOTATION = _descriptor.Descriptor( - name='FaceAnnotation', - full_name='google.cloud.vision.v1p2beta1.FaceAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.bounding_poly', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='fd_bounding_poly', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.fd_bounding_poly', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmarks', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.landmarks', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='roll_angle', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.roll_angle', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pan_angle', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.pan_angle', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tilt_angle', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.tilt_angle', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detection_confidence', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.detection_confidence', index=6, - number=7, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmarking_confidence', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.landmarking_confidence', index=7, - number=8, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='joy_likelihood', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.joy_likelihood', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sorrow_likelihood', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.sorrow_likelihood', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='anger_likelihood', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.anger_likelihood', index=10, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='surprise_likelihood', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.surprise_likelihood', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='under_exposed_likelihood', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.under_exposed_likelihood', index=12, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blurred_likelihood', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.blurred_likelihood', index=13, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headwear_likelihood', full_name='google.cloud.vision.v1p2beta1.FaceAnnotation.headwear_likelihood', index=14, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_FACEANNOTATION_LANDMARK, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=936, - serialized_end=2755, + name="FaceAnnotation", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.bounding_poly", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="fd_bounding_poly", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.fd_bounding_poly", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmarks", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.landmarks", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="roll_angle", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.roll_angle", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pan_angle", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.pan_angle", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tilt_angle", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.tilt_angle", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detection_confidence", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.detection_confidence", + index=6, + number=7, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmarking_confidence", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.landmarking_confidence", + index=7, + number=8, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="joy_likelihood", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.joy_likelihood", + index=8, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sorrow_likelihood", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.sorrow_likelihood", + index=9, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="anger_likelihood", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.anger_likelihood", + index=10, + number=11, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="surprise_likelihood", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.surprise_likelihood", + index=11, + number=12, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="under_exposed_likelihood", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.under_exposed_likelihood", + index=12, + number=13, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blurred_likelihood", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.blurred_likelihood", + index=13, + number=14, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headwear_likelihood", + full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.headwear_likelihood", + index=14, + number=15, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_FACEANNOTATION_LANDMARK], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=936, + serialized_end=2755, ) _LOCATIONINFO = _descriptor.Descriptor( - name='LocationInfo', - full_name='google.cloud.vision.v1p2beta1.LocationInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='lat_lng', full_name='google.cloud.vision.v1p2beta1.LocationInfo.lat_lng', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2757, - serialized_end=2809, + name="LocationInfo", + full_name="google.cloud.vision.v1p2beta1.LocationInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="lat_lng", + full_name="google.cloud.vision.v1p2beta1.LocationInfo.lat_lng", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2757, + serialized_end=2809, ) _PROPERTY = _descriptor.Descriptor( - name='Property', - full_name='google.cloud.vision.v1p2beta1.Property', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p2beta1.Property.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.vision.v1p2beta1.Property.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uint64_value', full_name='google.cloud.vision.v1p2beta1.Property.uint64_value', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2811, - serialized_end=2872, + name="Property", + full_name="google.cloud.vision.v1p2beta1.Property", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p2beta1.Property.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.vision.v1p2beta1.Property.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uint64_value", + full_name="google.cloud.vision.v1p2beta1.Property.uint64_value", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2811, + serialized_end=2872, ) _ENTITYANNOTATION = _descriptor.Descriptor( - name='EntityAnnotation', - full_name='google.cloud.vision.v1p2beta1.EntityAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mid', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.mid', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locale', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.locale', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.score', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topicality', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.topicality', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.bounding_poly', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locations', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.locations', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.vision.v1p2beta1.EntityAnnotation.properties', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2875, - serialized_end=3191, + name="EntityAnnotation", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="mid", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.mid", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locale", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.locale", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.score", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="topicality", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.topicality", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.bounding_poly", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locations", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.locations", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.vision.v1p2beta1.EntityAnnotation.properties", + index=8, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2875, + serialized_end=3191, ) _SAFESEARCHANNOTATION = _descriptor.Descriptor( - name='SafeSearchAnnotation', - full_name='google.cloud.vision.v1p2beta1.SafeSearchAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='adult', full_name='google.cloud.vision.v1p2beta1.SafeSearchAnnotation.adult', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spoof', full_name='google.cloud.vision.v1p2beta1.SafeSearchAnnotation.spoof', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='medical', full_name='google.cloud.vision.v1p2beta1.SafeSearchAnnotation.medical', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='violence', full_name='google.cloud.vision.v1p2beta1.SafeSearchAnnotation.violence', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='racy', full_name='google.cloud.vision.v1p2beta1.SafeSearchAnnotation.racy', index=4, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3194, - serialized_end=3510, + name="SafeSearchAnnotation", + full_name="google.cloud.vision.v1p2beta1.SafeSearchAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="adult", + full_name="google.cloud.vision.v1p2beta1.SafeSearchAnnotation.adult", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spoof", + full_name="google.cloud.vision.v1p2beta1.SafeSearchAnnotation.spoof", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="medical", + full_name="google.cloud.vision.v1p2beta1.SafeSearchAnnotation.medical", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="violence", + full_name="google.cloud.vision.v1p2beta1.SafeSearchAnnotation.violence", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="racy", + full_name="google.cloud.vision.v1p2beta1.SafeSearchAnnotation.racy", + index=4, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3194, + serialized_end=3510, ) _LATLONGRECT = _descriptor.Descriptor( - name='LatLongRect', - full_name='google.cloud.vision.v1p2beta1.LatLongRect', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='min_lat_lng', full_name='google.cloud.vision.v1p2beta1.LatLongRect.min_lat_lng', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_lat_lng', full_name='google.cloud.vision.v1p2beta1.LatLongRect.max_lat_lng', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3512, - serialized_end=3609, + name="LatLongRect", + full_name="google.cloud.vision.v1p2beta1.LatLongRect", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="min_lat_lng", + full_name="google.cloud.vision.v1p2beta1.LatLongRect.min_lat_lng", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_lat_lng", + full_name="google.cloud.vision.v1p2beta1.LatLongRect.max_lat_lng", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3512, + serialized_end=3609, ) _COLORINFO = _descriptor.Descriptor( - name='ColorInfo', - full_name='google.cloud.vision.v1p2beta1.ColorInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='color', full_name='google.cloud.vision.v1p2beta1.ColorInfo.color', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p2beta1.ColorInfo.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pixel_fraction', full_name='google.cloud.vision.v1p2beta1.ColorInfo.pixel_fraction', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3611, - serialized_end=3696, + name="ColorInfo", + full_name="google.cloud.vision.v1p2beta1.ColorInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="color", + full_name="google.cloud.vision.v1p2beta1.ColorInfo.color", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p2beta1.ColorInfo.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pixel_fraction", + full_name="google.cloud.vision.v1p2beta1.ColorInfo.pixel_fraction", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3611, + serialized_end=3696, ) _DOMINANTCOLORSANNOTATION = _descriptor.Descriptor( - name='DominantColorsAnnotation', - full_name='google.cloud.vision.v1p2beta1.DominantColorsAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='colors', full_name='google.cloud.vision.v1p2beta1.DominantColorsAnnotation.colors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3698, - serialized_end=3782, + name="DominantColorsAnnotation", + full_name="google.cloud.vision.v1p2beta1.DominantColorsAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="colors", + full_name="google.cloud.vision.v1p2beta1.DominantColorsAnnotation.colors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3698, + serialized_end=3782, ) _IMAGEPROPERTIES = _descriptor.Descriptor( - name='ImageProperties', - full_name='google.cloud.vision.v1p2beta1.ImageProperties', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='dominant_colors', full_name='google.cloud.vision.v1p2beta1.ImageProperties.dominant_colors', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3784, - serialized_end=3883, + name="ImageProperties", + full_name="google.cloud.vision.v1p2beta1.ImageProperties", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="dominant_colors", + full_name="google.cloud.vision.v1p2beta1.ImageProperties.dominant_colors", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3784, + serialized_end=3883, ) _CROPHINT = _descriptor.Descriptor( - name='CropHint', - full_name='google.cloud.vision.v1p2beta1.CropHint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p2beta1.CropHint.bounding_poly', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.CropHint.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='importance_fraction', full_name='google.cloud.vision.v1p2beta1.CropHint.importance_fraction', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3885, - serialized_end=4012, + name="CropHint", + full_name="google.cloud.vision.v1p2beta1.CropHint", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p2beta1.CropHint.bounding_poly", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.CropHint.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="importance_fraction", + full_name="google.cloud.vision.v1p2beta1.CropHint.importance_fraction", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3885, + serialized_end=4012, ) _CROPHINTSANNOTATION = _descriptor.Descriptor( - name='CropHintsAnnotation', - full_name='google.cloud.vision.v1p2beta1.CropHintsAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crop_hints', full_name='google.cloud.vision.v1p2beta1.CropHintsAnnotation.crop_hints', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4014, - serialized_end=4096, + name="CropHintsAnnotation", + full_name="google.cloud.vision.v1p2beta1.CropHintsAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crop_hints", + full_name="google.cloud.vision.v1p2beta1.CropHintsAnnotation.crop_hints", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4014, + serialized_end=4096, ) _CROPHINTSPARAMS = _descriptor.Descriptor( - name='CropHintsParams', - full_name='google.cloud.vision.v1p2beta1.CropHintsParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='aspect_ratios', full_name='google.cloud.vision.v1p2beta1.CropHintsParams.aspect_ratios', index=0, - number=1, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4098, - serialized_end=4138, + name="CropHintsParams", + full_name="google.cloud.vision.v1p2beta1.CropHintsParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="aspect_ratios", + full_name="google.cloud.vision.v1p2beta1.CropHintsParams.aspect_ratios", + index=0, + number=1, + type=2, + cpp_type=6, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4098, + serialized_end=4138, ) _WEBDETECTIONPARAMS = _descriptor.Descriptor( - name='WebDetectionParams', - full_name='google.cloud.vision.v1p2beta1.WebDetectionParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='include_geo_results', full_name='google.cloud.vision.v1p2beta1.WebDetectionParams.include_geo_results', index=0, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4140, - serialized_end=4189, + name="WebDetectionParams", + full_name="google.cloud.vision.v1p2beta1.WebDetectionParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="include_geo_results", + full_name="google.cloud.vision.v1p2beta1.WebDetectionParams.include_geo_results", + index=0, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4140, + serialized_end=4189, ) _IMAGECONTEXT = _descriptor.Descriptor( - name='ImageContext', - full_name='google.cloud.vision.v1p2beta1.ImageContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='lat_long_rect', full_name='google.cloud.vision.v1p2beta1.ImageContext.lat_long_rect', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_hints', full_name='google.cloud.vision.v1p2beta1.ImageContext.language_hints', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crop_hints_params', full_name='google.cloud.vision.v1p2beta1.ImageContext.crop_hints_params', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='web_detection_params', full_name='google.cloud.vision.v1p2beta1.ImageContext.web_detection_params', index=3, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4192, - serialized_end=4453, + name="ImageContext", + full_name="google.cloud.vision.v1p2beta1.ImageContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="lat_long_rect", + full_name="google.cloud.vision.v1p2beta1.ImageContext.lat_long_rect", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_hints", + full_name="google.cloud.vision.v1p2beta1.ImageContext.language_hints", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crop_hints_params", + full_name="google.cloud.vision.v1p2beta1.ImageContext.crop_hints_params", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="web_detection_params", + full_name="google.cloud.vision.v1p2beta1.ImageContext.web_detection_params", + index=3, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4192, + serialized_end=4453, ) _ANNOTATEIMAGEREQUEST = _descriptor.Descriptor( - name='AnnotateImageRequest', - full_name='google.cloud.vision.v1p2beta1.AnnotateImageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image', full_name='google.cloud.vision.v1p2beta1.AnnotateImageRequest.image', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.vision.v1p2beta1.AnnotateImageRequest.features', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_context', full_name='google.cloud.vision.v1p2beta1.AnnotateImageRequest.image_context', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4456, - serialized_end=4657, + name="AnnotateImageRequest", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageRequest.image", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageRequest.features", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_context", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageRequest.image_context", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4456, + serialized_end=4657, ) _IMAGEANNOTATIONCONTEXT = _descriptor.Descriptor( - name='ImageAnnotationContext', - full_name='google.cloud.vision.v1p2beta1.ImageAnnotationContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.vision.v1p2beta1.ImageAnnotationContext.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_number', full_name='google.cloud.vision.v1p2beta1.ImageAnnotationContext.page_number', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4659, - serialized_end=4717, + name="ImageAnnotationContext", + full_name="google.cloud.vision.v1p2beta1.ImageAnnotationContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.vision.v1p2beta1.ImageAnnotationContext.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_number", + full_name="google.cloud.vision.v1p2beta1.ImageAnnotationContext.page_number", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4659, + serialized_end=4717, ) _ANNOTATEIMAGERESPONSE = _descriptor.Descriptor( - name='AnnotateImageResponse', - full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='face_annotations', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.face_annotations', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmark_annotations', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.landmark_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logo_annotations', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.logo_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_annotations', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.label_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_annotations', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.text_annotations', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_text_annotation', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.full_text_annotation', index=5, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='safe_search_annotation', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.safe_search_annotation', index=6, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_properties_annotation', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.image_properties_annotation', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crop_hints_annotation', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.crop_hints_annotation', index=8, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='web_detection', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.web_detection', index=9, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.error', index=10, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='context', full_name='google.cloud.vision.v1p2beta1.AnnotateImageResponse.context', index=11, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4720, - serialized_end=5626, + name="AnnotateImageResponse", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="face_annotations", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.face_annotations", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmark_annotations", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.landmark_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logo_annotations", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.logo_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_annotations", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.label_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_annotations", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.text_annotations", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_text_annotation", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.full_text_annotation", + index=5, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="safe_search_annotation", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.safe_search_annotation", + index=6, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_properties_annotation", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.image_properties_annotation", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crop_hints_annotation", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.crop_hints_annotation", + index=8, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="web_detection", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.web_detection", + index=9, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.error", + index=10, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="context", + full_name="google.cloud.vision.v1p2beta1.AnnotateImageResponse.context", + index=11, + number=21, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4720, + serialized_end=5626, ) _ANNOTATEFILERESPONSE = _descriptor.Descriptor( - name='AnnotateFileResponse', - full_name='google.cloud.vision.v1p2beta1.AnnotateFileResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_config', full_name='google.cloud.vision.v1p2beta1.AnnotateFileResponse.input_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='responses', full_name='google.cloud.vision.v1p2beta1.AnnotateFileResponse.responses', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5629, - serialized_end=5790, + name="AnnotateFileResponse", + full_name="google.cloud.vision.v1p2beta1.AnnotateFileResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_config", + full_name="google.cloud.vision.v1p2beta1.AnnotateFileResponse.input_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="responses", + full_name="google.cloud.vision.v1p2beta1.AnnotateFileResponse.responses", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5629, + serialized_end=5790, ) _BATCHANNOTATEIMAGESREQUEST = _descriptor.Descriptor( - name='BatchAnnotateImagesRequest', - full_name='google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='requests', full_name='google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.requests', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5792, - serialized_end=5891, + name="BatchAnnotateImagesRequest", + full_name="google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="requests", + full_name="google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.requests", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5792, + serialized_end=5891, ) _BATCHANNOTATEIMAGESRESPONSE = _descriptor.Descriptor( - name='BatchAnnotateImagesResponse', - full_name='google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='responses', full_name='google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.responses', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5893, - serialized_end=5995, + name="BatchAnnotateImagesResponse", + full_name="google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="responses", + full_name="google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.responses", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5893, + serialized_end=5995, ) _ASYNCANNOTATEFILEREQUEST = _descriptor.Descriptor( - name='AsyncAnnotateFileRequest', - full_name='google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_config', full_name='google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.input_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.features', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_context', full_name='google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.image_context', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_config', full_name='google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.output_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5998, - serialized_end=6284, + name="AsyncAnnotateFileRequest", + full_name="google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_config", + full_name="google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.input_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.features", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_context", + full_name="google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.image_context", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.output_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5998, + serialized_end=6284, ) _ASYNCANNOTATEFILERESPONSE = _descriptor.Descriptor( - name='AsyncAnnotateFileResponse', - full_name='google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='output_config', full_name='google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.output_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6286, - serialized_end=6381, + name="AsyncAnnotateFileResponse", + full_name="google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.output_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6286, + serialized_end=6381, ) _ASYNCBATCHANNOTATEFILESREQUEST = _descriptor.Descriptor( - name='AsyncBatchAnnotateFilesRequest', - full_name='google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='requests', full_name='google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.requests', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6383, - serialized_end=6490, + name="AsyncBatchAnnotateFilesRequest", + full_name="google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="requests", + full_name="google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.requests", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6383, + serialized_end=6490, ) _ASYNCBATCHANNOTATEFILESRESPONSE = _descriptor.Descriptor( - name='AsyncBatchAnnotateFilesResponse', - full_name='google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='responses', full_name='google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.responses', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6492, - serialized_end=6602, + name="AsyncBatchAnnotateFilesResponse", + full_name="google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="responses", + full_name="google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.responses", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6492, + serialized_end=6602, ) _INPUTCONFIG = _descriptor.Descriptor( - name='InputConfig', - full_name='google.cloud.vision.v1p2beta1.InputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_source', full_name='google.cloud.vision.v1p2beta1.InputConfig.gcs_source', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.cloud.vision.v1p2beta1.InputConfig.mime_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6604, - serialized_end=6698, + name="InputConfig", + full_name="google.cloud.vision.v1p2beta1.InputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_source", + full_name="google.cloud.vision.v1p2beta1.InputConfig.gcs_source", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mime_type", + full_name="google.cloud.vision.v1p2beta1.InputConfig.mime_type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6604, + serialized_end=6698, ) _OUTPUTCONFIG = _descriptor.Descriptor( - name='OutputConfig', - full_name='google.cloud.vision.v1p2beta1.OutputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_destination', full_name='google.cloud.vision.v1p2beta1.OutputConfig.gcs_destination', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='batch_size', full_name='google.cloud.vision.v1p2beta1.OutputConfig.batch_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6700, - serialized_end=6806, + name="OutputConfig", + full_name="google.cloud.vision.v1p2beta1.OutputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_destination", + full_name="google.cloud.vision.v1p2beta1.OutputConfig.gcs_destination", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="batch_size", + full_name="google.cloud.vision.v1p2beta1.OutputConfig.batch_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6700, + serialized_end=6806, ) _GCSSOURCE = _descriptor.Descriptor( - name='GcsSource', - full_name='google.cloud.vision.v1p2beta1.GcsSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.vision.v1p2beta1.GcsSource.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6808, - serialized_end=6832, + name="GcsSource", + full_name="google.cloud.vision.v1p2beta1.GcsSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.vision.v1p2beta1.GcsSource.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6808, + serialized_end=6832, ) _GCSDESTINATION = _descriptor.Descriptor( - name='GcsDestination', - full_name='google.cloud.vision.v1p2beta1.GcsDestination', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.vision.v1p2beta1.GcsDestination.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6834, - serialized_end=6863, + name="GcsDestination", + full_name="google.cloud.vision.v1p2beta1.GcsDestination", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.vision.v1p2beta1.GcsDestination.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6834, + serialized_end=6863, ) _OPERATIONMETADATA = _descriptor.Descriptor( - name='OperationMetadata', - full_name='google.cloud.vision.v1p2beta1.OperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.vision.v1p2beta1.OperationMetadata.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.vision.v1p2beta1.OperationMetadata.create_time', index=1, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.vision.v1p2beta1.OperationMetadata.update_time', index=2, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _OPERATIONMETADATA_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6866, - serialized_end=7137, -) - -_FEATURE.fields_by_name['type'].enum_type = _FEATURE_TYPE + name="OperationMetadata", + full_name="google.cloud.vision.v1p2beta1.OperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.vision.v1p2beta1.OperationMetadata.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.vision.v1p2beta1.OperationMetadata.create_time", + index=1, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.vision.v1p2beta1.OperationMetadata.update_time", + index=2, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_OPERATIONMETADATA_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6866, + serialized_end=7137, +) + +_FEATURE.fields_by_name["type"].enum_type = _FEATURE_TYPE _FEATURE_TYPE.containing_type = _FEATURE -_IMAGE.fields_by_name['source'].message_type = _IMAGESOURCE -_FACEANNOTATION_LANDMARK.fields_by_name['type'].enum_type = _FACEANNOTATION_LANDMARK_TYPE -_FACEANNOTATION_LANDMARK.fields_by_name['position'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._POSITION +_IMAGE.fields_by_name["source"].message_type = _IMAGESOURCE +_FACEANNOTATION_LANDMARK.fields_by_name[ + "type" +].enum_type = _FACEANNOTATION_LANDMARK_TYPE +_FACEANNOTATION_LANDMARK.fields_by_name[ + "position" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._POSITION +) _FACEANNOTATION_LANDMARK.containing_type = _FACEANNOTATION _FACEANNOTATION_LANDMARK_TYPE.containing_type = _FACEANNOTATION_LANDMARK -_FACEANNOTATION.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_FACEANNOTATION.fields_by_name['fd_bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_FACEANNOTATION.fields_by_name['landmarks'].message_type = _FACEANNOTATION_LANDMARK -_FACEANNOTATION.fields_by_name['joy_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['sorrow_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['anger_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['surprise_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['under_exposed_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['blurred_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['headwear_likelihood'].enum_type = _LIKELIHOOD -_LOCATIONINFO.fields_by_name['lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_ENTITYANNOTATION.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_ENTITYANNOTATION.fields_by_name['locations'].message_type = _LOCATIONINFO -_ENTITYANNOTATION.fields_by_name['properties'].message_type = _PROPERTY -_SAFESEARCHANNOTATION.fields_by_name['adult'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['spoof'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['medical'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['violence'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['racy'].enum_type = _LIKELIHOOD -_LATLONGRECT.fields_by_name['min_lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_LATLONGRECT.fields_by_name['max_lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_COLORINFO.fields_by_name['color'].message_type = google_dot_type_dot_color__pb2._COLOR -_DOMINANTCOLORSANNOTATION.fields_by_name['colors'].message_type = _COLORINFO -_IMAGEPROPERTIES.fields_by_name['dominant_colors'].message_type = _DOMINANTCOLORSANNOTATION -_CROPHINT.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_CROPHINTSANNOTATION.fields_by_name['crop_hints'].message_type = _CROPHINT -_IMAGECONTEXT.fields_by_name['lat_long_rect'].message_type = _LATLONGRECT -_IMAGECONTEXT.fields_by_name['crop_hints_params'].message_type = _CROPHINTSPARAMS -_IMAGECONTEXT.fields_by_name['web_detection_params'].message_type = _WEBDETECTIONPARAMS -_ANNOTATEIMAGEREQUEST.fields_by_name['image'].message_type = _IMAGE -_ANNOTATEIMAGEREQUEST.fields_by_name['features'].message_type = _FEATURE -_ANNOTATEIMAGEREQUEST.fields_by_name['image_context'].message_type = _IMAGECONTEXT -_ANNOTATEIMAGERESPONSE.fields_by_name['face_annotations'].message_type = _FACEANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['landmark_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['logo_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['label_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['text_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['full_text_annotation'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_text__annotation__pb2._TEXTANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['safe_search_annotation'].message_type = _SAFESEARCHANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['image_properties_annotation'].message_type = _IMAGEPROPERTIES -_ANNOTATEIMAGERESPONSE.fields_by_name['crop_hints_annotation'].message_type = _CROPHINTSANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['web_detection'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_web__detection__pb2._WEBDETECTION -_ANNOTATEIMAGERESPONSE.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ANNOTATEIMAGERESPONSE.fields_by_name['context'].message_type = _IMAGEANNOTATIONCONTEXT -_ANNOTATEFILERESPONSE.fields_by_name['input_config'].message_type = _INPUTCONFIG -_ANNOTATEFILERESPONSE.fields_by_name['responses'].message_type = _ANNOTATEIMAGERESPONSE -_BATCHANNOTATEIMAGESREQUEST.fields_by_name['requests'].message_type = _ANNOTATEIMAGEREQUEST -_BATCHANNOTATEIMAGESRESPONSE.fields_by_name['responses'].message_type = _ANNOTATEIMAGERESPONSE -_ASYNCANNOTATEFILEREQUEST.fields_by_name['input_config'].message_type = _INPUTCONFIG -_ASYNCANNOTATEFILEREQUEST.fields_by_name['features'].message_type = _FEATURE -_ASYNCANNOTATEFILEREQUEST.fields_by_name['image_context'].message_type = _IMAGECONTEXT -_ASYNCANNOTATEFILEREQUEST.fields_by_name['output_config'].message_type = _OUTPUTCONFIG -_ASYNCANNOTATEFILERESPONSE.fields_by_name['output_config'].message_type = _OUTPUTCONFIG -_ASYNCBATCHANNOTATEFILESREQUEST.fields_by_name['requests'].message_type = _ASYNCANNOTATEFILEREQUEST -_ASYNCBATCHANNOTATEFILESRESPONSE.fields_by_name['responses'].message_type = _ASYNCANNOTATEFILERESPONSE -_INPUTCONFIG.fields_by_name['gcs_source'].message_type = _GCSSOURCE -_OUTPUTCONFIG.fields_by_name['gcs_destination'].message_type = _GCSDESTINATION -_OPERATIONMETADATA.fields_by_name['state'].enum_type = _OPERATIONMETADATA_STATE -_OPERATIONMETADATA.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_OPERATIONMETADATA.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_FACEANNOTATION.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_FACEANNOTATION.fields_by_name[ + "fd_bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_FACEANNOTATION.fields_by_name["landmarks"].message_type = _FACEANNOTATION_LANDMARK +_FACEANNOTATION.fields_by_name["joy_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["sorrow_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["anger_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["surprise_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["under_exposed_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["blurred_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["headwear_likelihood"].enum_type = _LIKELIHOOD +_LOCATIONINFO.fields_by_name[ + "lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_ENTITYANNOTATION.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_ENTITYANNOTATION.fields_by_name["locations"].message_type = _LOCATIONINFO +_ENTITYANNOTATION.fields_by_name["properties"].message_type = _PROPERTY +_SAFESEARCHANNOTATION.fields_by_name["adult"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["spoof"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["medical"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["violence"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["racy"].enum_type = _LIKELIHOOD +_LATLONGRECT.fields_by_name[ + "min_lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_LATLONGRECT.fields_by_name[ + "max_lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_COLORINFO.fields_by_name["color"].message_type = google_dot_type_dot_color__pb2._COLOR +_DOMINANTCOLORSANNOTATION.fields_by_name["colors"].message_type = _COLORINFO +_IMAGEPROPERTIES.fields_by_name[ + "dominant_colors" +].message_type = _DOMINANTCOLORSANNOTATION +_CROPHINT.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_CROPHINTSANNOTATION.fields_by_name["crop_hints"].message_type = _CROPHINT +_IMAGECONTEXT.fields_by_name["lat_long_rect"].message_type = _LATLONGRECT +_IMAGECONTEXT.fields_by_name["crop_hints_params"].message_type = _CROPHINTSPARAMS +_IMAGECONTEXT.fields_by_name["web_detection_params"].message_type = _WEBDETECTIONPARAMS +_ANNOTATEIMAGEREQUEST.fields_by_name["image"].message_type = _IMAGE +_ANNOTATEIMAGEREQUEST.fields_by_name["features"].message_type = _FEATURE +_ANNOTATEIMAGEREQUEST.fields_by_name["image_context"].message_type = _IMAGECONTEXT +_ANNOTATEIMAGERESPONSE.fields_by_name["face_annotations"].message_type = _FACEANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "landmark_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "logo_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "label_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "text_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "full_text_annotation" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_text__annotation__pb2._TEXTANNOTATION +) +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "safe_search_annotation" +].message_type = _SAFESEARCHANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "image_properties_annotation" +].message_type = _IMAGEPROPERTIES +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "crop_hints_annotation" +].message_type = _CROPHINTSANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "web_detection" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_web__detection__pb2._WEBDETECTION +) +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ANNOTATEIMAGERESPONSE.fields_by_name["context"].message_type = _IMAGEANNOTATIONCONTEXT +_ANNOTATEFILERESPONSE.fields_by_name["input_config"].message_type = _INPUTCONFIG +_ANNOTATEFILERESPONSE.fields_by_name["responses"].message_type = _ANNOTATEIMAGERESPONSE +_BATCHANNOTATEIMAGESREQUEST.fields_by_name[ + "requests" +].message_type = _ANNOTATEIMAGEREQUEST +_BATCHANNOTATEIMAGESRESPONSE.fields_by_name[ + "responses" +].message_type = _ANNOTATEIMAGERESPONSE +_ASYNCANNOTATEFILEREQUEST.fields_by_name["input_config"].message_type = _INPUTCONFIG +_ASYNCANNOTATEFILEREQUEST.fields_by_name["features"].message_type = _FEATURE +_ASYNCANNOTATEFILEREQUEST.fields_by_name["image_context"].message_type = _IMAGECONTEXT +_ASYNCANNOTATEFILEREQUEST.fields_by_name["output_config"].message_type = _OUTPUTCONFIG +_ASYNCANNOTATEFILERESPONSE.fields_by_name["output_config"].message_type = _OUTPUTCONFIG +_ASYNCBATCHANNOTATEFILESREQUEST.fields_by_name[ + "requests" +].message_type = _ASYNCANNOTATEFILEREQUEST +_ASYNCBATCHANNOTATEFILESRESPONSE.fields_by_name[ + "responses" +].message_type = _ASYNCANNOTATEFILERESPONSE +_INPUTCONFIG.fields_by_name["gcs_source"].message_type = _GCSSOURCE +_OUTPUTCONFIG.fields_by_name["gcs_destination"].message_type = _GCSDESTINATION +_OPERATIONMETADATA.fields_by_name["state"].enum_type = _OPERATIONMETADATA_STATE +_OPERATIONMETADATA.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_OPERATIONMETADATA.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _OPERATIONMETADATA_STATE.containing_type = _OPERATIONMETADATA -DESCRIPTOR.message_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.message_types_by_name['ImageSource'] = _IMAGESOURCE -DESCRIPTOR.message_types_by_name['Image'] = _IMAGE -DESCRIPTOR.message_types_by_name['FaceAnnotation'] = _FACEANNOTATION -DESCRIPTOR.message_types_by_name['LocationInfo'] = _LOCATIONINFO -DESCRIPTOR.message_types_by_name['Property'] = _PROPERTY -DESCRIPTOR.message_types_by_name['EntityAnnotation'] = _ENTITYANNOTATION -DESCRIPTOR.message_types_by_name['SafeSearchAnnotation'] = _SAFESEARCHANNOTATION -DESCRIPTOR.message_types_by_name['LatLongRect'] = _LATLONGRECT -DESCRIPTOR.message_types_by_name['ColorInfo'] = _COLORINFO -DESCRIPTOR.message_types_by_name['DominantColorsAnnotation'] = _DOMINANTCOLORSANNOTATION -DESCRIPTOR.message_types_by_name['ImageProperties'] = _IMAGEPROPERTIES -DESCRIPTOR.message_types_by_name['CropHint'] = _CROPHINT -DESCRIPTOR.message_types_by_name['CropHintsAnnotation'] = _CROPHINTSANNOTATION -DESCRIPTOR.message_types_by_name['CropHintsParams'] = _CROPHINTSPARAMS -DESCRIPTOR.message_types_by_name['WebDetectionParams'] = _WEBDETECTIONPARAMS -DESCRIPTOR.message_types_by_name['ImageContext'] = _IMAGECONTEXT -DESCRIPTOR.message_types_by_name['AnnotateImageRequest'] = _ANNOTATEIMAGEREQUEST -DESCRIPTOR.message_types_by_name['ImageAnnotationContext'] = _IMAGEANNOTATIONCONTEXT -DESCRIPTOR.message_types_by_name['AnnotateImageResponse'] = _ANNOTATEIMAGERESPONSE -DESCRIPTOR.message_types_by_name['AnnotateFileResponse'] = _ANNOTATEFILERESPONSE -DESCRIPTOR.message_types_by_name['BatchAnnotateImagesRequest'] = _BATCHANNOTATEIMAGESREQUEST -DESCRIPTOR.message_types_by_name['BatchAnnotateImagesResponse'] = _BATCHANNOTATEIMAGESRESPONSE -DESCRIPTOR.message_types_by_name['AsyncAnnotateFileRequest'] = _ASYNCANNOTATEFILEREQUEST -DESCRIPTOR.message_types_by_name['AsyncAnnotateFileResponse'] = _ASYNCANNOTATEFILERESPONSE -DESCRIPTOR.message_types_by_name['AsyncBatchAnnotateFilesRequest'] = _ASYNCBATCHANNOTATEFILESREQUEST -DESCRIPTOR.message_types_by_name['AsyncBatchAnnotateFilesResponse'] = _ASYNCBATCHANNOTATEFILESRESPONSE -DESCRIPTOR.message_types_by_name['InputConfig'] = _INPUTCONFIG -DESCRIPTOR.message_types_by_name['OutputConfig'] = _OUTPUTCONFIG -DESCRIPTOR.message_types_by_name['GcsSource'] = _GCSSOURCE -DESCRIPTOR.message_types_by_name['GcsDestination'] = _GCSDESTINATION -DESCRIPTOR.message_types_by_name['OperationMetadata'] = _OPERATIONMETADATA -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +DESCRIPTOR.message_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.message_types_by_name["ImageSource"] = _IMAGESOURCE +DESCRIPTOR.message_types_by_name["Image"] = _IMAGE +DESCRIPTOR.message_types_by_name["FaceAnnotation"] = _FACEANNOTATION +DESCRIPTOR.message_types_by_name["LocationInfo"] = _LOCATIONINFO +DESCRIPTOR.message_types_by_name["Property"] = _PROPERTY +DESCRIPTOR.message_types_by_name["EntityAnnotation"] = _ENTITYANNOTATION +DESCRIPTOR.message_types_by_name["SafeSearchAnnotation"] = _SAFESEARCHANNOTATION +DESCRIPTOR.message_types_by_name["LatLongRect"] = _LATLONGRECT +DESCRIPTOR.message_types_by_name["ColorInfo"] = _COLORINFO +DESCRIPTOR.message_types_by_name["DominantColorsAnnotation"] = _DOMINANTCOLORSANNOTATION +DESCRIPTOR.message_types_by_name["ImageProperties"] = _IMAGEPROPERTIES +DESCRIPTOR.message_types_by_name["CropHint"] = _CROPHINT +DESCRIPTOR.message_types_by_name["CropHintsAnnotation"] = _CROPHINTSANNOTATION +DESCRIPTOR.message_types_by_name["CropHintsParams"] = _CROPHINTSPARAMS +DESCRIPTOR.message_types_by_name["WebDetectionParams"] = _WEBDETECTIONPARAMS +DESCRIPTOR.message_types_by_name["ImageContext"] = _IMAGECONTEXT +DESCRIPTOR.message_types_by_name["AnnotateImageRequest"] = _ANNOTATEIMAGEREQUEST +DESCRIPTOR.message_types_by_name["ImageAnnotationContext"] = _IMAGEANNOTATIONCONTEXT +DESCRIPTOR.message_types_by_name["AnnotateImageResponse"] = _ANNOTATEIMAGERESPONSE +DESCRIPTOR.message_types_by_name["AnnotateFileResponse"] = _ANNOTATEFILERESPONSE +DESCRIPTOR.message_types_by_name[ + "BatchAnnotateImagesRequest" +] = _BATCHANNOTATEIMAGESREQUEST +DESCRIPTOR.message_types_by_name[ + "BatchAnnotateImagesResponse" +] = _BATCHANNOTATEIMAGESRESPONSE +DESCRIPTOR.message_types_by_name["AsyncAnnotateFileRequest"] = _ASYNCANNOTATEFILEREQUEST +DESCRIPTOR.message_types_by_name[ + "AsyncAnnotateFileResponse" +] = _ASYNCANNOTATEFILERESPONSE +DESCRIPTOR.message_types_by_name[ + "AsyncBatchAnnotateFilesRequest" +] = _ASYNCBATCHANNOTATEFILESREQUEST +DESCRIPTOR.message_types_by_name[ + "AsyncBatchAnnotateFilesResponse" +] = _ASYNCBATCHANNOTATEFILESRESPONSE +DESCRIPTOR.message_types_by_name["InputConfig"] = _INPUTCONFIG +DESCRIPTOR.message_types_by_name["OutputConfig"] = _OUTPUTCONFIG +DESCRIPTOR.message_types_by_name["GcsSource"] = _GCSSOURCE +DESCRIPTOR.message_types_by_name["GcsDestination"] = _GCSDESTINATION +DESCRIPTOR.message_types_by_name["OperationMetadata"] = _OPERATIONMETADATA +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Feature = _reflection.GeneratedProtocolMessageType('Feature', (_message.Message,), dict( - DESCRIPTOR = _FEATURE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """The type of Google Cloud Vision API detection to perform, and the +Feature = _reflection.GeneratedProtocolMessageType( + "Feature", + (_message.Message,), + dict( + DESCRIPTOR=_FEATURE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. @@ -1915,15 +2928,18 @@ Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Feature) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Feature) + ), +) _sym_db.RegisterMessage(Feature) -ImageSource = _reflection.GeneratedProtocolMessageType('ImageSource', (_message.Message,), dict( - DESCRIPTOR = _IMAGESOURCE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """External image source (Google Cloud Storage or web URL image location). +ImageSource = _reflection.GeneratedProtocolMessageType( + "ImageSource", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGESOURCE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""External image source (Google Cloud Storage or web URL image location). Attributes: @@ -1949,15 +2965,18 @@ applications. When both ``gcs_image_uri`` and ``image_uri`` are specified, ``image_uri`` takes precedence. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageSource) + ), +) _sym_db.RegisterMessage(ImageSource) -Image = _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), dict( - DESCRIPTOR = _IMAGE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Client image to perform Google Cloud Vision API tasks over. +Image = _reflection.GeneratedProtocolMessageType( + "Image", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Client image to perform Google Cloud Vision API tasks over. Attributes: @@ -1971,17 +2990,22 @@ an image, ``content`` takes precedence and is used to perform the image annotation request. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Image) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Image) + ), +) _sym_db.RegisterMessage(Image) -FaceAnnotation = _reflection.GeneratedProtocolMessageType('FaceAnnotation', (_message.Message,), dict( - - Landmark = _reflection.GeneratedProtocolMessageType('Landmark', (_message.Message,), dict( - DESCRIPTOR = _FACEANNOTATION_LANDMARK, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """A face-specific landmark (for example, a face feature). +FaceAnnotation = _reflection.GeneratedProtocolMessageType( + "FaceAnnotation", + (_message.Message,), + dict( + Landmark=_reflection.GeneratedProtocolMessageType( + "Landmark", + (_message.Message,), + dict( + DESCRIPTOR=_FACEANNOTATION_LANDMARK, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""A face-specific landmark (for example, a face feature). Attributes: @@ -1990,13 +3014,12 @@ position: Face landmark position. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) - )) - , - DESCRIPTOR = _FACEANNOTATION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """A face annotation object contains the results of face detection. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) + ), + ), + DESCRIPTOR=_FACEANNOTATION, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""A face annotation object contains the results of face detection. Attributes: @@ -2049,31 +3072,37 @@ headwear_likelihood: Headwear likelihood. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation) + ), +) _sym_db.RegisterMessage(FaceAnnotation) _sym_db.RegisterMessage(FaceAnnotation.Landmark) -LocationInfo = _reflection.GeneratedProtocolMessageType('LocationInfo', (_message.Message,), dict( - DESCRIPTOR = _LOCATIONINFO, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Detected entity location information. +LocationInfo = _reflection.GeneratedProtocolMessageType( + "LocationInfo", + (_message.Message,), + dict( + DESCRIPTOR=_LOCATIONINFO, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Detected entity location information. Attributes: lat_lng: lat/long location coordinates. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LocationInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LocationInfo) + ), +) _sym_db.RegisterMessage(LocationInfo) -Property = _reflection.GeneratedProtocolMessageType('Property', (_message.Message,), dict( - DESCRIPTOR = _PROPERTY, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """A ``Property`` consists of a user-supplied name/value pair. +Property = _reflection.GeneratedProtocolMessageType( + "Property", + (_message.Message,), + dict( + DESCRIPTOR=_PROPERTY, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""A ``Property`` consists of a user-supplied name/value pair. Attributes: @@ -2084,15 +3113,18 @@ uint64_value: Value of numeric properties. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Property) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Property) + ), +) _sym_db.RegisterMessage(Property) -EntityAnnotation = _reflection.GeneratedProtocolMessageType('EntityAnnotation', (_message.Message,), dict( - DESCRIPTOR = _ENTITYANNOTATION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of detected entity features. +EntityAnnotation = _reflection.GeneratedProtocolMessageType( + "EntityAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITYANNOTATION, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Set of detected entity features. Attributes: @@ -2136,15 +3168,18 @@ (name/value) fields, such a score or string that qualifies the entity. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.EntityAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.EntityAnnotation) + ), +) _sym_db.RegisterMessage(EntityAnnotation) -SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType('SafeSearchAnnotation', (_message.Message,), dict( - DESCRIPTOR = _SAFESEARCHANNOTATION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of features pertaining to the image, computed by computer vision +SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( + "SafeSearchAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_SAFESEARCHANNOTATION, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). @@ -2168,15 +3203,18 @@ clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) + ), +) _sym_db.RegisterMessage(SafeSearchAnnotation) -LatLongRect = _reflection.GeneratedProtocolMessageType('LatLongRect', (_message.Message,), dict( - DESCRIPTOR = _LATLONGRECT, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Rectangle determined by min and max ``LatLng`` pairs. +LatLongRect = _reflection.GeneratedProtocolMessageType( + "LatLongRect", + (_message.Message,), + dict( + DESCRIPTOR=_LATLONGRECT, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Rectangle determined by min and max ``LatLng`` pairs. Attributes: @@ -2185,15 +3223,18 @@ max_lat_lng: Max lat/long pair. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LatLongRect) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LatLongRect) + ), +) _sym_db.RegisterMessage(LatLongRect) -ColorInfo = _reflection.GeneratedProtocolMessageType('ColorInfo', (_message.Message,), dict( - DESCRIPTOR = _COLORINFO, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Color information consists of RGB channels, score, and the fraction of +ColorInfo = _reflection.GeneratedProtocolMessageType( + "ColorInfo", + (_message.Message,), + dict( + DESCRIPTOR=_COLORINFO, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. @@ -2206,45 +3247,54 @@ The fraction of pixels the color occupies in the image. Value in range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ColorInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ColorInfo) + ), +) _sym_db.RegisterMessage(ColorInfo) -DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType('DominantColorsAnnotation', (_message.Message,), dict( - DESCRIPTOR = _DOMINANTCOLORSANNOTATION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of dominant colors and their corresponding scores. +DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType( + "DominantColorsAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_DOMINANTCOLORSANNOTATION, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Set of dominant colors and their corresponding scores. Attributes: colors: RGB color values with their score and pixel fraction. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) + ), +) _sym_db.RegisterMessage(DominantColorsAnnotation) -ImageProperties = _reflection.GeneratedProtocolMessageType('ImageProperties', (_message.Message,), dict( - DESCRIPTOR = _IMAGEPROPERTIES, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Stores image properties, such as dominant colors. +ImageProperties = _reflection.GeneratedProtocolMessageType( + "ImageProperties", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGEPROPERTIES, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Stores image properties, such as dominant colors. Attributes: dominant_colors: If present, dominant colors completed successfully. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageProperties) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageProperties) + ), +) _sym_db.RegisterMessage(ImageProperties) -CropHint = _reflection.GeneratedProtocolMessageType('CropHint', (_message.Message,), dict( - DESCRIPTOR = _CROPHINT, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Single crop hint that is used to generate a new crop when serving an +CropHint = _reflection.GeneratedProtocolMessageType( + "CropHint", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINT, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Single crop hint that is used to generate a new crop when serving an image. @@ -2259,15 +3309,18 @@ Fraction of importance of this salient region with respect to the original image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHint) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHint) + ), +) _sym_db.RegisterMessage(CropHint) -CropHintsAnnotation = _reflection.GeneratedProtocolMessageType('CropHintsAnnotation', (_message.Message,), dict( - DESCRIPTOR = _CROPHINTSANNOTATION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of crop hints that are used to generate new crops when serving +CropHintsAnnotation = _reflection.GeneratedProtocolMessageType( + "CropHintsAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINTSANNOTATION, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Set of crop hints that are used to generate new crops when serving images. @@ -2275,15 +3328,18 @@ crop_hints: Crop hint results. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsAnnotation) + ), +) _sym_db.RegisterMessage(CropHintsAnnotation) -CropHintsParams = _reflection.GeneratedProtocolMessageType('CropHintsParams', (_message.Message,), dict( - DESCRIPTOR = _CROPHINTSPARAMS, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Parameters for crop hints annotation request. +CropHintsParams = _reflection.GeneratedProtocolMessageType( + "CropHintsParams", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINTSPARAMS, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Parameters for crop hints annotation request. Attributes: @@ -2295,15 +3351,18 @@ number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsParams) + ), +) _sym_db.RegisterMessage(CropHintsParams) -WebDetectionParams = _reflection.GeneratedProtocolMessageType('WebDetectionParams', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTIONPARAMS, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Parameters for web detection request. +WebDetectionParams = _reflection.GeneratedProtocolMessageType( + "WebDetectionParams", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTIONPARAMS, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Parameters for web detection request. Attributes: @@ -2311,15 +3370,18 @@ Whether to include results derived from the geo information in the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetectionParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetectionParams) + ), +) _sym_db.RegisterMessage(WebDetectionParams) -ImageContext = _reflection.GeneratedProtocolMessageType('ImageContext', (_message.Message,), dict( - DESCRIPTOR = _IMAGECONTEXT, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Image context and/or feature-specific parameters. +ImageContext = _reflection.GeneratedProtocolMessageType( + "ImageContext", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGECONTEXT, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Image context and/or feature-specific parameters. Attributes: @@ -2341,15 +3403,18 @@ web_detection_params: Parameters for web detection. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageContext) + ), +) _sym_db.RegisterMessage(ImageContext) -AnnotateImageRequest = _reflection.GeneratedProtocolMessageType('AnnotateImageRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEIMAGEREQUEST, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Request for performing Google Cloud Vision API tasks over a +AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateImageRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEIMAGEREQUEST, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features. @@ -2361,15 +3426,18 @@ image_context: Additional context that may accompany the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageRequest) + ), +) _sym_db.RegisterMessage(AnnotateImageRequest) -ImageAnnotationContext = _reflection.GeneratedProtocolMessageType('ImageAnnotationContext', (_message.Message,), dict( - DESCRIPTOR = _IMAGEANNOTATIONCONTEXT, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """If an image was produced from a file (e.g. a PDF), this message gives +ImageAnnotationContext = _reflection.GeneratedProtocolMessageType( + "ImageAnnotationContext", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGEANNOTATIONCONTEXT, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. @@ -2380,15 +3448,18 @@ If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageAnnotationContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageAnnotationContext) + ), +) _sym_db.RegisterMessage(ImageAnnotationContext) -AnnotateImageResponse = _reflection.GeneratedProtocolMessageType('AnnotateImageResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEIMAGERESPONSE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to an image annotation request. +AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateImageResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEIMAGERESPONSE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Response to an image annotation request. Attributes: @@ -2422,15 +3493,18 @@ If present, contextual information is needed to understand where this image comes from. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageResponse) + ), +) _sym_db.RegisterMessage(AnnotateImageResponse) -AnnotateFileResponse = _reflection.GeneratedProtocolMessageType('AnnotateFileResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEFILERESPONSE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to a single file annotation request. A file may contain one or +AnnotateFileResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateFileResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEFILERESPONSE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. @@ -2441,15 +3515,18 @@ responses: Individual responses to images found within the file. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateFileResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateFileResponse) + ), +) _sym_db.RegisterMessage(AnnotateFileResponse) -BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType('BatchAnnotateImagesRequest', (_message.Message,), dict( - DESCRIPTOR = _BATCHANNOTATEIMAGESREQUEST, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Multiple image annotation requests are batched into a single service +BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( + "BatchAnnotateImagesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Multiple image annotation requests are batched into a single service call. @@ -2457,15 +3534,18 @@ requests: Individual image annotation requests for this batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) + ), +) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) -BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType('BatchAnnotateImagesResponse', (_message.Message,), dict( - DESCRIPTOR = _BATCHANNOTATEIMAGESRESPONSE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to a batch image annotation request. +BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( + "BatchAnnotateImagesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Response to a batch image annotation request. Attributes: @@ -2473,15 +3553,18 @@ Individual responses to image annotation requests within the batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) + ), +) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) -AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType('AsyncAnnotateFileRequest', (_message.Message,), dict( - DESCRIPTOR = _ASYNCANNOTATEFILEREQUEST, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """An offline file annotation request. +AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType( + "AsyncAnnotateFileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCANNOTATEFILEREQUEST, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""An offline file annotation request. Attributes: @@ -2496,15 +3579,18 @@ Required. The desired output location and metadata (e.g. format). """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) + ), +) _sym_db.RegisterMessage(AsyncAnnotateFileRequest) -AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType('AsyncAnnotateFileResponse', (_message.Message,), dict( - DESCRIPTOR = _ASYNCANNOTATEFILERESPONSE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """The response for a single offline file annotation request. +AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType( + "AsyncAnnotateFileResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCANNOTATEFILERESPONSE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""The response for a single offline file annotation request. Attributes: @@ -2512,15 +3598,18 @@ The output location and metadata from AsyncAnnotateFileRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) + ), +) _sym_db.RegisterMessage(AsyncAnnotateFileResponse) -AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType('AsyncBatchAnnotateFilesRequest', (_message.Message,), dict( - DESCRIPTOR = _ASYNCBATCHANNOTATEFILESREQUEST, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Multiple async file annotation requests are batched into a single +AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( + "AsyncBatchAnnotateFilesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCBATCHANNOTATEFILESREQUEST, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Multiple async file annotation requests are batched into a single service call. @@ -2528,15 +3617,18 @@ requests: Individual async file annotation requests for this batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) + ), +) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesRequest) -AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType('AsyncBatchAnnotateFilesResponse', (_message.Message,), dict( - DESCRIPTOR = _ASYNCBATCHANNOTATEFILESRESPONSE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to an async batch file annotation request. +AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( + "AsyncBatchAnnotateFilesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCBATCHANNOTATEFILESRESPONSE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Response to an async batch file annotation request. Attributes: @@ -2544,15 +3636,18 @@ The list of file annotation responses, one for each request in AsyncBatchAnnotateFilesRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) + ), +) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesResponse) -InputConfig = _reflection.GeneratedProtocolMessageType('InputConfig', (_message.Message,), dict( - DESCRIPTOR = _INPUTCONFIG, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """The desired input location and metadata. +InputConfig = _reflection.GeneratedProtocolMessageType( + "InputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_INPUTCONFIG, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""The desired input location and metadata. Attributes: @@ -2562,15 +3657,18 @@ The type of the file. Currently only "application/pdf" and "image/tiff" are supported. Wildcards are not supported. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.InputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.InputConfig) + ), +) _sym_db.RegisterMessage(InputConfig) -OutputConfig = _reflection.GeneratedProtocolMessageType('OutputConfig', (_message.Message,), dict( - DESCRIPTOR = _OUTPUTCONFIG, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """The desired output location and metadata. +OutputConfig = _reflection.GeneratedProtocolMessageType( + "OutputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_OUTPUTCONFIG, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""The desired output location and metadata. Attributes: @@ -2587,15 +3685,18 @@ applies to GcsDestination, with potential future support for other output configurations. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OutputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OutputConfig) + ), +) _sym_db.RegisterMessage(OutputConfig) -GcsSource = _reflection.GeneratedProtocolMessageType('GcsSource', (_message.Message,), dict( - DESCRIPTOR = _GCSSOURCE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """The Google Cloud Storage location where the input will be read from. +GcsSource = _reflection.GeneratedProtocolMessageType( + "GcsSource", + (_message.Message,), + dict( + DESCRIPTOR=_GCSSOURCE, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""The Google Cloud Storage location where the input will be read from. Attributes: @@ -2603,15 +3704,18 @@ Google Cloud Storage URI for the input file. This must only be a GCS object. Wildcards are not currently supported. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsSource) + ), +) _sym_db.RegisterMessage(GcsSource) -GcsDestination = _reflection.GeneratedProtocolMessageType('GcsDestination', (_message.Message,), dict( - DESCRIPTOR = _GCSDESTINATION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """The Google Cloud Storage location where the output will be written to. +GcsDestination = _reflection.GeneratedProtocolMessageType( + "GcsDestination", + (_message.Message,), + dict( + DESCRIPTOR=_GCSDESTINATION, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""The Google Cloud Storage location where the output will be written to. Attributes: @@ -2628,15 +3732,18 @@ Multiple outputs can happen if, for example, the output JSON is too large and overflows into multiple sharded files. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsDestination) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsDestination) + ), +) _sym_db.RegisterMessage(GcsDestination) -OperationMetadata = _reflection.GeneratedProtocolMessageType('OperationMetadata', (_message.Message,), dict( - DESCRIPTOR = _OPERATIONMETADATA, - __module__ = 'google.cloud.vision_v1p2beta1.proto.image_annotator_pb2' - , - __doc__ = """Contains metadata for the BatchAnnotateImages operation. +OperationMetadata = _reflection.GeneratedProtocolMessageType( + "OperationMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_OPERATIONMETADATA, + __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + __doc__="""Contains metadata for the BatchAnnotateImages operation. Attributes: @@ -2647,44 +3754,57 @@ update_time: The time when the operation result was last updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OperationMetadata) + ), +) _sym_db.RegisterMessage(OperationMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p2beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p2beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" + ), +) _IMAGEANNOTATOR = _descriptor.ServiceDescriptor( - name='ImageAnnotator', - full_name='google.cloud.vision.v1p2beta1.ImageAnnotator', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=7243, - serialized_end=7611, - methods=[ - _descriptor.MethodDescriptor( - name='BatchAnnotateImages', - full_name='google.cloud.vision.v1p2beta1.ImageAnnotator.BatchAnnotateImages', + name="ImageAnnotator", + full_name="google.cloud.vision.v1p2beta1.ImageAnnotator", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_BATCHANNOTATEIMAGESREQUEST, - output_type=_BATCHANNOTATEIMAGESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037\"\032/v1p2beta1/images:annotate:\001*')), - ), - _descriptor.MethodDescriptor( - name='AsyncBatchAnnotateFiles', - full_name='google.cloud.vision.v1p2beta1.ImageAnnotator.AsyncBatchAnnotateFiles', - index=1, - containing_service=None, - input_type=_ASYNCBATCHANNOTATEFILESREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\"#/v1p2beta1/files:asyncBatchAnnotate:\001*')), - ), -]) + options=None, + serialized_start=7243, + serialized_end=7611, + methods=[ + _descriptor.MethodDescriptor( + name="BatchAnnotateImages", + full_name="google.cloud.vision.v1p2beta1.ImageAnnotator.BatchAnnotateImages", + index=0, + containing_service=None, + input_type=_BATCHANNOTATEIMAGESREQUEST, + output_type=_BATCHANNOTATEIMAGESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\037"\032/v1p2beta1/images:annotate:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AsyncBatchAnnotateFiles", + full_name="google.cloud.vision.v1p2beta1.ImageAnnotator.AsyncBatchAnnotateFiles", + index=1, + containing_service=None, + input_type=_ASYNCBATCHANNOTATEFILESREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002("#/v1p2beta1/files:asyncBatchAnnotate:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_IMAGEANNOTATOR) -DESCRIPTOR.services_by_name['ImageAnnotator'] = _IMAGEANNOTATOR +DESCRIPTOR.services_by_name["ImageAnnotator"] = _IMAGEANNOTATOR # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py b/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py index b7c0823fc1b24..9fb214587c2a2 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py @@ -1,73 +1,78 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.vision_v1p2beta1.proto import image_annotator_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.vision_v1p2beta1.proto import ( + image_annotator_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class ImageAnnotatorStub(object): - """Service that performs Google Cloud Vision API detection tasks over client + """Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.BatchAnnotateImages = channel.unary_unary( - '/google.cloud.vision.v1p2beta1.ImageAnnotator/BatchAnnotateImages', - request_serializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + self.BatchAnnotateImages = channel.unary_unary( + "/google.cloud.vision.v1p2beta1.ImageAnnotator/BatchAnnotateImages", + request_serializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, ) - self.AsyncBatchAnnotateFiles = channel.unary_unary( - '/google.cloud.vision.v1p2beta1.ImageAnnotator/AsyncBatchAnnotateFiles', - request_serializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.AsyncBatchAnnotateFiles = channel.unary_unary( + "/google.cloud.vision.v1p2beta1.ImageAnnotator/AsyncBatchAnnotateFiles", + request_serializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class ImageAnnotatorServicer(object): - """Service that performs Google Cloud Vision API detection tasks over client + """Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images. """ - def BatchAnnotateImages(self, request, context): - """Run image detection and annotation for a batch of images. + def BatchAnnotateImages(self, request, context): + """Run image detection and annotation for a batch of images. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AsyncBatchAnnotateFiles(self, request, context): - """Run async image detection and annotation for a list of generic files (e.g. + def AsyncBatchAnnotateFiles(self, request, context): + """Run async image detection and annotation for a list of generic files (e.g. PDF) which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ImageAnnotatorServicer_to_server(servicer, server): - rpc_method_handlers = { - 'BatchAnnotateImages': grpc.unary_unary_rpc_method_handler( - servicer.BatchAnnotateImages, - request_deserializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString, - ), - 'AsyncBatchAnnotateFiles': grpc.unary_unary_rpc_method_handler( - servicer.AsyncBatchAnnotateFiles, - request_deserializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.vision.v1p2beta1.ImageAnnotator', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "BatchAnnotateImages": grpc.unary_unary_rpc_method_handler( + servicer.BatchAnnotateImages, + request_deserializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString, + ), + "AsyncBatchAnnotateFiles": grpc.unary_unary_rpc_method_handler( + servicer.AsyncBatchAnnotateFiles, + request_deserializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.vision.v1p2beta1.ImageAnnotator", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py b/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py index 14646f54daf1b..9e35ce8ce3087 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py @@ -2,570 +2,897 @@ # source: google/cloud/vision_v1p2beta1/proto/text_annotation.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1p2beta1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2 +from google.cloud.vision_v1p2beta1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p2beta1/proto/text_annotation.proto', - package='google.cloud.vision.v1p2beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto\"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08\"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak\"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p2beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p2beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05\"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,]) - + name="google/cloud/vision_v1p2beta1/proto/text_annotation.proto", + package="google.cloud.vision.v1p2beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p2beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p2beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + ], +) _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE = _descriptor.EnumDescriptor( - name='BreakType', - full_name='google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPACE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SURE_SPACE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EOL_SURE_SPACE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HYPHEN', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINE_BREAK', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=444, - serialized_end=543, + name="BreakType", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SPACE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SURE_SPACE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EOL_SURE_SPACE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HYPHEN", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LINE_BREAK", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=444, + serialized_end=543, ) _sym_db.RegisterEnumDescriptor(_TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE) _BLOCK_BLOCKTYPE = _descriptor.EnumDescriptor( - name='BlockType', - full_name='google.cloud.vision.v1p2beta1.Block.BlockType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TABLE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PICTURE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RULER', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BARCODE', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1236, - serialized_end=1318, + name="BlockType", + full_name="google.cloud.vision.v1p2beta1.Block.BlockType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TABLE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PICTURE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RULER", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BARCODE", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1236, + serialized_end=1318, ) _sym_db.RegisterEnumDescriptor(_BLOCK_BLOCKTYPE) _TEXTANNOTATION_DETECTEDLANGUAGE = _descriptor.Descriptor( - name='DetectedLanguage', - full_name='google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=259, - serialized_end=320, + name="DetectedLanguage", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=259, + serialized_end=320, ) _TEXTANNOTATION_DETECTEDBREAK = _descriptor.Descriptor( - name='DetectedBreak', - full_name='google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_prefix', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.is_prefix', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=323, - serialized_end=543, + name="DetectedBreak", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_prefix", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.is_prefix", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=323, + serialized_end=543, ) _TEXTANNOTATION_TEXTPROPERTY = _descriptor.Descriptor( - name='TextProperty', - full_name='google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='detected_languages', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.detected_languages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detected_break', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.detected_break', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=546, - serialized_end=737, + name="TextProperty", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="detected_languages", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.detected_languages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detected_break", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.detected_break", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=546, + serialized_end=737, ) _TEXTANNOTATION = _descriptor.Descriptor( - name='TextAnnotation', - full_name='google.cloud.vision.v1p2beta1.TextAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pages', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.pages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.vision.v1p2beta1.TextAnnotation.text', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TEXTANNOTATION_DETECTEDLANGUAGE, _TEXTANNOTATION_DETECTEDBREAK, _TEXTANNOTATION_TEXTPROPERTY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=175, - serialized_end=737, + name="TextAnnotation", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="pages", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.pages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.vision.v1p2beta1.TextAnnotation.text", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _TEXTANNOTATION_DETECTEDLANGUAGE, + _TEXTANNOTATION_DETECTEDBREAK, + _TEXTANNOTATION_TEXTPROPERTY, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=175, + serialized_end=737, ) _PAGE = _descriptor.Descriptor( - name='Page', - full_name='google.cloud.vision.v1p2beta1.Page', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p2beta1.Page.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='width', full_name='google.cloud.vision.v1p2beta1.Page.width', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='height', full_name='google.cloud.vision.v1p2beta1.Page.height', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blocks', full_name='google.cloud.vision.v1p2beta1.Page.blocks', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.Page.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=740, - serialized_end=929, + name="Page", + full_name="google.cloud.vision.v1p2beta1.Page", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p2beta1.Page.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="width", + full_name="google.cloud.vision.v1p2beta1.Page.width", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="height", + full_name="google.cloud.vision.v1p2beta1.Page.height", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blocks", + full_name="google.cloud.vision.v1p2beta1.Page.blocks", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.Page.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=740, + serialized_end=929, ) _BLOCK = _descriptor.Descriptor( - name='Block', - full_name='google.cloud.vision.v1p2beta1.Block', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p2beta1.Block.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p2beta1.Block.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='paragraphs', full_name='google.cloud.vision.v1p2beta1.Block.paragraphs', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='block_type', full_name='google.cloud.vision.v1p2beta1.Block.block_type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.Block.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _BLOCK_BLOCKTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=932, - serialized_end=1318, + name="Block", + full_name="google.cloud.vision.v1p2beta1.Block", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p2beta1.Block.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p2beta1.Block.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="paragraphs", + full_name="google.cloud.vision.v1p2beta1.Block.paragraphs", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="block_type", + full_name="google.cloud.vision.v1p2beta1.Block.block_type", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.Block.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_BLOCK_BLOCKTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=932, + serialized_end=1318, ) _PARAGRAPH = _descriptor.Descriptor( - name='Paragraph', - full_name='google.cloud.vision.v1p2beta1.Paragraph', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p2beta1.Paragraph.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p2beta1.Paragraph.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='words', full_name='google.cloud.vision.v1p2beta1.Paragraph.words', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.Paragraph.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1321, - serialized_end=1549, + name="Paragraph", + full_name="google.cloud.vision.v1p2beta1.Paragraph", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p2beta1.Paragraph.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p2beta1.Paragraph.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="words", + full_name="google.cloud.vision.v1p2beta1.Paragraph.words", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.Paragraph.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1321, + serialized_end=1549, ) _WORD = _descriptor.Descriptor( - name='Word', - full_name='google.cloud.vision.v1p2beta1.Word', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p2beta1.Word.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p2beta1.Word.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='symbols', full_name='google.cloud.vision.v1p2beta1.Word.symbols', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.Word.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1552, - serialized_end=1779, + name="Word", + full_name="google.cloud.vision.v1p2beta1.Word", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p2beta1.Word.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p2beta1.Word.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="symbols", + full_name="google.cloud.vision.v1p2beta1.Word.symbols", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.Word.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1552, + serialized_end=1779, ) _SYMBOL = _descriptor.Descriptor( - name='Symbol', - full_name='google.cloud.vision.v1p2beta1.Symbol', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p2beta1.Symbol.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p2beta1.Symbol.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.vision.v1p2beta1.Symbol.text', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p2beta1.Symbol.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1782, - serialized_end=1969, + name="Symbol", + full_name="google.cloud.vision.v1p2beta1.Symbol", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p2beta1.Symbol.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p2beta1.Symbol.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.vision.v1p2beta1.Symbol.text", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p2beta1.Symbol.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1782, + serialized_end=1969, ) _TEXTANNOTATION_DETECTEDLANGUAGE.containing_type = _TEXTANNOTATION -_TEXTANNOTATION_DETECTEDBREAK.fields_by_name['type'].enum_type = _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE +_TEXTANNOTATION_DETECTEDBREAK.fields_by_name[ + "type" +].enum_type = _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE _TEXTANNOTATION_DETECTEDBREAK.containing_type = _TEXTANNOTATION _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE.containing_type = _TEXTANNOTATION_DETECTEDBREAK -_TEXTANNOTATION_TEXTPROPERTY.fields_by_name['detected_languages'].message_type = _TEXTANNOTATION_DETECTEDLANGUAGE -_TEXTANNOTATION_TEXTPROPERTY.fields_by_name['detected_break'].message_type = _TEXTANNOTATION_DETECTEDBREAK +_TEXTANNOTATION_TEXTPROPERTY.fields_by_name[ + "detected_languages" +].message_type = _TEXTANNOTATION_DETECTEDLANGUAGE +_TEXTANNOTATION_TEXTPROPERTY.fields_by_name[ + "detected_break" +].message_type = _TEXTANNOTATION_DETECTEDBREAK _TEXTANNOTATION_TEXTPROPERTY.containing_type = _TEXTANNOTATION -_TEXTANNOTATION.fields_by_name['pages'].message_type = _PAGE -_PAGE.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_PAGE.fields_by_name['blocks'].message_type = _BLOCK -_BLOCK.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_BLOCK.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_BLOCK.fields_by_name['paragraphs'].message_type = _PARAGRAPH -_BLOCK.fields_by_name['block_type'].enum_type = _BLOCK_BLOCKTYPE +_TEXTANNOTATION.fields_by_name["pages"].message_type = _PAGE +_PAGE.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_PAGE.fields_by_name["blocks"].message_type = _BLOCK +_BLOCK.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_BLOCK.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_BLOCK.fields_by_name["paragraphs"].message_type = _PARAGRAPH +_BLOCK.fields_by_name["block_type"].enum_type = _BLOCK_BLOCKTYPE _BLOCK_BLOCKTYPE.containing_type = _BLOCK -_PARAGRAPH.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_PARAGRAPH.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_PARAGRAPH.fields_by_name['words'].message_type = _WORD -_WORD.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_WORD.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_WORD.fields_by_name['symbols'].message_type = _SYMBOL -_SYMBOL.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_SYMBOL.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -DESCRIPTOR.message_types_by_name['TextAnnotation'] = _TEXTANNOTATION -DESCRIPTOR.message_types_by_name['Page'] = _PAGE -DESCRIPTOR.message_types_by_name['Block'] = _BLOCK -DESCRIPTOR.message_types_by_name['Paragraph'] = _PARAGRAPH -DESCRIPTOR.message_types_by_name['Word'] = _WORD -DESCRIPTOR.message_types_by_name['Symbol'] = _SYMBOL +_PARAGRAPH.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_PARAGRAPH.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_PARAGRAPH.fields_by_name["words"].message_type = _WORD +_WORD.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_WORD.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_WORD.fields_by_name["symbols"].message_type = _SYMBOL +_SYMBOL.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_SYMBOL.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +DESCRIPTOR.message_types_by_name["TextAnnotation"] = _TEXTANNOTATION +DESCRIPTOR.message_types_by_name["Page"] = _PAGE +DESCRIPTOR.message_types_by_name["Block"] = _BLOCK +DESCRIPTOR.message_types_by_name["Paragraph"] = _PARAGRAPH +DESCRIPTOR.message_types_by_name["Word"] = _WORD +DESCRIPTOR.message_types_by_name["Symbol"] = _SYMBOL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TextAnnotation = _reflection.GeneratedProtocolMessageType('TextAnnotation', (_message.Message,), dict( - - DetectedLanguage = _reflection.GeneratedProtocolMessageType('DetectedLanguage', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_DETECTEDLANGUAGE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected language for a structural component. +TextAnnotation = _reflection.GeneratedProtocolMessageType( + "TextAnnotation", + (_message.Message,), + dict( + DetectedLanguage=_reflection.GeneratedProtocolMessageType( + "DetectedLanguage", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_DETECTEDLANGUAGE, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""Detected language for a structural component. Attributes: @@ -576,15 +903,16 @@ confidence: Confidence of detected language. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) - )) - , - - DetectedBreak = _reflection.GeneratedProtocolMessageType('DetectedBreak', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_DETECTEDBREAK, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected start or end of a structural component. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) + ), + ), + DetectedBreak=_reflection.GeneratedProtocolMessageType( + "DetectedBreak", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_DETECTEDBREAK, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""Detected start or end of a structural component. Attributes: @@ -593,15 +921,16 @@ is_prefix: True if break prepends the element. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) - )) - , - - TextProperty = _reflection.GeneratedProtocolMessageType('TextProperty', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_TEXTPROPERTY, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """Additional information detected on the structural component. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) + ), + ), + TextProperty=_reflection.GeneratedProtocolMessageType( + "TextProperty", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_TEXTPROPERTY, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""Additional information detected on the structural component. Attributes: @@ -610,13 +939,12 @@ detected_break: Detected start or end of a text segment. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) - )) - , - DESCRIPTOR = _TEXTANNOTATION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """TextAnnotation contains a structured representation of OCR extracted + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) + ), + ), + DESCRIPTOR=_TEXTANNOTATION, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own @@ -632,18 +960,21 @@ text: UTF-8 text detected on the pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation) + ), +) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) _sym_db.RegisterMessage(TextAnnotation.DetectedBreak) _sym_db.RegisterMessage(TextAnnotation.TextProperty) -Page = _reflection.GeneratedProtocolMessageType('Page', (_message.Message,), dict( - DESCRIPTOR = _PAGE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected page from OCR. +Page = _reflection.GeneratedProtocolMessageType( + "Page", + (_message.Message,), + dict( + DESCRIPTOR=_PAGE, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""Detected page from OCR. Attributes: @@ -660,15 +991,18 @@ confidence: Confidence of the OCR results on the page. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Page) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Page) + ), +) _sym_db.RegisterMessage(Page) -Block = _reflection.GeneratedProtocolMessageType('Block', (_message.Message,), dict( - DESCRIPTOR = _BLOCK, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """Logical element on the page. +Block = _reflection.GeneratedProtocolMessageType( + "Block", + (_message.Message,), + dict( + DESCRIPTOR=_BLOCK, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""Logical element on the page. Attributes: @@ -693,15 +1027,18 @@ confidence: Confidence of the OCR results on the block. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Block) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Block) + ), +) _sym_db.RegisterMessage(Block) -Paragraph = _reflection.GeneratedProtocolMessageType('Paragraph', (_message.Message,), dict( - DESCRIPTOR = _PARAGRAPH, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """Structural unit of text representing a number of words in certain order. +Paragraph = _reflection.GeneratedProtocolMessageType( + "Paragraph", + (_message.Message,), + dict( + DESCRIPTOR=_PARAGRAPH, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""Structural unit of text representing a number of words in certain order. Attributes: @@ -722,15 +1059,18 @@ confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Paragraph) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Paragraph) + ), +) _sym_db.RegisterMessage(Paragraph) -Word = _reflection.GeneratedProtocolMessageType('Word', (_message.Message,), dict( - DESCRIPTOR = _WORD, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """A word representation. +Word = _reflection.GeneratedProtocolMessageType( + "Word", + (_message.Message,), + dict( + DESCRIPTOR=_WORD, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""A word representation. Attributes: @@ -752,15 +1092,18 @@ confidence: Confidence of the OCR results for the word. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Word) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Word) + ), +) _sym_db.RegisterMessage(Word) -Symbol = _reflection.GeneratedProtocolMessageType('Symbol', (_message.Message,), dict( - DESCRIPTOR = _SYMBOL, - __module__ = 'google.cloud.vision_v1p2beta1.proto.text_annotation_pb2' - , - __doc__ = """A single symbol representation. +Symbol = _reflection.GeneratedProtocolMessageType( + "Symbol", + (_message.Message,), + dict( + DESCRIPTOR=_SYMBOL, + __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + __doc__="""A single symbol representation. Attributes: @@ -781,11 +1124,17 @@ confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Symbol) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Symbol) + ), +) _sym_db.RegisterMessage(Symbol) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p2beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p2beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py b/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py b/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py index a24b03258d0ee..cb70c171e1e97 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/vision_v1p2beta1/proto/web_detection.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,279 +19,483 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p2beta1/proto/web_detection.proto', - package='google.cloud.vision.v1p2beta1', - syntax='proto3', - serialized_pb=_b('\n7google/cloud/vision_v1p2beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p2beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p2beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/vision_v1p2beta1/proto/web_detection.proto", + package="google.cloud.vision.v1p2beta1", + syntax="proto3", + serialized_pb=_b( + '\n7google/cloud/vision_v1p2beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p2beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p2beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _WEBDETECTION_WEBENTITY = _descriptor.Descriptor( - name='WebEntity', - full_name='google.cloud.vision.v1p2beta1.WebDetection.WebEntity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebEntity.entity_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebEntity.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebEntity.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=642, - serialized_end=708, + name="WebEntity", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebEntity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebEntity.entity_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebEntity.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebEntity.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=642, + serialized_end=708, ) _WEBDETECTION_WEBIMAGE = _descriptor.Descriptor( - name='WebImage', - full_name='google.cloud.vision.v1p2beta1.WebDetection.WebImage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebImage.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebImage.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=710, - serialized_end=748, + name="WebImage", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebImage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebImage.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebImage.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=710, + serialized_end=748, ) _WEBDETECTION_WEBPAGE = _descriptor.Descriptor( - name='WebPage', - full_name='google.cloud.vision.v1p2beta1.WebDetection.WebPage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebPage.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebPage.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_title', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebPage.page_title', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_matching_images', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebPage.full_matching_images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_matching_images', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebPage.partial_matching_images', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=751, - serialized_end=979, + name="WebPage", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebPage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebPage.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebPage.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_title", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebPage.page_title", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_matching_images", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebPage.full_matching_images", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partial_matching_images", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebPage.partial_matching_images", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=751, + serialized_end=979, ) _WEBDETECTION_WEBLABEL = _descriptor.Descriptor( - name='WebLabel', - full_name='google.cloud.vision.v1p2beta1.WebDetection.WebLabel', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebLabel.label', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.vision.v1p2beta1.WebDetection.WebLabel.language_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=981, - serialized_end=1029, + name="WebLabel", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebLabel", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebLabel.label", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.vision.v1p2beta1.WebDetection.WebLabel.language_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=981, + serialized_end=1029, ) _WEBDETECTION = _descriptor.Descriptor( - name='WebDetection', - full_name='google.cloud.vision.v1p2beta1.WebDetection', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='web_entities', full_name='google.cloud.vision.v1p2beta1.WebDetection.web_entities', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_matching_images', full_name='google.cloud.vision.v1p2beta1.WebDetection.full_matching_images', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_matching_images', full_name='google.cloud.vision.v1p2beta1.WebDetection.partial_matching_images', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pages_with_matching_images', full_name='google.cloud.vision.v1p2beta1.WebDetection.pages_with_matching_images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='visually_similar_images', full_name='google.cloud.vision.v1p2beta1.WebDetection.visually_similar_images', index=4, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='best_guess_labels', full_name='google.cloud.vision.v1p2beta1.WebDetection.best_guess_labels', index=5, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_WEBDETECTION_WEBENTITY, _WEBDETECTION_WEBIMAGE, _WEBDETECTION_WEBPAGE, _WEBDETECTION_WEBLABEL, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=121, - serialized_end=1029, + name="WebDetection", + full_name="google.cloud.vision.v1p2beta1.WebDetection", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="web_entities", + full_name="google.cloud.vision.v1p2beta1.WebDetection.web_entities", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_matching_images", + full_name="google.cloud.vision.v1p2beta1.WebDetection.full_matching_images", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partial_matching_images", + full_name="google.cloud.vision.v1p2beta1.WebDetection.partial_matching_images", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pages_with_matching_images", + full_name="google.cloud.vision.v1p2beta1.WebDetection.pages_with_matching_images", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="visually_similar_images", + full_name="google.cloud.vision.v1p2beta1.WebDetection.visually_similar_images", + index=4, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="best_guess_labels", + full_name="google.cloud.vision.v1p2beta1.WebDetection.best_guess_labels", + index=5, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _WEBDETECTION_WEBENTITY, + _WEBDETECTION_WEBIMAGE, + _WEBDETECTION_WEBPAGE, + _WEBDETECTION_WEBLABEL, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=121, + serialized_end=1029, ) _WEBDETECTION_WEBENTITY.containing_type = _WEBDETECTION _WEBDETECTION_WEBIMAGE.containing_type = _WEBDETECTION -_WEBDETECTION_WEBPAGE.fields_by_name['full_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION_WEBPAGE.fields_by_name['partial_matching_images'].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION_WEBPAGE.fields_by_name[ + "full_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION_WEBPAGE.fields_by_name[ + "partial_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE _WEBDETECTION_WEBPAGE.containing_type = _WEBDETECTION _WEBDETECTION_WEBLABEL.containing_type = _WEBDETECTION -_WEBDETECTION.fields_by_name['web_entities'].message_type = _WEBDETECTION_WEBENTITY -_WEBDETECTION.fields_by_name['full_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['partial_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['pages_with_matching_images'].message_type = _WEBDETECTION_WEBPAGE -_WEBDETECTION.fields_by_name['visually_similar_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['best_guess_labels'].message_type = _WEBDETECTION_WEBLABEL -DESCRIPTOR.message_types_by_name['WebDetection'] = _WEBDETECTION +_WEBDETECTION.fields_by_name["web_entities"].message_type = _WEBDETECTION_WEBENTITY +_WEBDETECTION.fields_by_name[ + "full_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name[ + "partial_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name[ + "pages_with_matching_images" +].message_type = _WEBDETECTION_WEBPAGE +_WEBDETECTION.fields_by_name[ + "visually_similar_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name["best_guess_labels"].message_type = _WEBDETECTION_WEBLABEL +DESCRIPTOR.message_types_by_name["WebDetection"] = _WEBDETECTION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -WebDetection = _reflection.GeneratedProtocolMessageType('WebDetection', (_message.Message,), dict( - - WebEntity = _reflection.GeneratedProtocolMessageType('WebEntity', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBENTITY, - __module__ = 'google.cloud.vision_v1p2beta1.proto.web_detection_pb2' - , - __doc__ = """Entity deduced from similar images on the Internet. +WebDetection = _reflection.GeneratedProtocolMessageType( + "WebDetection", + (_message.Message,), + dict( + WebEntity=_reflection.GeneratedProtocolMessageType( + "WebEntity", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBENTITY, + __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + __doc__="""Entity deduced from similar images on the Internet. Attributes: @@ -301,15 +507,16 @@ description: Canonical description of the entity, in English. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) - )) - , - - WebImage = _reflection.GeneratedProtocolMessageType('WebImage', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBIMAGE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.web_detection_pb2' - , - __doc__ = """Metadata for online images. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) + ), + ), + WebImage=_reflection.GeneratedProtocolMessageType( + "WebImage", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBIMAGE, + __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + __doc__="""Metadata for online images. Attributes: @@ -318,15 +525,16 @@ score: (Deprecated) Overall relevancy score for the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebImage) - )) - , - - WebPage = _reflection.GeneratedProtocolMessageType('WebPage', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBPAGE, - __module__ = 'google.cloud.vision_v1p2beta1.proto.web_detection_pb2' - , - __doc__ = """Metadata for web pages. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebImage) + ), + ), + WebPage=_reflection.GeneratedProtocolMessageType( + "WebPage", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBPAGE, + __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + __doc__="""Metadata for web pages. Attributes: @@ -345,15 +553,16 @@ original image will likely have partial matching for its crops. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebPage) - )) - , - - WebLabel = _reflection.GeneratedProtocolMessageType('WebLabel', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBLABEL, - __module__ = 'google.cloud.vision_v1p2beta1.proto.web_detection_pb2' - , - __doc__ = """Label to provide extra metadata for the web detection. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebPage) + ), + ), + WebLabel=_reflection.GeneratedProtocolMessageType( + "WebLabel", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBLABEL, + __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + __doc__="""Label to provide extra metadata for the web detection. Attributes: @@ -364,13 +573,12 @@ "sr-Latn". For more information, see http://www.unicode.org/re ports/tr35/#Unicode\_locale\_identifier. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) - )) - , - DESCRIPTOR = _WEBDETECTION, - __module__ = 'google.cloud.vision_v1p2beta1.proto.web_detection_pb2' - , - __doc__ = """Relevant information for the image from the Internet. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) + ), + ), + DESCRIPTOR=_WEBDETECTION, + __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + __doc__="""Relevant information for the image from the Internet. Attributes: @@ -391,8 +599,9 @@ best_guess_labels: Best guess text labels for the request image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection) + ), +) _sym_db.RegisterMessage(WebDetection) _sym_db.RegisterMessage(WebDetection.WebEntity) _sym_db.RegisterMessage(WebDetection.WebImage) @@ -401,5 +610,10 @@ DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p2beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p2beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py b/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py b/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py index 7404d70f16555..8f92877cb2599 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/vision_v1p3beta1/proto/geometry.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,250 +19,353 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p3beta1/proto/geometry.proto', - package='google.cloud.vision.v1p3beta1', - syntax='proto3', - serialized_pb=_b('\n2google/cloud/vision_v1p3beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex\"[\n\x16NormalizedBoundingPoly\x12\x41\n\x08vertices\x18\x01 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex\"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/vision_v1p3beta1/proto/geometry.proto", + package="google.cloud.vision.v1p3beta1", + syntax="proto3", + serialized_pb=_b( + '\n2google/cloud/vision_v1p3beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"[\n\x16NormalizedBoundingPoly\x12\x41\n\x08vertices\x18\x01 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _VERTEX = _descriptor.Descriptor( - name='Vertex', - full_name='google.cloud.vision.v1p3beta1.Vertex', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='x', full_name='google.cloud.vision.v1p3beta1.Vertex.x', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='y', full_name='google.cloud.vision.v1p3beta1.Vertex.y', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=115, - serialized_end=145, + name="Vertex", + full_name="google.cloud.vision.v1p3beta1.Vertex", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="x", + full_name="google.cloud.vision.v1p3beta1.Vertex.x", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="y", + full_name="google.cloud.vision.v1p3beta1.Vertex.y", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=115, + serialized_end=145, ) _NORMALIZEDVERTEX = _descriptor.Descriptor( - name='NormalizedVertex', - full_name='google.cloud.vision.v1p3beta1.NormalizedVertex', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='x', full_name='google.cloud.vision.v1p3beta1.NormalizedVertex.x', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='y', full_name='google.cloud.vision.v1p3beta1.NormalizedVertex.y', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=147, - serialized_end=187, + name="NormalizedVertex", + full_name="google.cloud.vision.v1p3beta1.NormalizedVertex", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="x", + full_name="google.cloud.vision.v1p3beta1.NormalizedVertex.x", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="y", + full_name="google.cloud.vision.v1p3beta1.NormalizedVertex.y", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=147, + serialized_end=187, ) _BOUNDINGPOLY = _descriptor.Descriptor( - name='BoundingPoly', - full_name='google.cloud.vision.v1p3beta1.BoundingPoly', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='vertices', full_name='google.cloud.vision.v1p3beta1.BoundingPoly.vertices', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='normalized_vertices', full_name='google.cloud.vision.v1p3beta1.BoundingPoly.normalized_vertices', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=190, - serialized_end=339, + name="BoundingPoly", + full_name="google.cloud.vision.v1p3beta1.BoundingPoly", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="vertices", + full_name="google.cloud.vision.v1p3beta1.BoundingPoly.vertices", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="normalized_vertices", + full_name="google.cloud.vision.v1p3beta1.BoundingPoly.normalized_vertices", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=190, + serialized_end=339, ) _NORMALIZEDBOUNDINGPOLY = _descriptor.Descriptor( - name='NormalizedBoundingPoly', - full_name='google.cloud.vision.v1p3beta1.NormalizedBoundingPoly', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='vertices', full_name='google.cloud.vision.v1p3beta1.NormalizedBoundingPoly.vertices', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=341, - serialized_end=432, + name="NormalizedBoundingPoly", + full_name="google.cloud.vision.v1p3beta1.NormalizedBoundingPoly", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="vertices", + full_name="google.cloud.vision.v1p3beta1.NormalizedBoundingPoly.vertices", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=341, + serialized_end=432, ) _POSITION = _descriptor.Descriptor( - name='Position', - full_name='google.cloud.vision.v1p3beta1.Position', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='x', full_name='google.cloud.vision.v1p3beta1.Position.x', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='y', full_name='google.cloud.vision.v1p3beta1.Position.y', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='z', full_name='google.cloud.vision.v1p3beta1.Position.z', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=434, - serialized_end=477, + name="Position", + full_name="google.cloud.vision.v1p3beta1.Position", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="x", + full_name="google.cloud.vision.v1p3beta1.Position.x", + index=0, + number=1, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="y", + full_name="google.cloud.vision.v1p3beta1.Position.y", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="z", + full_name="google.cloud.vision.v1p3beta1.Position.z", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=434, + serialized_end=477, ) -_BOUNDINGPOLY.fields_by_name['vertices'].message_type = _VERTEX -_BOUNDINGPOLY.fields_by_name['normalized_vertices'].message_type = _NORMALIZEDVERTEX -_NORMALIZEDBOUNDINGPOLY.fields_by_name['vertices'].message_type = _NORMALIZEDVERTEX -DESCRIPTOR.message_types_by_name['Vertex'] = _VERTEX -DESCRIPTOR.message_types_by_name['NormalizedVertex'] = _NORMALIZEDVERTEX -DESCRIPTOR.message_types_by_name['BoundingPoly'] = _BOUNDINGPOLY -DESCRIPTOR.message_types_by_name['NormalizedBoundingPoly'] = _NORMALIZEDBOUNDINGPOLY -DESCRIPTOR.message_types_by_name['Position'] = _POSITION +_BOUNDINGPOLY.fields_by_name["vertices"].message_type = _VERTEX +_BOUNDINGPOLY.fields_by_name["normalized_vertices"].message_type = _NORMALIZEDVERTEX +_NORMALIZEDBOUNDINGPOLY.fields_by_name["vertices"].message_type = _NORMALIZEDVERTEX +DESCRIPTOR.message_types_by_name["Vertex"] = _VERTEX +DESCRIPTOR.message_types_by_name["NormalizedVertex"] = _NORMALIZEDVERTEX +DESCRIPTOR.message_types_by_name["BoundingPoly"] = _BOUNDINGPOLY +DESCRIPTOR.message_types_by_name["NormalizedBoundingPoly"] = _NORMALIZEDBOUNDINGPOLY +DESCRIPTOR.message_types_by_name["Position"] = _POSITION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Vertex = _reflection.GeneratedProtocolMessageType('Vertex', (_message.Message,), dict( - DESCRIPTOR = _VERTEX, - __module__ = 'google.cloud.vision_v1p3beta1.proto.geometry_pb2' - , - __doc__ = """X coordinate. +Vertex = _reflection.GeneratedProtocolMessageType( + "Vertex", + (_message.Message,), + dict( + DESCRIPTOR=_VERTEX, + __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", + __doc__="""X coordinate. Attributes: y: Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Vertex) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Vertex) + ), +) _sym_db.RegisterMessage(Vertex) -NormalizedVertex = _reflection.GeneratedProtocolMessageType('NormalizedVertex', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDVERTEX, - __module__ = 'google.cloud.vision_v1p3beta1.proto.geometry_pb2' - , - __doc__ = """X coordinate. +NormalizedVertex = _reflection.GeneratedProtocolMessageType( + "NormalizedVertex", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDVERTEX, + __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", + __doc__="""X coordinate. Attributes: y: Y coordinate. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedVertex) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedVertex) + ), +) _sym_db.RegisterMessage(NormalizedVertex) -BoundingPoly = _reflection.GeneratedProtocolMessageType('BoundingPoly', (_message.Message,), dict( - DESCRIPTOR = _BOUNDINGPOLY, - __module__ = 'google.cloud.vision_v1p3beta1.proto.geometry_pb2' - , - __doc__ = """A bounding polygon for the detected image annotation. +BoundingPoly = _reflection.GeneratedProtocolMessageType( + "BoundingPoly", + (_message.Message,), + dict( + DESCRIPTOR=_BOUNDINGPOLY, + __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", + __doc__="""A bounding polygon for the detected image annotation. Attributes: @@ -269,30 +374,36 @@ normalized_vertices: The bounding polygon normalized vertices. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BoundingPoly) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BoundingPoly) + ), +) _sym_db.RegisterMessage(BoundingPoly) -NormalizedBoundingPoly = _reflection.GeneratedProtocolMessageType('NormalizedBoundingPoly', (_message.Message,), dict( - DESCRIPTOR = _NORMALIZEDBOUNDINGPOLY, - __module__ = 'google.cloud.vision_v1p3beta1.proto.geometry_pb2' - , - __doc__ = """A normalized bounding polygon around a portion of an image. +NormalizedBoundingPoly = _reflection.GeneratedProtocolMessageType( + "NormalizedBoundingPoly", + (_message.Message,), + dict( + DESCRIPTOR=_NORMALIZEDBOUNDINGPOLY, + __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", + __doc__="""A normalized bounding polygon around a portion of an image. Attributes: vertices: Normalized vertices of the bounding polygon. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedBoundingPoly) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedBoundingPoly) + ), +) _sym_db.RegisterMessage(NormalizedBoundingPoly) -Position = _reflection.GeneratedProtocolMessageType('Position', (_message.Message,), dict( - DESCRIPTOR = _POSITION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.geometry_pb2' - , - __doc__ = """A 3D position in the image, used primarily for Face detection landmarks. +Position = _reflection.GeneratedProtocolMessageType( + "Position", + (_message.Message,), + dict( + DESCRIPTOR=_POSITION, + __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", + __doc__="""A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. @@ -305,11 +416,17 @@ z: Z coordinate (or depth). """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Position) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Position) + ), +) _sym_db.RegisterMessage(Position) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py b/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py b/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py index 662c48a60c692..fd78b0282ed51 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py @@ -2,24 +2,36 @@ # source: google/cloud/vision_v1p3beta1/proto/image_annotator.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1p3beta1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2 -from google.cloud.vision_v1p3beta1.proto import product_search_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2 -from google.cloud.vision_v1p3beta1.proto import text_annotation_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_text__annotation__pb2 -from google.cloud.vision_v1p3beta1.proto import web_detection_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_web__detection__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.vision_v1p3beta1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2, +) +from google.cloud.vision_v1p3beta1.proto import ( + product_search_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2, +) +from google.cloud.vision_v1p3beta1.proto import ( + text_annotation_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_text__annotation__pb2, +) +from google.cloud.vision_v1p3beta1.proto import ( + web_detection_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_web__detection__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 from google.type import color_pb2 as google_dot_type_dot_color__pb2 @@ -27,48 +39,55 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p3beta1/proto/image_annotator.proto', - package='google.cloud.vision.v1p3beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/vision_v1p3beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p3beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p3beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto\"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p3beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t\"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13\"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.ImageSource\"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p3beta1.Position\"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10\"\"4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04\"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.Property\"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02\"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.ColorInfo\"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p3beta1.DominantColorsAnnotation\"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02\"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.CropHint\"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02\"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08\"\xd8\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.CropHintsParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p3beta1.WebDetectionParams\"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p3beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext\":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05\"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.ImageAnnotationContext\"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse\"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.AnnotateImageRequest\"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse\"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig\"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig\"k\n\x1e\x41syncBatchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest\"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse\"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p3beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t\"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05\"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p3beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf0\x02\n\x0eImageAnnotator\x12\xb3\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1p3beta1/images:annotate:\x01*\x12\xa7\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation\".\x82\xd3\xe4\x93\x02(\"#/v1p3beta1/files:asyncBatchAnnotate:\x01*B\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_text__annotation__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_web__detection__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,google_dot_type_dot_color__pb2.DESCRIPTOR,google_dot_type_dot_latlng__pb2.DESCRIPTOR,]) + name="google/cloud/vision_v1p3beta1/proto/image_annotator.proto", + package="google.cloud.vision.v1p3beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/vision_v1p3beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p3beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p3beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p3beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p3beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.Property"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p3beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xd8\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.CropHintsParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p3beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p3beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.AnnotateImageRequest"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"k\n\x1e\x41syncBatchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p3beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p3beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf0\x02\n\x0eImageAnnotator\x12\xb3\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse"%\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p3beta1/images:annotate:\x01*\x12\xa7\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation".\x82\xd3\xe4\x93\x02("#/v1p3beta1/files:asyncBatchAnnotate:\x01*B\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_text__annotation__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_web__detection__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + google_dot_type_dot_color__pb2.DESCRIPTOR, + google_dot_type_dot_latlng__pb2.DESCRIPTOR, + ], +) _LIKELIHOOD = _descriptor.EnumDescriptor( - name='Likelihood', - full_name='google.cloud.vision.v1p3beta1.Likelihood', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_UNLIKELY', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNLIKELY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POSSIBLE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIKELY', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERY_LIKELY', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=7669, - serialized_end=7770, + name="Likelihood", + full_name="google.cloud.vision.v1p3beta1.Likelihood", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_UNLIKELY", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UNLIKELY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="POSSIBLE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LIKELY", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERY_LIKELY", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=7669, + serialized_end=7770, ) _sym_db.RegisterEnumDescriptor(_LIKELIHOOD) @@ -82,1918 +101,3014 @@ _FEATURE_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.vision.v1p3beta1.Feature.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FACE_DETECTION', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LANDMARK_DETECTION', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOGO_DETECTION', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL_DETECTION', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT_DETECTION', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DOCUMENT_TEXT_DETECTION', index=6, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SAFE_SEARCH_DETECTION', index=7, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMAGE_PROPERTIES', index=8, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CROP_HINTS', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEB_DETECTION', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRODUCT_SEARCH', index=11, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OBJECT_LOCALIZATION', index=12, number=19, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=602, - serialized_end=893, + name="Type", + full_name="google.cloud.vision.v1p3beta1.Feature.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FACE_DETECTION", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LANDMARK_DETECTION", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOGO_DETECTION", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LABEL_DETECTION", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT_DETECTION", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DOCUMENT_TEXT_DETECTION", index=6, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SAFE_SEARCH_DETECTION", index=7, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="IMAGE_PROPERTIES", index=8, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CROP_HINTS", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WEB_DETECTION", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PRODUCT_SEARCH", index=11, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OBJECT_LOCALIZATION", index=12, number=19, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=602, + serialized_end=893, ) _sym_db.RegisterEnumDescriptor(_FEATURE_TYPE) _FACEANNOTATION_LANDMARK_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_LANDMARK', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_OF_LEFT_EYEBROW', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_OF_LEFT_EYEBROW', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_OF_RIGHT_EYEBROW', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_OF_RIGHT_EYEBROW', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MIDPOINT_BETWEEN_EYES', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_TIP', index=8, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPPER_LIP', index=9, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOWER_LIP', index=10, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_LEFT', index=11, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_RIGHT', index=12, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOUTH_CENTER', index=13, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_RIGHT', index=14, number=14, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_LEFT', index=15, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOSE_BOTTOM_CENTER', index=16, number=16, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_TOP_BOUNDARY', index=17, number=17, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_RIGHT_CORNER', index=18, number=18, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_BOTTOM_BOUNDARY', index=19, number=19, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_LEFT_CORNER', index=20, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_TOP_BOUNDARY', index=21, number=21, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_RIGHT_CORNER', index=22, number=22, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_BOTTOM_BOUNDARY', index=23, number=23, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_LEFT_CORNER', index=24, number=24, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYEBROW_UPPER_MIDPOINT', index=25, number=25, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYEBROW_UPPER_MIDPOINT', index=26, number=26, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EAR_TRAGION', index=27, number=27, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EAR_TRAGION', index=28, number=28, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LEFT_EYE_PUPIL', index=29, number=29, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RIGHT_EYE_PUPIL', index=30, number=30, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FOREHEAD_GLABELLA', index=31, number=31, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_GNATHION', index=32, number=32, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_LEFT_GONION', index=33, number=33, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHIN_RIGHT_GONION', index=34, number=34, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=2038, - serialized_end=2858, + name="Type", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN_LANDMARK", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_OF_LEFT_EYEBROW", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_OF_LEFT_EYEBROW", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_OF_RIGHT_EYEBROW", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_OF_RIGHT_EYEBROW", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MIDPOINT_BETWEEN_EYES", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_TIP", index=8, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="UPPER_LIP", index=9, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LOWER_LIP", index=10, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_LEFT", index=11, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_RIGHT", index=12, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MOUTH_CENTER", index=13, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_RIGHT", index=14, number=14, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_LEFT", index=15, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="NOSE_BOTTOM_CENTER", index=16, number=16, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_TOP_BOUNDARY", index=17, number=17, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_RIGHT_CORNER", index=18, number=18, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_BOTTOM_BOUNDARY", + index=19, + number=19, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_LEFT_CORNER", index=20, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_TOP_BOUNDARY", index=21, number=21, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_RIGHT_CORNER", index=22, number=22, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_BOTTOM_BOUNDARY", + index=23, + number=23, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_LEFT_CORNER", index=24, number=24, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYEBROW_UPPER_MIDPOINT", + index=25, + number=25, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYEBROW_UPPER_MIDPOINT", + index=26, + number=26, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EAR_TRAGION", index=27, number=27, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EAR_TRAGION", index=28, number=28, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LEFT_EYE_PUPIL", index=29, number=29, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RIGHT_EYE_PUPIL", index=30, number=30, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FOREHEAD_GLABELLA", index=31, number=31, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_GNATHION", index=32, number=32, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_LEFT_GONION", index=33, number=33, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHIN_RIGHT_GONION", index=34, number=34, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=2038, + serialized_end=2858, ) _sym_db.RegisterEnumDescriptor(_FACEANNOTATION_LANDMARK_TYPE) _OPERATIONMETADATA_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.vision.v1p3beta1.OperationMetadata.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CREATED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUNNING', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELLED', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=7586, - serialized_end=7667, + name="State", + full_name="google.cloud.vision.v1p3beta1.OperationMetadata.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CREATED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RUNNING", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DONE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=7586, + serialized_end=7667, ) _sym_db.RegisterEnumDescriptor(_OPERATIONMETADATA_STATE) _FEATURE = _descriptor.Descriptor( - name='Feature', - full_name='google.cloud.vision.v1p3beta1.Feature', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p3beta1.Feature.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_results', full_name='google.cloud.vision.v1p3beta1.Feature.max_results', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='google.cloud.vision.v1p3beta1.Feature.model', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEATURE_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=495, - serialized_end=893, + name="Feature", + full_name="google.cloud.vision.v1p3beta1.Feature", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p3beta1.Feature.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_results", + full_name="google.cloud.vision.v1p3beta1.Feature.max_results", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="model", + full_name="google.cloud.vision.v1p3beta1.Feature.model", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_FEATURE_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=495, + serialized_end=893, ) _IMAGESOURCE = _descriptor.Descriptor( - name='ImageSource', - full_name='google.cloud.vision.v1p3beta1.ImageSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_image_uri', full_name='google.cloud.vision.v1p3beta1.ImageSource.gcs_image_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_uri', full_name='google.cloud.vision.v1p3beta1.ImageSource.image_uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=895, - serialized_end=950, + name="ImageSource", + full_name="google.cloud.vision.v1p3beta1.ImageSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_image_uri", + full_name="google.cloud.vision.v1p3beta1.ImageSource.gcs_image_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_uri", + full_name="google.cloud.vision.v1p3beta1.ImageSource.image_uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=895, + serialized_end=950, ) _IMAGE = _descriptor.Descriptor( - name='Image', - full_name='google.cloud.vision.v1p3beta1.Image', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.vision.v1p3beta1.Image.content', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source', full_name='google.cloud.vision.v1p3beta1.Image.source', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=952, - serialized_end=1036, + name="Image", + full_name="google.cloud.vision.v1p3beta1.Image", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.cloud.vision.v1p3beta1.Image.content", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b(""), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="source", + full_name="google.cloud.vision.v1p3beta1.Image.source", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=952, + serialized_end=1036, ) _FACEANNOTATION_LANDMARK = _descriptor.Descriptor( - name='Landmark', - full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.type', index=0, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='position', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.position', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FACEANNOTATION_LANDMARK_TYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1891, - serialized_end=2858, + name="Landmark", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.type", + index=0, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="position", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.position", + index=1, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_FACEANNOTATION_LANDMARK_TYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1891, + serialized_end=2858, ) _FACEANNOTATION = _descriptor.Descriptor( - name='FaceAnnotation', - full_name='google.cloud.vision.v1p3beta1.FaceAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.bounding_poly', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='fd_bounding_poly', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.fd_bounding_poly', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmarks', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.landmarks', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='roll_angle', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.roll_angle', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pan_angle', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.pan_angle', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tilt_angle', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.tilt_angle', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detection_confidence', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.detection_confidence', index=6, - number=7, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmarking_confidence', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.landmarking_confidence', index=7, - number=8, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='joy_likelihood', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.joy_likelihood', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sorrow_likelihood', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.sorrow_likelihood', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='anger_likelihood', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.anger_likelihood', index=10, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='surprise_likelihood', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.surprise_likelihood', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='under_exposed_likelihood', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.under_exposed_likelihood', index=12, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blurred_likelihood', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.blurred_likelihood', index=13, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headwear_likelihood', full_name='google.cloud.vision.v1p3beta1.FaceAnnotation.headwear_likelihood', index=14, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_FACEANNOTATION_LANDMARK, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1039, - serialized_end=2858, + name="FaceAnnotation", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.bounding_poly", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="fd_bounding_poly", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.fd_bounding_poly", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmarks", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.landmarks", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="roll_angle", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.roll_angle", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pan_angle", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.pan_angle", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tilt_angle", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.tilt_angle", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detection_confidence", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.detection_confidence", + index=6, + number=7, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmarking_confidence", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.landmarking_confidence", + index=7, + number=8, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="joy_likelihood", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.joy_likelihood", + index=8, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sorrow_likelihood", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.sorrow_likelihood", + index=9, + number=10, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="anger_likelihood", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.anger_likelihood", + index=10, + number=11, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="surprise_likelihood", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.surprise_likelihood", + index=11, + number=12, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="under_exposed_likelihood", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.under_exposed_likelihood", + index=12, + number=13, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blurred_likelihood", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.blurred_likelihood", + index=13, + number=14, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headwear_likelihood", + full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.headwear_likelihood", + index=14, + number=15, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_FACEANNOTATION_LANDMARK], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1039, + serialized_end=2858, ) _LOCATIONINFO = _descriptor.Descriptor( - name='LocationInfo', - full_name='google.cloud.vision.v1p3beta1.LocationInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='lat_lng', full_name='google.cloud.vision.v1p3beta1.LocationInfo.lat_lng', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2860, - serialized_end=2912, + name="LocationInfo", + full_name="google.cloud.vision.v1p3beta1.LocationInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="lat_lng", + full_name="google.cloud.vision.v1p3beta1.LocationInfo.lat_lng", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2860, + serialized_end=2912, ) _PROPERTY = _descriptor.Descriptor( - name='Property', - full_name='google.cloud.vision.v1p3beta1.Property', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.Property.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.vision.v1p3beta1.Property.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uint64_value', full_name='google.cloud.vision.v1p3beta1.Property.uint64_value', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2914, - serialized_end=2975, + name="Property", + full_name="google.cloud.vision.v1p3beta1.Property", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.Property.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.vision.v1p3beta1.Property.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uint64_value", + full_name="google.cloud.vision.v1p3beta1.Property.uint64_value", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2914, + serialized_end=2975, ) _ENTITYANNOTATION = _descriptor.Descriptor( - name='EntityAnnotation', - full_name='google.cloud.vision.v1p3beta1.EntityAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mid', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.mid', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locale', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.locale', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.score', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topicality', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.topicality', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.bounding_poly', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='locations', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.locations', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='properties', full_name='google.cloud.vision.v1p3beta1.EntityAnnotation.properties', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2978, - serialized_end=3294, + name="EntityAnnotation", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="mid", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.mid", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locale", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.locale", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.score", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="topicality", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.topicality", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.bounding_poly", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="locations", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.locations", + index=7, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="properties", + full_name="google.cloud.vision.v1p3beta1.EntityAnnotation.properties", + index=8, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2978, + serialized_end=3294, ) _LOCALIZEDOBJECTANNOTATION = _descriptor.Descriptor( - name='LocalizedObjectAnnotation', - full_name='google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mid', full_name='google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.mid', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.language_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.score', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.bounding_poly', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3297, - serialized_end=3457, + name="LocalizedObjectAnnotation", + full_name="google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="mid", + full_name="google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.mid", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.language_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.score", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.bounding_poly", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3297, + serialized_end=3457, ) _SAFESEARCHANNOTATION = _descriptor.Descriptor( - name='SafeSearchAnnotation', - full_name='google.cloud.vision.v1p3beta1.SafeSearchAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='adult', full_name='google.cloud.vision.v1p3beta1.SafeSearchAnnotation.adult', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spoof', full_name='google.cloud.vision.v1p3beta1.SafeSearchAnnotation.spoof', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='medical', full_name='google.cloud.vision.v1p3beta1.SafeSearchAnnotation.medical', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='violence', full_name='google.cloud.vision.v1p3beta1.SafeSearchAnnotation.violence', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='racy', full_name='google.cloud.vision.v1p3beta1.SafeSearchAnnotation.racy', index=4, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3460, - serialized_end=3776, + name="SafeSearchAnnotation", + full_name="google.cloud.vision.v1p3beta1.SafeSearchAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="adult", + full_name="google.cloud.vision.v1p3beta1.SafeSearchAnnotation.adult", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="spoof", + full_name="google.cloud.vision.v1p3beta1.SafeSearchAnnotation.spoof", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="medical", + full_name="google.cloud.vision.v1p3beta1.SafeSearchAnnotation.medical", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="violence", + full_name="google.cloud.vision.v1p3beta1.SafeSearchAnnotation.violence", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="racy", + full_name="google.cloud.vision.v1p3beta1.SafeSearchAnnotation.racy", + index=4, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3460, + serialized_end=3776, ) _LATLONGRECT = _descriptor.Descriptor( - name='LatLongRect', - full_name='google.cloud.vision.v1p3beta1.LatLongRect', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='min_lat_lng', full_name='google.cloud.vision.v1p3beta1.LatLongRect.min_lat_lng', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_lat_lng', full_name='google.cloud.vision.v1p3beta1.LatLongRect.max_lat_lng', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3778, - serialized_end=3875, + name="LatLongRect", + full_name="google.cloud.vision.v1p3beta1.LatLongRect", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="min_lat_lng", + full_name="google.cloud.vision.v1p3beta1.LatLongRect.min_lat_lng", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_lat_lng", + full_name="google.cloud.vision.v1p3beta1.LatLongRect.max_lat_lng", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3778, + serialized_end=3875, ) _COLORINFO = _descriptor.Descriptor( - name='ColorInfo', - full_name='google.cloud.vision.v1p3beta1.ColorInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='color', full_name='google.cloud.vision.v1p3beta1.ColorInfo.color', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.ColorInfo.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pixel_fraction', full_name='google.cloud.vision.v1p3beta1.ColorInfo.pixel_fraction', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3877, - serialized_end=3962, + name="ColorInfo", + full_name="google.cloud.vision.v1p3beta1.ColorInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="color", + full_name="google.cloud.vision.v1p3beta1.ColorInfo.color", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.ColorInfo.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pixel_fraction", + full_name="google.cloud.vision.v1p3beta1.ColorInfo.pixel_fraction", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3877, + serialized_end=3962, ) _DOMINANTCOLORSANNOTATION = _descriptor.Descriptor( - name='DominantColorsAnnotation', - full_name='google.cloud.vision.v1p3beta1.DominantColorsAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='colors', full_name='google.cloud.vision.v1p3beta1.DominantColorsAnnotation.colors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3964, - serialized_end=4048, + name="DominantColorsAnnotation", + full_name="google.cloud.vision.v1p3beta1.DominantColorsAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="colors", + full_name="google.cloud.vision.v1p3beta1.DominantColorsAnnotation.colors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3964, + serialized_end=4048, ) _IMAGEPROPERTIES = _descriptor.Descriptor( - name='ImageProperties', - full_name='google.cloud.vision.v1p3beta1.ImageProperties', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='dominant_colors', full_name='google.cloud.vision.v1p3beta1.ImageProperties.dominant_colors', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4050, - serialized_end=4149, + name="ImageProperties", + full_name="google.cloud.vision.v1p3beta1.ImageProperties", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="dominant_colors", + full_name="google.cloud.vision.v1p3beta1.ImageProperties.dominant_colors", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4050, + serialized_end=4149, ) _CROPHINT = _descriptor.Descriptor( - name='CropHint', - full_name='google.cloud.vision.v1p3beta1.CropHint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p3beta1.CropHint.bounding_poly', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.CropHint.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='importance_fraction', full_name='google.cloud.vision.v1p3beta1.CropHint.importance_fraction', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4151, - serialized_end=4278, + name="CropHint", + full_name="google.cloud.vision.v1p3beta1.CropHint", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p3beta1.CropHint.bounding_poly", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.CropHint.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="importance_fraction", + full_name="google.cloud.vision.v1p3beta1.CropHint.importance_fraction", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4151, + serialized_end=4278, ) _CROPHINTSANNOTATION = _descriptor.Descriptor( - name='CropHintsAnnotation', - full_name='google.cloud.vision.v1p3beta1.CropHintsAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crop_hints', full_name='google.cloud.vision.v1p3beta1.CropHintsAnnotation.crop_hints', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4280, - serialized_end=4362, + name="CropHintsAnnotation", + full_name="google.cloud.vision.v1p3beta1.CropHintsAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crop_hints", + full_name="google.cloud.vision.v1p3beta1.CropHintsAnnotation.crop_hints", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4280, + serialized_end=4362, ) _CROPHINTSPARAMS = _descriptor.Descriptor( - name='CropHintsParams', - full_name='google.cloud.vision.v1p3beta1.CropHintsParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='aspect_ratios', full_name='google.cloud.vision.v1p3beta1.CropHintsParams.aspect_ratios', index=0, - number=1, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4364, - serialized_end=4404, + name="CropHintsParams", + full_name="google.cloud.vision.v1p3beta1.CropHintsParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="aspect_ratios", + full_name="google.cloud.vision.v1p3beta1.CropHintsParams.aspect_ratios", + index=0, + number=1, + type=2, + cpp_type=6, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4364, + serialized_end=4404, ) _WEBDETECTIONPARAMS = _descriptor.Descriptor( - name='WebDetectionParams', - full_name='google.cloud.vision.v1p3beta1.WebDetectionParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='include_geo_results', full_name='google.cloud.vision.v1p3beta1.WebDetectionParams.include_geo_results', index=0, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4406, - serialized_end=4455, + name="WebDetectionParams", + full_name="google.cloud.vision.v1p3beta1.WebDetectionParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="include_geo_results", + full_name="google.cloud.vision.v1p3beta1.WebDetectionParams.include_geo_results", + index=0, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4406, + serialized_end=4455, ) _IMAGECONTEXT = _descriptor.Descriptor( - name='ImageContext', - full_name='google.cloud.vision.v1p3beta1.ImageContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='lat_long_rect', full_name='google.cloud.vision.v1p3beta1.ImageContext.lat_long_rect', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_hints', full_name='google.cloud.vision.v1p3beta1.ImageContext.language_hints', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crop_hints_params', full_name='google.cloud.vision.v1p3beta1.ImageContext.crop_hints_params', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_search_params', full_name='google.cloud.vision.v1p3beta1.ImageContext.product_search_params', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='web_detection_params', full_name='google.cloud.vision.v1p3beta1.ImageContext.web_detection_params', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4458, - serialized_end=4802, + name="ImageContext", + full_name="google.cloud.vision.v1p3beta1.ImageContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="lat_long_rect", + full_name="google.cloud.vision.v1p3beta1.ImageContext.lat_long_rect", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_hints", + full_name="google.cloud.vision.v1p3beta1.ImageContext.language_hints", + index=1, + number=2, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crop_hints_params", + full_name="google.cloud.vision.v1p3beta1.ImageContext.crop_hints_params", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_search_params", + full_name="google.cloud.vision.v1p3beta1.ImageContext.product_search_params", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="web_detection_params", + full_name="google.cloud.vision.v1p3beta1.ImageContext.web_detection_params", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4458, + serialized_end=4802, ) _ANNOTATEIMAGEREQUEST = _descriptor.Descriptor( - name='AnnotateImageRequest', - full_name='google.cloud.vision.v1p3beta1.AnnotateImageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='image', full_name='google.cloud.vision.v1p3beta1.AnnotateImageRequest.image', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.vision.v1p3beta1.AnnotateImageRequest.features', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_context', full_name='google.cloud.vision.v1p3beta1.AnnotateImageRequest.image_context', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4805, - serialized_end=5006, + name="AnnotateImageRequest", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="image", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageRequest.image", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageRequest.features", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_context", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageRequest.image_context", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4805, + serialized_end=5006, ) _IMAGEANNOTATIONCONTEXT = _descriptor.Descriptor( - name='ImageAnnotationContext', - full_name='google.cloud.vision.v1p3beta1.ImageAnnotationContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.vision.v1p3beta1.ImageAnnotationContext.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_number', full_name='google.cloud.vision.v1p3beta1.ImageAnnotationContext.page_number', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5008, - serialized_end=5066, + name="ImageAnnotationContext", + full_name="google.cloud.vision.v1p3beta1.ImageAnnotationContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.vision.v1p3beta1.ImageAnnotationContext.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_number", + full_name="google.cloud.vision.v1p3beta1.ImageAnnotationContext.page_number", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5008, + serialized_end=5066, ) _ANNOTATEIMAGERESPONSE = _descriptor.Descriptor( - name='AnnotateImageResponse', - full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='face_annotations', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.face_annotations', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landmark_annotations', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.landmark_annotations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logo_annotations', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.logo_annotations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_annotations', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.label_annotations', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='localized_object_annotations', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.localized_object_annotations', index=4, - number=22, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_annotations', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.text_annotations', index=5, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_text_annotation', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.full_text_annotation', index=6, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='safe_search_annotation', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.safe_search_annotation', index=7, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_properties_annotation', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.image_properties_annotation', index=8, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crop_hints_annotation', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.crop_hints_annotation', index=9, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='web_detection', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.web_detection', index=10, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_search_results', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.product_search_results', index=11, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.error', index=12, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='context', full_name='google.cloud.vision.v1p3beta1.AnnotateImageResponse.context', index=13, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5069, - serialized_end=6156, + name="AnnotateImageResponse", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="face_annotations", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.face_annotations", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="landmark_annotations", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.landmark_annotations", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="logo_annotations", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.logo_annotations", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="label_annotations", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.label_annotations", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="localized_object_annotations", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.localized_object_annotations", + index=4, + number=22, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text_annotations", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.text_annotations", + index=5, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_text_annotation", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.full_text_annotation", + index=6, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="safe_search_annotation", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.safe_search_annotation", + index=7, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_properties_annotation", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.image_properties_annotation", + index=8, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="crop_hints_annotation", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.crop_hints_annotation", + index=9, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="web_detection", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.web_detection", + index=10, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_search_results", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.product_search_results", + index=11, + number=14, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.error", + index=12, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="context", + full_name="google.cloud.vision.v1p3beta1.AnnotateImageResponse.context", + index=13, + number=21, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5069, + serialized_end=6156, ) _ANNOTATEFILERESPONSE = _descriptor.Descriptor( - name='AnnotateFileResponse', - full_name='google.cloud.vision.v1p3beta1.AnnotateFileResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_config', full_name='google.cloud.vision.v1p3beta1.AnnotateFileResponse.input_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='responses', full_name='google.cloud.vision.v1p3beta1.AnnotateFileResponse.responses', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6159, - serialized_end=6320, + name="AnnotateFileResponse", + full_name="google.cloud.vision.v1p3beta1.AnnotateFileResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_config", + full_name="google.cloud.vision.v1p3beta1.AnnotateFileResponse.input_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="responses", + full_name="google.cloud.vision.v1p3beta1.AnnotateFileResponse.responses", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6159, + serialized_end=6320, ) _BATCHANNOTATEIMAGESREQUEST = _descriptor.Descriptor( - name='BatchAnnotateImagesRequest', - full_name='google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='requests', full_name='google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.requests', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6322, - serialized_end=6421, + name="BatchAnnotateImagesRequest", + full_name="google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="requests", + full_name="google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.requests", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6322, + serialized_end=6421, ) _BATCHANNOTATEIMAGESRESPONSE = _descriptor.Descriptor( - name='BatchAnnotateImagesResponse', - full_name='google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='responses', full_name='google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.responses', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6423, - serialized_end=6525, + name="BatchAnnotateImagesResponse", + full_name="google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="responses", + full_name="google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.responses", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6423, + serialized_end=6525, ) _ASYNCANNOTATEFILEREQUEST = _descriptor.Descriptor( - name='AsyncAnnotateFileRequest', - full_name='google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_config', full_name='google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.input_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.features', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_context', full_name='google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.image_context', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='output_config', full_name='google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.output_config', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6528, - serialized_end=6814, + name="AsyncAnnotateFileRequest", + full_name="google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="input_config", + full_name="google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.input_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="features", + full_name="google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.features", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_context", + full_name="google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.image_context", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.output_config", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6528, + serialized_end=6814, ) _ASYNCANNOTATEFILERESPONSE = _descriptor.Descriptor( - name='AsyncAnnotateFileResponse', - full_name='google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='output_config', full_name='google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.output_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6816, - serialized_end=6911, + name="AsyncAnnotateFileResponse", + full_name="google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="output_config", + full_name="google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.output_config", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6816, + serialized_end=6911, ) _ASYNCBATCHANNOTATEFILESREQUEST = _descriptor.Descriptor( - name='AsyncBatchAnnotateFilesRequest', - full_name='google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='requests', full_name='google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.requests', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6913, - serialized_end=7020, + name="AsyncBatchAnnotateFilesRequest", + full_name="google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="requests", + full_name="google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.requests", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=6913, + serialized_end=7020, ) _ASYNCBATCHANNOTATEFILESRESPONSE = _descriptor.Descriptor( - name='AsyncBatchAnnotateFilesResponse', - full_name='google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='responses', full_name='google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.responses', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7022, - serialized_end=7132, + name="AsyncBatchAnnotateFilesResponse", + full_name="google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="responses", + full_name="google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.responses", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7022, + serialized_end=7132, ) _INPUTCONFIG = _descriptor.Descriptor( - name='InputConfig', - full_name='google.cloud.vision.v1p3beta1.InputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_source', full_name='google.cloud.vision.v1p3beta1.InputConfig.gcs_source', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.cloud.vision.v1p3beta1.InputConfig.mime_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7134, - serialized_end=7228, + name="InputConfig", + full_name="google.cloud.vision.v1p3beta1.InputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_source", + full_name="google.cloud.vision.v1p3beta1.InputConfig.gcs_source", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mime_type", + full_name="google.cloud.vision.v1p3beta1.InputConfig.mime_type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7134, + serialized_end=7228, ) _OUTPUTCONFIG = _descriptor.Descriptor( - name='OutputConfig', - full_name='google.cloud.vision.v1p3beta1.OutputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_destination', full_name='google.cloud.vision.v1p3beta1.OutputConfig.gcs_destination', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='batch_size', full_name='google.cloud.vision.v1p3beta1.OutputConfig.batch_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7230, - serialized_end=7336, + name="OutputConfig", + full_name="google.cloud.vision.v1p3beta1.OutputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_destination", + full_name="google.cloud.vision.v1p3beta1.OutputConfig.gcs_destination", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="batch_size", + full_name="google.cloud.vision.v1p3beta1.OutputConfig.batch_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7230, + serialized_end=7336, ) _GCSSOURCE = _descriptor.Descriptor( - name='GcsSource', - full_name='google.cloud.vision.v1p3beta1.GcsSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.vision.v1p3beta1.GcsSource.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7338, - serialized_end=7362, + name="GcsSource", + full_name="google.cloud.vision.v1p3beta1.GcsSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.vision.v1p3beta1.GcsSource.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7338, + serialized_end=7362, ) _GCSDESTINATION = _descriptor.Descriptor( - name='GcsDestination', - full_name='google.cloud.vision.v1p3beta1.GcsDestination', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.vision.v1p3beta1.GcsDestination.uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7364, - serialized_end=7393, + name="GcsDestination", + full_name="google.cloud.vision.v1p3beta1.GcsDestination", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.vision.v1p3beta1.GcsDestination.uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7364, + serialized_end=7393, ) _OPERATIONMETADATA = _descriptor.Descriptor( - name='OperationMetadata', - full_name='google.cloud.vision.v1p3beta1.OperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.vision.v1p3beta1.OperationMetadata.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_time', full_name='google.cloud.vision.v1p3beta1.OperationMetadata.create_time', index=1, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_time', full_name='google.cloud.vision.v1p3beta1.OperationMetadata.update_time', index=2, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _OPERATIONMETADATA_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7396, - serialized_end=7667, -) - -_FEATURE.fields_by_name['type'].enum_type = _FEATURE_TYPE + name="OperationMetadata", + full_name="google.cloud.vision.v1p3beta1.OperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.vision.v1p3beta1.OperationMetadata.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="create_time", + full_name="google.cloud.vision.v1p3beta1.OperationMetadata.create_time", + index=1, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_time", + full_name="google.cloud.vision.v1p3beta1.OperationMetadata.update_time", + index=2, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_OPERATIONMETADATA_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=7396, + serialized_end=7667, +) + +_FEATURE.fields_by_name["type"].enum_type = _FEATURE_TYPE _FEATURE_TYPE.containing_type = _FEATURE -_IMAGE.fields_by_name['source'].message_type = _IMAGESOURCE -_FACEANNOTATION_LANDMARK.fields_by_name['type'].enum_type = _FACEANNOTATION_LANDMARK_TYPE -_FACEANNOTATION_LANDMARK.fields_by_name['position'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._POSITION +_IMAGE.fields_by_name["source"].message_type = _IMAGESOURCE +_FACEANNOTATION_LANDMARK.fields_by_name[ + "type" +].enum_type = _FACEANNOTATION_LANDMARK_TYPE +_FACEANNOTATION_LANDMARK.fields_by_name[ + "position" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._POSITION +) _FACEANNOTATION_LANDMARK.containing_type = _FACEANNOTATION _FACEANNOTATION_LANDMARK_TYPE.containing_type = _FACEANNOTATION_LANDMARK -_FACEANNOTATION.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_FACEANNOTATION.fields_by_name['fd_bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_FACEANNOTATION.fields_by_name['landmarks'].message_type = _FACEANNOTATION_LANDMARK -_FACEANNOTATION.fields_by_name['joy_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['sorrow_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['anger_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['surprise_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['under_exposed_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['blurred_likelihood'].enum_type = _LIKELIHOOD -_FACEANNOTATION.fields_by_name['headwear_likelihood'].enum_type = _LIKELIHOOD -_LOCATIONINFO.fields_by_name['lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_ENTITYANNOTATION.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_ENTITYANNOTATION.fields_by_name['locations'].message_type = _LOCATIONINFO -_ENTITYANNOTATION.fields_by_name['properties'].message_type = _PROPERTY -_LOCALIZEDOBJECTANNOTATION.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_SAFESEARCHANNOTATION.fields_by_name['adult'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['spoof'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['medical'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['violence'].enum_type = _LIKELIHOOD -_SAFESEARCHANNOTATION.fields_by_name['racy'].enum_type = _LIKELIHOOD -_LATLONGRECT.fields_by_name['min_lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_LATLONGRECT.fields_by_name['max_lat_lng'].message_type = google_dot_type_dot_latlng__pb2._LATLNG -_COLORINFO.fields_by_name['color'].message_type = google_dot_type_dot_color__pb2._COLOR -_DOMINANTCOLORSANNOTATION.fields_by_name['colors'].message_type = _COLORINFO -_IMAGEPROPERTIES.fields_by_name['dominant_colors'].message_type = _DOMINANTCOLORSANNOTATION -_CROPHINT.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_CROPHINTSANNOTATION.fields_by_name['crop_hints'].message_type = _CROPHINT -_IMAGECONTEXT.fields_by_name['lat_long_rect'].message_type = _LATLONGRECT -_IMAGECONTEXT.fields_by_name['crop_hints_params'].message_type = _CROPHINTSPARAMS -_IMAGECONTEXT.fields_by_name['product_search_params'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2._PRODUCTSEARCHPARAMS -_IMAGECONTEXT.fields_by_name['web_detection_params'].message_type = _WEBDETECTIONPARAMS -_ANNOTATEIMAGEREQUEST.fields_by_name['image'].message_type = _IMAGE -_ANNOTATEIMAGEREQUEST.fields_by_name['features'].message_type = _FEATURE -_ANNOTATEIMAGEREQUEST.fields_by_name['image_context'].message_type = _IMAGECONTEXT -_ANNOTATEIMAGERESPONSE.fields_by_name['face_annotations'].message_type = _FACEANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['landmark_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['logo_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['label_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['localized_object_annotations'].message_type = _LOCALIZEDOBJECTANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['text_annotations'].message_type = _ENTITYANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['full_text_annotation'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_text__annotation__pb2._TEXTANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['safe_search_annotation'].message_type = _SAFESEARCHANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['image_properties_annotation'].message_type = _IMAGEPROPERTIES -_ANNOTATEIMAGERESPONSE.fields_by_name['crop_hints_annotation'].message_type = _CROPHINTSANNOTATION -_ANNOTATEIMAGERESPONSE.fields_by_name['web_detection'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_web__detection__pb2._WEBDETECTION -_ANNOTATEIMAGERESPONSE.fields_by_name['product_search_results'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2._PRODUCTSEARCHRESULTS -_ANNOTATEIMAGERESPONSE.fields_by_name['error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_ANNOTATEIMAGERESPONSE.fields_by_name['context'].message_type = _IMAGEANNOTATIONCONTEXT -_ANNOTATEFILERESPONSE.fields_by_name['input_config'].message_type = _INPUTCONFIG -_ANNOTATEFILERESPONSE.fields_by_name['responses'].message_type = _ANNOTATEIMAGERESPONSE -_BATCHANNOTATEIMAGESREQUEST.fields_by_name['requests'].message_type = _ANNOTATEIMAGEREQUEST -_BATCHANNOTATEIMAGESRESPONSE.fields_by_name['responses'].message_type = _ANNOTATEIMAGERESPONSE -_ASYNCANNOTATEFILEREQUEST.fields_by_name['input_config'].message_type = _INPUTCONFIG -_ASYNCANNOTATEFILEREQUEST.fields_by_name['features'].message_type = _FEATURE -_ASYNCANNOTATEFILEREQUEST.fields_by_name['image_context'].message_type = _IMAGECONTEXT -_ASYNCANNOTATEFILEREQUEST.fields_by_name['output_config'].message_type = _OUTPUTCONFIG -_ASYNCANNOTATEFILERESPONSE.fields_by_name['output_config'].message_type = _OUTPUTCONFIG -_ASYNCBATCHANNOTATEFILESREQUEST.fields_by_name['requests'].message_type = _ASYNCANNOTATEFILEREQUEST -_ASYNCBATCHANNOTATEFILESRESPONSE.fields_by_name['responses'].message_type = _ASYNCANNOTATEFILERESPONSE -_INPUTCONFIG.fields_by_name['gcs_source'].message_type = _GCSSOURCE -_OUTPUTCONFIG.fields_by_name['gcs_destination'].message_type = _GCSDESTINATION -_OPERATIONMETADATA.fields_by_name['state'].enum_type = _OPERATIONMETADATA_STATE -_OPERATIONMETADATA.fields_by_name['create_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_OPERATIONMETADATA.fields_by_name['update_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_FACEANNOTATION.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_FACEANNOTATION.fields_by_name[ + "fd_bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_FACEANNOTATION.fields_by_name["landmarks"].message_type = _FACEANNOTATION_LANDMARK +_FACEANNOTATION.fields_by_name["joy_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["sorrow_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["anger_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["surprise_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["under_exposed_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["blurred_likelihood"].enum_type = _LIKELIHOOD +_FACEANNOTATION.fields_by_name["headwear_likelihood"].enum_type = _LIKELIHOOD +_LOCATIONINFO.fields_by_name[ + "lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_ENTITYANNOTATION.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_ENTITYANNOTATION.fields_by_name["locations"].message_type = _LOCATIONINFO +_ENTITYANNOTATION.fields_by_name["properties"].message_type = _PROPERTY +_LOCALIZEDOBJECTANNOTATION.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_SAFESEARCHANNOTATION.fields_by_name["adult"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["spoof"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["medical"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["violence"].enum_type = _LIKELIHOOD +_SAFESEARCHANNOTATION.fields_by_name["racy"].enum_type = _LIKELIHOOD +_LATLONGRECT.fields_by_name[ + "min_lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_LATLONGRECT.fields_by_name[ + "max_lat_lng" +].message_type = google_dot_type_dot_latlng__pb2._LATLNG +_COLORINFO.fields_by_name["color"].message_type = google_dot_type_dot_color__pb2._COLOR +_DOMINANTCOLORSANNOTATION.fields_by_name["colors"].message_type = _COLORINFO +_IMAGEPROPERTIES.fields_by_name[ + "dominant_colors" +].message_type = _DOMINANTCOLORSANNOTATION +_CROPHINT.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_CROPHINTSANNOTATION.fields_by_name["crop_hints"].message_type = _CROPHINT +_IMAGECONTEXT.fields_by_name["lat_long_rect"].message_type = _LATLONGRECT +_IMAGECONTEXT.fields_by_name["crop_hints_params"].message_type = _CROPHINTSPARAMS +_IMAGECONTEXT.fields_by_name[ + "product_search_params" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2._PRODUCTSEARCHPARAMS +) +_IMAGECONTEXT.fields_by_name["web_detection_params"].message_type = _WEBDETECTIONPARAMS +_ANNOTATEIMAGEREQUEST.fields_by_name["image"].message_type = _IMAGE +_ANNOTATEIMAGEREQUEST.fields_by_name["features"].message_type = _FEATURE +_ANNOTATEIMAGEREQUEST.fields_by_name["image_context"].message_type = _IMAGECONTEXT +_ANNOTATEIMAGERESPONSE.fields_by_name["face_annotations"].message_type = _FACEANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "landmark_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "logo_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "label_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "localized_object_annotations" +].message_type = _LOCALIZEDOBJECTANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "text_annotations" +].message_type = _ENTITYANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "full_text_annotation" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_text__annotation__pb2._TEXTANNOTATION +) +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "safe_search_annotation" +].message_type = _SAFESEARCHANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "image_properties_annotation" +].message_type = _IMAGEPROPERTIES +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "crop_hints_annotation" +].message_type = _CROPHINTSANNOTATION +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "web_detection" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_web__detection__pb2._WEBDETECTION +) +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "product_search_results" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__pb2._PRODUCTSEARCHRESULTS +) +_ANNOTATEIMAGERESPONSE.fields_by_name[ + "error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_ANNOTATEIMAGERESPONSE.fields_by_name["context"].message_type = _IMAGEANNOTATIONCONTEXT +_ANNOTATEFILERESPONSE.fields_by_name["input_config"].message_type = _INPUTCONFIG +_ANNOTATEFILERESPONSE.fields_by_name["responses"].message_type = _ANNOTATEIMAGERESPONSE +_BATCHANNOTATEIMAGESREQUEST.fields_by_name[ + "requests" +].message_type = _ANNOTATEIMAGEREQUEST +_BATCHANNOTATEIMAGESRESPONSE.fields_by_name[ + "responses" +].message_type = _ANNOTATEIMAGERESPONSE +_ASYNCANNOTATEFILEREQUEST.fields_by_name["input_config"].message_type = _INPUTCONFIG +_ASYNCANNOTATEFILEREQUEST.fields_by_name["features"].message_type = _FEATURE +_ASYNCANNOTATEFILEREQUEST.fields_by_name["image_context"].message_type = _IMAGECONTEXT +_ASYNCANNOTATEFILEREQUEST.fields_by_name["output_config"].message_type = _OUTPUTCONFIG +_ASYNCANNOTATEFILERESPONSE.fields_by_name["output_config"].message_type = _OUTPUTCONFIG +_ASYNCBATCHANNOTATEFILESREQUEST.fields_by_name[ + "requests" +].message_type = _ASYNCANNOTATEFILEREQUEST +_ASYNCBATCHANNOTATEFILESRESPONSE.fields_by_name[ + "responses" +].message_type = _ASYNCANNOTATEFILERESPONSE +_INPUTCONFIG.fields_by_name["gcs_source"].message_type = _GCSSOURCE +_OUTPUTCONFIG.fields_by_name["gcs_destination"].message_type = _GCSDESTINATION +_OPERATIONMETADATA.fields_by_name["state"].enum_type = _OPERATIONMETADATA_STATE +_OPERATIONMETADATA.fields_by_name[ + "create_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_OPERATIONMETADATA.fields_by_name[ + "update_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _OPERATIONMETADATA_STATE.containing_type = _OPERATIONMETADATA -DESCRIPTOR.message_types_by_name['Feature'] = _FEATURE -DESCRIPTOR.message_types_by_name['ImageSource'] = _IMAGESOURCE -DESCRIPTOR.message_types_by_name['Image'] = _IMAGE -DESCRIPTOR.message_types_by_name['FaceAnnotation'] = _FACEANNOTATION -DESCRIPTOR.message_types_by_name['LocationInfo'] = _LOCATIONINFO -DESCRIPTOR.message_types_by_name['Property'] = _PROPERTY -DESCRIPTOR.message_types_by_name['EntityAnnotation'] = _ENTITYANNOTATION -DESCRIPTOR.message_types_by_name['LocalizedObjectAnnotation'] = _LOCALIZEDOBJECTANNOTATION -DESCRIPTOR.message_types_by_name['SafeSearchAnnotation'] = _SAFESEARCHANNOTATION -DESCRIPTOR.message_types_by_name['LatLongRect'] = _LATLONGRECT -DESCRIPTOR.message_types_by_name['ColorInfo'] = _COLORINFO -DESCRIPTOR.message_types_by_name['DominantColorsAnnotation'] = _DOMINANTCOLORSANNOTATION -DESCRIPTOR.message_types_by_name['ImageProperties'] = _IMAGEPROPERTIES -DESCRIPTOR.message_types_by_name['CropHint'] = _CROPHINT -DESCRIPTOR.message_types_by_name['CropHintsAnnotation'] = _CROPHINTSANNOTATION -DESCRIPTOR.message_types_by_name['CropHintsParams'] = _CROPHINTSPARAMS -DESCRIPTOR.message_types_by_name['WebDetectionParams'] = _WEBDETECTIONPARAMS -DESCRIPTOR.message_types_by_name['ImageContext'] = _IMAGECONTEXT -DESCRIPTOR.message_types_by_name['AnnotateImageRequest'] = _ANNOTATEIMAGEREQUEST -DESCRIPTOR.message_types_by_name['ImageAnnotationContext'] = _IMAGEANNOTATIONCONTEXT -DESCRIPTOR.message_types_by_name['AnnotateImageResponse'] = _ANNOTATEIMAGERESPONSE -DESCRIPTOR.message_types_by_name['AnnotateFileResponse'] = _ANNOTATEFILERESPONSE -DESCRIPTOR.message_types_by_name['BatchAnnotateImagesRequest'] = _BATCHANNOTATEIMAGESREQUEST -DESCRIPTOR.message_types_by_name['BatchAnnotateImagesResponse'] = _BATCHANNOTATEIMAGESRESPONSE -DESCRIPTOR.message_types_by_name['AsyncAnnotateFileRequest'] = _ASYNCANNOTATEFILEREQUEST -DESCRIPTOR.message_types_by_name['AsyncAnnotateFileResponse'] = _ASYNCANNOTATEFILERESPONSE -DESCRIPTOR.message_types_by_name['AsyncBatchAnnotateFilesRequest'] = _ASYNCBATCHANNOTATEFILESREQUEST -DESCRIPTOR.message_types_by_name['AsyncBatchAnnotateFilesResponse'] = _ASYNCBATCHANNOTATEFILESRESPONSE -DESCRIPTOR.message_types_by_name['InputConfig'] = _INPUTCONFIG -DESCRIPTOR.message_types_by_name['OutputConfig'] = _OUTPUTCONFIG -DESCRIPTOR.message_types_by_name['GcsSource'] = _GCSSOURCE -DESCRIPTOR.message_types_by_name['GcsDestination'] = _GCSDESTINATION -DESCRIPTOR.message_types_by_name['OperationMetadata'] = _OPERATIONMETADATA -DESCRIPTOR.enum_types_by_name['Likelihood'] = _LIKELIHOOD +DESCRIPTOR.message_types_by_name["Feature"] = _FEATURE +DESCRIPTOR.message_types_by_name["ImageSource"] = _IMAGESOURCE +DESCRIPTOR.message_types_by_name["Image"] = _IMAGE +DESCRIPTOR.message_types_by_name["FaceAnnotation"] = _FACEANNOTATION +DESCRIPTOR.message_types_by_name["LocationInfo"] = _LOCATIONINFO +DESCRIPTOR.message_types_by_name["Property"] = _PROPERTY +DESCRIPTOR.message_types_by_name["EntityAnnotation"] = _ENTITYANNOTATION +DESCRIPTOR.message_types_by_name[ + "LocalizedObjectAnnotation" +] = _LOCALIZEDOBJECTANNOTATION +DESCRIPTOR.message_types_by_name["SafeSearchAnnotation"] = _SAFESEARCHANNOTATION +DESCRIPTOR.message_types_by_name["LatLongRect"] = _LATLONGRECT +DESCRIPTOR.message_types_by_name["ColorInfo"] = _COLORINFO +DESCRIPTOR.message_types_by_name["DominantColorsAnnotation"] = _DOMINANTCOLORSANNOTATION +DESCRIPTOR.message_types_by_name["ImageProperties"] = _IMAGEPROPERTIES +DESCRIPTOR.message_types_by_name["CropHint"] = _CROPHINT +DESCRIPTOR.message_types_by_name["CropHintsAnnotation"] = _CROPHINTSANNOTATION +DESCRIPTOR.message_types_by_name["CropHintsParams"] = _CROPHINTSPARAMS +DESCRIPTOR.message_types_by_name["WebDetectionParams"] = _WEBDETECTIONPARAMS +DESCRIPTOR.message_types_by_name["ImageContext"] = _IMAGECONTEXT +DESCRIPTOR.message_types_by_name["AnnotateImageRequest"] = _ANNOTATEIMAGEREQUEST +DESCRIPTOR.message_types_by_name["ImageAnnotationContext"] = _IMAGEANNOTATIONCONTEXT +DESCRIPTOR.message_types_by_name["AnnotateImageResponse"] = _ANNOTATEIMAGERESPONSE +DESCRIPTOR.message_types_by_name["AnnotateFileResponse"] = _ANNOTATEFILERESPONSE +DESCRIPTOR.message_types_by_name[ + "BatchAnnotateImagesRequest" +] = _BATCHANNOTATEIMAGESREQUEST +DESCRIPTOR.message_types_by_name[ + "BatchAnnotateImagesResponse" +] = _BATCHANNOTATEIMAGESRESPONSE +DESCRIPTOR.message_types_by_name["AsyncAnnotateFileRequest"] = _ASYNCANNOTATEFILEREQUEST +DESCRIPTOR.message_types_by_name[ + "AsyncAnnotateFileResponse" +] = _ASYNCANNOTATEFILERESPONSE +DESCRIPTOR.message_types_by_name[ + "AsyncBatchAnnotateFilesRequest" +] = _ASYNCBATCHANNOTATEFILESREQUEST +DESCRIPTOR.message_types_by_name[ + "AsyncBatchAnnotateFilesResponse" +] = _ASYNCBATCHANNOTATEFILESRESPONSE +DESCRIPTOR.message_types_by_name["InputConfig"] = _INPUTCONFIG +DESCRIPTOR.message_types_by_name["OutputConfig"] = _OUTPUTCONFIG +DESCRIPTOR.message_types_by_name["GcsSource"] = _GCSSOURCE +DESCRIPTOR.message_types_by_name["GcsDestination"] = _GCSDESTINATION +DESCRIPTOR.message_types_by_name["OperationMetadata"] = _OPERATIONMETADATA +DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Feature = _reflection.GeneratedProtocolMessageType('Feature', (_message.Message,), dict( - DESCRIPTOR = _FEATURE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """The type of Google Cloud Vision API detection to perform, and the +Feature = _reflection.GeneratedProtocolMessageType( + "Feature", + (_message.Message,), + dict( + DESCRIPTOR=_FEATURE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. @@ -2009,15 +3124,18 @@ Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Feature) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Feature) + ), +) _sym_db.RegisterMessage(Feature) -ImageSource = _reflection.GeneratedProtocolMessageType('ImageSource', (_message.Message,), dict( - DESCRIPTOR = _IMAGESOURCE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """External image source (Google Cloud Storage or web URL image location). +ImageSource = _reflection.GeneratedProtocolMessageType( + "ImageSource", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGESOURCE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""External image source (Google Cloud Storage or web URL image location). Attributes: @@ -2043,15 +3161,18 @@ applications. When both ``gcs_image_uri`` and ``image_uri`` are specified, ``image_uri`` takes precedence. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageSource) + ), +) _sym_db.RegisterMessage(ImageSource) -Image = _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), dict( - DESCRIPTOR = _IMAGE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Client image to perform Google Cloud Vision API tasks over. +Image = _reflection.GeneratedProtocolMessageType( + "Image", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Client image to perform Google Cloud Vision API tasks over. Attributes: @@ -2065,17 +3186,22 @@ an image, ``content`` takes precedence and is used to perform the image annotation request. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Image) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Image) + ), +) _sym_db.RegisterMessage(Image) -FaceAnnotation = _reflection.GeneratedProtocolMessageType('FaceAnnotation', (_message.Message,), dict( - - Landmark = _reflection.GeneratedProtocolMessageType('Landmark', (_message.Message,), dict( - DESCRIPTOR = _FACEANNOTATION_LANDMARK, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """A face-specific landmark (for example, a face feature). +FaceAnnotation = _reflection.GeneratedProtocolMessageType( + "FaceAnnotation", + (_message.Message,), + dict( + Landmark=_reflection.GeneratedProtocolMessageType( + "Landmark", + (_message.Message,), + dict( + DESCRIPTOR=_FACEANNOTATION_LANDMARK, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""A face-specific landmark (for example, a face feature). Attributes: @@ -2084,13 +3210,12 @@ position: Face landmark position. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) - )) - , - DESCRIPTOR = _FACEANNOTATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """A face annotation object contains the results of face detection. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) + ), + ), + DESCRIPTOR=_FACEANNOTATION, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""A face annotation object contains the results of face detection. Attributes: @@ -2143,31 +3268,37 @@ headwear_likelihood: Headwear likelihood. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation) + ), +) _sym_db.RegisterMessage(FaceAnnotation) _sym_db.RegisterMessage(FaceAnnotation.Landmark) -LocationInfo = _reflection.GeneratedProtocolMessageType('LocationInfo', (_message.Message,), dict( - DESCRIPTOR = _LOCATIONINFO, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Detected entity location information. +LocationInfo = _reflection.GeneratedProtocolMessageType( + "LocationInfo", + (_message.Message,), + dict( + DESCRIPTOR=_LOCATIONINFO, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Detected entity location information. Attributes: lat_lng: lat/long location coordinates. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocationInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocationInfo) + ), +) _sym_db.RegisterMessage(LocationInfo) -Property = _reflection.GeneratedProtocolMessageType('Property', (_message.Message,), dict( - DESCRIPTOR = _PROPERTY, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """A ``Property`` consists of a user-supplied name/value pair. +Property = _reflection.GeneratedProtocolMessageType( + "Property", + (_message.Message,), + dict( + DESCRIPTOR=_PROPERTY, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""A ``Property`` consists of a user-supplied name/value pair. Attributes: @@ -2178,15 +3309,18 @@ uint64_value: Value of numeric properties. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Property) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Property) + ), +) _sym_db.RegisterMessage(Property) -EntityAnnotation = _reflection.GeneratedProtocolMessageType('EntityAnnotation', (_message.Message,), dict( - DESCRIPTOR = _ENTITYANNOTATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of detected entity features. +EntityAnnotation = _reflection.GeneratedProtocolMessageType( + "EntityAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_ENTITYANNOTATION, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Set of detected entity features. Attributes: @@ -2230,15 +3364,18 @@ (name/value) fields, such a score or string that qualifies the entity. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.EntityAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.EntityAnnotation) + ), +) _sym_db.RegisterMessage(EntityAnnotation) -LocalizedObjectAnnotation = _reflection.GeneratedProtocolMessageType('LocalizedObjectAnnotation', (_message.Message,), dict( - DESCRIPTOR = _LOCALIZEDOBJECTANNOTATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of detected objects with bounding boxes. +LocalizedObjectAnnotation = _reflection.GeneratedProtocolMessageType( + "LocalizedObjectAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_LOCALIZEDOBJECTANNOTATION, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Set of detected objects with bounding boxes. Attributes: @@ -2256,15 +3393,18 @@ Image region to which this object belongs. This must be populated. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) + ), +) _sym_db.RegisterMessage(LocalizedObjectAnnotation) -SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType('SafeSearchAnnotation', (_message.Message,), dict( - DESCRIPTOR = _SAFESEARCHANNOTATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of features pertaining to the image, computed by computer vision +SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( + "SafeSearchAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_SAFESEARCHANNOTATION, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). @@ -2288,15 +3428,18 @@ clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) + ), +) _sym_db.RegisterMessage(SafeSearchAnnotation) -LatLongRect = _reflection.GeneratedProtocolMessageType('LatLongRect', (_message.Message,), dict( - DESCRIPTOR = _LATLONGRECT, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Rectangle determined by min and max ``LatLng`` pairs. +LatLongRect = _reflection.GeneratedProtocolMessageType( + "LatLongRect", + (_message.Message,), + dict( + DESCRIPTOR=_LATLONGRECT, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Rectangle determined by min and max ``LatLng`` pairs. Attributes: @@ -2305,15 +3448,18 @@ max_lat_lng: Max lat/long pair. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LatLongRect) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LatLongRect) + ), +) _sym_db.RegisterMessage(LatLongRect) -ColorInfo = _reflection.GeneratedProtocolMessageType('ColorInfo', (_message.Message,), dict( - DESCRIPTOR = _COLORINFO, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Color information consists of RGB channels, score, and the fraction of +ColorInfo = _reflection.GeneratedProtocolMessageType( + "ColorInfo", + (_message.Message,), + dict( + DESCRIPTOR=_COLORINFO, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. @@ -2326,45 +3472,54 @@ The fraction of pixels the color occupies in the image. Value in range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ColorInfo) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ColorInfo) + ), +) _sym_db.RegisterMessage(ColorInfo) -DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType('DominantColorsAnnotation', (_message.Message,), dict( - DESCRIPTOR = _DOMINANTCOLORSANNOTATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of dominant colors and their corresponding scores. +DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType( + "DominantColorsAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_DOMINANTCOLORSANNOTATION, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Set of dominant colors and their corresponding scores. Attributes: colors: RGB color values with their score and pixel fraction. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) + ), +) _sym_db.RegisterMessage(DominantColorsAnnotation) -ImageProperties = _reflection.GeneratedProtocolMessageType('ImageProperties', (_message.Message,), dict( - DESCRIPTOR = _IMAGEPROPERTIES, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Stores image properties, such as dominant colors. +ImageProperties = _reflection.GeneratedProtocolMessageType( + "ImageProperties", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGEPROPERTIES, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Stores image properties, such as dominant colors. Attributes: dominant_colors: If present, dominant colors completed successfully. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageProperties) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageProperties) + ), +) _sym_db.RegisterMessage(ImageProperties) -CropHint = _reflection.GeneratedProtocolMessageType('CropHint', (_message.Message,), dict( - DESCRIPTOR = _CROPHINT, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Single crop hint that is used to generate a new crop when serving an +CropHint = _reflection.GeneratedProtocolMessageType( + "CropHint", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINT, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Single crop hint that is used to generate a new crop when serving an image. @@ -2379,15 +3534,18 @@ Fraction of importance of this salient region with respect to the original image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHint) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHint) + ), +) _sym_db.RegisterMessage(CropHint) -CropHintsAnnotation = _reflection.GeneratedProtocolMessageType('CropHintsAnnotation', (_message.Message,), dict( - DESCRIPTOR = _CROPHINTSANNOTATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Set of crop hints that are used to generate new crops when serving +CropHintsAnnotation = _reflection.GeneratedProtocolMessageType( + "CropHintsAnnotation", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINTSANNOTATION, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Set of crop hints that are used to generate new crops when serving images. @@ -2395,15 +3553,18 @@ crop_hints: Crop hint results. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsAnnotation) + ), +) _sym_db.RegisterMessage(CropHintsAnnotation) -CropHintsParams = _reflection.GeneratedProtocolMessageType('CropHintsParams', (_message.Message,), dict( - DESCRIPTOR = _CROPHINTSPARAMS, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Parameters for crop hints annotation request. +CropHintsParams = _reflection.GeneratedProtocolMessageType( + "CropHintsParams", + (_message.Message,), + dict( + DESCRIPTOR=_CROPHINTSPARAMS, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Parameters for crop hints annotation request. Attributes: @@ -2415,15 +3576,18 @@ number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsParams) + ), +) _sym_db.RegisterMessage(CropHintsParams) -WebDetectionParams = _reflection.GeneratedProtocolMessageType('WebDetectionParams', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTIONPARAMS, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Parameters for web detection request. +WebDetectionParams = _reflection.GeneratedProtocolMessageType( + "WebDetectionParams", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTIONPARAMS, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Parameters for web detection request. Attributes: @@ -2431,15 +3595,18 @@ Whether to include results derived from the geo information in the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetectionParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetectionParams) + ), +) _sym_db.RegisterMessage(WebDetectionParams) -ImageContext = _reflection.GeneratedProtocolMessageType('ImageContext', (_message.Message,), dict( - DESCRIPTOR = _IMAGECONTEXT, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Image context and/or feature-specific parameters. +ImageContext = _reflection.GeneratedProtocolMessageType( + "ImageContext", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGECONTEXT, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Image context and/or feature-specific parameters. Attributes: @@ -2463,15 +3630,18 @@ web_detection_params: Parameters for web detection. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageContext) + ), +) _sym_db.RegisterMessage(ImageContext) -AnnotateImageRequest = _reflection.GeneratedProtocolMessageType('AnnotateImageRequest', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEIMAGEREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Request for performing Google Cloud Vision API tasks over a +AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( + "AnnotateImageRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEIMAGEREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features. @@ -2483,15 +3653,18 @@ image_context: Additional context that may accompany the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageRequest) + ), +) _sym_db.RegisterMessage(AnnotateImageRequest) -ImageAnnotationContext = _reflection.GeneratedProtocolMessageType('ImageAnnotationContext', (_message.Message,), dict( - DESCRIPTOR = _IMAGEANNOTATIONCONTEXT, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """If an image was produced from a file (e.g. a PDF), this message gives +ImageAnnotationContext = _reflection.GeneratedProtocolMessageType( + "ImageAnnotationContext", + (_message.Message,), + dict( + DESCRIPTOR=_IMAGEANNOTATIONCONTEXT, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. @@ -2502,15 +3675,18 @@ If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageAnnotationContext) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageAnnotationContext) + ), +) _sym_db.RegisterMessage(ImageAnnotationContext) -AnnotateImageResponse = _reflection.GeneratedProtocolMessageType('AnnotateImageResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEIMAGERESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to an image annotation request. +AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateImageResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEIMAGERESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Response to an image annotation request. Attributes: @@ -2550,15 +3726,18 @@ If present, contextual information is needed to understand where this image comes from. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageResponse) + ), +) _sym_db.RegisterMessage(AnnotateImageResponse) -AnnotateFileResponse = _reflection.GeneratedProtocolMessageType('AnnotateFileResponse', (_message.Message,), dict( - DESCRIPTOR = _ANNOTATEFILERESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to a single file annotation request. A file may contain one or +AnnotateFileResponse = _reflection.GeneratedProtocolMessageType( + "AnnotateFileResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ANNOTATEFILERESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. @@ -2569,15 +3748,18 @@ responses: Individual responses to images found within the file. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateFileResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateFileResponse) + ), +) _sym_db.RegisterMessage(AnnotateFileResponse) -BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType('BatchAnnotateImagesRequest', (_message.Message,), dict( - DESCRIPTOR = _BATCHANNOTATEIMAGESREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Multiple image annotation requests are batched into a single service +BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( + "BatchAnnotateImagesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Multiple image annotation requests are batched into a single service call. @@ -2585,15 +3767,18 @@ requests: Individual image annotation requests for this batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) + ), +) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) -BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType('BatchAnnotateImagesResponse', (_message.Message,), dict( - DESCRIPTOR = _BATCHANNOTATEIMAGESRESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to a batch image annotation request. +BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( + "BatchAnnotateImagesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Response to a batch image annotation request. Attributes: @@ -2601,15 +3786,18 @@ Individual responses to image annotation requests within the batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) + ), +) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) -AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType('AsyncAnnotateFileRequest', (_message.Message,), dict( - DESCRIPTOR = _ASYNCANNOTATEFILEREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """An offline file annotation request. +AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType( + "AsyncAnnotateFileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCANNOTATEFILEREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""An offline file annotation request. Attributes: @@ -2624,15 +3812,18 @@ Required. The desired output location and metadata (e.g. format). """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) + ), +) _sym_db.RegisterMessage(AsyncAnnotateFileRequest) -AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType('AsyncAnnotateFileResponse', (_message.Message,), dict( - DESCRIPTOR = _ASYNCANNOTATEFILERESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """The response for a single offline file annotation request. +AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType( + "AsyncAnnotateFileResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCANNOTATEFILERESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""The response for a single offline file annotation request. Attributes: @@ -2640,15 +3831,18 @@ The output location and metadata from AsyncAnnotateFileRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) + ), +) _sym_db.RegisterMessage(AsyncAnnotateFileResponse) -AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType('AsyncBatchAnnotateFilesRequest', (_message.Message,), dict( - DESCRIPTOR = _ASYNCBATCHANNOTATEFILESREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Multiple async file annotation requests are batched into a single +AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( + "AsyncBatchAnnotateFilesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCBATCHANNOTATEFILESREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Multiple async file annotation requests are batched into a single service call. @@ -2656,15 +3850,18 @@ requests: Individual async file annotation requests for this batch. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) + ), +) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesRequest) -AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType('AsyncBatchAnnotateFilesResponse', (_message.Message,), dict( - DESCRIPTOR = _ASYNCBATCHANNOTATEFILESRESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Response to an async batch file annotation request. +AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( + "AsyncBatchAnnotateFilesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_ASYNCBATCHANNOTATEFILESRESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Response to an async batch file annotation request. Attributes: @@ -2672,15 +3869,18 @@ The list of file annotation responses, one for each request in AsyncBatchAnnotateFilesRequest. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) + ), +) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesResponse) -InputConfig = _reflection.GeneratedProtocolMessageType('InputConfig', (_message.Message,), dict( - DESCRIPTOR = _INPUTCONFIG, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """The desired input location and metadata. +InputConfig = _reflection.GeneratedProtocolMessageType( + "InputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_INPUTCONFIG, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""The desired input location and metadata. Attributes: @@ -2690,15 +3890,18 @@ The type of the file. Currently only "application/pdf" and "image/tiff" are supported. Wildcards are not supported. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.InputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.InputConfig) + ), +) _sym_db.RegisterMessage(InputConfig) -OutputConfig = _reflection.GeneratedProtocolMessageType('OutputConfig', (_message.Message,), dict( - DESCRIPTOR = _OUTPUTCONFIG, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """The desired output location and metadata. +OutputConfig = _reflection.GeneratedProtocolMessageType( + "OutputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_OUTPUTCONFIG, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""The desired output location and metadata. Attributes: @@ -2715,15 +3918,18 @@ applies to GcsDestination, with potential future support for other output configurations. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OutputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OutputConfig) + ), +) _sym_db.RegisterMessage(OutputConfig) -GcsSource = _reflection.GeneratedProtocolMessageType('GcsSource', (_message.Message,), dict( - DESCRIPTOR = _GCSSOURCE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """The Google Cloud Storage location where the input will be read from. +GcsSource = _reflection.GeneratedProtocolMessageType( + "GcsSource", + (_message.Message,), + dict( + DESCRIPTOR=_GCSSOURCE, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""The Google Cloud Storage location where the input will be read from. Attributes: @@ -2732,15 +3938,18 @@ a Google Cloud Storage object. Wildcards are not currently supported. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsSource) + ), +) _sym_db.RegisterMessage(GcsSource) -GcsDestination = _reflection.GeneratedProtocolMessageType('GcsDestination', (_message.Message,), dict( - DESCRIPTOR = _GCSDESTINATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """The Google Cloud Storage location where the output will be written to. +GcsDestination = _reflection.GeneratedProtocolMessageType( + "GcsDestination", + (_message.Message,), + dict( + DESCRIPTOR=_GCSDESTINATION, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""The Google Cloud Storage location where the output will be written to. Attributes: @@ -2757,15 +3966,18 @@ Multiple outputs can happen if, for example, the output JSON is too large and overflows into multiple sharded files. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsDestination) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsDestination) + ), +) _sym_db.RegisterMessage(GcsDestination) -OperationMetadata = _reflection.GeneratedProtocolMessageType('OperationMetadata', (_message.Message,), dict( - DESCRIPTOR = _OPERATIONMETADATA, - __module__ = 'google.cloud.vision_v1p3beta1.proto.image_annotator_pb2' - , - __doc__ = """Contains metadata for the BatchAnnotateImages operation. +OperationMetadata = _reflection.GeneratedProtocolMessageType( + "OperationMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_OPERATIONMETADATA, + __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + __doc__="""Contains metadata for the BatchAnnotateImages operation. Attributes: @@ -2776,44 +3988,57 @@ update_time: The time when the operation result was last updated. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OperationMetadata) + ), +) _sym_db.RegisterMessage(OperationMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p3beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p3beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" + ), +) _IMAGEANNOTATOR = _descriptor.ServiceDescriptor( - name='ImageAnnotator', - full_name='google.cloud.vision.v1p3beta1.ImageAnnotator', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=7773, - serialized_end=8141, - methods=[ - _descriptor.MethodDescriptor( - name='BatchAnnotateImages', - full_name='google.cloud.vision.v1p3beta1.ImageAnnotator.BatchAnnotateImages', + name="ImageAnnotator", + full_name="google.cloud.vision.v1p3beta1.ImageAnnotator", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_BATCHANNOTATEIMAGESREQUEST, - output_type=_BATCHANNOTATEIMAGESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\037\"\032/v1p3beta1/images:annotate:\001*')), - ), - _descriptor.MethodDescriptor( - name='AsyncBatchAnnotateFiles', - full_name='google.cloud.vision.v1p3beta1.ImageAnnotator.AsyncBatchAnnotateFiles', - index=1, - containing_service=None, - input_type=_ASYNCBATCHANNOTATEFILESREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\"#/v1p3beta1/files:asyncBatchAnnotate:\001*')), - ), -]) + options=None, + serialized_start=7773, + serialized_end=8141, + methods=[ + _descriptor.MethodDescriptor( + name="BatchAnnotateImages", + full_name="google.cloud.vision.v1p3beta1.ImageAnnotator.BatchAnnotateImages", + index=0, + containing_service=None, + input_type=_BATCHANNOTATEIMAGESREQUEST, + output_type=_BATCHANNOTATEIMAGESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002\037"\032/v1p3beta1/images:annotate:\001*'), + ), + ), + _descriptor.MethodDescriptor( + name="AsyncBatchAnnotateFiles", + full_name="google.cloud.vision.v1p3beta1.ImageAnnotator.AsyncBatchAnnotateFiles", + index=1, + containing_service=None, + input_type=_ASYNCBATCHANNOTATEFILESREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002("#/v1p3beta1/files:asyncBatchAnnotate:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_IMAGEANNOTATOR) -DESCRIPTOR.services_by_name['ImageAnnotator'] = _IMAGEANNOTATOR +DESCRIPTOR.services_by_name["ImageAnnotator"] = _IMAGEANNOTATOR # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py b/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py index f2be4408fd179..4d5a8fdb6fa25 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py @@ -1,73 +1,78 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.vision_v1p3beta1.proto import image_annotator_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.vision_v1p3beta1.proto import ( + image_annotator_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) class ImageAnnotatorStub(object): - """Service that performs Google Cloud Vision API detection tasks over client + """Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.BatchAnnotateImages = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ImageAnnotator/BatchAnnotateImages', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + self.BatchAnnotateImages = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ImageAnnotator/BatchAnnotateImages", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, ) - self.AsyncBatchAnnotateFiles = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ImageAnnotator/AsyncBatchAnnotateFiles', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.AsyncBatchAnnotateFiles = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ImageAnnotator/AsyncBatchAnnotateFiles", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class ImageAnnotatorServicer(object): - """Service that performs Google Cloud Vision API detection tasks over client + """Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images. """ - def BatchAnnotateImages(self, request, context): - """Run image detection and annotation for a batch of images. + def BatchAnnotateImages(self, request, context): + """Run image detection and annotation for a batch of images. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AsyncBatchAnnotateFiles(self, request, context): - """Run asynchronous image detection and annotation for a list of generic + def AsyncBatchAnnotateFiles(self, request, context): + """Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ImageAnnotatorServicer_to_server(servicer, server): - rpc_method_handlers = { - 'BatchAnnotateImages': grpc.unary_unary_rpc_method_handler( - servicer.BatchAnnotateImages, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString, - ), - 'AsyncBatchAnnotateFiles': grpc.unary_unary_rpc_method_handler( - servicer.AsyncBatchAnnotateFiles, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.vision.v1p3beta1.ImageAnnotator', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "BatchAnnotateImages": grpc.unary_unary_rpc_method_handler( + servicer.BatchAnnotateImages, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString, + ), + "AsyncBatchAnnotateFiles": grpc.unary_unary_rpc_method_handler( + servicer.AsyncBatchAnnotateFiles, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.vision.v1p3beta1.ImageAnnotator", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py b/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py index 47283ed6923c7..1a24cc18b6a78 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py @@ -2,78 +2,90 @@ # source: google/cloud/vision_v1p3beta1/proto/product_search.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1p3beta1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2 -from google.cloud.vision_v1p3beta1.proto import product_search_service_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2 +from google.cloud.vision_v1p3beta1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2, +) +from google.cloud.vision_v1p3beta1.proto import ( + product_search_service_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p3beta1/proto/product_search.proto', - package='google.cloud.vision.v1p3beta1', - syntax='proto3', - serialized_pb=_b('\n8google/cloud/vision_v1p3beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x03\n\x13ProductSearchParams\x12\x14\n\x0c\x63\x61talog_name\x18\x01 \x01(\t\x12\x46\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x05 \x01(\t\x12W\n\x18normalized_bounding_poly\x18\x03 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.NormalizedBoundingPoly\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.vision.v1p3beta1.ProductSearchResultsView\x12\x13\n\x0bproduct_set\x18\x06 \x01(\t\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t\"\xee\x03\n\x14ProductSearchResults\x12\x46\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x04 \x01(\t\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x08products\x18\x03 \x03(\x0b\x32?.google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p3beta1.ProductSearchResults.Result\x1a\x43\n\x0bProductInfo\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\x12\r\n\x05score\x18\x03 \x01(\x02\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t*U\n\x15ProductSearchCategory\x12\'\n#PRODUCT_SEARCH_CATEGORY_UNSPECIFIED\x10\x00\x12\t\n\x05SHOES\x10\x01\x12\x08\n\x04\x42\x41GS\x10\x02*/\n\x18ProductSearchResultsView\x12\t\n\x05\x42\x41SIC\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x42\x81\x01\n!com.google.cloud.vision.v1p3beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/vision_v1p3beta1/proto/product_search.proto", + package="google.cloud.vision.v1p3beta1", + syntax="proto3", + serialized_pb=_b( + '\n8google/cloud/vision_v1p3beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xb2\x03\n\x13ProductSearchParams\x12\x14\n\x0c\x63\x61talog_name\x18\x01 \x01(\t\x12\x46\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x05 \x01(\t\x12W\n\x18normalized_bounding_poly\x18\x03 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.NormalizedBoundingPoly\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.vision.v1p3beta1.ProductSearchResultsView\x12\x13\n\x0bproduct_set\x18\x06 \x01(\t\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"\xee\x03\n\x14ProductSearchResults\x12\x46\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x04 \x01(\t\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x08products\x18\x03 \x03(\x0b\x32?.google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p3beta1.ProductSearchResults.Result\x1a\x43\n\x0bProductInfo\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\x12\r\n\x05score\x18\x03 \x01(\x02\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t*U\n\x15ProductSearchCategory\x12\'\n#PRODUCT_SEARCH_CATEGORY_UNSPECIFIED\x10\x00\x12\t\n\x05SHOES\x10\x01\x12\x08\n\x04\x42\x41GS\x10\x02*/\n\x18ProductSearchResultsView\x12\t\n\x05\x42\x41SIC\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x42\x81\x01\n!com.google.cloud.vision.v1p3beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _PRODUCTSEARCHCATEGORY = _descriptor.EnumDescriptor( - name='ProductSearchCategory', - full_name='google.cloud.vision.v1p3beta1.ProductSearchCategory', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='PRODUCT_SEARCH_CATEGORY_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHOES', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAGS', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1206, - serialized_end=1291, + name="ProductSearchCategory", + full_name="google.cloud.vision.v1p3beta1.ProductSearchCategory", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="PRODUCT_SEARCH_CATEGORY_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="SHOES", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BAGS", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1206, + serialized_end=1291, ) _sym_db.RegisterEnumDescriptor(_PRODUCTSEARCHCATEGORY) ProductSearchCategory = enum_type_wrapper.EnumTypeWrapper(_PRODUCTSEARCHCATEGORY) _PRODUCTSEARCHRESULTSVIEW = _descriptor.EnumDescriptor( - name='ProductSearchResultsView', - full_name='google.cloud.vision.v1p3beta1.ProductSearchResultsView', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='BASIC', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FULL', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1293, - serialized_end=1340, + name="ProductSearchResultsView", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResultsView", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="BASIC", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FULL", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1293, + serialized_end=1340, ) _sym_db.RegisterEnumDescriptor(_PRODUCTSEARCHRESULTSVIEW) @@ -85,262 +97,489 @@ FULL = 1 - _PRODUCTSEARCHPARAMS = _descriptor.Descriptor( - name='ProductSearchParams', - full_name='google.cloud.vision.v1p3beta1.ProductSearchParams', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='catalog_name', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.catalog_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.category', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_category', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.product_category', index=2, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='normalized_bounding_poly', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.normalized_bounding_poly', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_poly', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.bounding_poly', index=4, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.view', index=5, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_set', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.product_set', index=6, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_categories', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.product_categories', index=7, - number=7, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.vision.v1p3beta1.ProductSearchParams.filter', index=8, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=273, - serialized_end=707, + name="ProductSearchParams", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="catalog_name", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.catalog_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="category", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.category", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_category", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.product_category", + index=2, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="normalized_bounding_poly", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.normalized_bounding_poly", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_poly", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.bounding_poly", + index=4, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.view", + index=5, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_set", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.product_set", + index=6, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_categories", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.product_categories", + index=7, + number=7, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.vision.v1p3beta1.ProductSearchParams.filter", + index=8, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=273, + serialized_end=707, ) _PRODUCTSEARCHRESULTS_PRODUCTINFO = _descriptor.Descriptor( - name='ProductInfo', - full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='product_id', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo.product_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_uri', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo.image_uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo.score', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1040, - serialized_end=1107, + name="ProductInfo", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="product_id", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo.product_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image_uri", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo.image_uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo.score", + index=2, + number=3, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1040, + serialized_end=1107, ) _PRODUCTSEARCHRESULTS_RESULT = _descriptor.Descriptor( - name='Result', - full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.Result', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='product', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.Result.product', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.Result.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.Result.image', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1109, - serialized_end=1204, + name="Result", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.Result", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="product", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.Result.product", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.Result.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="image", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.Result.image", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1109, + serialized_end=1204, ) _PRODUCTSEARCHRESULTS = _descriptor.Descriptor( - name='ProductSearchResults', - full_name='google.cloud.vision.v1p3beta1.ProductSearchResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='category', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.category', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_category', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.product_category', index=1, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='index_time', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.index_time', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='products', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.products', index=3, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.cloud.vision.v1p3beta1.ProductSearchResults.results', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PRODUCTSEARCHRESULTS_PRODUCTINFO, _PRODUCTSEARCHRESULTS_RESULT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=710, - serialized_end=1204, + name="ProductSearchResults", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="category", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.category", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_category", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.product_category", + index=1, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="index_time", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.index_time", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="products", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.products", + index=3, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="results", + full_name="google.cloud.vision.v1p3beta1.ProductSearchResults.results", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PRODUCTSEARCHRESULTS_PRODUCTINFO, _PRODUCTSEARCHRESULTS_RESULT], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=710, + serialized_end=1204, ) -_PRODUCTSEARCHPARAMS.fields_by_name['category'].enum_type = _PRODUCTSEARCHCATEGORY -_PRODUCTSEARCHPARAMS.fields_by_name['normalized_bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._NORMALIZEDBOUNDINGPOLY -_PRODUCTSEARCHPARAMS.fields_by_name['bounding_poly'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_PRODUCTSEARCHPARAMS.fields_by_name['view'].enum_type = _PRODUCTSEARCHRESULTSVIEW +_PRODUCTSEARCHPARAMS.fields_by_name["category"].enum_type = _PRODUCTSEARCHCATEGORY +_PRODUCTSEARCHPARAMS.fields_by_name[ + "normalized_bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._NORMALIZEDBOUNDINGPOLY +) +_PRODUCTSEARCHPARAMS.fields_by_name[ + "bounding_poly" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_PRODUCTSEARCHPARAMS.fields_by_name["view"].enum_type = _PRODUCTSEARCHRESULTSVIEW _PRODUCTSEARCHRESULTS_PRODUCTINFO.containing_type = _PRODUCTSEARCHRESULTS -_PRODUCTSEARCHRESULTS_RESULT.fields_by_name['product'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2._PRODUCT +_PRODUCTSEARCHRESULTS_RESULT.fields_by_name[ + "product" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2._PRODUCT +) _PRODUCTSEARCHRESULTS_RESULT.containing_type = _PRODUCTSEARCHRESULTS -_PRODUCTSEARCHRESULTS.fields_by_name['category'].enum_type = _PRODUCTSEARCHCATEGORY -_PRODUCTSEARCHRESULTS.fields_by_name['index_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_PRODUCTSEARCHRESULTS.fields_by_name['products'].message_type = _PRODUCTSEARCHRESULTS_PRODUCTINFO -_PRODUCTSEARCHRESULTS.fields_by_name['results'].message_type = _PRODUCTSEARCHRESULTS_RESULT -DESCRIPTOR.message_types_by_name['ProductSearchParams'] = _PRODUCTSEARCHPARAMS -DESCRIPTOR.message_types_by_name['ProductSearchResults'] = _PRODUCTSEARCHRESULTS -DESCRIPTOR.enum_types_by_name['ProductSearchCategory'] = _PRODUCTSEARCHCATEGORY -DESCRIPTOR.enum_types_by_name['ProductSearchResultsView'] = _PRODUCTSEARCHRESULTSVIEW +_PRODUCTSEARCHRESULTS.fields_by_name["category"].enum_type = _PRODUCTSEARCHCATEGORY +_PRODUCTSEARCHRESULTS.fields_by_name[ + "index_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_PRODUCTSEARCHRESULTS.fields_by_name[ + "products" +].message_type = _PRODUCTSEARCHRESULTS_PRODUCTINFO +_PRODUCTSEARCHRESULTS.fields_by_name[ + "results" +].message_type = _PRODUCTSEARCHRESULTS_RESULT +DESCRIPTOR.message_types_by_name["ProductSearchParams"] = _PRODUCTSEARCHPARAMS +DESCRIPTOR.message_types_by_name["ProductSearchResults"] = _PRODUCTSEARCHRESULTS +DESCRIPTOR.enum_types_by_name["ProductSearchCategory"] = _PRODUCTSEARCHCATEGORY +DESCRIPTOR.enum_types_by_name["ProductSearchResultsView"] = _PRODUCTSEARCHRESULTSVIEW _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ProductSearchParams = _reflection.GeneratedProtocolMessageType('ProductSearchParams', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTSEARCHPARAMS, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_pb2' - , - __doc__ = """Parameters for a product search request. +ProductSearchParams = _reflection.GeneratedProtocolMessageType( + "ProductSearchParams", + (_message.Message,), + dict( + DESCRIPTOR=_PRODUCTSEARCHPARAMS, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", + __doc__="""Parameters for a product search request. Attributes: @@ -384,17 +623,22 @@ color = blue) AND brand = Google" is acceptable, but not "(color = red OR brand = Google)" or "color: red". """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchParams) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchParams) + ), +) _sym_db.RegisterMessage(ProductSearchParams) -ProductSearchResults = _reflection.GeneratedProtocolMessageType('ProductSearchResults', (_message.Message,), dict( - - ProductInfo = _reflection.GeneratedProtocolMessageType('ProductInfo', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTSEARCHRESULTS_PRODUCTINFO, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_pb2' - , - __doc__ = """Information about a product. +ProductSearchResults = _reflection.GeneratedProtocolMessageType( + "ProductSearchResults", + (_message.Message,), + dict( + ProductInfo=_reflection.GeneratedProtocolMessageType( + "ProductInfo", + (_message.Message,), + dict( + DESCRIPTOR=_PRODUCTSEARCHRESULTS_PRODUCTINFO, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", + __doc__="""Information about a product. Attributes: @@ -409,15 +653,16 @@ confidence) to 1 (full confidence). This field is returned only if ``view`` is set to ``FULL`` in the request. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo) - )) - , - - Result = _reflection.GeneratedProtocolMessageType('Result', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTSEARCHRESULTS_RESULT, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_pb2' - , - __doc__ = """Information about a product. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo) + ), + ), + Result=_reflection.GeneratedProtocolMessageType( + "Result", + (_message.Message,), + dict( + DESCRIPTOR=_PRODUCTSEARCHRESULTS_RESULT, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", + __doc__="""Information about a product. Attributes: @@ -431,13 +676,12 @@ The resource name of the image from the product that is the closest match to the query. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) - )) - , - DESCRIPTOR = _PRODUCTSEARCHRESULTS, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_pb2' - , - __doc__ = """Results for a product search request. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) + ), + ), + DESCRIPTOR=_PRODUCTSEARCHRESULTS, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", + __doc__="""Results for a product search request. Attributes: @@ -454,13 +698,19 @@ results: List of results, one for each product match. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults) + ), +) _sym_db.RegisterMessage(ProductSearchResults) _sym_db.RegisterMessage(ProductSearchResults.ProductInfo) _sym_db.RegisterMessage(ProductSearchResults.Result) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p3beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p3beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py b/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py b/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py index 8ddbd5efd535b..cb82fda9196ef 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py @@ -2,20 +2,26 @@ # source: google/cloud/vision_v1p3beta1/proto/product_search_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1p3beta1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.vision_v1p3beta1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 @@ -23,1306 +29,2020 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p3beta1/proto/product_search_service.proto', - package='google.cloud.vision.v1p3beta1', - syntax='proto3', - serialized_pb=_b('\n@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xcd\x01\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x18\n\x10product_category\x18\x04 \x01(\t\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\x89\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12.\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\"p\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x43\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\"s\n\x14\x43reateProductRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x37\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x12\n\nproduct_id\x18\x03 \x01(\t\"L\n\x13ListProductsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"!\n\x11GetProductRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x80\x01\n\x14UpdateProductRequest\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"$\n\x14\x44\x65leteProductRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x81\x01\n\x17\x43reateProductSetRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12>\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t\"O\n\x16ListProductSetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"$\n\x14GetProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x8a\x01\n\x17UpdateProductSetRequest\x12>\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\'\n\x17\x44\x65leteProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x91\x01\n\x1b\x43reateReferenceImageRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x46\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t\"S\n\x1aListReferenceImagesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"(\n\x18GetReferenceImageRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"+\n\x1b\x44\x65leteReferenceImageRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\">\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t\"C\n\"RemoveProductFromProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t\"V\n\x1fListProductsInProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t\"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source\"}\n\x18ImportProductSetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12Q\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig\"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x32\x9f\x1b\n\rProductSearch\x12\xc2\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p3beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet\"K\x82\xd3\xe4\x93\x02\x45\"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\x12\xc0\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p3beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p3beta1.ListProductSetsResponse\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{parent=projects/*/locations/*}/productSets\x12\xaf\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p3beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{name=projects/*/locations/*/productSets/*}\x12\xce\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p3beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet\"W\x82\xd3\xe4\x93\x02Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\x12\xa2\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p3beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty\">\x82\xd3\xe4\x93\x02\x38*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\x12\xb2\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p3beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product\"D\x82\xd3\xe4\x93\x02>\"3/v1p3beta1/{parent=projects/*/locations/*}/products:\x07product\x12\xb4\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p3beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p3beta1.ListProductsResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{parent=projects/*/locations/*}/products\x12\xa3\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p3beta1.GetProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product\";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{name=projects/*/locations/*/products/*}\x12\xba\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p3beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product\"L\x82\xd3\xe4\x93\x02\x46\x32;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\x07product\x12\x99\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p3beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x02\x35*3/v1p3beta1/{name=projects/*/locations/*/products/*}\x12\xe1\x01\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage\"^\x82\xd3\xe4\x93\x02X\"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\x12\xb9\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty\"M\x82\xd3\xe4\x93\x02G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xdb\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse\"M\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\x12\xca\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p3beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage\"M\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xbc\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty\"L\x82\xd3\xe4\x93\x02\x46\"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\x12\xc9\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty\"O\x82\xd3\xe4\x93\x02I\"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\x12\xe4\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse\"G\x82\xd3\xe4\x93\x02\x41\x12?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\x12\xb5\x01\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p3beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation\"H\x82\xd3\xe4\x93\x02\x42\"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\x01*B\x88\x01\n!com.google.cloud.vision.v1p3beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/vision_v1p3beta1/proto/product_search_service.proto", + package="google.cloud.vision.v1p3beta1", + syntax="proto3", + serialized_pb=_b( + '\n@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xcd\x01\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x18\n\x10product_category\x18\x04 \x01(\t\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"\x89\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12.\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status"p\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x43\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly"s\n\x14\x43reateProductRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x37\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x12\n\nproduct_id\x18\x03 \x01(\t"L\n\x13ListProductsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"!\n\x11GetProductRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x80\x01\n\x14UpdateProductRequest\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"$\n\x14\x44\x65leteProductRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x81\x01\n\x17\x43reateProductSetRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12>\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t"O\n\x16ListProductSetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"$\n\x14GetProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x8a\x01\n\x17UpdateProductSetRequest\x12>\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\'\n\x17\x44\x65leteProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x91\x01\n\x1b\x43reateReferenceImageRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x46\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t"S\n\x1aListReferenceImagesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"(\n\x18GetReferenceImageRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"+\n\x1b\x44\x65leteReferenceImageRequest\x12\x0c\n\x04name\x18\x01 \x01(\t">\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t"C\n"RemoveProductFromProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07product\x18\x02 \x01(\t"V\n\x1fListProductsInProductSetRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"}\n\x18ImportProductSetsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12Q\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x32\x9f\x1b\n\rProductSearch\x12\xc2\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p3beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"K\x82\xd3\xe4\x93\x02\x45"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\x12\xc0\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p3beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p3beta1.ListProductSetsResponse">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{parent=projects/*/locations/*}/productSets\x12\xaf\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p3beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{name=projects/*/locations/*/productSets/*}\x12\xce\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p3beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"W\x82\xd3\xe4\x93\x02Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\x12\xa2\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p3beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x38*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\x12\xb2\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p3beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"D\x82\xd3\xe4\x93\x02>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\x07product\x12\xb4\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p3beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p3beta1.ListProductsResponse";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{parent=projects/*/locations/*}/products\x12\xa3\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p3beta1.GetProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{name=projects/*/locations/*/products/*}\x12\xba\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p3beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"L\x82\xd3\xe4\x93\x02\x46\x32;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\x07product\x12\x99\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p3beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty";\x82\xd3\xe4\x93\x02\x35*3/v1p3beta1/{name=projects/*/locations/*/products/*}\x12\xe1\x01\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"^\x82\xd3\xe4\x93\x02X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\x12\xb9\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xdb\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse"M\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\x12\xca\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p3beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"M\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xbc\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"L\x82\xd3\xe4\x93\x02\x46"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\x12\xc9\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"O\x82\xd3\xe4\x93\x02I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\x12\xe4\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse"G\x82\xd3\xe4\x93\x02\x41\x12?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\x12\xb5\x01\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p3beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"H\x82\xd3\xe4\x93\x02\x42"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\x01*B\x88\x01\n!com.google.cloud.vision.v1p3beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _BATCHOPERATIONMETADATA_STATE = _descriptor.EnumDescriptor( - name='State', - full_name='google.cloud.vision.v1p3beta1.BatchOperationMetadata.State', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROCESSING', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUCCESSFUL', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FAILED', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANCELLED', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=3307, - serialized_end=3396, + name="State", + full_name="google.cloud.vision.v1p3beta1.BatchOperationMetadata.State", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PROCESSING", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SUCCESSFUL", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="FAILED", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=3307, + serialized_end=3396, ) _sym_db.RegisterEnumDescriptor(_BATCHOPERATIONMETADATA_STATE) _PRODUCT_KEYVALUE = _descriptor.Descriptor( - name='KeyValue', - full_name='google.cloud.vision.v1p3beta1.Product.KeyValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.vision.v1p3beta1.Product.KeyValue.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.vision.v1p3beta1.Product.KeyValue.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=507, - serialized_end=545, + name="KeyValue", + full_name="google.cloud.vision.v1p3beta1.Product.KeyValue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.vision.v1p3beta1.Product.KeyValue.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.vision.v1p3beta1.Product.KeyValue.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=507, + serialized_end=545, ) _PRODUCT = _descriptor.Descriptor( - name='Product', - full_name='google.cloud.vision.v1p3beta1.Product', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.Product.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.vision.v1p3beta1.Product.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.vision.v1p3beta1.Product.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_category', full_name='google.cloud.vision.v1p3beta1.Product.product_category', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_labels', full_name='google.cloud.vision.v1p3beta1.Product.product_labels', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PRODUCT_KEYVALUE, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=340, - serialized_end=545, + name="Product", + full_name="google.cloud.vision.v1p3beta1.Product", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.Product.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.vision.v1p3beta1.Product.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.vision.v1p3beta1.Product.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_category", + full_name="google.cloud.vision.v1p3beta1.Product.product_category", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_labels", + full_name="google.cloud.vision.v1p3beta1.Product.product_labels", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_PRODUCT_KEYVALUE], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=340, + serialized_end=545, ) _PRODUCTSET = _descriptor.Descriptor( - name='ProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.ProductSet.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.vision.v1p3beta1.ProductSet.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='index_time', full_name='google.cloud.vision.v1p3beta1.ProductSet.index_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='index_error', full_name='google.cloud.vision.v1p3beta1.ProductSet.index_error', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=548, - serialized_end=685, + name="ProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSet", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.ProductSet.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.vision.v1p3beta1.ProductSet.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="index_time", + full_name="google.cloud.vision.v1p3beta1.ProductSet.index_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="index_error", + full_name="google.cloud.vision.v1p3beta1.ProductSet.index_error", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=548, + serialized_end=685, ) _REFERENCEIMAGE = _descriptor.Descriptor( - name='ReferenceImage', - full_name='google.cloud.vision.v1p3beta1.ReferenceImage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.ReferenceImage.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uri', full_name='google.cloud.vision.v1p3beta1.ReferenceImage.uri', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_polys', full_name='google.cloud.vision.v1p3beta1.ReferenceImage.bounding_polys', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=687, - serialized_end=799, + name="ReferenceImage", + full_name="google.cloud.vision.v1p3beta1.ReferenceImage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.ReferenceImage.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uri", + full_name="google.cloud.vision.v1p3beta1.ReferenceImage.uri", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_polys", + full_name="google.cloud.vision.v1p3beta1.ReferenceImage.bounding_polys", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=687, + serialized_end=799, ) _CREATEPRODUCTREQUEST = _descriptor.Descriptor( - name='CreateProductRequest', - full_name='google.cloud.vision.v1p3beta1.CreateProductRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.vision.v1p3beta1.CreateProductRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product', full_name='google.cloud.vision.v1p3beta1.CreateProductRequest.product', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_id', full_name='google.cloud.vision.v1p3beta1.CreateProductRequest.product_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=801, - serialized_end=916, + name="CreateProductRequest", + full_name="google.cloud.vision.v1p3beta1.CreateProductRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.vision.v1p3beta1.CreateProductRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product", + full_name="google.cloud.vision.v1p3beta1.CreateProductRequest.product", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_id", + full_name="google.cloud.vision.v1p3beta1.CreateProductRequest.product_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=801, + serialized_end=916, ) _LISTPRODUCTSREQUEST = _descriptor.Descriptor( - name='ListProductsRequest', - full_name='google.cloud.vision.v1p3beta1.ListProductsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.vision.v1p3beta1.ListProductsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.vision.v1p3beta1.ListProductsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.vision.v1p3beta1.ListProductsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=918, - serialized_end=994, + name="ListProductsRequest", + full_name="google.cloud.vision.v1p3beta1.ListProductsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.vision.v1p3beta1.ListProductsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.vision.v1p3beta1.ListProductsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.vision.v1p3beta1.ListProductsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=918, + serialized_end=994, ) _LISTPRODUCTSRESPONSE = _descriptor.Descriptor( - name='ListProductsResponse', - full_name='google.cloud.vision.v1p3beta1.ListProductsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='products', full_name='google.cloud.vision.v1p3beta1.ListProductsResponse.products', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.vision.v1p3beta1.ListProductsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=996, - serialized_end=1101, + name="ListProductsResponse", + full_name="google.cloud.vision.v1p3beta1.ListProductsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="products", + full_name="google.cloud.vision.v1p3beta1.ListProductsResponse.products", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.vision.v1p3beta1.ListProductsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=996, + serialized_end=1101, ) _GETPRODUCTREQUEST = _descriptor.Descriptor( - name='GetProductRequest', - full_name='google.cloud.vision.v1p3beta1.GetProductRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.GetProductRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1103, - serialized_end=1136, + name="GetProductRequest", + full_name="google.cloud.vision.v1p3beta1.GetProductRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.GetProductRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1103, + serialized_end=1136, ) _UPDATEPRODUCTREQUEST = _descriptor.Descriptor( - name='UpdateProductRequest', - full_name='google.cloud.vision.v1p3beta1.UpdateProductRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='product', full_name='google.cloud.vision.v1p3beta1.UpdateProductRequest.product', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.vision.v1p3beta1.UpdateProductRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1139, - serialized_end=1267, + name="UpdateProductRequest", + full_name="google.cloud.vision.v1p3beta1.UpdateProductRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="product", + full_name="google.cloud.vision.v1p3beta1.UpdateProductRequest.product", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.vision.v1p3beta1.UpdateProductRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1139, + serialized_end=1267, ) _DELETEPRODUCTREQUEST = _descriptor.Descriptor( - name='DeleteProductRequest', - full_name='google.cloud.vision.v1p3beta1.DeleteProductRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.DeleteProductRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1269, - serialized_end=1305, + name="DeleteProductRequest", + full_name="google.cloud.vision.v1p3beta1.DeleteProductRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.DeleteProductRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1269, + serialized_end=1305, ) _CREATEPRODUCTSETREQUEST = _descriptor.Descriptor( - name='CreateProductSetRequest', - full_name='google.cloud.vision.v1p3beta1.CreateProductSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.vision.v1p3beta1.CreateProductSetRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_set', full_name='google.cloud.vision.v1p3beta1.CreateProductSetRequest.product_set', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_set_id', full_name='google.cloud.vision.v1p3beta1.CreateProductSetRequest.product_set_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1308, - serialized_end=1437, + name="CreateProductSetRequest", + full_name="google.cloud.vision.v1p3beta1.CreateProductSetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.vision.v1p3beta1.CreateProductSetRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_set", + full_name="google.cloud.vision.v1p3beta1.CreateProductSetRequest.product_set", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product_set_id", + full_name="google.cloud.vision.v1p3beta1.CreateProductSetRequest.product_set_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1308, + serialized_end=1437, ) _LISTPRODUCTSETSREQUEST = _descriptor.Descriptor( - name='ListProductSetsRequest', - full_name='google.cloud.vision.v1p3beta1.ListProductSetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.vision.v1p3beta1.ListProductSetsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.vision.v1p3beta1.ListProductSetsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.vision.v1p3beta1.ListProductSetsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1439, - serialized_end=1518, + name="ListProductSetsRequest", + full_name="google.cloud.vision.v1p3beta1.ListProductSetsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.vision.v1p3beta1.ListProductSetsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.vision.v1p3beta1.ListProductSetsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.vision.v1p3beta1.ListProductSetsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1439, + serialized_end=1518, ) _LISTPRODUCTSETSRESPONSE = _descriptor.Descriptor( - name='ListProductSetsResponse', - full_name='google.cloud.vision.v1p3beta1.ListProductSetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='product_sets', full_name='google.cloud.vision.v1p3beta1.ListProductSetsResponse.product_sets', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.vision.v1p3beta1.ListProductSetsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1520, - serialized_end=1635, + name="ListProductSetsResponse", + full_name="google.cloud.vision.v1p3beta1.ListProductSetsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="product_sets", + full_name="google.cloud.vision.v1p3beta1.ListProductSetsResponse.product_sets", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.vision.v1p3beta1.ListProductSetsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1520, + serialized_end=1635, ) _GETPRODUCTSETREQUEST = _descriptor.Descriptor( - name='GetProductSetRequest', - full_name='google.cloud.vision.v1p3beta1.GetProductSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.GetProductSetRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1637, - serialized_end=1673, + name="GetProductSetRequest", + full_name="google.cloud.vision.v1p3beta1.GetProductSetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.GetProductSetRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1637, + serialized_end=1673, ) _UPDATEPRODUCTSETREQUEST = _descriptor.Descriptor( - name='UpdateProductSetRequest', - full_name='google.cloud.vision.v1p3beta1.UpdateProductSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='product_set', full_name='google.cloud.vision.v1p3beta1.UpdateProductSetRequest.product_set', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.vision.v1p3beta1.UpdateProductSetRequest.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1676, - serialized_end=1814, + name="UpdateProductSetRequest", + full_name="google.cloud.vision.v1p3beta1.UpdateProductSetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="product_set", + full_name="google.cloud.vision.v1p3beta1.UpdateProductSetRequest.product_set", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.vision.v1p3beta1.UpdateProductSetRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1676, + serialized_end=1814, ) _DELETEPRODUCTSETREQUEST = _descriptor.Descriptor( - name='DeleteProductSetRequest', - full_name='google.cloud.vision.v1p3beta1.DeleteProductSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.DeleteProductSetRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1816, - serialized_end=1855, + name="DeleteProductSetRequest", + full_name="google.cloud.vision.v1p3beta1.DeleteProductSetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.DeleteProductSetRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1816, + serialized_end=1855, ) _CREATEREFERENCEIMAGEREQUEST = _descriptor.Descriptor( - name='CreateReferenceImageRequest', - full_name='google.cloud.vision.v1p3beta1.CreateReferenceImageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reference_image', full_name='google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.reference_image', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reference_image_id', full_name='google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.reference_image_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1858, - serialized_end=2003, + name="CreateReferenceImageRequest", + full_name="google.cloud.vision.v1p3beta1.CreateReferenceImageRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reference_image", + full_name="google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.reference_image", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reference_image_id", + full_name="google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.reference_image_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1858, + serialized_end=2003, ) _LISTREFERENCEIMAGESREQUEST = _descriptor.Descriptor( - name='ListReferenceImagesRequest', - full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2005, - serialized_end=2088, + name="ListReferenceImagesRequest", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2005, + serialized_end=2088, ) _LISTREFERENCEIMAGESRESPONSE = _descriptor.Descriptor( - name='ListReferenceImagesResponse', - full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='reference_images', full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.reference_images', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.next_page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2091, - serialized_end=2237, + name="ListReferenceImagesResponse", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="reference_images", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.reference_images", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.next_page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2091, + serialized_end=2237, ) _GETREFERENCEIMAGEREQUEST = _descriptor.Descriptor( - name='GetReferenceImageRequest', - full_name='google.cloud.vision.v1p3beta1.GetReferenceImageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.GetReferenceImageRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2239, - serialized_end=2279, + name="GetReferenceImageRequest", + full_name="google.cloud.vision.v1p3beta1.GetReferenceImageRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.GetReferenceImageRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2239, + serialized_end=2279, ) _DELETEREFERENCEIMAGEREQUEST = _descriptor.Descriptor( - name='DeleteReferenceImageRequest', - full_name='google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2281, - serialized_end=2324, + name="DeleteReferenceImageRequest", + full_name="google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2281, + serialized_end=2324, ) _ADDPRODUCTTOPRODUCTSETREQUEST = _descriptor.Descriptor( - name='AddProductToProductSetRequest', - full_name='google.cloud.vision.v1p3beta1.AddProductToProductSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product', full_name='google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.product', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2326, - serialized_end=2388, + name="AddProductToProductSetRequest", + full_name="google.cloud.vision.v1p3beta1.AddProductToProductSetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product", + full_name="google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.product", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2326, + serialized_end=2388, ) _REMOVEPRODUCTFROMPRODUCTSETREQUEST = _descriptor.Descriptor( - name='RemoveProductFromProductSetRequest', - full_name='google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product', full_name='google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.product', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2390, - serialized_end=2457, + name="RemoveProductFromProductSetRequest", + full_name="google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="product", + full_name="google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.product", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2390, + serialized_end=2457, ) _LISTPRODUCTSINPRODUCTSETREQUEST = _descriptor.Descriptor( - name='ListProductsInProductSetRequest', - full_name='google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2459, - serialized_end=2545, + name="ListProductsInProductSetRequest", + full_name="google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2459, + serialized_end=2545, ) _LISTPRODUCTSINPRODUCTSETRESPONSE = _descriptor.Descriptor( - name='ListProductsInProductSetResponse', - full_name='google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='products', full_name='google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.products', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2547, - serialized_end=2664, + name="ListProductsInProductSetResponse", + full_name="google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="products", + full_name="google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.products", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2547, + serialized_end=2664, ) _IMPORTPRODUCTSETSGCSSOURCE = _descriptor.Descriptor( - name='ImportProductSetsGcsSource', - full_name='google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='csv_file_uri', full_name='google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2666, - serialized_end=2716, + name="ImportProductSetsGcsSource", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="csv_file_uri", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2666, + serialized_end=2716, ) _IMPORTPRODUCTSETSINPUTCONFIG = _descriptor.Descriptor( - name='ImportProductSetsInputConfig', - full_name='google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gcs_source', full_name='google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.gcs_source', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='source', full_name='google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.source', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2718, - serialized_end=2839, + name="ImportProductSetsInputConfig", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="gcs_source", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.gcs_source", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.source", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=2718, + serialized_end=2839, ) _IMPORTPRODUCTSETSREQUEST = _descriptor.Descriptor( - name='ImportProductSetsRequest', - full_name='google.cloud.vision.v1p3beta1.ImportProductSetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.vision.v1p3beta1.ImportProductSetsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='input_config', full_name='google.cloud.vision.v1p3beta1.ImportProductSetsRequest.input_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2841, - serialized_end=2966, + name="ImportProductSetsRequest", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="input_config", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsRequest.input_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2841, + serialized_end=2966, ) _IMPORTPRODUCTSETSRESPONSE = _descriptor.Descriptor( - name='ImportProductSetsResponse', - full_name='google.cloud.vision.v1p3beta1.ImportProductSetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='reference_images', full_name='google.cloud.vision.v1p3beta1.ImportProductSetsResponse.reference_images', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='statuses', full_name='google.cloud.vision.v1p3beta1.ImportProductSetsResponse.statuses', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2969, - serialized_end=3107, + name="ImportProductSetsResponse", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="reference_images", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsResponse.reference_images", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="statuses", + full_name="google.cloud.vision.v1p3beta1.ImportProductSetsResponse.statuses", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2969, + serialized_end=3107, ) _BATCHOPERATIONMETADATA = _descriptor.Descriptor( - name='BatchOperationMetadata', - full_name='google.cloud.vision.v1p3beta1.BatchOperationMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='state', full_name='google.cloud.vision.v1p3beta1.BatchOperationMetadata.state', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='submit_time', full_name='google.cloud.vision.v1p3beta1.BatchOperationMetadata.submit_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time', full_name='google.cloud.vision.v1p3beta1.BatchOperationMetadata.end_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _BATCHOPERATIONMETADATA_STATE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3110, - serialized_end=3396, + name="BatchOperationMetadata", + full_name="google.cloud.vision.v1p3beta1.BatchOperationMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="state", + full_name="google.cloud.vision.v1p3beta1.BatchOperationMetadata.state", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="submit_time", + full_name="google.cloud.vision.v1p3beta1.BatchOperationMetadata.submit_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.cloud.vision.v1p3beta1.BatchOperationMetadata.end_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_BATCHOPERATIONMETADATA_STATE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3110, + serialized_end=3396, ) _PRODUCT_KEYVALUE.containing_type = _PRODUCT -_PRODUCT.fields_by_name['product_labels'].message_type = _PRODUCT_KEYVALUE -_PRODUCTSET.fields_by_name['index_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_PRODUCTSET.fields_by_name['index_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_REFERENCEIMAGE.fields_by_name['bounding_polys'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_CREATEPRODUCTREQUEST.fields_by_name['product'].message_type = _PRODUCT -_LISTPRODUCTSRESPONSE.fields_by_name['products'].message_type = _PRODUCT -_UPDATEPRODUCTREQUEST.fields_by_name['product'].message_type = _PRODUCT -_UPDATEPRODUCTREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CREATEPRODUCTSETREQUEST.fields_by_name['product_set'].message_type = _PRODUCTSET -_LISTPRODUCTSETSRESPONSE.fields_by_name['product_sets'].message_type = _PRODUCTSET -_UPDATEPRODUCTSETREQUEST.fields_by_name['product_set'].message_type = _PRODUCTSET -_UPDATEPRODUCTSETREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CREATEREFERENCEIMAGEREQUEST.fields_by_name['reference_image'].message_type = _REFERENCEIMAGE -_LISTREFERENCEIMAGESRESPONSE.fields_by_name['reference_images'].message_type = _REFERENCEIMAGE -_LISTPRODUCTSINPRODUCTSETRESPONSE.fields_by_name['products'].message_type = _PRODUCT -_IMPORTPRODUCTSETSINPUTCONFIG.fields_by_name['gcs_source'].message_type = _IMPORTPRODUCTSETSGCSSOURCE -_IMPORTPRODUCTSETSINPUTCONFIG.oneofs_by_name['source'].fields.append( - _IMPORTPRODUCTSETSINPUTCONFIG.fields_by_name['gcs_source']) -_IMPORTPRODUCTSETSINPUTCONFIG.fields_by_name['gcs_source'].containing_oneof = _IMPORTPRODUCTSETSINPUTCONFIG.oneofs_by_name['source'] -_IMPORTPRODUCTSETSREQUEST.fields_by_name['input_config'].message_type = _IMPORTPRODUCTSETSINPUTCONFIG -_IMPORTPRODUCTSETSRESPONSE.fields_by_name['reference_images'].message_type = _REFERENCEIMAGE -_IMPORTPRODUCTSETSRESPONSE.fields_by_name['statuses'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_BATCHOPERATIONMETADATA.fields_by_name['state'].enum_type = _BATCHOPERATIONMETADATA_STATE -_BATCHOPERATIONMETADATA.fields_by_name['submit_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_BATCHOPERATIONMETADATA.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_PRODUCT.fields_by_name["product_labels"].message_type = _PRODUCT_KEYVALUE +_PRODUCTSET.fields_by_name[ + "index_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_PRODUCTSET.fields_by_name[ + "index_error" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_REFERENCEIMAGE.fields_by_name[ + "bounding_polys" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_CREATEPRODUCTREQUEST.fields_by_name["product"].message_type = _PRODUCT +_LISTPRODUCTSRESPONSE.fields_by_name["products"].message_type = _PRODUCT +_UPDATEPRODUCTREQUEST.fields_by_name["product"].message_type = _PRODUCT +_UPDATEPRODUCTREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CREATEPRODUCTSETREQUEST.fields_by_name["product_set"].message_type = _PRODUCTSET +_LISTPRODUCTSETSRESPONSE.fields_by_name["product_sets"].message_type = _PRODUCTSET +_UPDATEPRODUCTSETREQUEST.fields_by_name["product_set"].message_type = _PRODUCTSET +_UPDATEPRODUCTSETREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CREATEREFERENCEIMAGEREQUEST.fields_by_name[ + "reference_image" +].message_type = _REFERENCEIMAGE +_LISTREFERENCEIMAGESRESPONSE.fields_by_name[ + "reference_images" +].message_type = _REFERENCEIMAGE +_LISTPRODUCTSINPRODUCTSETRESPONSE.fields_by_name["products"].message_type = _PRODUCT +_IMPORTPRODUCTSETSINPUTCONFIG.fields_by_name[ + "gcs_source" +].message_type = _IMPORTPRODUCTSETSGCSSOURCE +_IMPORTPRODUCTSETSINPUTCONFIG.oneofs_by_name["source"].fields.append( + _IMPORTPRODUCTSETSINPUTCONFIG.fields_by_name["gcs_source"] +) +_IMPORTPRODUCTSETSINPUTCONFIG.fields_by_name[ + "gcs_source" +].containing_oneof = _IMPORTPRODUCTSETSINPUTCONFIG.oneofs_by_name["source"] +_IMPORTPRODUCTSETSREQUEST.fields_by_name[ + "input_config" +].message_type = _IMPORTPRODUCTSETSINPUTCONFIG +_IMPORTPRODUCTSETSRESPONSE.fields_by_name[ + "reference_images" +].message_type = _REFERENCEIMAGE +_IMPORTPRODUCTSETSRESPONSE.fields_by_name[ + "statuses" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_BATCHOPERATIONMETADATA.fields_by_name[ + "state" +].enum_type = _BATCHOPERATIONMETADATA_STATE +_BATCHOPERATIONMETADATA.fields_by_name[ + "submit_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_BATCHOPERATIONMETADATA.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _BATCHOPERATIONMETADATA_STATE.containing_type = _BATCHOPERATIONMETADATA -DESCRIPTOR.message_types_by_name['Product'] = _PRODUCT -DESCRIPTOR.message_types_by_name['ProductSet'] = _PRODUCTSET -DESCRIPTOR.message_types_by_name['ReferenceImage'] = _REFERENCEIMAGE -DESCRIPTOR.message_types_by_name['CreateProductRequest'] = _CREATEPRODUCTREQUEST -DESCRIPTOR.message_types_by_name['ListProductsRequest'] = _LISTPRODUCTSREQUEST -DESCRIPTOR.message_types_by_name['ListProductsResponse'] = _LISTPRODUCTSRESPONSE -DESCRIPTOR.message_types_by_name['GetProductRequest'] = _GETPRODUCTREQUEST -DESCRIPTOR.message_types_by_name['UpdateProductRequest'] = _UPDATEPRODUCTREQUEST -DESCRIPTOR.message_types_by_name['DeleteProductRequest'] = _DELETEPRODUCTREQUEST -DESCRIPTOR.message_types_by_name['CreateProductSetRequest'] = _CREATEPRODUCTSETREQUEST -DESCRIPTOR.message_types_by_name['ListProductSetsRequest'] = _LISTPRODUCTSETSREQUEST -DESCRIPTOR.message_types_by_name['ListProductSetsResponse'] = _LISTPRODUCTSETSRESPONSE -DESCRIPTOR.message_types_by_name['GetProductSetRequest'] = _GETPRODUCTSETREQUEST -DESCRIPTOR.message_types_by_name['UpdateProductSetRequest'] = _UPDATEPRODUCTSETREQUEST -DESCRIPTOR.message_types_by_name['DeleteProductSetRequest'] = _DELETEPRODUCTSETREQUEST -DESCRIPTOR.message_types_by_name['CreateReferenceImageRequest'] = _CREATEREFERENCEIMAGEREQUEST -DESCRIPTOR.message_types_by_name['ListReferenceImagesRequest'] = _LISTREFERENCEIMAGESREQUEST -DESCRIPTOR.message_types_by_name['ListReferenceImagesResponse'] = _LISTREFERENCEIMAGESRESPONSE -DESCRIPTOR.message_types_by_name['GetReferenceImageRequest'] = _GETREFERENCEIMAGEREQUEST -DESCRIPTOR.message_types_by_name['DeleteReferenceImageRequest'] = _DELETEREFERENCEIMAGEREQUEST -DESCRIPTOR.message_types_by_name['AddProductToProductSetRequest'] = _ADDPRODUCTTOPRODUCTSETREQUEST -DESCRIPTOR.message_types_by_name['RemoveProductFromProductSetRequest'] = _REMOVEPRODUCTFROMPRODUCTSETREQUEST -DESCRIPTOR.message_types_by_name['ListProductsInProductSetRequest'] = _LISTPRODUCTSINPRODUCTSETREQUEST -DESCRIPTOR.message_types_by_name['ListProductsInProductSetResponse'] = _LISTPRODUCTSINPRODUCTSETRESPONSE -DESCRIPTOR.message_types_by_name['ImportProductSetsGcsSource'] = _IMPORTPRODUCTSETSGCSSOURCE -DESCRIPTOR.message_types_by_name['ImportProductSetsInputConfig'] = _IMPORTPRODUCTSETSINPUTCONFIG -DESCRIPTOR.message_types_by_name['ImportProductSetsRequest'] = _IMPORTPRODUCTSETSREQUEST -DESCRIPTOR.message_types_by_name['ImportProductSetsResponse'] = _IMPORTPRODUCTSETSRESPONSE -DESCRIPTOR.message_types_by_name['BatchOperationMetadata'] = _BATCHOPERATIONMETADATA +DESCRIPTOR.message_types_by_name["Product"] = _PRODUCT +DESCRIPTOR.message_types_by_name["ProductSet"] = _PRODUCTSET +DESCRIPTOR.message_types_by_name["ReferenceImage"] = _REFERENCEIMAGE +DESCRIPTOR.message_types_by_name["CreateProductRequest"] = _CREATEPRODUCTREQUEST +DESCRIPTOR.message_types_by_name["ListProductsRequest"] = _LISTPRODUCTSREQUEST +DESCRIPTOR.message_types_by_name["ListProductsResponse"] = _LISTPRODUCTSRESPONSE +DESCRIPTOR.message_types_by_name["GetProductRequest"] = _GETPRODUCTREQUEST +DESCRIPTOR.message_types_by_name["UpdateProductRequest"] = _UPDATEPRODUCTREQUEST +DESCRIPTOR.message_types_by_name["DeleteProductRequest"] = _DELETEPRODUCTREQUEST +DESCRIPTOR.message_types_by_name["CreateProductSetRequest"] = _CREATEPRODUCTSETREQUEST +DESCRIPTOR.message_types_by_name["ListProductSetsRequest"] = _LISTPRODUCTSETSREQUEST +DESCRIPTOR.message_types_by_name["ListProductSetsResponse"] = _LISTPRODUCTSETSRESPONSE +DESCRIPTOR.message_types_by_name["GetProductSetRequest"] = _GETPRODUCTSETREQUEST +DESCRIPTOR.message_types_by_name["UpdateProductSetRequest"] = _UPDATEPRODUCTSETREQUEST +DESCRIPTOR.message_types_by_name["DeleteProductSetRequest"] = _DELETEPRODUCTSETREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateReferenceImageRequest" +] = _CREATEREFERENCEIMAGEREQUEST +DESCRIPTOR.message_types_by_name[ + "ListReferenceImagesRequest" +] = _LISTREFERENCEIMAGESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListReferenceImagesResponse" +] = _LISTREFERENCEIMAGESRESPONSE +DESCRIPTOR.message_types_by_name["GetReferenceImageRequest"] = _GETREFERENCEIMAGEREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteReferenceImageRequest" +] = _DELETEREFERENCEIMAGEREQUEST +DESCRIPTOR.message_types_by_name[ + "AddProductToProductSetRequest" +] = _ADDPRODUCTTOPRODUCTSETREQUEST +DESCRIPTOR.message_types_by_name[ + "RemoveProductFromProductSetRequest" +] = _REMOVEPRODUCTFROMPRODUCTSETREQUEST +DESCRIPTOR.message_types_by_name[ + "ListProductsInProductSetRequest" +] = _LISTPRODUCTSINPRODUCTSETREQUEST +DESCRIPTOR.message_types_by_name[ + "ListProductsInProductSetResponse" +] = _LISTPRODUCTSINPRODUCTSETRESPONSE +DESCRIPTOR.message_types_by_name[ + "ImportProductSetsGcsSource" +] = _IMPORTPRODUCTSETSGCSSOURCE +DESCRIPTOR.message_types_by_name[ + "ImportProductSetsInputConfig" +] = _IMPORTPRODUCTSETSINPUTCONFIG +DESCRIPTOR.message_types_by_name["ImportProductSetsRequest"] = _IMPORTPRODUCTSETSREQUEST +DESCRIPTOR.message_types_by_name[ + "ImportProductSetsResponse" +] = _IMPORTPRODUCTSETSRESPONSE +DESCRIPTOR.message_types_by_name["BatchOperationMetadata"] = _BATCHOPERATIONMETADATA _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Product = _reflection.GeneratedProtocolMessageType('Product', (_message.Message,), dict( - - KeyValue = _reflection.GeneratedProtocolMessageType('KeyValue', (_message.Message,), dict( - DESCRIPTOR = _PRODUCT_KEYVALUE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """A product label represented as a key-value pair. +Product = _reflection.GeneratedProtocolMessageType( + "Product", + (_message.Message,), + dict( + KeyValue=_reflection.GeneratedProtocolMessageType( + "KeyValue", + (_message.Message,), + dict( + DESCRIPTOR=_PRODUCT_KEYVALUE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""A product label represented as a key-value pair. Attributes: @@ -1333,13 +2053,12 @@ The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product.KeyValue) - )) - , - DESCRIPTOR = _PRODUCT, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """A Product contains ReferenceImages. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product.KeyValue) + ), + ), + DESCRIPTOR=_PRODUCT, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""A Product contains ReferenceImages. Attributes: @@ -1366,16 +2085,19 @@ Multiple values can be assigned to the same key. One product may have up to 100 product\_labels. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product) + ), +) _sym_db.RegisterMessage(Product) _sym_db.RegisterMessage(Product.KeyValue) -ProductSet = _reflection.GeneratedProtocolMessageType('ProductSet', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTSET, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """A ProductSet contains Products. A ProductSet can contain a maximum of 1 +ProductSet = _reflection.GeneratedProtocolMessageType( + "ProductSet", + (_message.Message,), + dict( + DESCRIPTOR=_PRODUCTSET, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""A ProductSet contains Products. A ProductSet can contain a maximum of 1 million reference images. If the limit is exceeded, periodic indexing will fail. @@ -1398,15 +2120,18 @@ set, the field is populated. This field is ignored when creating a ProductSet. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSet) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSet) + ), +) _sym_db.RegisterMessage(ProductSet) -ReferenceImage = _reflection.GeneratedProtocolMessageType('ReferenceImage', (_message.Message,), dict( - DESCRIPTOR = _REFERENCEIMAGE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """A ``ReferenceImage`` represents a product image and its associated +ReferenceImage = _reflection.GeneratedProtocolMessageType( + "ReferenceImage", + (_message.Message,), + dict( + DESCRIPTOR=_REFERENCEIMAGE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""A ``ReferenceImage`` represents a product image and its associated metadata, such as bounding boxes. @@ -1428,15 +2153,18 @@ rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not). """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ReferenceImage) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ReferenceImage) + ), +) _sym_db.RegisterMessage(ReferenceImage) -CreateProductRequest = _reflection.GeneratedProtocolMessageType('CreateProductRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEPRODUCTREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``CreateProduct`` method. +CreateProductRequest = _reflection.GeneratedProtocolMessageType( + "CreateProductRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEPRODUCTREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``CreateProduct`` method. Attributes: @@ -1452,15 +2180,18 @@ ALREADY\_EXISTS. Must be at most 128 characters long. It cannot contain the character ``/``. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductRequest) + ), +) _sym_db.RegisterMessage(CreateProductRequest) -ListProductsRequest = _reflection.GeneratedProtocolMessageType('ListProductsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTPRODUCTSREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``ListProducts`` method. +ListProductsRequest = _reflection.GeneratedProtocolMessageType( + "ListProductsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTPRODUCTSREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``ListProducts`` method. Attributes: @@ -1474,15 +2205,18 @@ The next\_page\_token returned from a previous List request, if any. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsRequest) + ), +) _sym_db.RegisterMessage(ListProductsRequest) -ListProductsResponse = _reflection.GeneratedProtocolMessageType('ListProductsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTPRODUCTSRESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Response message for the ``ListProducts`` method. +ListProductsResponse = _reflection.GeneratedProtocolMessageType( + "ListProductsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTPRODUCTSRESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Response message for the ``ListProducts`` method. Attributes: @@ -1492,15 +2226,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsResponse) + ), +) _sym_db.RegisterMessage(ListProductsResponse) -GetProductRequest = _reflection.GeneratedProtocolMessageType('GetProductRequest', (_message.Message,), dict( - DESCRIPTOR = _GETPRODUCTREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``GetProduct`` method. +GetProductRequest = _reflection.GeneratedProtocolMessageType( + "GetProductRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETPRODUCTREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``GetProduct`` method. Attributes: @@ -1508,15 +2245,18 @@ Resource name of the Product to get. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductRequest) + ), +) _sym_db.RegisterMessage(GetProductRequest) -UpdateProductRequest = _reflection.GeneratedProtocolMessageType('UpdateProductRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEPRODUCTREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``UpdateProduct`` method. +UpdateProductRequest = _reflection.GeneratedProtocolMessageType( + "UpdateProductRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEPRODUCTREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``UpdateProduct`` method. Attributes: @@ -1529,15 +2269,18 @@ mutable fields are to be updated. Valid mask paths include ``product_labels``, ``display_name`` and ``description``. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductRequest) + ), +) _sym_db.RegisterMessage(UpdateProductRequest) -DeleteProductRequest = _reflection.GeneratedProtocolMessageType('DeleteProductRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEPRODUCTREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``DeleteProduct`` method. +DeleteProductRequest = _reflection.GeneratedProtocolMessageType( + "DeleteProductRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEPRODUCTREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``DeleteProduct`` method. Attributes: @@ -1545,15 +2288,18 @@ Resource name of product to delete. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductRequest) + ), +) _sym_db.RegisterMessage(DeleteProductRequest) -CreateProductSetRequest = _reflection.GeneratedProtocolMessageType('CreateProductSetRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEPRODUCTSETREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``CreateProductSet`` method. +CreateProductSetRequest = _reflection.GeneratedProtocolMessageType( + "CreateProductSetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEPRODUCTSETREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``CreateProductSet`` method. Attributes: @@ -1569,15 +2315,18 @@ ALREADY\_EXISTS. Must be at most 128 characters long. It cannot contain the character ``/``. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductSetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductSetRequest) + ), +) _sym_db.RegisterMessage(CreateProductSetRequest) -ListProductSetsRequest = _reflection.GeneratedProtocolMessageType('ListProductSetsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTPRODUCTSETSREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``ListProductSets`` method. +ListProductSetsRequest = _reflection.GeneratedProtocolMessageType( + "ListProductSetsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTPRODUCTSETSREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``ListProductSets`` method. Attributes: @@ -1591,15 +2340,18 @@ The next\_page\_token returned from a previous List request, if any. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsRequest) + ), +) _sym_db.RegisterMessage(ListProductSetsRequest) -ListProductSetsResponse = _reflection.GeneratedProtocolMessageType('ListProductSetsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTPRODUCTSETSRESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Response message for the ``ListProductSets`` method. +ListProductSetsResponse = _reflection.GeneratedProtocolMessageType( + "ListProductSetsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTPRODUCTSETSRESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Response message for the ``ListProductSets`` method. Attributes: @@ -1609,15 +2361,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsResponse) + ), +) _sym_db.RegisterMessage(ListProductSetsResponse) -GetProductSetRequest = _reflection.GeneratedProtocolMessageType('GetProductSetRequest', (_message.Message,), dict( - DESCRIPTOR = _GETPRODUCTSETREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``GetProductSet`` method. +GetProductSetRequest = _reflection.GeneratedProtocolMessageType( + "GetProductSetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETPRODUCTSETREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``GetProductSet`` method. Attributes: @@ -1625,15 +2380,18 @@ Resource name of the ProductSet to get. Format is: ``projects /PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductSetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductSetRequest) + ), +) _sym_db.RegisterMessage(GetProductSetRequest) -UpdateProductSetRequest = _reflection.GeneratedProtocolMessageType('UpdateProductSetRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEPRODUCTSETREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``UpdateProductSet`` method. +UpdateProductSetRequest = _reflection.GeneratedProtocolMessageType( + "UpdateProductSetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEPRODUCTSETREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``UpdateProductSet`` method. Attributes: @@ -1645,15 +2403,18 @@ mutable fields are to be updated. Valid mask path is ``display_name``. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductSetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductSetRequest) + ), +) _sym_db.RegisterMessage(UpdateProductSetRequest) -DeleteProductSetRequest = _reflection.GeneratedProtocolMessageType('DeleteProductSetRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEPRODUCTSETREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``DeleteProductSet`` method. +DeleteProductSetRequest = _reflection.GeneratedProtocolMessageType( + "DeleteProductSetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEPRODUCTSETREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``DeleteProductSet`` method. Attributes: @@ -1661,15 +2422,18 @@ Resource name of the ProductSet to delete. Format is: ``proje cts/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) + ), +) _sym_db.RegisterMessage(DeleteProductSetRequest) -CreateReferenceImageRequest = _reflection.GeneratedProtocolMessageType('CreateReferenceImageRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEREFERENCEIMAGEREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``CreateReferenceImage`` method. +CreateReferenceImageRequest = _reflection.GeneratedProtocolMessageType( + "CreateReferenceImageRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEREFERENCEIMAGEREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``CreateReferenceImage`` method. Attributes: @@ -1687,15 +2451,18 @@ with code ALREADY\_EXISTS. Must be at most 128 characters long. It cannot contain the character ``/``. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) + ), +) _sym_db.RegisterMessage(CreateReferenceImageRequest) -ListReferenceImagesRequest = _reflection.GeneratedProtocolMessageType('ListReferenceImagesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTREFERENCEIMAGESREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``ListReferenceImages`` method. +ListReferenceImagesRequest = _reflection.GeneratedProtocolMessageType( + "ListReferenceImagesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTREFERENCEIMAGESREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``ListReferenceImages`` method. Attributes: @@ -1712,15 +2479,18 @@ reference image list request. Defaults to the first page if not specified. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) + ), +) _sym_db.RegisterMessage(ListReferenceImagesRequest) -ListReferenceImagesResponse = _reflection.GeneratedProtocolMessageType('ListReferenceImagesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTREFERENCEIMAGESRESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Response message for the ``ListReferenceImages`` method. +ListReferenceImagesResponse = _reflection.GeneratedProtocolMessageType( + "ListReferenceImagesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTREFERENCEIMAGESRESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Response message for the ``ListReferenceImages`` method. Attributes: @@ -1733,15 +2503,18 @@ The next\_page\_token returned from a previous List request, if any. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) + ), +) _sym_db.RegisterMessage(ListReferenceImagesResponse) -GetReferenceImageRequest = _reflection.GeneratedProtocolMessageType('GetReferenceImageRequest', (_message.Message,), dict( - DESCRIPTOR = _GETREFERENCEIMAGEREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``GetReferenceImage`` method. +GetReferenceImageRequest = _reflection.GeneratedProtocolMessageType( + "GetReferenceImageRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETREFERENCEIMAGEREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``GetReferenceImage`` method. Attributes: @@ -1750,15 +2523,18 @@ `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/refe renceImages/IMAGE_ID``. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) + ), +) _sym_db.RegisterMessage(GetReferenceImageRequest) -DeleteReferenceImageRequest = _reflection.GeneratedProtocolMessageType('DeleteReferenceImageRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEREFERENCEIMAGEREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``DeleteReferenceImage`` method. +DeleteReferenceImageRequest = _reflection.GeneratedProtocolMessageType( + "DeleteReferenceImageRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEREFERENCEIMAGEREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``DeleteReferenceImage`` method. Attributes: @@ -1767,15 +2543,18 @@ is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_I D/referenceImages/IMAGE_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) + ), +) _sym_db.RegisterMessage(DeleteReferenceImageRequest) -AddProductToProductSetRequest = _reflection.GeneratedProtocolMessageType('AddProductToProductSetRequest', (_message.Message,), dict( - DESCRIPTOR = _ADDPRODUCTTOPRODUCTSETREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``AddProductToProductSet`` method. +AddProductToProductSetRequest = _reflection.GeneratedProtocolMessageType( + "AddProductToProductSetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_ADDPRODUCTTOPRODUCTSETREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``AddProductToProductSet`` method. Attributes: @@ -1788,15 +2567,18 @@ ProductSet. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) + ), +) _sym_db.RegisterMessage(AddProductToProductSetRequest) -RemoveProductFromProductSetRequest = _reflection.GeneratedProtocolMessageType('RemoveProductFromProductSetRequest', (_message.Message,), dict( - DESCRIPTOR = _REMOVEPRODUCTFROMPRODUCTSETREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``RemoveProductFromProductSet`` method. +RemoveProductFromProductSetRequest = _reflection.GeneratedProtocolMessageType( + "RemoveProductFromProductSetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``RemoveProductFromProductSet`` method. Attributes: @@ -1809,15 +2591,18 @@ ProductSet. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) + ), +) _sym_db.RegisterMessage(RemoveProductFromProductSetRequest) -ListProductsInProductSetRequest = _reflection.GeneratedProtocolMessageType('ListProductsInProductSetRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTPRODUCTSINPRODUCTSETREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``ListProductsInProductSet`` method. +ListProductsInProductSetRequest = _reflection.GeneratedProtocolMessageType( + "ListProductsInProductSetRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTPRODUCTSINPRODUCTSETREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``ListProductsInProductSet`` method. Attributes: @@ -1832,15 +2617,18 @@ The next\_page\_token returned from a previous List request, if any. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) + ), +) _sym_db.RegisterMessage(ListProductsInProductSetRequest) -ListProductsInProductSetResponse = _reflection.GeneratedProtocolMessageType('ListProductsInProductSetResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTPRODUCTSINPRODUCTSETRESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Response message for the ``ListProductsInProductSet`` method. +ListProductsInProductSetResponse = _reflection.GeneratedProtocolMessageType( + "ListProductsInProductSetResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTPRODUCTSINPRODUCTSETRESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Response message for the ``ListProductsInProductSet`` method. Attributes: @@ -1850,15 +2638,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) + ), +) _sym_db.RegisterMessage(ListProductsInProductSetResponse) -ImportProductSetsGcsSource = _reflection.GeneratedProtocolMessageType('ImportProductSetsGcsSource', (_message.Message,), dict( - DESCRIPTOR = _IMPORTPRODUCTSETSGCSSOURCE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """The Google Cloud Storage location for a csv file which preserves a list +ImportProductSetsGcsSource = _reflection.GeneratedProtocolMessageType( + "ImportProductSetsGcsSource", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTPRODUCTSETSGCSSOURCE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line. @@ -1905,15 +2696,18 @@ float values in [0, 1] should be used for normalized bounding polygons. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) + ), +) _sym_db.RegisterMessage(ImportProductSetsGcsSource) -ImportProductSetsInputConfig = _reflection.GeneratedProtocolMessageType('ImportProductSetsInputConfig', (_message.Message,), dict( - DESCRIPTOR = _IMPORTPRODUCTSETSINPUTCONFIG, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """The input content for the ``ImportProductSets`` method. +ImportProductSetsInputConfig = _reflection.GeneratedProtocolMessageType( + "ImportProductSetsInputConfig", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTPRODUCTSETSINPUTCONFIG, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""The input content for the ``ImportProductSets`` method. Attributes: @@ -1923,15 +2717,18 @@ The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) + ), +) _sym_db.RegisterMessage(ImportProductSetsInputConfig) -ImportProductSetsRequest = _reflection.GeneratedProtocolMessageType('ImportProductSetsRequest', (_message.Message,), dict( - DESCRIPTOR = _IMPORTPRODUCTSETSREQUEST, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Request message for the ``ImportProductSets`` method. +ImportProductSetsRequest = _reflection.GeneratedProtocolMessageType( + "ImportProductSetsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTPRODUCTSETSREQUEST, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Request message for the ``ImportProductSets`` method. Attributes: @@ -1941,15 +2738,18 @@ input_config: The input content for the list of requests. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) + ), +) _sym_db.RegisterMessage(ImportProductSetsRequest) -ImportProductSetsResponse = _reflection.GeneratedProtocolMessageType('ImportProductSetsResponse', (_message.Message,), dict( - DESCRIPTOR = _IMPORTPRODUCTSETSRESPONSE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Response message for the ``ImportProductSets`` method. +ImportProductSetsResponse = _reflection.GeneratedProtocolMessageType( + "ImportProductSetsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTPRODUCTSETSRESPONSE, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Response message for the ``ImportProductSets`` method. This message is returned by the [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] @@ -1968,15 +2768,18 @@ stores the success or failure status of processing the i-th line of the csv, starting from line 0. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsResponse) + ), +) _sym_db.RegisterMessage(ImportProductSetsResponse) -BatchOperationMetadata = _reflection.GeneratedProtocolMessageType('BatchOperationMetadata', (_message.Message,), dict( - DESCRIPTOR = _BATCHOPERATIONMETADATA, - __module__ = 'google.cloud.vision_v1p3beta1.proto.product_search_service_pb2' - , - __doc__ = """Metadata for the batch operations such as the current state. +BatchOperationMetadata = _reflection.GeneratedProtocolMessageType( + "BatchOperationMetadata", + (_message.Message,), + dict( + DESCRIPTOR=_BATCHOPERATIONMETADATA, + __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + __doc__="""Metadata for the batch operations such as the current state. This is included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` @@ -1993,188 +2796,285 @@ nning.Operation.done][google.longrunning.Operation.done] is set to true. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchOperationMetadata) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchOperationMetadata) + ), +) _sym_db.RegisterMessage(BatchOperationMetadata) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p3beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p3beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" + ), +) _PRODUCTSEARCH = _descriptor.ServiceDescriptor( - name='ProductSearch', - full_name='google.cloud.vision.v1p3beta1.ProductSearch', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=3399, - serialized_end=6886, - methods=[ - _descriptor.MethodDescriptor( - name='CreateProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.CreateProductSet', + name="ProductSearch", + full_name="google.cloud.vision.v1p3beta1.ProductSearch", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATEPRODUCTSETREQUEST, - output_type=_PRODUCTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\013product_set')), - ), - _descriptor.MethodDescriptor( - name='ListProductSets', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.ListProductSets', - index=1, - containing_service=None, - input_type=_LISTPRODUCTSETSREQUEST, - output_type=_LISTPRODUCTSETSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\0226/v1p3beta1/{parent=projects/*/locations/*}/productSets')), - ), - _descriptor.MethodDescriptor( - name='GetProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.GetProductSet', - index=2, - containing_service=None, - input_type=_GETPRODUCTSETREQUEST, - output_type=_PRODUCTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\0226/v1p3beta1/{name=projects/*/locations/*/productSets/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductSet', - index=3, - containing_service=None, - input_type=_UPDATEPRODUCTSETREQUEST, - output_type=_PRODUCTSET, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set')), - ), - _descriptor.MethodDescriptor( - name='DeleteProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductSet', - index=4, - containing_service=None, - input_type=_DELETEPRODUCTSETREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateProduct', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.CreateProduct', - index=5, - containing_service=None, - input_type=_CREATEPRODUCTREQUEST, - output_type=_PRODUCT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002>\"3/v1p3beta1/{parent=projects/*/locations/*}/products:\007product')), - ), - _descriptor.MethodDescriptor( - name='ListProducts', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.ListProducts', - index=6, - containing_service=None, - input_type=_LISTPRODUCTSREQUEST, - output_type=_LISTPRODUCTSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/locations/*}/products')), - ), - _descriptor.MethodDescriptor( - name='GetProduct', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.GetProduct', - index=7, - containing_service=None, - input_type=_GETPRODUCTREQUEST, - output_type=_PRODUCT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025\0223/v1p3beta1/{name=projects/*/locations/*/products/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateProduct', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.UpdateProduct', - index=8, - containing_service=None, - input_type=_UPDATEPRODUCTREQUEST, - output_type=_PRODUCT, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002F2;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\007product')), - ), - _descriptor.MethodDescriptor( - name='DeleteProduct', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.DeleteProduct', - index=9, - containing_service=None, - input_type=_DELETEPRODUCTREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025*3/v1p3beta1/{name=projects/*/locations/*/products/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateReferenceImage', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.CreateReferenceImage', - index=10, - containing_service=None, - input_type=_CREATEREFERENCEIMAGEREQUEST, - output_type=_REFERENCEIMAGE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002X\"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image')), - ), - _descriptor.MethodDescriptor( - name='DeleteReferenceImage', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.DeleteReferenceImage', - index=11, - containing_service=None, - input_type=_DELETEREFERENCEIMAGEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}')), - ), - _descriptor.MethodDescriptor( - name='ListReferenceImages', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.ListReferenceImages', - index=12, - containing_service=None, - input_type=_LISTREFERENCEIMAGESREQUEST, - output_type=_LISTREFERENCEIMAGESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G\022E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages')), - ), - _descriptor.MethodDescriptor( - name='GetReferenceImage', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.GetReferenceImage', - index=13, - containing_service=None, - input_type=_GETREFERENCEIMAGEREQUEST, - output_type=_REFERENCEIMAGE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}')), - ), - _descriptor.MethodDescriptor( - name='AddProductToProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.AddProductToProductSet', - index=14, - containing_service=None, - input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002F\"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*')), - ), - _descriptor.MethodDescriptor( - name='RemoveProductFromProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.RemoveProductFromProductSet', - index=15, - containing_service=None, - input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002I\"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListProductsInProductSet', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.ListProductsInProductSet', - index=16, - containing_service=None, - input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, - output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002A\022?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products')), - ), - _descriptor.MethodDescriptor( - name='ImportProductSets', - full_name='google.cloud.vision.v1p3beta1.ProductSearch.ImportProductSets', - index=17, - containing_service=None, - input_type=_IMPORTPRODUCTSETSREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B\"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\001*')), - ), -]) + options=None, + serialized_start=3399, + serialized_end=6886, + methods=[ + _descriptor.MethodDescriptor( + name="CreateProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.CreateProductSet", + index=0, + containing_service=None, + input_type=_CREATEPRODUCTSETREQUEST, + output_type=_PRODUCTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\013product_set' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListProductSets", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.ListProductSets", + index=1, + containing_service=None, + input_type=_LISTPRODUCTSETSREQUEST, + output_type=_LISTPRODUCTSETSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0028\0226/v1p3beta1/{parent=projects/*/locations/*}/productSets" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.GetProductSet", + index=2, + containing_service=None, + input_type=_GETPRODUCTSETREQUEST, + output_type=_PRODUCTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0028\0226/v1p3beta1/{name=projects/*/locations/*/productSets/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductSet", + index=3, + containing_service=None, + input_type=_UPDATEPRODUCTSETREQUEST, + output_type=_PRODUCTSET, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductSet", + index=4, + containing_service=None, + input_type=_DELETEPRODUCTSETREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateProduct", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.CreateProduct", + index=5, + containing_service=None, + input_type=_CREATEPRODUCTREQUEST, + output_type=_PRODUCT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\007product' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListProducts", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.ListProducts", + index=6, + containing_service=None, + input_type=_LISTPRODUCTSREQUEST, + output_type=_LISTPRODUCTSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/locations/*}/products" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetProduct", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.GetProduct", + index=7, + containing_service=None, + input_type=_GETPRODUCTREQUEST, + output_type=_PRODUCT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0025\0223/v1p3beta1/{name=projects/*/locations/*/products/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateProduct", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.UpdateProduct", + index=8, + containing_service=None, + input_type=_UPDATEPRODUCTREQUEST, + output_type=_PRODUCT, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002F2;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\007product" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteProduct", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.DeleteProduct", + index=9, + containing_service=None, + input_type=_DELETEPRODUCTREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0025*3/v1p3beta1/{name=projects/*/locations/*/products/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateReferenceImage", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.CreateReferenceImage", + index=10, + containing_service=None, + input_type=_CREATEREFERENCEIMAGEREQUEST, + output_type=_REFERENCEIMAGE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteReferenceImage", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.DeleteReferenceImage", + index=11, + containing_service=None, + input_type=_DELETEREFERENCEIMAGEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListReferenceImages", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.ListReferenceImages", + index=12, + containing_service=None, + input_type=_LISTREFERENCEIMAGESREQUEST, + output_type=_LISTREFERENCEIMAGESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002G\022E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetReferenceImage", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.GetReferenceImage", + index=13, + containing_service=None, + input_type=_GETREFERENCEIMAGEREQUEST, + output_type=_REFERENCEIMAGE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="AddProductToProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.AddProductToProductSet", + index=14, + containing_service=None, + input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002F"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="RemoveProductFromProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.RemoveProductFromProductSet", + index=15, + containing_service=None, + input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListProductsInProductSet", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.ListProductsInProductSet", + index=16, + containing_service=None, + input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, + output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002A\022?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ImportProductSets", + full_name="google.cloud.vision.v1p3beta1.ProductSearch.ImportProductSets", + index=17, + containing_service=None, + input_type=_IMPORTPRODUCTSETSREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002B"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_PRODUCTSEARCH) -DESCRIPTOR.services_by_name['ProductSearch'] = _PRODUCTSEARCH +DESCRIPTOR.services_by_name["ProductSearch"] = _PRODUCTSEARCH # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py b/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py index 167d1720051ed..8f4156b8c2e45 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.vision_v1p3beta1.proto import product_search_service_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.cloud.vision_v1p3beta1.proto import ( + product_search_service_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2, +) +from google.longrunning import ( + operations_pb2 as google_dot_longrunning_dot_operations__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class ProductSearchStub(object): - """Manages Products and ProductSets of reference images for use in product + """Manages Products and ProductSets of reference images for use in product search. It uses the following resource model: - The API has a collection of [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] resources, named @@ -23,106 +27,106 @@ class ProductSearchStub(object): `projects/*/locations/*/products/*/referenceImages/*` """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateProductSet = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/CreateProductSet', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + self.CreateProductSet = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/CreateProductSet", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, ) - self.ListProductSets = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/ListProductSets', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.FromString, + self.ListProductSets = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/ListProductSets", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.FromString, ) - self.GetProductSet = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/GetProductSet', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + self.GetProductSet = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/GetProductSet", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, ) - self.UpdateProductSet = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/UpdateProductSet', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + self.UpdateProductSet = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/UpdateProductSet", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, ) - self.DeleteProductSet = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/DeleteProductSet', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteProductSet = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/DeleteProductSet", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateProduct = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/CreateProduct', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + self.CreateProduct = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/CreateProduct", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, ) - self.ListProducts = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/ListProducts', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.FromString, + self.ListProducts = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/ListProducts", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.FromString, ) - self.GetProduct = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/GetProduct', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + self.GetProduct = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/GetProduct", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, ) - self.UpdateProduct = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/UpdateProduct', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + self.UpdateProduct = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/UpdateProduct", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, ) - self.DeleteProduct = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/DeleteProduct', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteProduct = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/DeleteProduct", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.CreateReferenceImage = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/CreateReferenceImage', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + self.CreateReferenceImage = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/CreateReferenceImage", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, ) - self.DeleteReferenceImage = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/DeleteReferenceImage', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteReferenceImage = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/DeleteReferenceImage", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListReferenceImages = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/ListReferenceImages', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.FromString, + self.ListReferenceImages = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/ListReferenceImages", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.FromString, ) - self.GetReferenceImage = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/GetReferenceImage', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + self.GetReferenceImage = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/GetReferenceImage", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, ) - self.AddProductToProductSet = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/AddProductToProductSet', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.AddProductToProductSet = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/AddProductToProductSet", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.RemoveProductFromProductSet = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/RemoveProductFromProductSet', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.RemoveProductFromProductSet = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/RemoveProductFromProductSet", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListProductsInProductSet = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/ListProductsInProductSet', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.FromString, + self.ListProductsInProductSet = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/ListProductsInProductSet", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.FromString, ) - self.ImportProductSets = channel.unary_unary( - '/google.cloud.vision.v1p3beta1.ProductSearch/ImportProductSets', - request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + self.ImportProductSets = channel.unary_unary( + "/google.cloud.vision.v1p3beta1.ProductSearch/ImportProductSets", + request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) class ProductSearchServicer(object): - """Manages Products and ProductSets of reference images for use in product + """Manages Products and ProductSets of reference images for use in product search. It uses the following resource model: - The API has a collection of [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] resources, named @@ -138,43 +142,43 @@ class ProductSearchServicer(object): `projects/*/locations/*/products/*/referenceImages/*` """ - def CreateProductSet(self, request, context): - """Creates and returns a new ProductSet resource. + def CreateProductSet(self, request, context): + """Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListProductSets(self, request, context): - """Lists ProductSets in an unspecified order. + def ListProductSets(self, request, context): + """Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetProductSet(self, request, context): - """Gets information associated with a ProductSet. + def GetProductSet(self, request, context): + """Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateProductSet(self, request, context): - """Makes changes to a ProductSet resource. + def UpdateProductSet(self, request, context): + """Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: @@ -183,12 +187,12 @@ def UpdateProductSet(self, request, context): * Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteProductSet(self, request, context): - """Permanently deletes a ProductSet. All Products and ReferenceImages in the + def DeleteProductSet(self, request, context): + """Permanently deletes a ProductSet. All Products and ReferenceImages in the ProductSet will be deleted. The actual image files are not deleted from Google Cloud Storage. @@ -197,12 +201,12 @@ def DeleteProductSet(self, request, context): * Returns NOT_FOUND if the ProductSet does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateProduct(self, request, context): - """Creates and returns a new product resource. + def CreateProduct(self, request, context): + """Creates and returns a new product resource. Possible errors: @@ -211,34 +215,34 @@ def CreateProduct(self, request, context): * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListProducts(self, request, context): - """Lists products in an unspecified order. + def ListProducts(self, request, context): + """Lists products in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetProduct(self, request, context): - """Gets information associated with a Product. + def GetProduct(self, request, context): + """Gets information associated with a Product. Possible errors: * Returns NOT_FOUND if the Product does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateProduct(self, request, context): - """Makes changes to a Product resource. + def UpdateProduct(self, request, context): + """Makes changes to a Product resource. Only display_name, description and labels can be updated right now. If labels are updated, the change will not be reflected in queries until @@ -253,12 +257,12 @@ def UpdateProduct(self, request, context): longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteProduct(self, request, context): - """Permanently deletes a product and its reference images. + def DeleteProduct(self, request, context): + """Permanently deletes a product and its reference images. Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work @@ -268,12 +272,12 @@ def DeleteProduct(self, request, context): * Returns NOT_FOUND if the product does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateReferenceImage(self, request, context): - """Creates and returns a new ReferenceImage resource. + def CreateReferenceImage(self, request, context): + """Creates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are @@ -293,12 +297,12 @@ def CreateReferenceImage(self, request, context): compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteReferenceImage(self, request, context): - """Permanently deletes a reference image. + def DeleteReferenceImage(self, request, context): + """Permanently deletes a reference image. The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related @@ -310,12 +314,12 @@ def DeleteReferenceImage(self, request, context): * Returns NOT_FOUND if the reference image does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListReferenceImages(self, request, context): - """Lists reference images. + def ListReferenceImages(self, request, context): + """Lists reference images. Possible errors: @@ -323,23 +327,23 @@ def ListReferenceImages(self, request, context): * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetReferenceImage(self, request, context): - """Gets information associated with a ReferenceImage. + def GetReferenceImage(self, request, context): + """Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def AddProductToProductSet(self, request, context): - """Adds a Product to the specified ProductSet. If the Product is already + def AddProductToProductSet(self, request, context): + """Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. @@ -348,23 +352,23 @@ def AddProductToProductSet(self, request, context): * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def RemoveProductFromProductSet(self, request, context): - """Removes a Product from the specified ProductSet. + def RemoveProductFromProductSet(self, request, context): + """Removes a Product from the specified ProductSet. Possible errors: * Returns NOT_FOUND If the Product is not found under the ProductSet. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListProductsInProductSet(self, request, context): - """Lists the Products in a ProductSet, in an unspecified order. If the + def ListProductsInProductSet(self, request, context): + """Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. @@ -372,12 +376,12 @@ def ListProductsInProductSet(self, request, context): * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ImportProductSets(self, request, context): - """Asynchronous API that imports a list of reference images to specified + def ImportProductSets(self, request, context): + """Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the @@ -389,104 +393,105 @@ def ImportProductSets(self, request, context): For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri]. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ProductSearchServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateProductSet': grpc.unary_unary_rpc_method_handler( - servicer.CreateProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, - ), - 'ListProductSets': grpc.unary_unary_rpc_method_handler( - servicer.ListProductSets, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.SerializeToString, - ), - 'GetProductSet': grpc.unary_unary_rpc_method_handler( - servicer.GetProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, - ), - 'UpdateProductSet': grpc.unary_unary_rpc_method_handler( - servicer.UpdateProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, - ), - 'DeleteProductSet': grpc.unary_unary_rpc_method_handler( - servicer.DeleteProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateProduct': grpc.unary_unary_rpc_method_handler( - servicer.CreateProduct, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, - ), - 'ListProducts': grpc.unary_unary_rpc_method_handler( - servicer.ListProducts, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.SerializeToString, - ), - 'GetProduct': grpc.unary_unary_rpc_method_handler( - servicer.GetProduct, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, - ), - 'UpdateProduct': grpc.unary_unary_rpc_method_handler( - servicer.UpdateProduct, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, - ), - 'DeleteProduct': grpc.unary_unary_rpc_method_handler( - servicer.DeleteProduct, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateReferenceImage': grpc.unary_unary_rpc_method_handler( - servicer.CreateReferenceImage, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, - ), - 'DeleteReferenceImage': grpc.unary_unary_rpc_method_handler( - servicer.DeleteReferenceImage, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListReferenceImages': grpc.unary_unary_rpc_method_handler( - servicer.ListReferenceImages, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.SerializeToString, - ), - 'GetReferenceImage': grpc.unary_unary_rpc_method_handler( - servicer.GetReferenceImage, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, - ), - 'AddProductToProductSet': grpc.unary_unary_rpc_method_handler( - servicer.AddProductToProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'RemoveProductFromProductSet': grpc.unary_unary_rpc_method_handler( - servicer.RemoveProductFromProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListProductsInProductSet': grpc.unary_unary_rpc_method_handler( - servicer.ListProductsInProductSet, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.FromString, - response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.SerializeToString, - ), - 'ImportProductSets': grpc.unary_unary_rpc_method_handler( - servicer.ImportProductSets, - request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.vision.v1p3beta1.ProductSearch', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateProductSet": grpc.unary_unary_rpc_method_handler( + servicer.CreateProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, + ), + "ListProductSets": grpc.unary_unary_rpc_method_handler( + servicer.ListProductSets, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.SerializeToString, + ), + "GetProductSet": grpc.unary_unary_rpc_method_handler( + servicer.GetProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, + ), + "UpdateProductSet": grpc.unary_unary_rpc_method_handler( + servicer.UpdateProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.SerializeToString, + ), + "DeleteProductSet": grpc.unary_unary_rpc_method_handler( + servicer.DeleteProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateProduct": grpc.unary_unary_rpc_method_handler( + servicer.CreateProduct, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, + ), + "ListProducts": grpc.unary_unary_rpc_method_handler( + servicer.ListProducts, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.SerializeToString, + ), + "GetProduct": grpc.unary_unary_rpc_method_handler( + servicer.GetProduct, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, + ), + "UpdateProduct": grpc.unary_unary_rpc_method_handler( + servicer.UpdateProduct, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.SerializeToString, + ), + "DeleteProduct": grpc.unary_unary_rpc_method_handler( + servicer.DeleteProduct, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateReferenceImage": grpc.unary_unary_rpc_method_handler( + servicer.CreateReferenceImage, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, + ), + "DeleteReferenceImage": grpc.unary_unary_rpc_method_handler( + servicer.DeleteReferenceImage, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListReferenceImages": grpc.unary_unary_rpc_method_handler( + servicer.ListReferenceImages, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.SerializeToString, + ), + "GetReferenceImage": grpc.unary_unary_rpc_method_handler( + servicer.GetReferenceImage, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.SerializeToString, + ), + "AddProductToProductSet": grpc.unary_unary_rpc_method_handler( + servicer.AddProductToProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "RemoveProductFromProductSet": grpc.unary_unary_rpc_method_handler( + servicer.RemoveProductFromProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListProductsInProductSet": grpc.unary_unary_rpc_method_handler( + servicer.ListProductsInProductSet, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.FromString, + response_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.SerializeToString, + ), + "ImportProductSets": grpc.unary_unary_rpc_method_handler( + servicer.ImportProductSets, + request_deserializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.vision.v1p3beta1.ProductSearch", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py b/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py index bb52c3f56a0cc..856374748d58f 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py @@ -2,570 +2,897 @@ # source: google/cloud/vision_v1p3beta1/proto/text_annotation.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.vision_v1p3beta1.proto import geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2 +from google.cloud.vision_v1p3beta1.proto import ( + geometry_pb2 as google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p3beta1/proto/text_annotation.proto', - package='google.cloud.vision.v1p3beta1', - syntax='proto3', - serialized_pb=_b('\n9google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08\"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak\"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p3beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p3beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02\"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05\"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR,]) - + name="google/cloud/vision_v1p3beta1/proto/text_annotation.proto", + package="google.cloud.vision.v1p3beta1", + syntax="proto3", + serialized_pb=_b( + '\n9google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p3beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p3beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, + ], +) _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE = _descriptor.EnumDescriptor( - name='BreakType', - full_name='google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SPACE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SURE_SPACE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EOL_SURE_SPACE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HYPHEN', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINE_BREAK', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=444, - serialized_end=543, + name="BreakType", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SPACE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SURE_SPACE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EOL_SURE_SPACE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HYPHEN", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="LINE_BREAK", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=444, + serialized_end=543, ) _sym_db.RegisterEnumDescriptor(_TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE) _BLOCK_BLOCKTYPE = _descriptor.EnumDescriptor( - name='BlockType', - full_name='google.cloud.vision.v1p3beta1.Block.BlockType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TEXT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TABLE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PICTURE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RULER', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BARCODE', index=5, number=5, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1236, - serialized_end=1318, + name="BlockType", + full_name="google.cloud.vision.v1p3beta1.Block.BlockType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="UNKNOWN", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TEXT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="TABLE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="PICTURE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="RULER", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="BARCODE", index=5, number=5, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1236, + serialized_end=1318, ) _sym_db.RegisterEnumDescriptor(_BLOCK_BLOCKTYPE) _TEXTANNOTATION_DETECTEDLANGUAGE = _descriptor.Descriptor( - name='DetectedLanguage', - full_name='google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.language_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.confidence', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=259, - serialized_end=320, + name="DetectedLanguage", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.language_code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.confidence", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=259, + serialized_end=320, ) _TEXTANNOTATION_DETECTEDBREAK = _descriptor.Descriptor( - name='DetectedBreak', - full_name='google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_prefix', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.is_prefix', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=323, - serialized_end=543, + name="DetectedBreak", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_prefix", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.is_prefix", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=323, + serialized_end=543, ) _TEXTANNOTATION_TEXTPROPERTY = _descriptor.Descriptor( - name='TextProperty', - full_name='google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='detected_languages', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.detected_languages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detected_break', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.detected_break', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=546, - serialized_end=737, + name="TextProperty", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="detected_languages", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.detected_languages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="detected_break", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.detected_break", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=546, + serialized_end=737, ) _TEXTANNOTATION = _descriptor.Descriptor( - name='TextAnnotation', - full_name='google.cloud.vision.v1p3beta1.TextAnnotation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pages', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.pages', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.vision.v1p3beta1.TextAnnotation.text', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TEXTANNOTATION_DETECTEDLANGUAGE, _TEXTANNOTATION_DETECTEDBREAK, _TEXTANNOTATION_TEXTPROPERTY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=175, - serialized_end=737, + name="TextAnnotation", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="pages", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.pages", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.vision.v1p3beta1.TextAnnotation.text", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _TEXTANNOTATION_DETECTEDLANGUAGE, + _TEXTANNOTATION_DETECTEDBREAK, + _TEXTANNOTATION_TEXTPROPERTY, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=175, + serialized_end=737, ) _PAGE = _descriptor.Descriptor( - name='Page', - full_name='google.cloud.vision.v1p3beta1.Page', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p3beta1.Page.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='width', full_name='google.cloud.vision.v1p3beta1.Page.width', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='height', full_name='google.cloud.vision.v1p3beta1.Page.height', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blocks', full_name='google.cloud.vision.v1p3beta1.Page.blocks', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.Page.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=740, - serialized_end=929, + name="Page", + full_name="google.cloud.vision.v1p3beta1.Page", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p3beta1.Page.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="width", + full_name="google.cloud.vision.v1p3beta1.Page.width", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="height", + full_name="google.cloud.vision.v1p3beta1.Page.height", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blocks", + full_name="google.cloud.vision.v1p3beta1.Page.blocks", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.Page.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=740, + serialized_end=929, ) _BLOCK = _descriptor.Descriptor( - name='Block', - full_name='google.cloud.vision.v1p3beta1.Block', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p3beta1.Block.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p3beta1.Block.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='paragraphs', full_name='google.cloud.vision.v1p3beta1.Block.paragraphs', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='block_type', full_name='google.cloud.vision.v1p3beta1.Block.block_type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.Block.confidence', index=4, - number=5, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _BLOCK_BLOCKTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=932, - serialized_end=1318, + name="Block", + full_name="google.cloud.vision.v1p3beta1.Block", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p3beta1.Block.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p3beta1.Block.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="paragraphs", + full_name="google.cloud.vision.v1p3beta1.Block.paragraphs", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="block_type", + full_name="google.cloud.vision.v1p3beta1.Block.block_type", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.Block.confidence", + index=4, + number=5, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_BLOCK_BLOCKTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=932, + serialized_end=1318, ) _PARAGRAPH = _descriptor.Descriptor( - name='Paragraph', - full_name='google.cloud.vision.v1p3beta1.Paragraph', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p3beta1.Paragraph.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p3beta1.Paragraph.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='words', full_name='google.cloud.vision.v1p3beta1.Paragraph.words', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.Paragraph.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1321, - serialized_end=1549, + name="Paragraph", + full_name="google.cloud.vision.v1p3beta1.Paragraph", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p3beta1.Paragraph.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p3beta1.Paragraph.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="words", + full_name="google.cloud.vision.v1p3beta1.Paragraph.words", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.Paragraph.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1321, + serialized_end=1549, ) _WORD = _descriptor.Descriptor( - name='Word', - full_name='google.cloud.vision.v1p3beta1.Word', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p3beta1.Word.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p3beta1.Word.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='symbols', full_name='google.cloud.vision.v1p3beta1.Word.symbols', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.Word.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1552, - serialized_end=1779, + name="Word", + full_name="google.cloud.vision.v1p3beta1.Word", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p3beta1.Word.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p3beta1.Word.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="symbols", + full_name="google.cloud.vision.v1p3beta1.Word.symbols", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.Word.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1552, + serialized_end=1779, ) _SYMBOL = _descriptor.Descriptor( - name='Symbol', - full_name='google.cloud.vision.v1p3beta1.Symbol', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='property', full_name='google.cloud.vision.v1p3beta1.Symbol.property', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounding_box', full_name='google.cloud.vision.v1p3beta1.Symbol.bounding_box', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.vision.v1p3beta1.Symbol.text', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='confidence', full_name='google.cloud.vision.v1p3beta1.Symbol.confidence', index=3, - number=4, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1782, - serialized_end=1969, + name="Symbol", + full_name="google.cloud.vision.v1p3beta1.Symbol", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="property", + full_name="google.cloud.vision.v1p3beta1.Symbol.property", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bounding_box", + full_name="google.cloud.vision.v1p3beta1.Symbol.bounding_box", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="text", + full_name="google.cloud.vision.v1p3beta1.Symbol.text", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="confidence", + full_name="google.cloud.vision.v1p3beta1.Symbol.confidence", + index=3, + number=4, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1782, + serialized_end=1969, ) _TEXTANNOTATION_DETECTEDLANGUAGE.containing_type = _TEXTANNOTATION -_TEXTANNOTATION_DETECTEDBREAK.fields_by_name['type'].enum_type = _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE +_TEXTANNOTATION_DETECTEDBREAK.fields_by_name[ + "type" +].enum_type = _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE _TEXTANNOTATION_DETECTEDBREAK.containing_type = _TEXTANNOTATION _TEXTANNOTATION_DETECTEDBREAK_BREAKTYPE.containing_type = _TEXTANNOTATION_DETECTEDBREAK -_TEXTANNOTATION_TEXTPROPERTY.fields_by_name['detected_languages'].message_type = _TEXTANNOTATION_DETECTEDLANGUAGE -_TEXTANNOTATION_TEXTPROPERTY.fields_by_name['detected_break'].message_type = _TEXTANNOTATION_DETECTEDBREAK +_TEXTANNOTATION_TEXTPROPERTY.fields_by_name[ + "detected_languages" +].message_type = _TEXTANNOTATION_DETECTEDLANGUAGE +_TEXTANNOTATION_TEXTPROPERTY.fields_by_name[ + "detected_break" +].message_type = _TEXTANNOTATION_DETECTEDBREAK _TEXTANNOTATION_TEXTPROPERTY.containing_type = _TEXTANNOTATION -_TEXTANNOTATION.fields_by_name['pages'].message_type = _PAGE -_PAGE.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_PAGE.fields_by_name['blocks'].message_type = _BLOCK -_BLOCK.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_BLOCK.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_BLOCK.fields_by_name['paragraphs'].message_type = _PARAGRAPH -_BLOCK.fields_by_name['block_type'].enum_type = _BLOCK_BLOCKTYPE +_TEXTANNOTATION.fields_by_name["pages"].message_type = _PAGE +_PAGE.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_PAGE.fields_by_name["blocks"].message_type = _BLOCK +_BLOCK.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_BLOCK.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_BLOCK.fields_by_name["paragraphs"].message_type = _PARAGRAPH +_BLOCK.fields_by_name["block_type"].enum_type = _BLOCK_BLOCKTYPE _BLOCK_BLOCKTYPE.containing_type = _BLOCK -_PARAGRAPH.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_PARAGRAPH.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_PARAGRAPH.fields_by_name['words'].message_type = _WORD -_WORD.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_WORD.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -_WORD.fields_by_name['symbols'].message_type = _SYMBOL -_SYMBOL.fields_by_name['property'].message_type = _TEXTANNOTATION_TEXTPROPERTY -_SYMBOL.fields_by_name['bounding_box'].message_type = google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY -DESCRIPTOR.message_types_by_name['TextAnnotation'] = _TEXTANNOTATION -DESCRIPTOR.message_types_by_name['Page'] = _PAGE -DESCRIPTOR.message_types_by_name['Block'] = _BLOCK -DESCRIPTOR.message_types_by_name['Paragraph'] = _PARAGRAPH -DESCRIPTOR.message_types_by_name['Word'] = _WORD -DESCRIPTOR.message_types_by_name['Symbol'] = _SYMBOL +_PARAGRAPH.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_PARAGRAPH.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_PARAGRAPH.fields_by_name["words"].message_type = _WORD +_WORD.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_WORD.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +_WORD.fields_by_name["symbols"].message_type = _SYMBOL +_SYMBOL.fields_by_name["property"].message_type = _TEXTANNOTATION_TEXTPROPERTY +_SYMBOL.fields_by_name[ + "bounding_box" +].message_type = ( + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2._BOUNDINGPOLY +) +DESCRIPTOR.message_types_by_name["TextAnnotation"] = _TEXTANNOTATION +DESCRIPTOR.message_types_by_name["Page"] = _PAGE +DESCRIPTOR.message_types_by_name["Block"] = _BLOCK +DESCRIPTOR.message_types_by_name["Paragraph"] = _PARAGRAPH +DESCRIPTOR.message_types_by_name["Word"] = _WORD +DESCRIPTOR.message_types_by_name["Symbol"] = _SYMBOL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TextAnnotation = _reflection.GeneratedProtocolMessageType('TextAnnotation', (_message.Message,), dict( - - DetectedLanguage = _reflection.GeneratedProtocolMessageType('DetectedLanguage', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_DETECTEDLANGUAGE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected language for a structural component. +TextAnnotation = _reflection.GeneratedProtocolMessageType( + "TextAnnotation", + (_message.Message,), + dict( + DetectedLanguage=_reflection.GeneratedProtocolMessageType( + "DetectedLanguage", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_DETECTEDLANGUAGE, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""Detected language for a structural component. Attributes: @@ -576,15 +903,16 @@ confidence: Confidence of detected language. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) - )) - , - - DetectedBreak = _reflection.GeneratedProtocolMessageType('DetectedBreak', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_DETECTEDBREAK, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected start or end of a structural component. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) + ), + ), + DetectedBreak=_reflection.GeneratedProtocolMessageType( + "DetectedBreak", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_DETECTEDBREAK, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""Detected start or end of a structural component. Attributes: @@ -593,15 +921,16 @@ is_prefix: True if break prepends the element. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) - )) - , - - TextProperty = _reflection.GeneratedProtocolMessageType('TextProperty', (_message.Message,), dict( - DESCRIPTOR = _TEXTANNOTATION_TEXTPROPERTY, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """Additional information detected on the structural component. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) + ), + ), + TextProperty=_reflection.GeneratedProtocolMessageType( + "TextProperty", + (_message.Message,), + dict( + DESCRIPTOR=_TEXTANNOTATION_TEXTPROPERTY, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""Additional information detected on the structural component. Attributes: @@ -610,13 +939,12 @@ detected_break: Detected start or end of a text segment. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) - )) - , - DESCRIPTOR = _TEXTANNOTATION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """TextAnnotation contains a structured representation of OCR extracted + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) + ), + ), + DESCRIPTOR=_TEXTANNOTATION, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own @@ -632,18 +960,21 @@ text: UTF-8 text detected on the pages. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation) + ), +) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) _sym_db.RegisterMessage(TextAnnotation.DetectedBreak) _sym_db.RegisterMessage(TextAnnotation.TextProperty) -Page = _reflection.GeneratedProtocolMessageType('Page', (_message.Message,), dict( - DESCRIPTOR = _PAGE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """Detected page from OCR. +Page = _reflection.GeneratedProtocolMessageType( + "Page", + (_message.Message,), + dict( + DESCRIPTOR=_PAGE, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""Detected page from OCR. Attributes: @@ -660,15 +991,18 @@ confidence: Confidence of the OCR results on the page. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Page) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Page) + ), +) _sym_db.RegisterMessage(Page) -Block = _reflection.GeneratedProtocolMessageType('Block', (_message.Message,), dict( - DESCRIPTOR = _BLOCK, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """Logical element on the page. +Block = _reflection.GeneratedProtocolMessageType( + "Block", + (_message.Message,), + dict( + DESCRIPTOR=_BLOCK, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""Logical element on the page. Attributes: @@ -693,15 +1027,18 @@ confidence: Confidence of the OCR results on the block. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Block) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Block) + ), +) _sym_db.RegisterMessage(Block) -Paragraph = _reflection.GeneratedProtocolMessageType('Paragraph', (_message.Message,), dict( - DESCRIPTOR = _PARAGRAPH, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """Structural unit of text representing a number of words in certain order. +Paragraph = _reflection.GeneratedProtocolMessageType( + "Paragraph", + (_message.Message,), + dict( + DESCRIPTOR=_PARAGRAPH, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""Structural unit of text representing a number of words in certain order. Attributes: @@ -722,15 +1059,18 @@ confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Paragraph) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Paragraph) + ), +) _sym_db.RegisterMessage(Paragraph) -Word = _reflection.GeneratedProtocolMessageType('Word', (_message.Message,), dict( - DESCRIPTOR = _WORD, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """A word representation. +Word = _reflection.GeneratedProtocolMessageType( + "Word", + (_message.Message,), + dict( + DESCRIPTOR=_WORD, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""A word representation. Attributes: @@ -752,15 +1092,18 @@ confidence: Confidence of the OCR results for the word. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Word) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Word) + ), +) _sym_db.RegisterMessage(Word) -Symbol = _reflection.GeneratedProtocolMessageType('Symbol', (_message.Message,), dict( - DESCRIPTOR = _SYMBOL, - __module__ = 'google.cloud.vision_v1p3beta1.proto.text_annotation_pb2' - , - __doc__ = """A single symbol representation. +Symbol = _reflection.GeneratedProtocolMessageType( + "Symbol", + (_message.Message,), + dict( + DESCRIPTOR=_SYMBOL, + __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + __doc__="""A single symbol representation. Attributes: @@ -781,11 +1124,17 @@ confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Symbol) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Symbol) + ), +) _sym_db.RegisterMessage(Symbol) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p3beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p3beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py b/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py b/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py index cc97cd5ea995b..41e6fa78787eb 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/vision_v1p3beta1/proto/web_detection.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,279 +19,483 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/vision_v1p3beta1/proto/web_detection.proto', - package='google.cloud.vision.v1p3beta1', - syntax='proto3', - serialized_pb=_b('\n7google/cloud/vision_v1p3beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p3beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p3beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/vision_v1p3beta1/proto/web_detection.proto", + package="google.cloud.vision.v1p3beta1", + syntax="proto3", + serialized_pb=_b( + '\n7google/cloud/vision_v1p3beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p3beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p3beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _WEBDETECTION_WEBENTITY = _descriptor.Descriptor( - name='WebEntity', - full_name='google.cloud.vision.v1p3beta1.WebDetection.WebEntity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='entity_id', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebEntity.entity_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebEntity.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebEntity.description', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=642, - serialized_end=708, + name="WebEntity", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebEntity", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entity_id", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebEntity.entity_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebEntity.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebEntity.description", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=642, + serialized_end=708, ) _WEBDETECTION_WEBIMAGE = _descriptor.Descriptor( - name='WebImage', - full_name='google.cloud.vision.v1p3beta1.WebDetection.WebImage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebImage.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebImage.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=710, - serialized_end=748, + name="WebImage", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebImage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebImage.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebImage.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=710, + serialized_end=748, ) _WEBDETECTION_WEBPAGE = _descriptor.Descriptor( - name='WebPage', - full_name='google.cloud.vision.v1p3beta1.WebDetection.WebPage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebPage.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='score', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebPage.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_title', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebPage.page_title', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_matching_images', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebPage.full_matching_images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_matching_images', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebPage.partial_matching_images', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=751, - serialized_end=979, + name="WebPage", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebPage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="url", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebPage.url", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="score", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebPage.score", + index=1, + number=2, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_title", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebPage.page_title", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_matching_images", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebPage.full_matching_images", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partial_matching_images", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebPage.partial_matching_images", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=751, + serialized_end=979, ) _WEBDETECTION_WEBLABEL = _descriptor.Descriptor( - name='WebLabel', - full_name='google.cloud.vision.v1p3beta1.WebDetection.WebLabel', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebLabel.label', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.cloud.vision.v1p3beta1.WebDetection.WebLabel.language_code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=981, - serialized_end=1029, + name="WebLabel", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebLabel", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebLabel.label", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.vision.v1p3beta1.WebDetection.WebLabel.language_code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=981, + serialized_end=1029, ) _WEBDETECTION = _descriptor.Descriptor( - name='WebDetection', - full_name='google.cloud.vision.v1p3beta1.WebDetection', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='web_entities', full_name='google.cloud.vision.v1p3beta1.WebDetection.web_entities', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_matching_images', full_name='google.cloud.vision.v1p3beta1.WebDetection.full_matching_images', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_matching_images', full_name='google.cloud.vision.v1p3beta1.WebDetection.partial_matching_images', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pages_with_matching_images', full_name='google.cloud.vision.v1p3beta1.WebDetection.pages_with_matching_images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='visually_similar_images', full_name='google.cloud.vision.v1p3beta1.WebDetection.visually_similar_images', index=4, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='best_guess_labels', full_name='google.cloud.vision.v1p3beta1.WebDetection.best_guess_labels', index=5, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_WEBDETECTION_WEBENTITY, _WEBDETECTION_WEBIMAGE, _WEBDETECTION_WEBPAGE, _WEBDETECTION_WEBLABEL, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=121, - serialized_end=1029, + name="WebDetection", + full_name="google.cloud.vision.v1p3beta1.WebDetection", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="web_entities", + full_name="google.cloud.vision.v1p3beta1.WebDetection.web_entities", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="full_matching_images", + full_name="google.cloud.vision.v1p3beta1.WebDetection.full_matching_images", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="partial_matching_images", + full_name="google.cloud.vision.v1p3beta1.WebDetection.partial_matching_images", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pages_with_matching_images", + full_name="google.cloud.vision.v1p3beta1.WebDetection.pages_with_matching_images", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="visually_similar_images", + full_name="google.cloud.vision.v1p3beta1.WebDetection.visually_similar_images", + index=4, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="best_guess_labels", + full_name="google.cloud.vision.v1p3beta1.WebDetection.best_guess_labels", + index=5, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _WEBDETECTION_WEBENTITY, + _WEBDETECTION_WEBIMAGE, + _WEBDETECTION_WEBPAGE, + _WEBDETECTION_WEBLABEL, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=121, + serialized_end=1029, ) _WEBDETECTION_WEBENTITY.containing_type = _WEBDETECTION _WEBDETECTION_WEBIMAGE.containing_type = _WEBDETECTION -_WEBDETECTION_WEBPAGE.fields_by_name['full_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION_WEBPAGE.fields_by_name['partial_matching_images'].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION_WEBPAGE.fields_by_name[ + "full_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION_WEBPAGE.fields_by_name[ + "partial_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE _WEBDETECTION_WEBPAGE.containing_type = _WEBDETECTION _WEBDETECTION_WEBLABEL.containing_type = _WEBDETECTION -_WEBDETECTION.fields_by_name['web_entities'].message_type = _WEBDETECTION_WEBENTITY -_WEBDETECTION.fields_by_name['full_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['partial_matching_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['pages_with_matching_images'].message_type = _WEBDETECTION_WEBPAGE -_WEBDETECTION.fields_by_name['visually_similar_images'].message_type = _WEBDETECTION_WEBIMAGE -_WEBDETECTION.fields_by_name['best_guess_labels'].message_type = _WEBDETECTION_WEBLABEL -DESCRIPTOR.message_types_by_name['WebDetection'] = _WEBDETECTION +_WEBDETECTION.fields_by_name["web_entities"].message_type = _WEBDETECTION_WEBENTITY +_WEBDETECTION.fields_by_name[ + "full_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name[ + "partial_matching_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name[ + "pages_with_matching_images" +].message_type = _WEBDETECTION_WEBPAGE +_WEBDETECTION.fields_by_name[ + "visually_similar_images" +].message_type = _WEBDETECTION_WEBIMAGE +_WEBDETECTION.fields_by_name["best_guess_labels"].message_type = _WEBDETECTION_WEBLABEL +DESCRIPTOR.message_types_by_name["WebDetection"] = _WEBDETECTION _sym_db.RegisterFileDescriptor(DESCRIPTOR) -WebDetection = _reflection.GeneratedProtocolMessageType('WebDetection', (_message.Message,), dict( - - WebEntity = _reflection.GeneratedProtocolMessageType('WebEntity', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBENTITY, - __module__ = 'google.cloud.vision_v1p3beta1.proto.web_detection_pb2' - , - __doc__ = """Entity deduced from similar images on the Internet. +WebDetection = _reflection.GeneratedProtocolMessageType( + "WebDetection", + (_message.Message,), + dict( + WebEntity=_reflection.GeneratedProtocolMessageType( + "WebEntity", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBENTITY, + __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + __doc__="""Entity deduced from similar images on the Internet. Attributes: @@ -301,15 +507,16 @@ description: Canonical description of the entity, in English. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) - )) - , - - WebImage = _reflection.GeneratedProtocolMessageType('WebImage', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBIMAGE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.web_detection_pb2' - , - __doc__ = """Metadata for online images. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) + ), + ), + WebImage=_reflection.GeneratedProtocolMessageType( + "WebImage", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBIMAGE, + __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + __doc__="""Metadata for online images. Attributes: @@ -318,15 +525,16 @@ score: (Deprecated) Overall relevancy score for the image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebImage) - )) - , - - WebPage = _reflection.GeneratedProtocolMessageType('WebPage', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBPAGE, - __module__ = 'google.cloud.vision_v1p3beta1.proto.web_detection_pb2' - , - __doc__ = """Metadata for web pages. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebImage) + ), + ), + WebPage=_reflection.GeneratedProtocolMessageType( + "WebPage", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBPAGE, + __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + __doc__="""Metadata for web pages. Attributes: @@ -345,15 +553,16 @@ original image will likely have partial matching for its crops. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebPage) - )) - , - - WebLabel = _reflection.GeneratedProtocolMessageType('WebLabel', (_message.Message,), dict( - DESCRIPTOR = _WEBDETECTION_WEBLABEL, - __module__ = 'google.cloud.vision_v1p3beta1.proto.web_detection_pb2' - , - __doc__ = """Label to provide extra metadata for the web detection. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebPage) + ), + ), + WebLabel=_reflection.GeneratedProtocolMessageType( + "WebLabel", + (_message.Message,), + dict( + DESCRIPTOR=_WEBDETECTION_WEBLABEL, + __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + __doc__="""Label to provide extra metadata for the web detection. Attributes: @@ -364,13 +573,12 @@ "sr-Latn". For more information, see http://www.unicode.org/re ports/tr35/#Unicode\_locale\_identifier. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) - )) - , - DESCRIPTOR = _WEBDETECTION, - __module__ = 'google.cloud.vision_v1p3beta1.proto.web_detection_pb2' - , - __doc__ = """Relevant information for the image from the Internet. + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) + ), + ), + DESCRIPTOR=_WEBDETECTION, + __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + __doc__="""Relevant information for the image from the Internet. Attributes: @@ -391,8 +599,9 @@ best_guess_labels: Best guess text labels for the request image. """, - # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection) - )) + # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection) + ), +) _sym_db.RegisterMessage(WebDetection) _sym_db.RegisterMessage(WebDetection.WebEntity) _sym_db.RegisterMessage(WebDetection.WebImage) @@ -401,5 +610,10 @@ DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.vision.v1p3beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n!com.google.cloud.vision.v1p3beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py b/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py +++ b/vision/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py index 7a829449d0161..c75ef5b198752 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,68 +19,100 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto', - package='google.cloud.websecurityscanner.v1alpha', - syntax='proto3', - serialized_pb=_b('\n?google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\"<\n\nCrawledUrl\x12\x13\n\x0bhttp_method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\tB\x9b\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0f\x43rawledUrlProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto", + package="google.cloud.websecurityscanner.v1alpha", + syntax="proto3", + serialized_pb=_b( + "\n?google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto\x12'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\"<\n\nCrawledUrl\x12\x13\n\x0bhttp_method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\tB\x9b\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0f\x43rawledUrlProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3" + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _CRAWLEDURL = _descriptor.Descriptor( - name='CrawledUrl', - full_name='google.cloud.websecurityscanner.v1alpha.CrawledUrl', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_method', full_name='google.cloud.websecurityscanner.v1alpha.CrawledUrl.http_method', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url', full_name='google.cloud.websecurityscanner.v1alpha.CrawledUrl.url', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='google.cloud.websecurityscanner.v1alpha.CrawledUrl.body', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=138, - serialized_end=198, + name="CrawledUrl", + full_name="google.cloud.websecurityscanner.v1alpha.CrawledUrl", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="http_method", + full_name="google.cloud.websecurityscanner.v1alpha.CrawledUrl.http_method", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="url", + full_name="google.cloud.websecurityscanner.v1alpha.CrawledUrl.url", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="body", + full_name="google.cloud.websecurityscanner.v1alpha.CrawledUrl.body", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=138, + serialized_end=198, ) -DESCRIPTOR.message_types_by_name['CrawledUrl'] = _CRAWLEDURL +DESCRIPTOR.message_types_by_name["CrawledUrl"] = _CRAWLEDURL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CrawledUrl = _reflection.GeneratedProtocolMessageType('CrawledUrl', (_message.Message,), dict( - DESCRIPTOR = _CRAWLEDURL, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.crawled_url_pb2' - , - __doc__ = """A CrawledUrl resource represents a URL that was crawled during a +CrawledUrl = _reflection.GeneratedProtocolMessageType( + "CrawledUrl", + (_message.Message,), + dict( + DESCRIPTOR=_CRAWLEDURL, + __module__="google.cloud.websecurityscanner_v1alpha.proto.crawled_url_pb2", + __doc__="""A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web Security Scanner Service crawls the web applications, following all links within the scope of sites, to find the URLs to test against. @@ -94,11 +128,17 @@ Output only. The body of the request that was used to visit the URL. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) + ), +) _sym_db.RegisterMessage(CrawledUrl) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n+com.google.cloud.websecurityscanner.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n+com.google.cloud.websecurityscanner.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2_grpc.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2_grpc.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/crawled_url_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py index 422a78f5f615c..61c0fa5d850b8 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,178 +19,256 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto', - package='google.cloud.websecurityscanner.v1alpha', - syntax='proto3', - serialized_pb=_b('\nAgoogle/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\"Q\n\x0fOutdatedLibrary\x12\x14\n\x0clibrary_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0flearn_more_urls\x18\x03 \x03(\t\"?\n\x11ViolatingResource\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_url\x18\x02 \x01(\t\"/\n\x14VulnerableParameters\x12\x17\n\x0fparameter_names\x18\x01 \x03(\t\"2\n\x03Xss\x12\x14\n\x0cstack_traces\x18\x01 \x03(\t\x12\x15\n\rerror_message\x18\x02 \x01(\tB\x9d\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x11\x46indingAddonProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto", + package="google.cloud.websecurityscanner.v1alpha", + syntax="proto3", + serialized_pb=_b( + '\nAgoogle/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto"Q\n\x0fOutdatedLibrary\x12\x14\n\x0clibrary_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0flearn_more_urls\x18\x03 \x03(\t"?\n\x11ViolatingResource\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_url\x18\x02 \x01(\t"/\n\x14VulnerableParameters\x12\x17\n\x0fparameter_names\x18\x01 \x03(\t"2\n\x03Xss\x12\x14\n\x0cstack_traces\x18\x01 \x03(\t\x12\x15\n\rerror_message\x18\x02 \x01(\tB\x9d\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x11\x46indingAddonProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _OUTDATEDLIBRARY = _descriptor.Descriptor( - name='OutdatedLibrary', - full_name='google.cloud.websecurityscanner.v1alpha.OutdatedLibrary', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='library_name', full_name='google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.library_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.version', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='learn_more_urls', full_name='google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.learn_more_urls', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=140, - serialized_end=221, + name="OutdatedLibrary", + full_name="google.cloud.websecurityscanner.v1alpha.OutdatedLibrary", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="library_name", + full_name="google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.library_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.version", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="learn_more_urls", + full_name="google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.learn_more_urls", + index=2, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=140, + serialized_end=221, ) _VIOLATINGRESOURCE = _descriptor.Descriptor( - name='ViolatingResource', - full_name='google.cloud.websecurityscanner.v1alpha.ViolatingResource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content_type', full_name='google.cloud.websecurityscanner.v1alpha.ViolatingResource.content_type', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_url', full_name='google.cloud.websecurityscanner.v1alpha.ViolatingResource.resource_url', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=223, - serialized_end=286, + name="ViolatingResource", + full_name="google.cloud.websecurityscanner.v1alpha.ViolatingResource", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content_type", + full_name="google.cloud.websecurityscanner.v1alpha.ViolatingResource.content_type", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_url", + full_name="google.cloud.websecurityscanner.v1alpha.ViolatingResource.resource_url", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=223, + serialized_end=286, ) _VULNERABLEPARAMETERS = _descriptor.Descriptor( - name='VulnerableParameters', - full_name='google.cloud.websecurityscanner.v1alpha.VulnerableParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parameter_names', full_name='google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parameter_names', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=288, - serialized_end=335, + name="VulnerableParameters", + full_name="google.cloud.websecurityscanner.v1alpha.VulnerableParameters", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parameter_names", + full_name="google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parameter_names", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=288, + serialized_end=335, ) _XSS = _descriptor.Descriptor( - name='Xss', - full_name='google.cloud.websecurityscanner.v1alpha.Xss', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stack_traces', full_name='google.cloud.websecurityscanner.v1alpha.Xss.stack_traces', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error_message', full_name='google.cloud.websecurityscanner.v1alpha.Xss.error_message', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=337, - serialized_end=387, + name="Xss", + full_name="google.cloud.websecurityscanner.v1alpha.Xss", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="stack_traces", + full_name="google.cloud.websecurityscanner.v1alpha.Xss.stack_traces", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error_message", + full_name="google.cloud.websecurityscanner.v1alpha.Xss.error_message", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=337, + serialized_end=387, ) -DESCRIPTOR.message_types_by_name['OutdatedLibrary'] = _OUTDATEDLIBRARY -DESCRIPTOR.message_types_by_name['ViolatingResource'] = _VIOLATINGRESOURCE -DESCRIPTOR.message_types_by_name['VulnerableParameters'] = _VULNERABLEPARAMETERS -DESCRIPTOR.message_types_by_name['Xss'] = _XSS +DESCRIPTOR.message_types_by_name["OutdatedLibrary"] = _OUTDATEDLIBRARY +DESCRIPTOR.message_types_by_name["ViolatingResource"] = _VIOLATINGRESOURCE +DESCRIPTOR.message_types_by_name["VulnerableParameters"] = _VULNERABLEPARAMETERS +DESCRIPTOR.message_types_by_name["Xss"] = _XSS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -OutdatedLibrary = _reflection.GeneratedProtocolMessageType('OutdatedLibrary', (_message.Message,), dict( - DESCRIPTOR = _OUTDATEDLIBRARY, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2' - , - __doc__ = """Information reported for an outdated library. +OutdatedLibrary = _reflection.GeneratedProtocolMessageType( + "OutdatedLibrary", + (_message.Message,), + dict( + DESCRIPTOR=_OUTDATEDLIBRARY, + __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + __doc__="""Information reported for an outdated library. Attributes: @@ -200,15 +280,18 @@ URLs to learn more information about the vulnerabilities in the library. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) + ), +) _sym_db.RegisterMessage(OutdatedLibrary) -ViolatingResource = _reflection.GeneratedProtocolMessageType('ViolatingResource', (_message.Message,), dict( - DESCRIPTOR = _VIOLATINGRESOURCE, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2' - , - __doc__ = """Information regarding any resource causing the vulnerability such as +ViolatingResource = _reflection.GeneratedProtocolMessageType( + "ViolatingResource", + (_message.Message,), + dict( + DESCRIPTOR=_VIOLATINGRESOURCE, + __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + __doc__="""Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. @@ -218,30 +301,36 @@ resource_url: URL of this violating resource. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) + ), +) _sym_db.RegisterMessage(ViolatingResource) -VulnerableParameters = _reflection.GeneratedProtocolMessageType('VulnerableParameters', (_message.Message,), dict( - DESCRIPTOR = _VULNERABLEPARAMETERS, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2' - , - __doc__ = """Information about vulnerable request parameters. +VulnerableParameters = _reflection.GeneratedProtocolMessageType( + "VulnerableParameters", + (_message.Message,), + dict( + DESCRIPTOR=_VULNERABLEPARAMETERS, + __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + __doc__="""Information about vulnerable request parameters. Attributes: parameter_names: The vulnerable parameter names. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) + ), +) _sym_db.RegisterMessage(VulnerableParameters) -Xss = _reflection.GeneratedProtocolMessageType('Xss', (_message.Message,), dict( - DESCRIPTOR = _XSS, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2' - , - __doc__ = """Information reported for an XSS. +Xss = _reflection.GeneratedProtocolMessageType( + "Xss", + (_message.Message,), + dict( + DESCRIPTOR=_XSS, + __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_addon_pb2", + __doc__="""Information reported for an XSS. Attributes: @@ -250,11 +339,17 @@ error_message: An error message generated by a javascript breakage. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Xss) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Xss) + ), +) _sym_db.RegisterMessage(Xss) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n+com.google.cloud.websecurityscanner.v1alphaB\021FindingAddonProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n+com.google.cloud.websecurityscanner.v1alphaB\021FindingAddonProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2_grpc.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2_grpc.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_addon_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py index 43302cda7aeb6..923697ca03e9b 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2.py @@ -2,210 +2,379 @@ # source: google/cloud/websecurityscanner_v1alpha/proto/finding.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.websecurityscanner_v1alpha.proto import finding_addon_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2 +from google.cloud.websecurityscanner_v1alpha.proto import ( + finding_addon_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/websecurityscanner_v1alpha/proto/finding.proto', - package='google.cloud.websecurityscanner.v1alpha', - syntax='proto3', - serialized_pb=_b('\n;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x41google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto\"\xf5\x05\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12R\n\x0c\x66inding_type\x18\x02 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12R\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x38.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary\x12V\n\x12violating_resource\x18\x0c \x01(\x0b\x32:.google.cloud.websecurityscanner.v1alpha.ViolatingResource\x12\\\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32=.google.cloud.websecurityscanner.v1alpha.VulnerableParameters\x12\x39\n\x03xss\x18\x0e \x01(\x0b\x32,.google.cloud.websecurityscanner.v1alpha.Xss\"\xa1\x01\n\x0b\x46indingType\x12\x1c\n\x18\x46INDING_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rMIXED_CONTENT\x10\x01\x12\x14\n\x10OUTDATED_LIBRARY\x10\x02\x12\x11\n\rROSETTA_FLASH\x10\x05\x12\x10\n\x0cXSS_CALLBACK\x10\x03\x12\r\n\tXSS_ERROR\x10\x04\x12\x17\n\x13\x43LEAR_TEXT_PASSWORD\x10\x06\x42\x98\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0c\x46indingProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2.DESCRIPTOR,]) - + name="google/cloud/websecurityscanner_v1alpha/proto/finding.proto", + package="google.cloud.websecurityscanner.v1alpha", + syntax="proto3", + serialized_pb=_b( + '\n;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x41google/cloud/websecurityscanner_v1alpha/proto/finding_addon.proto"\xf5\x05\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12R\n\x0c\x66inding_type\x18\x02 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12R\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x38.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary\x12V\n\x12violating_resource\x18\x0c \x01(\x0b\x32:.google.cloud.websecurityscanner.v1alpha.ViolatingResource\x12\\\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32=.google.cloud.websecurityscanner.v1alpha.VulnerableParameters\x12\x39\n\x03xss\x18\x0e \x01(\x0b\x32,.google.cloud.websecurityscanner.v1alpha.Xss"\xa1\x01\n\x0b\x46indingType\x12\x1c\n\x18\x46INDING_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rMIXED_CONTENT\x10\x01\x12\x14\n\x10OUTDATED_LIBRARY\x10\x02\x12\x11\n\rROSETTA_FLASH\x10\x05\x12\x10\n\x0cXSS_CALLBACK\x10\x03\x12\r\n\tXSS_ERROR\x10\x04\x12\x17\n\x13\x43LEAR_TEXT_PASSWORD\x10\x06\x42\x98\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0c\x46indingProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2.DESCRIPTOR, + ], +) _FINDING_FINDINGTYPE = _descriptor.EnumDescriptor( - name='FindingType', - full_name='google.cloud.websecurityscanner.v1alpha.Finding.FindingType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FINDING_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MIXED_CONTENT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OUTDATED_LIBRARY', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ROSETTA_FLASH', index=3, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='XSS_CALLBACK', index=4, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='XSS_ERROR', index=5, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CLEAR_TEXT_PASSWORD', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=798, - serialized_end=959, + name="FindingType", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.FindingType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FINDING_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="MIXED_CONTENT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OUTDATED_LIBRARY", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ROSETTA_FLASH", index=3, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="XSS_CALLBACK", index=4, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="XSS_ERROR", index=5, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CLEAR_TEXT_PASSWORD", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=798, + serialized_end=959, ) _sym_db.RegisterEnumDescriptor(_FINDING_FINDINGTYPE) _FINDING = _descriptor.Descriptor( - name='Finding', - full_name='google.cloud.websecurityscanner.v1alpha.Finding', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.Finding.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finding_type', full_name='google.cloud.websecurityscanner.v1alpha.Finding.finding_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_method', full_name='google.cloud.websecurityscanner.v1alpha.Finding.http_method', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='fuzzed_url', full_name='google.cloud.websecurityscanner.v1alpha.Finding.fuzzed_url', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='google.cloud.websecurityscanner.v1alpha.Finding.body', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.cloud.websecurityscanner.v1alpha.Finding.description', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reproduction_url', full_name='google.cloud.websecurityscanner.v1alpha.Finding.reproduction_url', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frame_url', full_name='google.cloud.websecurityscanner.v1alpha.Finding.frame_url', index=7, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_url', full_name='google.cloud.websecurityscanner.v1alpha.Finding.final_url', index=8, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_id', full_name='google.cloud.websecurityscanner.v1alpha.Finding.tracking_id', index=9, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='outdated_library', full_name='google.cloud.websecurityscanner.v1alpha.Finding.outdated_library', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='violating_resource', full_name='google.cloud.websecurityscanner.v1alpha.Finding.violating_resource', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='vulnerable_parameters', full_name='google.cloud.websecurityscanner.v1alpha.Finding.vulnerable_parameters', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='xss', full_name='google.cloud.websecurityscanner.v1alpha.Finding.xss', index=13, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FINDING_FINDINGTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=202, - serialized_end=959, + name="Finding", + full_name="google.cloud.websecurityscanner.v1alpha.Finding", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finding_type", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.finding_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="http_method", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.http_method", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="fuzzed_url", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.fuzzed_url", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="body", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.body", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.description", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="reproduction_url", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.reproduction_url", + index=6, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="frame_url", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.frame_url", + index=7, + number=8, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="final_url", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.final_url", + index=8, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tracking_id", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.tracking_id", + index=9, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="outdated_library", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.outdated_library", + index=10, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="violating_resource", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.violating_resource", + index=11, + number=12, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="vulnerable_parameters", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.vulnerable_parameters", + index=12, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="xss", + full_name="google.cloud.websecurityscanner.v1alpha.Finding.xss", + index=13, + number=14, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_FINDING_FINDINGTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=202, + serialized_end=959, ) -_FINDING.fields_by_name['finding_type'].enum_type = _FINDING_FINDINGTYPE -_FINDING.fields_by_name['outdated_library'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._OUTDATEDLIBRARY -_FINDING.fields_by_name['violating_resource'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._VIOLATINGRESOURCE -_FINDING.fields_by_name['vulnerable_parameters'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._VULNERABLEPARAMETERS -_FINDING.fields_by_name['xss'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._XSS +_FINDING.fields_by_name["finding_type"].enum_type = _FINDING_FINDINGTYPE +_FINDING.fields_by_name[ + "outdated_library" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._OUTDATEDLIBRARY +) +_FINDING.fields_by_name[ + "violating_resource" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._VIOLATINGRESOURCE +) +_FINDING.fields_by_name[ + "vulnerable_parameters" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._VULNERABLEPARAMETERS +) +_FINDING.fields_by_name[ + "xss" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__addon__pb2._XSS +) _FINDING_FINDINGTYPE.containing_type = _FINDING -DESCRIPTOR.message_types_by_name['Finding'] = _FINDING +DESCRIPTOR.message_types_by_name["Finding"] = _FINDING _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Finding = _reflection.GeneratedProtocolMessageType('Finding', (_message.Message,), dict( - DESCRIPTOR = _FINDING, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.finding_pb2' - , - __doc__ = """A Finding resource represents a vulnerability instance identified during +Finding = _reflection.GeneratedProtocolMessageType( + "Finding", + (_message.Message,), + dict( + DESCRIPTOR=_FINDING, + __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_pb2", + __doc__="""A Finding resource represents a vulnerability instance identified during a ScanRun. @@ -254,11 +423,17 @@ Output only. An addon containing information reported for an XSS, if any. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Finding) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Finding) + ), +) _sym_db.RegisterMessage(Finding) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n+com.google.cloud.websecurityscanner.v1alphaB\014FindingProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n+com.google.cloud.websecurityscanner.v1alphaB\014FindingProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2_grpc.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2_grpc.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py index ae1e53e7bfbbc..76c69212b76fa 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2.py @@ -2,78 +2,110 @@ # source: google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.websecurityscanner_v1alpha.proto import finding_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2 +from google.cloud.websecurityscanner_v1alpha.proto import ( + finding_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto', - package='google.cloud.websecurityscanner.v1alpha', - syntax='proto3', - serialized_pb=_b('\nFgoogle/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\"}\n\x10\x46indingTypeStats\x12R\n\x0c\x66inding_type\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x15\n\rfinding_count\x18\x02 \x01(\x05\x42\xa1\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x15\x46indingTypeStatsProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.DESCRIPTOR,]) - - + name="google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto", + package="google.cloud.websecurityscanner.v1alpha", + syntax="proto3", + serialized_pb=_b( + "\nFgoogle/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto\x12'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\"}\n\x10\x46indingTypeStats\x12R\n\x0c\x66inding_type\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.Finding.FindingType\x12\x15\n\rfinding_count\x18\x02 \x01(\x05\x42\xa1\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x15\x46indingTypeStatsProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3" + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.DESCRIPTOR, + ], +) _FINDINGTYPESTATS = _descriptor.Descriptor( - name='FindingTypeStats', - full_name='google.cloud.websecurityscanner.v1alpha.FindingTypeStats', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='finding_type', full_name='google.cloud.websecurityscanner.v1alpha.FindingTypeStats.finding_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='finding_count', full_name='google.cloud.websecurityscanner.v1alpha.FindingTypeStats.finding_count', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=206, - serialized_end=331, + name="FindingTypeStats", + full_name="google.cloud.websecurityscanner.v1alpha.FindingTypeStats", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="finding_type", + full_name="google.cloud.websecurityscanner.v1alpha.FindingTypeStats.finding_type", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="finding_count", + full_name="google.cloud.websecurityscanner.v1alpha.FindingTypeStats.finding_count", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=206, + serialized_end=331, ) -_FINDINGTYPESTATS.fields_by_name['finding_type'].enum_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2._FINDING_FINDINGTYPE -DESCRIPTOR.message_types_by_name['FindingTypeStats'] = _FINDINGTYPESTATS +_FINDINGTYPESTATS.fields_by_name[ + "finding_type" +].enum_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2._FINDING_FINDINGTYPE +) +DESCRIPTOR.message_types_by_name["FindingTypeStats"] = _FINDINGTYPESTATS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -FindingTypeStats = _reflection.GeneratedProtocolMessageType('FindingTypeStats', (_message.Message,), dict( - DESCRIPTOR = _FINDINGTYPESTATS, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.finding_type_stats_pb2' - , - __doc__ = """A FindingTypeStats resource represents stats regarding a specific +FindingTypeStats = _reflection.GeneratedProtocolMessageType( + "FindingTypeStats", + (_message.Message,), + dict( + DESCRIPTOR=_FINDINGTYPESTATS, + __module__="google.cloud.websecurityscanner_v1alpha.proto.finding_type_stats_pb2", + __doc__="""A FindingTypeStats resource represents stats regarding a specific FindingType of Findings under a given ScanRun. @@ -84,11 +116,17 @@ Output only. The count of findings belonging to this finding type. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) + ), +) _sym_db.RegisterMessage(FindingTypeStats) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n+com.google.cloud.websecurityscanner.v1alphaB\025FindingTypeStatsProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n+com.google.cloud.websecurityscanner.v1alphaB\025FindingTypeStatsProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2_grpc.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2_grpc.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py index 7e2f450f7036b..94276505e923e 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,349 +20,557 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto', - package='google.cloud.websecurityscanner.v1alpha', - syntax='proto3', - serialized_pb=_b('\n?google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdc\x08\n\nScanConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07max_qps\x18\x03 \x01(\x05\x12\x15\n\rstarting_urls\x18\x04 \x03(\t\x12Z\n\x0e\x61uthentication\x18\x05 \x01(\x0b\x32\x42.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication\x12Q\n\nuser_agent\x18\x06 \x01(\x0e\x32=.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent\x12\x1a\n\x12\x62lacklist_patterns\x18\x07 \x03(\t\x12N\n\x08schedule\x18\x08 \x01(\x0b\x32<.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule\x12\\\n\x10target_platforms\x18\t \x03(\x0e\x32\x42.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform\x1a\xf7\x02\n\x0e\x41uthentication\x12j\n\x0egoogle_account\x18\x01 \x01(\x0b\x32P.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountH\x00\x12j\n\x0e\x63ustom_account\x18\x02 \x01(\x0b\x32P.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountH\x00\x1a\x33\n\rGoogleAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a\x46\n\rCustomAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x11\n\tlogin_url\x18\x03 \x01(\tB\x10\n\x0e\x61uthentication\x1a]\n\x08Schedule\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1e\n\x16interval_duration_days\x18\x02 \x01(\x05\"`\n\tUserAgent\x12\x1a\n\x16USER_AGENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43HROME_LINUX\x10\x01\x12\x12\n\x0e\x43HROME_ANDROID\x10\x02\x12\x11\n\rSAFARI_IPHONE\x10\x03\"N\n\x0eTargetPlatform\x12\x1f\n\x1bTARGET_PLATFORM_UNSPECIFIED\x10\x00\x12\x0e\n\nAPP_ENGINE\x10\x01\x12\x0b\n\x07\x43OMPUTE\x10\x02\x42\x9b\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0fScanConfigProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - + name="google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto", + package="google.cloud.websecurityscanner.v1alpha", + syntax="proto3", + serialized_pb=_b( + '\n?google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xdc\x08\n\nScanConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07max_qps\x18\x03 \x01(\x05\x12\x15\n\rstarting_urls\x18\x04 \x03(\t\x12Z\n\x0e\x61uthentication\x18\x05 \x01(\x0b\x32\x42.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication\x12Q\n\nuser_agent\x18\x06 \x01(\x0e\x32=.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent\x12\x1a\n\x12\x62lacklist_patterns\x18\x07 \x03(\t\x12N\n\x08schedule\x18\x08 \x01(\x0b\x32<.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule\x12\\\n\x10target_platforms\x18\t \x03(\x0e\x32\x42.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform\x1a\xf7\x02\n\x0e\x41uthentication\x12j\n\x0egoogle_account\x18\x01 \x01(\x0b\x32P.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountH\x00\x12j\n\x0e\x63ustom_account\x18\x02 \x01(\x0b\x32P.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountH\x00\x1a\x33\n\rGoogleAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a\x46\n\rCustomAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x11\n\tlogin_url\x18\x03 \x01(\tB\x10\n\x0e\x61uthentication\x1a]\n\x08Schedule\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1e\n\x16interval_duration_days\x18\x02 \x01(\x05"`\n\tUserAgent\x12\x1a\n\x16USER_AGENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43HROME_LINUX\x10\x01\x12\x12\n\x0e\x43HROME_ANDROID\x10\x02\x12\x11\n\rSAFARI_IPHONE\x10\x03"N\n\x0eTargetPlatform\x12\x1f\n\x1bTARGET_PLATFORM_UNSPECIFIED\x10\x00\x12\x0e\n\nAPP_ENGINE\x10\x01\x12\x0b\n\x07\x43OMPUTE\x10\x02\x42\x9b\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0fScanConfigProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _SCANCONFIG_USERAGENT = _descriptor.EnumDescriptor( - name='UserAgent', - full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='USER_AGENT_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHROME_LINUX', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CHROME_ANDROID', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SAFARI_IPHONE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1112, - serialized_end=1208, + name="UserAgent", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="USER_AGENT_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHROME_LINUX", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CHROME_ANDROID", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SAFARI_IPHONE", index=3, number=3, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1112, + serialized_end=1208, ) _sym_db.RegisterEnumDescriptor(_SCANCONFIG_USERAGENT) _SCANCONFIG_TARGETPLATFORM = _descriptor.EnumDescriptor( - name='TargetPlatform', - full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TARGET_PLATFORM_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='APP_ENGINE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPUTE', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1210, - serialized_end=1288, + name="TargetPlatform", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="TARGET_PLATFORM_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="APP_ENGINE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPUTE", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1210, + serialized_end=1288, ) _sym_db.RegisterEnumDescriptor(_SCANCONFIG_TARGETPLATFORM) _SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT = _descriptor.Descriptor( - name='GoogleAccount', - full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='username', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.username', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='password', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.password', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=874, - serialized_end=925, + name="GoogleAccount", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="username", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.username", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="password", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.password", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=874, + serialized_end=925, ) _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT = _descriptor.Descriptor( - name='CustomAccount', - full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='username', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.username', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='password', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.password', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='login_url', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.login_url', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=927, - serialized_end=997, + name="CustomAccount", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="username", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.username", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="password", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.password", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="login_url", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.login_url", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=927, + serialized_end=997, ) _SCANCONFIG_AUTHENTICATION = _descriptor.Descriptor( - name='Authentication', - full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='google_account', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.google_account', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_account', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.custom_account', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT, _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='authentication', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.authentication', - index=0, containing_type=None, fields=[]), - ], - serialized_start=640, - serialized_end=1015, + name="Authentication", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="google_account", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.google_account", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="custom_account", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.custom_account", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT, + _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="authentication", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.authentication", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=640, + serialized_end=1015, ) _SCANCONFIG_SCHEDULE = _descriptor.Descriptor( - name='Schedule', - full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='schedule_time', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.schedule_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interval_duration_days', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.interval_duration_days', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1017, - serialized_end=1110, + name="Schedule", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="schedule_time", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.schedule_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="interval_duration_days", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.interval_duration_days", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1017, + serialized_end=1110, ) _SCANCONFIG = _descriptor.Descriptor( - name='ScanConfig', - full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_qps', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.max_qps', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='starting_urls', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.starting_urls', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authentication', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.authentication', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_agent', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.user_agent', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='blacklist_patterns', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.blacklist_patterns', index=6, - number=7, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='schedule', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.schedule', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_platforms', full_name='google.cloud.websecurityscanner.v1alpha.ScanConfig.target_platforms', index=8, - number=9, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SCANCONFIG_AUTHENTICATION, _SCANCONFIG_SCHEDULE, ], - enum_types=[ - _SCANCONFIG_USERAGENT, - _SCANCONFIG_TARGETPLATFORM, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=172, - serialized_end=1288, + name="ScanConfig", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="max_qps", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.max_qps", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="starting_urls", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.starting_urls", + index=3, + number=4, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="authentication", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.authentication", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_agent", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.user_agent", + index=5, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="blacklist_patterns", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.blacklist_patterns", + index=6, + number=7, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="schedule", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.schedule", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="target_platforms", + full_name="google.cloud.websecurityscanner.v1alpha.ScanConfig.target_platforms", + index=8, + number=9, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_SCANCONFIG_AUTHENTICATION, _SCANCONFIG_SCHEDULE], + enum_types=[_SCANCONFIG_USERAGENT, _SCANCONFIG_TARGETPLATFORM], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=172, + serialized_end=1288, ) _SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT.containing_type = _SCANCONFIG_AUTHENTICATION _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT.containing_type = _SCANCONFIG_AUTHENTICATION -_SCANCONFIG_AUTHENTICATION.fields_by_name['google_account'].message_type = _SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT -_SCANCONFIG_AUTHENTICATION.fields_by_name['custom_account'].message_type = _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT +_SCANCONFIG_AUTHENTICATION.fields_by_name[ + "google_account" +].message_type = _SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT +_SCANCONFIG_AUTHENTICATION.fields_by_name[ + "custom_account" +].message_type = _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT _SCANCONFIG_AUTHENTICATION.containing_type = _SCANCONFIG -_SCANCONFIG_AUTHENTICATION.oneofs_by_name['authentication'].fields.append( - _SCANCONFIG_AUTHENTICATION.fields_by_name['google_account']) -_SCANCONFIG_AUTHENTICATION.fields_by_name['google_account'].containing_oneof = _SCANCONFIG_AUTHENTICATION.oneofs_by_name['authentication'] -_SCANCONFIG_AUTHENTICATION.oneofs_by_name['authentication'].fields.append( - _SCANCONFIG_AUTHENTICATION.fields_by_name['custom_account']) -_SCANCONFIG_AUTHENTICATION.fields_by_name['custom_account'].containing_oneof = _SCANCONFIG_AUTHENTICATION.oneofs_by_name['authentication'] -_SCANCONFIG_SCHEDULE.fields_by_name['schedule_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SCANCONFIG_AUTHENTICATION.oneofs_by_name["authentication"].fields.append( + _SCANCONFIG_AUTHENTICATION.fields_by_name["google_account"] +) +_SCANCONFIG_AUTHENTICATION.fields_by_name[ + "google_account" +].containing_oneof = _SCANCONFIG_AUTHENTICATION.oneofs_by_name["authentication"] +_SCANCONFIG_AUTHENTICATION.oneofs_by_name["authentication"].fields.append( + _SCANCONFIG_AUTHENTICATION.fields_by_name["custom_account"] +) +_SCANCONFIG_AUTHENTICATION.fields_by_name[ + "custom_account" +].containing_oneof = _SCANCONFIG_AUTHENTICATION.oneofs_by_name["authentication"] +_SCANCONFIG_SCHEDULE.fields_by_name[ + "schedule_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _SCANCONFIG_SCHEDULE.containing_type = _SCANCONFIG -_SCANCONFIG.fields_by_name['authentication'].message_type = _SCANCONFIG_AUTHENTICATION -_SCANCONFIG.fields_by_name['user_agent'].enum_type = _SCANCONFIG_USERAGENT -_SCANCONFIG.fields_by_name['schedule'].message_type = _SCANCONFIG_SCHEDULE -_SCANCONFIG.fields_by_name['target_platforms'].enum_type = _SCANCONFIG_TARGETPLATFORM +_SCANCONFIG.fields_by_name["authentication"].message_type = _SCANCONFIG_AUTHENTICATION +_SCANCONFIG.fields_by_name["user_agent"].enum_type = _SCANCONFIG_USERAGENT +_SCANCONFIG.fields_by_name["schedule"].message_type = _SCANCONFIG_SCHEDULE +_SCANCONFIG.fields_by_name["target_platforms"].enum_type = _SCANCONFIG_TARGETPLATFORM _SCANCONFIG_USERAGENT.containing_type = _SCANCONFIG _SCANCONFIG_TARGETPLATFORM.containing_type = _SCANCONFIG -DESCRIPTOR.message_types_by_name['ScanConfig'] = _SCANCONFIG +DESCRIPTOR.message_types_by_name["ScanConfig"] = _SCANCONFIG _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ScanConfig = _reflection.GeneratedProtocolMessageType('ScanConfig', (_message.Message,), dict( - - Authentication = _reflection.GeneratedProtocolMessageType('Authentication', (_message.Message,), dict( - - GoogleAccount = _reflection.GeneratedProtocolMessageType('GoogleAccount', (_message.Message,), dict( - DESCRIPTOR = _SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2' - , - __doc__ = """Describes authentication configuration that uses a Google account. +ScanConfig = _reflection.GeneratedProtocolMessageType( + "ScanConfig", + (_message.Message,), + dict( + Authentication=_reflection.GeneratedProtocolMessageType( + "Authentication", + (_message.Message,), + dict( + GoogleAccount=_reflection.GeneratedProtocolMessageType( + "GoogleAccount", + (_message.Message,), + dict( + DESCRIPTOR=_SCANCONFIG_AUTHENTICATION_GOOGLEACCOUNT, + __module__="google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2", + __doc__="""Describes authentication configuration that uses a Google account. Attributes: @@ -371,15 +581,16 @@ credential is stored encrypted and not returned in any response. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - )) - , - - CustomAccount = _reflection.GeneratedProtocolMessageType('CustomAccount', (_message.Message,), dict( - DESCRIPTOR = _SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2' - , - __doc__ = """Describes authentication configuration that uses a custom account. + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) + ), + ), + CustomAccount=_reflection.GeneratedProtocolMessageType( + "CustomAccount", + (_message.Message,), + dict( + DESCRIPTOR=_SCANCONFIG_AUTHENTICATION_CUSTOMACCOUNT, + __module__="google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2", + __doc__="""Describes authentication configuration that uses a custom account. Attributes: @@ -392,13 +603,12 @@ login_url: Required. The login form URL of the website. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - )) - , - DESCRIPTOR = _SCANCONFIG_AUTHENTICATION, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2' - , - __doc__ = """Scan authentication configuration. + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) + ), + ), + DESCRIPTOR=_SCANCONFIG_AUTHENTICATION, + __module__="google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2", + __doc__="""Scan authentication configuration. Attributes: @@ -409,15 +619,16 @@ custom_account: Authentication using a custom account. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) - )) - , - - Schedule = _reflection.GeneratedProtocolMessageType('Schedule', (_message.Message,), dict( - DESCRIPTOR = _SCANCONFIG_SCHEDULE, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2' - , - __doc__ = """Scan schedule configuration. + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) + ), + ), + Schedule=_reflection.GeneratedProtocolMessageType( + "Schedule", + (_message.Message,), + dict( + DESCRIPTOR=_SCANCONFIG_SCHEDULE, + __module__="google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2", + __doc__="""Scan schedule configuration. Attributes: @@ -429,13 +640,12 @@ interval_duration_days: Required. The duration of time between executions in days. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) - )) - , - DESCRIPTOR = _SCANCONFIG, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2' - , - __doc__ = """A ScanConfig resource contains the configurations to launch a scan. + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) + ), + ), + DESCRIPTOR=_SCANCONFIG, + __module__="google.cloud.websecurityscanner_v1alpha.proto.scan_config_pb2", + __doc__="""A ScanConfig resource contains the configurations to launch a scan. Attributes: @@ -467,8 +677,9 @@ Set of Cloud Platforms targeted by the scan. If empty, APP\_ENGINE will be used as a default. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) + ), +) _sym_db.RegisterMessage(ScanConfig) _sym_db.RegisterMessage(ScanConfig.Authentication) _sym_db.RegisterMessage(ScanConfig.Authentication.GoogleAccount) @@ -477,5 +688,10 @@ DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n+com.google.cloud.websecurityscanner.v1alphaB\017ScanConfigProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n+com.google.cloud.websecurityscanner.v1alphaB\017ScanConfigProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2_grpc.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2_grpc.py index a89435267cb22..07cb78fe03a94 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2_grpc.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_config_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_run_pb2.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_run_pb2.py index e5e7af8a3d396..6fa632f03c9b9 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_run_pb2.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/scan_run_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/websecurityscanner_v1alpha/proto/scan_run.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,178 +20,278 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/websecurityscanner_v1alpha/proto/scan_run.proto', - package='google.cloud.websecurityscanner.v1alpha', - syntax='proto3', - serialized_pb=_b('\n/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\x12\xd3\x01\n\x0cListFindings\x12<.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest\x1a=.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse\"F\x82\xd3\xe4\x93\x02@\x12>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\x12\xf3\x01\n\x14ListFindingTypeStats\x12\x44.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest\x1a\x45.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse\"N\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStatsB\xa3\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x17WebSecurityScannerProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_crawled__url__pb2.DESCRIPTOR,google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.DESCRIPTOR,google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__type__stats__pb2.DESCRIPTOR,google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.DESCRIPTOR,google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner.proto", + package="google.cloud.websecurityscanner.v1alpha", + syntax="proto3", + serialized_pb=_b( + '\nHgoogle/cloud/websecurityscanner_v1alpha/proto/web_security_scanner.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a?google/cloud/websecurityscanner_v1alpha/proto/crawled_url.proto\x1a;google/cloud/websecurityscanner_v1alpha/proto/finding.proto\x1a\x46google/cloud/websecurityscanner_v1alpha/proto/finding_type_stats.proto\x1a?google/cloud/websecurityscanner_v1alpha/proto/scan_config.proto\x1a/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\x12\xd3\x01\n\x0cListFindings\x12<.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest\x1a=.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse"F\x82\xd3\xe4\x93\x02@\x12>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\x12\xf3\x01\n\x14ListFindingTypeStats\x12\x44.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest\x1a\x45.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse"N\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStatsB\xa3\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x17WebSecurityScannerProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_crawled__url__pb2.DESCRIPTOR, + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.DESCRIPTOR, + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__type__stats__pb2.DESCRIPTOR, + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.DESCRIPTOR, + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _CREATESCANCONFIGREQUEST = _descriptor.Descriptor( - name='CreateScanConfigRequest', - full_name='google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='scan_config', full_name='google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.scan_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=535, - serialized_end=650, + name="CreateScanConfigRequest", + full_name="google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="scan_config", + full_name="google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.scan_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=535, + serialized_end=650, ) _DELETESCANCONFIGREQUEST = _descriptor.Descriptor( - name='DeleteScanConfigRequest', - full_name='google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=652, - serialized_end=691, + name="DeleteScanConfigRequest", + full_name="google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=652, + serialized_end=691, ) _GETSCANCONFIGREQUEST = _descriptor.Descriptor( - name='GetScanConfigRequest', - full_name='google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=693, - serialized_end=729, + name="GetScanConfigRequest", + full_name="google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=693, + serialized_end=729, ) _LISTSCANCONFIGSREQUEST = _descriptor.Descriptor( - name='ListScanConfigsRequest', - full_name='google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=731, - serialized_end=810, + name="ListScanConfigsRequest", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=731, + serialized_end=810, ) _UPDATESCANCONFIGREQUEST = _descriptor.Descriptor( - name='UpdateScanConfigRequest', - full_name='google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='scan_config', full_name='google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.scan_config', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.update_mask', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=813, - serialized_end=961, + name="UpdateScanConfigRequest", + full_name="google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="scan_config", + full_name="google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.scan_config", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.update_mask", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=813, + serialized_end=961, ) _LISTSCANCONFIGSRESPONSE = _descriptor.Descriptor( - name='ListScanConfigsResponse', - full_name='google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='scan_configs', full_name='google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.scan_configs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=963, - serialized_end=1088, + name="ListScanConfigsResponse", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="scan_configs", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.scan_configs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=963, + serialized_end=1088, ) _STARTSCANRUNREQUEST = _descriptor.Descriptor( - name='StartScanRunRequest', - full_name='google.cloud.websecurityscanner.v1alpha.StartScanRunRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1090, - serialized_end=1125, + name="StartScanRunRequest", + full_name="google.cloud.websecurityscanner.v1alpha.StartScanRunRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1090, + serialized_end=1125, ) _GETSCANRUNREQUEST = _descriptor.Descriptor( - name='GetScanRunRequest', - full_name='google.cloud.websecurityscanner.v1alpha.GetScanRunRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1127, - serialized_end=1160, + name="GetScanRunRequest", + full_name="google.cloud.websecurityscanner.v1alpha.GetScanRunRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1127, + serialized_end=1160, ) _LISTSCANRUNSREQUEST = _descriptor.Descriptor( - name='ListScanRunsRequest', - full_name='google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1162, - serialized_end=1238, + name="ListScanRunsRequest", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1162, + serialized_end=1238, ) _LISTSCANRUNSRESPONSE = _descriptor.Descriptor( - name='ListScanRunsResponse', - full_name='google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='scan_runs', full_name='google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.scan_runs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1240, - serialized_end=1356, + name="ListScanRunsResponse", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="scan_runs", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.scan_runs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1240, + serialized_end=1356, ) _STOPSCANRUNREQUEST = _descriptor.Descriptor( - name='StopScanRunRequest', - full_name='google.cloud.websecurityscanner.v1alpha.StopScanRunRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1358, - serialized_end=1392, + name="StopScanRunRequest", + full_name="google.cloud.websecurityscanner.v1alpha.StopScanRunRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1358, + serialized_end=1392, ) _LISTCRAWLEDURLSREQUEST = _descriptor.Descriptor( - name='ListCrawledUrlsRequest', - full_name='google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1394, - serialized_end=1473, + name="ListCrawledUrlsRequest", + full_name="google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1394, + serialized_end=1473, ) _LISTCRAWLEDURLSRESPONSE = _descriptor.Descriptor( - name='ListCrawledUrlsResponse', - full_name='google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='crawled_urls', full_name='google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.crawled_urls', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1475, - serialized_end=1600, + name="ListCrawledUrlsResponse", + full_name="google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="crawled_urls", + full_name="google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.crawled_urls", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1475, + serialized_end=1600, ) _GETFINDINGREQUEST = _descriptor.Descriptor( - name='GetFindingRequest', - full_name='google.cloud.websecurityscanner.v1alpha.GetFindingRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.websecurityscanner.v1alpha.GetFindingRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1602, - serialized_end=1635, + name="GetFindingRequest", + full_name="google.cloud.websecurityscanner.v1alpha.GetFindingRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.websecurityscanner.v1alpha.GetFindingRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1602, + serialized_end=1635, ) _LISTFINDINGSREQUEST = _descriptor.Descriptor( - name='ListFindingsRequest', - full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.page_size', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1637, - serialized_end=1729, + name="ListFindingsRequest", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.page_size", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1637, + serialized_end=1729, ) _LISTFINDINGSRESPONSE = _descriptor.Descriptor( - name='ListFindingsResponse', - full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='findings', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.findings', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1731, - serialized_end=1846, + name="ListFindingsResponse", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="findings", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.findings", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1731, + serialized_end=1846, ) _LISTFINDINGTYPESTATSREQUEST = _descriptor.Descriptor( - name='ListFindingTypeStatsRequest', - full_name='google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1848, - serialized_end=1893, + name="ListFindingTypeStatsRequest", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1848, + serialized_end=1893, ) _LISTFINDINGTYPESTATSRESPONSE = _descriptor.Descriptor( - name='ListFindingTypeStatsResponse', - full_name='google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='finding_type_stats', full_name='google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.finding_type_stats', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1895, - serialized_end=2012, + name="ListFindingTypeStatsResponse", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="finding_type_stats", + full_name="google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.finding_type_stats", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1895, + serialized_end=2012, ) -_CREATESCANCONFIGREQUEST.fields_by_name['scan_config'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG -_UPDATESCANCONFIGREQUEST.fields_by_name['scan_config'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG -_UPDATESCANCONFIGREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTSCANCONFIGSRESPONSE.fields_by_name['scan_configs'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG -_LISTSCANRUNSRESPONSE.fields_by_name['scan_runs'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN -_LISTCRAWLEDURLSRESPONSE.fields_by_name['crawled_urls'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_crawled__url__pb2._CRAWLEDURL -_LISTFINDINGSRESPONSE.fields_by_name['findings'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2._FINDING -_LISTFINDINGTYPESTATSRESPONSE.fields_by_name['finding_type_stats'].message_type = google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__type__stats__pb2._FINDINGTYPESTATS -DESCRIPTOR.message_types_by_name['CreateScanConfigRequest'] = _CREATESCANCONFIGREQUEST -DESCRIPTOR.message_types_by_name['DeleteScanConfigRequest'] = _DELETESCANCONFIGREQUEST -DESCRIPTOR.message_types_by_name['GetScanConfigRequest'] = _GETSCANCONFIGREQUEST -DESCRIPTOR.message_types_by_name['ListScanConfigsRequest'] = _LISTSCANCONFIGSREQUEST -DESCRIPTOR.message_types_by_name['UpdateScanConfigRequest'] = _UPDATESCANCONFIGREQUEST -DESCRIPTOR.message_types_by_name['ListScanConfigsResponse'] = _LISTSCANCONFIGSRESPONSE -DESCRIPTOR.message_types_by_name['StartScanRunRequest'] = _STARTSCANRUNREQUEST -DESCRIPTOR.message_types_by_name['GetScanRunRequest'] = _GETSCANRUNREQUEST -DESCRIPTOR.message_types_by_name['ListScanRunsRequest'] = _LISTSCANRUNSREQUEST -DESCRIPTOR.message_types_by_name['ListScanRunsResponse'] = _LISTSCANRUNSRESPONSE -DESCRIPTOR.message_types_by_name['StopScanRunRequest'] = _STOPSCANRUNREQUEST -DESCRIPTOR.message_types_by_name['ListCrawledUrlsRequest'] = _LISTCRAWLEDURLSREQUEST -DESCRIPTOR.message_types_by_name['ListCrawledUrlsResponse'] = _LISTCRAWLEDURLSRESPONSE -DESCRIPTOR.message_types_by_name['GetFindingRequest'] = _GETFINDINGREQUEST -DESCRIPTOR.message_types_by_name['ListFindingsRequest'] = _LISTFINDINGSREQUEST -DESCRIPTOR.message_types_by_name['ListFindingsResponse'] = _LISTFINDINGSRESPONSE -DESCRIPTOR.message_types_by_name['ListFindingTypeStatsRequest'] = _LISTFINDINGTYPESTATSREQUEST -DESCRIPTOR.message_types_by_name['ListFindingTypeStatsResponse'] = _LISTFINDINGTYPESTATSRESPONSE +_CREATESCANCONFIGREQUEST.fields_by_name[ + "scan_config" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG +) +_UPDATESCANCONFIGREQUEST.fields_by_name[ + "scan_config" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG +) +_UPDATESCANCONFIGREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTSCANCONFIGSRESPONSE.fields_by_name[ + "scan_configs" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG +) +_LISTSCANRUNSRESPONSE.fields_by_name[ + "scan_runs" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN +) +_LISTCRAWLEDURLSRESPONSE.fields_by_name[ + "crawled_urls" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_crawled__url__pb2._CRAWLEDURL +) +_LISTFINDINGSRESPONSE.fields_by_name[ + "findings" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2._FINDING +) +_LISTFINDINGTYPESTATSRESPONSE.fields_by_name[ + "finding_type_stats" +].message_type = ( + google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__type__stats__pb2._FINDINGTYPESTATS +) +DESCRIPTOR.message_types_by_name["CreateScanConfigRequest"] = _CREATESCANCONFIGREQUEST +DESCRIPTOR.message_types_by_name["DeleteScanConfigRequest"] = _DELETESCANCONFIGREQUEST +DESCRIPTOR.message_types_by_name["GetScanConfigRequest"] = _GETSCANCONFIGREQUEST +DESCRIPTOR.message_types_by_name["ListScanConfigsRequest"] = _LISTSCANCONFIGSREQUEST +DESCRIPTOR.message_types_by_name["UpdateScanConfigRequest"] = _UPDATESCANCONFIGREQUEST +DESCRIPTOR.message_types_by_name["ListScanConfigsResponse"] = _LISTSCANCONFIGSRESPONSE +DESCRIPTOR.message_types_by_name["StartScanRunRequest"] = _STARTSCANRUNREQUEST +DESCRIPTOR.message_types_by_name["GetScanRunRequest"] = _GETSCANRUNREQUEST +DESCRIPTOR.message_types_by_name["ListScanRunsRequest"] = _LISTSCANRUNSREQUEST +DESCRIPTOR.message_types_by_name["ListScanRunsResponse"] = _LISTSCANRUNSRESPONSE +DESCRIPTOR.message_types_by_name["StopScanRunRequest"] = _STOPSCANRUNREQUEST +DESCRIPTOR.message_types_by_name["ListCrawledUrlsRequest"] = _LISTCRAWLEDURLSREQUEST +DESCRIPTOR.message_types_by_name["ListCrawledUrlsResponse"] = _LISTCRAWLEDURLSRESPONSE +DESCRIPTOR.message_types_by_name["GetFindingRequest"] = _GETFINDINGREQUEST +DESCRIPTOR.message_types_by_name["ListFindingsRequest"] = _LISTFINDINGSREQUEST +DESCRIPTOR.message_types_by_name["ListFindingsResponse"] = _LISTFINDINGSRESPONSE +DESCRIPTOR.message_types_by_name[ + "ListFindingTypeStatsRequest" +] = _LISTFINDINGTYPESTATSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListFindingTypeStatsResponse" +] = _LISTFINDINGTYPESTATSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateScanConfigRequest = _reflection.GeneratedProtocolMessageType('CreateScanConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATESCANCONFIGREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``CreateScanConfig`` method. +CreateScanConfigRequest = _reflection.GeneratedProtocolMessageType( + "CreateScanConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATESCANCONFIGREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``CreateScanConfig`` method. Attributes: @@ -739,15 +1105,18 @@ scan_config: Required. The ScanConfig to be created. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) + ), +) _sym_db.RegisterMessage(CreateScanConfigRequest) -DeleteScanConfigRequest = _reflection.GeneratedProtocolMessageType('DeleteScanConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETESCANCONFIGREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``DeleteScanConfig`` method. +DeleteScanConfigRequest = _reflection.GeneratedProtocolMessageType( + "DeleteScanConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESCANCONFIGREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``DeleteScanConfig`` method. Attributes: @@ -756,15 +1125,18 @@ The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) + ), +) _sym_db.RegisterMessage(DeleteScanConfigRequest) -GetScanConfigRequest = _reflection.GeneratedProtocolMessageType('GetScanConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSCANCONFIGREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``GetScanConfig`` method. +GetScanConfigRequest = _reflection.GeneratedProtocolMessageType( + "GetScanConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSCANCONFIGREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``GetScanConfig`` method. Attributes: @@ -773,15 +1145,18 @@ The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) + ), +) _sym_db.RegisterMessage(GetScanConfigRequest) -ListScanConfigsRequest = _reflection.GeneratedProtocolMessageType('ListScanConfigsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTSCANCONFIGSREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``ListScanConfigs`` method. +ListScanConfigsRequest = _reflection.GeneratedProtocolMessageType( + "ListScanConfigsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSCANCONFIGSREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``ListScanConfigs`` method. Attributes: @@ -798,15 +1173,18 @@ server. If not specified or not positive, the implementation will select a reasonable value. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) + ), +) _sym_db.RegisterMessage(ListScanConfigsRequest) -UpdateScanConfigRequest = _reflection.GeneratedProtocolMessageType('UpdateScanConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATESCANCONFIGREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``UpdateScanConfigRequest`` method. +UpdateScanConfigRequest = _reflection.GeneratedProtocolMessageType( + "UpdateScanConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATESCANCONFIGREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``UpdateScanConfigRequest`` method. Attributes: @@ -820,15 +1198,18 @@ https://developers.google.com/protocol- buffers/docs/reference/google.protobuf#fieldmask """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) + ), +) _sym_db.RegisterMessage(UpdateScanConfigRequest) -ListScanConfigsResponse = _reflection.GeneratedProtocolMessageType('ListScanConfigsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTSCANCONFIGSRESPONSE, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Response for the ``ListScanConfigs`` method. +ListScanConfigsResponse = _reflection.GeneratedProtocolMessageType( + "ListScanConfigsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSCANCONFIGSRESPONSE, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Response for the ``ListScanConfigs`` method. Attributes: @@ -838,15 +1219,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) + ), +) _sym_db.RegisterMessage(ListScanConfigsResponse) -StartScanRunRequest = _reflection.GeneratedProtocolMessageType('StartScanRunRequest', (_message.Message,), dict( - DESCRIPTOR = _STARTSCANRUNREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``StartScanRun`` method. +StartScanRunRequest = _reflection.GeneratedProtocolMessageType( + "StartScanRunRequest", + (_message.Message,), + dict( + DESCRIPTOR=_STARTSCANRUNREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``StartScanRun`` method. Attributes: @@ -855,15 +1239,18 @@ name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) + ), +) _sym_db.RegisterMessage(StartScanRunRequest) -GetScanRunRequest = _reflection.GeneratedProtocolMessageType('GetScanRunRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSCANRUNREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``GetScanRun`` method. +GetScanRunRequest = _reflection.GeneratedProtocolMessageType( + "GetScanRunRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSCANRUNREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``GetScanRun`` method. Attributes: @@ -872,15 +1259,18 @@ name follows the format of 'projects/{projectId}/scanConfigs/{ scanConfigId}/scanRuns/{scanRunId}'. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) + ), +) _sym_db.RegisterMessage(GetScanRunRequest) -ListScanRunsRequest = _reflection.GeneratedProtocolMessageType('ListScanRunsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTSCANRUNSREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``ListScanRuns`` method. +ListScanRunsRequest = _reflection.GeneratedProtocolMessageType( + "ListScanRunsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSCANRUNSREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``ListScanRuns`` method. Attributes: @@ -898,15 +1288,18 @@ server. If not specified or not positive, the implementation will select a reasonable value. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) + ), +) _sym_db.RegisterMessage(ListScanRunsRequest) -ListScanRunsResponse = _reflection.GeneratedProtocolMessageType('ListScanRunsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTSCANRUNSRESPONSE, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Response for the ``ListScanRuns`` method. +ListScanRunsResponse = _reflection.GeneratedProtocolMessageType( + "ListScanRunsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTSCANRUNSRESPONSE, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Response for the ``ListScanRuns`` method. Attributes: @@ -916,15 +1309,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) + ), +) _sym_db.RegisterMessage(ListScanRunsResponse) -StopScanRunRequest = _reflection.GeneratedProtocolMessageType('StopScanRunRequest', (_message.Message,), dict( - DESCRIPTOR = _STOPSCANRUNREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``StopScanRun`` method. +StopScanRunRequest = _reflection.GeneratedProtocolMessageType( + "StopScanRunRequest", + (_message.Message,), + dict( + DESCRIPTOR=_STOPSCANRUNREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``StopScanRun`` method. Attributes: @@ -933,15 +1329,18 @@ name follows the format of 'projects/{projectId}/scanConfigs/{ scanConfigId}/scanRuns/{scanRunId}'. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) + ), +) _sym_db.RegisterMessage(StopScanRunRequest) -ListCrawledUrlsRequest = _reflection.GeneratedProtocolMessageType('ListCrawledUrlsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCRAWLEDURLSREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``ListCrawledUrls`` method. +ListCrawledUrlsRequest = _reflection.GeneratedProtocolMessageType( + "ListCrawledUrlsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCRAWLEDURLSREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``ListCrawledUrls`` method. Attributes: @@ -959,15 +1358,18 @@ server. If not specified or not positive, the implementation will select a reasonable value. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) + ), +) _sym_db.RegisterMessage(ListCrawledUrlsRequest) -ListCrawledUrlsResponse = _reflection.GeneratedProtocolMessageType('ListCrawledUrlsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCRAWLEDURLSRESPONSE, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Response for the ``ListCrawledUrls`` method. +ListCrawledUrlsResponse = _reflection.GeneratedProtocolMessageType( + "ListCrawledUrlsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTCRAWLEDURLSRESPONSE, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Response for the ``ListCrawledUrls`` method. Attributes: @@ -977,15 +1379,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) + ), +) _sym_db.RegisterMessage(ListCrawledUrlsResponse) -GetFindingRequest = _reflection.GeneratedProtocolMessageType('GetFindingRequest', (_message.Message,), dict( - DESCRIPTOR = _GETFINDINGREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``GetFinding`` method. +GetFindingRequest = _reflection.GeneratedProtocolMessageType( + "GetFindingRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETFINDINGREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``GetFinding`` method. Attributes: @@ -994,15 +1399,18 @@ name follows the format of 'projects/{projectId}/scanConfigs/{ scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) + ), +) _sym_db.RegisterMessage(GetFindingRequest) -ListFindingsRequest = _reflection.GeneratedProtocolMessageType('ListFindingsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTFINDINGSREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``ListFindings`` method. +ListFindingsRequest = _reflection.GeneratedProtocolMessageType( + "ListFindingsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTFINDINGSREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``ListFindings`` method. Attributes: @@ -1023,15 +1431,18 @@ server. If not specified or not positive, the implementation will select a reasonable value. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) + ), +) _sym_db.RegisterMessage(ListFindingsRequest) -ListFindingsResponse = _reflection.GeneratedProtocolMessageType('ListFindingsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTFINDINGSRESPONSE, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Response for the ``ListFindings`` method. +ListFindingsResponse = _reflection.GeneratedProtocolMessageType( + "ListFindingsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTFINDINGSRESPONSE, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Response for the ``ListFindings`` method. Attributes: @@ -1041,15 +1452,18 @@ Token to retrieve the next page of results, or empty if there are no more results in the list. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) + ), +) _sym_db.RegisterMessage(ListFindingsResponse) -ListFindingTypeStatsRequest = _reflection.GeneratedProtocolMessageType('ListFindingTypeStatsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTFINDINGTYPESTATSREQUEST, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Request for the ``ListFindingTypeStats`` method. +ListFindingTypeStatsRequest = _reflection.GeneratedProtocolMessageType( + "ListFindingTypeStatsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTFINDINGTYPESTATSREQUEST, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Request for the ``ListFindingTypeStats`` method. Attributes: @@ -1058,158 +1472,231 @@ resource name in the format 'projects/{projectId}/scanConfigs/ {scanConfigId}/scanRuns/{scanRunId}'. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) + ), +) _sym_db.RegisterMessage(ListFindingTypeStatsRequest) -ListFindingTypeStatsResponse = _reflection.GeneratedProtocolMessageType('ListFindingTypeStatsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTFINDINGTYPESTATSRESPONSE, - __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2' - , - __doc__ = """Response for the ``ListFindingTypeStats`` method. +ListFindingTypeStatsResponse = _reflection.GeneratedProtocolMessageType( + "ListFindingTypeStatsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTFINDINGTYPESTATSRESPONSE, + __module__="google.cloud.websecurityscanner_v1alpha.proto.web_security_scanner_pb2", + __doc__="""Response for the ``ListFindingTypeStats`` method. Attributes: finding_type_stats: The list of FindingTypeStats returned. """, - # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - )) + # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) + ), +) _sym_db.RegisterMessage(ListFindingTypeStatsResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n+com.google.cloud.websecurityscanner.v1alphaB\027WebSecurityScannerProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n+com.google.cloud.websecurityscanner.v1alphaB\027WebSecurityScannerProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner" + ), +) _WEBSECURITYSCANNER = _descriptor.ServiceDescriptor( - name='WebSecurityScanner', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=2015, - serialized_end=4655, - methods=[ - _descriptor.MethodDescriptor( - name='CreateScanConfig', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.CreateScanConfig', + name="WebSecurityScanner", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CREATESCANCONFIGREQUEST, - output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scanConfigs:\013scan_config')), - ), - _descriptor.MethodDescriptor( - name='DeleteScanConfig', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.DeleteScanConfig', - index=1, - containing_service=None, - input_type=_DELETESCANCONFIGREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002**(/v1alpha/{name=projects/*/scanConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='GetScanConfig', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanConfig', - index=2, - containing_service=None, - input_type=_GETSCANCONFIGREQUEST, - output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002*\022(/v1alpha/{name=projects/*/scanConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='ListScanConfigs', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanConfigs', - index=3, - containing_service=None, - input_type=_LISTSCANCONFIGSREQUEST, - output_type=_LISTSCANCONFIGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002*\022(/v1alpha/{parent=projects/*}/scanConfigs')), - ), - _descriptor.MethodDescriptor( - name='UpdateScanConfig', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.UpdateScanConfig', - index=4, - containing_service=None, - input_type=_UPDATESCANCONFIGREQUEST, - output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002C24/v1alpha/{scan_config.name=projects/*/scanConfigs/*}:\013scan_config')), - ), - _descriptor.MethodDescriptor( - name='StartScanRun', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StartScanRun', - index=5, - containing_service=None, - input_type=_STARTSCANRUNREQUEST, - output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0023\"./v1alpha/{name=projects/*/scanConfigs/*}:start:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetScanRun', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanRun', - index=6, - containing_service=None, - input_type=_GETSCANRUNREQUEST, - output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025\0223/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}')), - ), - _descriptor.MethodDescriptor( - name='ListScanRuns', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanRuns', - index=7, - containing_service=None, - input_type=_LISTSCANRUNSREQUEST, - output_type=_LISTSCANRUNSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025\0223/v1alpha/{parent=projects/*/scanConfigs/*}/scanRuns')), - ), - _descriptor.MethodDescriptor( - name='StopScanRun', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StopScanRun', - index=8, - containing_service=None, - input_type=_STOPSCANRUNREQUEST, - output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002=\"8/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\001*')), - ), - _descriptor.MethodDescriptor( - name='ListCrawledUrls', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListCrawledUrls', - index=9, - containing_service=None, - input_type=_LISTCRAWLEDURLSREQUEST, - output_type=_LISTCRAWLEDURLSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002C\022A/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls')), - ), - _descriptor.MethodDescriptor( - name='GetFinding', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetFinding', - index=10, - containing_service=None, - input_type=_GETFINDINGREQUEST, - output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2._FINDING, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\022>/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}')), - ), - _descriptor.MethodDescriptor( - name='ListFindings', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindings', - index=11, - containing_service=None, - input_type=_LISTFINDINGSREQUEST, - output_type=_LISTFINDINGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\022>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings')), - ), - _descriptor.MethodDescriptor( - name='ListFindingTypeStats', - full_name='google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindingTypeStats', - index=12, - containing_service=None, - input_type=_LISTFINDINGTYPESTATSREQUEST, - output_type=_LISTFINDINGTYPESTATSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002H\022F/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats')), - ), -]) + options=None, + serialized_start=2015, + serialized_end=4655, + methods=[ + _descriptor.MethodDescriptor( + name="CreateScanConfig", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.CreateScanConfig", + index=0, + containing_service=None, + input_type=_CREATESCANCONFIGREQUEST, + output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0027"(/v1alpha/{parent=projects/*}/scanConfigs:\013scan_config' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteScanConfig", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.DeleteScanConfig", + index=1, + containing_service=None, + input_type=_DELETESCANCONFIGREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002**(/v1alpha/{name=projects/*/scanConfigs/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="GetScanConfig", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanConfig", + index=2, + containing_service=None, + input_type=_GETSCANCONFIGREQUEST, + output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002*\022(/v1alpha/{name=projects/*/scanConfigs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListScanConfigs", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanConfigs", + index=3, + containing_service=None, + input_type=_LISTSCANCONFIGSREQUEST, + output_type=_LISTSCANCONFIGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002*\022(/v1alpha/{parent=projects/*}/scanConfigs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateScanConfig", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.UpdateScanConfig", + index=4, + containing_service=None, + input_type=_UPDATESCANCONFIGREQUEST, + output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2._SCANCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002C24/v1alpha/{scan_config.name=projects/*/scanConfigs/*}:\013scan_config" + ), + ), + ), + _descriptor.MethodDescriptor( + name="StartScanRun", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StartScanRun", + index=5, + containing_service=None, + input_type=_STARTSCANRUNREQUEST, + output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0023"./v1alpha/{name=projects/*/scanConfigs/*}:start:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetScanRun", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanRun", + index=6, + containing_service=None, + input_type=_GETSCANRUNREQUEST, + output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0025\0223/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListScanRuns", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanRuns", + index=7, + containing_service=None, + input_type=_LISTSCANRUNSREQUEST, + output_type=_LISTSCANRUNSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0025\0223/v1alpha/{parent=projects/*/scanConfigs/*}/scanRuns" + ), + ), + ), + _descriptor.MethodDescriptor( + name="StopScanRun", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StopScanRun", + index=8, + containing_service=None, + input_type=_STOPSCANRUNREQUEST, + output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2._SCANRUN, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002="8/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListCrawledUrls", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListCrawledUrls", + index=9, + containing_service=None, + input_type=_LISTCRAWLEDURLSREQUEST, + output_type=_LISTCRAWLEDURLSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002C\022A/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetFinding", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetFinding", + index=10, + containing_service=None, + input_type=_GETFINDINGREQUEST, + output_type=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2._FINDING, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002@\022>/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListFindings", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindings", + index=11, + containing_service=None, + input_type=_LISTFINDINGSREQUEST, + output_type=_LISTFINDINGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002@\022>/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListFindingTypeStats", + full_name="google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindingTypeStats", + index=12, + containing_service=None, + input_type=_LISTFINDINGTYPESTATSREQUEST, + output_type=_LISTFINDINGTYPESTATSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002H\022F/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_WEBSECURITYSCANNER) -DESCRIPTOR.services_by_name['WebSecurityScanner'] = _WEBSECURITYSCANNER +DESCRIPTOR.services_by_name["WebSecurityScanner"] = _WEBSECURITYSCANNER # @@protoc_insertion_point(module_scope) diff --git a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner_pb2_grpc.py b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner_pb2_grpc.py index b0daabd60cb22..c50069030d885 100644 --- a/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner_pb2_grpc.py +++ b/websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner_pb2_grpc.py @@ -1,259 +1,269 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.websecurityscanner_v1alpha.proto import finding_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2 -from google.cloud.websecurityscanner_v1alpha.proto import scan_config_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2 -from google.cloud.websecurityscanner_v1alpha.proto import scan_run_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2 -from google.cloud.websecurityscanner_v1alpha.proto import web_security_scanner_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2 +from google.cloud.websecurityscanner_v1alpha.proto import ( + finding_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2, +) +from google.cloud.websecurityscanner_v1alpha.proto import ( + scan_config_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2, +) +from google.cloud.websecurityscanner_v1alpha.proto import ( + scan_run_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2, +) +from google.cloud.websecurityscanner_v1alpha.proto import ( + web_security_scanner_pb2 as google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class WebSecurityScannerStub(object): - """Cloud Web Security Scanner Service identifies security vulnerabilities in web + """Cloud Web Security Scanner Service identifies security vulnerabilities in web applications hosted on Google Cloud Platform. It crawls your application, and attempts to exercise as many user inputs and event handlers as possible. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.CreateScanConfig = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/CreateScanConfig', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.CreateScanConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.FromString, + self.CreateScanConfig = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/CreateScanConfig", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.CreateScanConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.FromString, ) - self.DeleteScanConfig = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/DeleteScanConfig', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.DeleteScanConfigRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteScanConfig = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/DeleteScanConfig", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.DeleteScanConfigRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetScanConfig = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/GetScanConfig', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.FromString, + self.GetScanConfig = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/GetScanConfig", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.FromString, ) - self.ListScanConfigs = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListScanConfigs', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsResponse.FromString, + self.ListScanConfigs = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListScanConfigs", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsResponse.FromString, ) - self.UpdateScanConfig = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/UpdateScanConfig', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.UpdateScanConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.FromString, + self.UpdateScanConfig = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/UpdateScanConfig", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.UpdateScanConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.FromString, ) - self.StartScanRun = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/StartScanRun', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StartScanRunRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.FromString, + self.StartScanRun = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/StartScanRun", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StartScanRunRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.FromString, ) - self.GetScanRun = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/GetScanRun', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanRunRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.FromString, + self.GetScanRun = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/GetScanRun", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanRunRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.FromString, ) - self.ListScanRuns = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListScanRuns', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsResponse.FromString, + self.ListScanRuns = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListScanRuns", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsResponse.FromString, ) - self.StopScanRun = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/StopScanRun', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StopScanRunRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.FromString, + self.StopScanRun = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/StopScanRun", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StopScanRunRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.FromString, ) - self.ListCrawledUrls = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListCrawledUrls', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsResponse.FromString, + self.ListCrawledUrls = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListCrawledUrls", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsResponse.FromString, ) - self.GetFinding = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/GetFinding', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetFindingRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.Finding.FromString, + self.GetFinding = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/GetFinding", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetFindingRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.Finding.FromString, ) - self.ListFindings = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListFindings', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsResponse.FromString, + self.ListFindings = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListFindings", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsResponse.FromString, ) - self.ListFindingTypeStats = channel.unary_unary( - '/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListFindingTypeStats', - request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsResponse.FromString, + self.ListFindingTypeStats = channel.unary_unary( + "/google.cloud.websecurityscanner.v1alpha.WebSecurityScanner/ListFindingTypeStats", + request_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsResponse.FromString, ) class WebSecurityScannerServicer(object): - """Cloud Web Security Scanner Service identifies security vulnerabilities in web + """Cloud Web Security Scanner Service identifies security vulnerabilities in web applications hosted on Google Cloud Platform. It crawls your application, and attempts to exercise as many user inputs and event handlers as possible. """ - def CreateScanConfig(self, request, context): - """Creates a new ScanConfig. + def CreateScanConfig(self, request, context): + """Creates a new ScanConfig. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteScanConfig(self, request, context): - """Deletes an existing ScanConfig and its child resources. + def DeleteScanConfig(self, request, context): + """Deletes an existing ScanConfig and its child resources. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetScanConfig(self, request, context): - """Gets a ScanConfig. + def GetScanConfig(self, request, context): + """Gets a ScanConfig. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListScanConfigs(self, request, context): - """Lists ScanConfigs under a given project. + def ListScanConfigs(self, request, context): + """Lists ScanConfigs under a given project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateScanConfig(self, request, context): - """Updates a ScanConfig. This method support partial update of a ScanConfig. + def UpdateScanConfig(self, request, context): + """Updates a ScanConfig. This method support partial update of a ScanConfig. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def StartScanRun(self, request, context): - """Start a ScanRun according to the given ScanConfig. + def StartScanRun(self, request, context): + """Start a ScanRun according to the given ScanConfig. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetScanRun(self, request, context): - """Gets a ScanRun. + def GetScanRun(self, request, context): + """Gets a ScanRun. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListScanRuns(self, request, context): - """Lists ScanRuns under a given ScanConfig, in descending order of ScanRun + def ListScanRuns(self, request, context): + """Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def StopScanRun(self, request, context): - """Stops a ScanRun. The stopped ScanRun is returned. + def StopScanRun(self, request, context): + """Stops a ScanRun. The stopped ScanRun is returned. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListCrawledUrls(self, request, context): - """List CrawledUrls under a given ScanRun. + def ListCrawledUrls(self, request, context): + """List CrawledUrls under a given ScanRun. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetFinding(self, request, context): - """Gets a Finding. + def GetFinding(self, request, context): + """Gets a Finding. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListFindings(self, request, context): - """List Findings under a given ScanRun. + def ListFindings(self, request, context): + """List Findings under a given ScanRun. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListFindingTypeStats(self, request, context): - """List all FindingTypeStats under a given ScanRun. + def ListFindingTypeStats(self, request, context): + """List all FindingTypeStats under a given ScanRun. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_WebSecurityScannerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateScanConfig': grpc.unary_unary_rpc_method_handler( - servicer.CreateScanConfig, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.CreateScanConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.SerializeToString, - ), - 'DeleteScanConfig': grpc.unary_unary_rpc_method_handler( - servicer.DeleteScanConfig, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.DeleteScanConfigRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetScanConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetScanConfig, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.SerializeToString, - ), - 'ListScanConfigs': grpc.unary_unary_rpc_method_handler( - servicer.ListScanConfigs, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsResponse.SerializeToString, - ), - 'UpdateScanConfig': grpc.unary_unary_rpc_method_handler( - servicer.UpdateScanConfig, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.UpdateScanConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.SerializeToString, - ), - 'StartScanRun': grpc.unary_unary_rpc_method_handler( - servicer.StartScanRun, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StartScanRunRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.SerializeToString, - ), - 'GetScanRun': grpc.unary_unary_rpc_method_handler( - servicer.GetScanRun, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanRunRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.SerializeToString, - ), - 'ListScanRuns': grpc.unary_unary_rpc_method_handler( - servicer.ListScanRuns, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsResponse.SerializeToString, - ), - 'StopScanRun': grpc.unary_unary_rpc_method_handler( - servicer.StopScanRun, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StopScanRunRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.SerializeToString, - ), - 'ListCrawledUrls': grpc.unary_unary_rpc_method_handler( - servicer.ListCrawledUrls, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsResponse.SerializeToString, - ), - 'GetFinding': grpc.unary_unary_rpc_method_handler( - servicer.GetFinding, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetFindingRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.Finding.SerializeToString, - ), - 'ListFindings': grpc.unary_unary_rpc_method_handler( - servicer.ListFindings, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsResponse.SerializeToString, - ), - 'ListFindingTypeStats': grpc.unary_unary_rpc_method_handler( - servicer.ListFindingTypeStats, - request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsRequest.FromString, - response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.cloud.websecurityscanner.v1alpha.WebSecurityScanner', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "CreateScanConfig": grpc.unary_unary_rpc_method_handler( + servicer.CreateScanConfig, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.CreateScanConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.SerializeToString, + ), + "DeleteScanConfig": grpc.unary_unary_rpc_method_handler( + servicer.DeleteScanConfig, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.DeleteScanConfigRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetScanConfig": grpc.unary_unary_rpc_method_handler( + servicer.GetScanConfig, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.SerializeToString, + ), + "ListScanConfigs": grpc.unary_unary_rpc_method_handler( + servicer.ListScanConfigs, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanConfigsResponse.SerializeToString, + ), + "UpdateScanConfig": grpc.unary_unary_rpc_method_handler( + servicer.UpdateScanConfig, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.UpdateScanConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__config__pb2.ScanConfig.SerializeToString, + ), + "StartScanRun": grpc.unary_unary_rpc_method_handler( + servicer.StartScanRun, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StartScanRunRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.SerializeToString, + ), + "GetScanRun": grpc.unary_unary_rpc_method_handler( + servicer.GetScanRun, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetScanRunRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.SerializeToString, + ), + "ListScanRuns": grpc.unary_unary_rpc_method_handler( + servicer.ListScanRuns, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListScanRunsResponse.SerializeToString, + ), + "StopScanRun": grpc.unary_unary_rpc_method_handler( + servicer.StopScanRun, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.StopScanRunRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_scan__run__pb2.ScanRun.SerializeToString, + ), + "ListCrawledUrls": grpc.unary_unary_rpc_method_handler( + servicer.ListCrawledUrls, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListCrawledUrlsResponse.SerializeToString, + ), + "GetFinding": grpc.unary_unary_rpc_method_handler( + servicer.GetFinding, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.GetFindingRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_finding__pb2.Finding.SerializeToString, + ), + "ListFindings": grpc.unary_unary_rpc_method_handler( + servicer.ListFindings, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingsResponse.SerializeToString, + ), + "ListFindingTypeStats": grpc.unary_unary_rpc_method_handler( + servicer.ListFindingTypeStats, + request_deserializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsRequest.FromString, + response_serializer=google_dot_cloud_dot_websecurityscanner__v1alpha_dot_proto_dot_web__security__scanner__pb2.ListFindingTypeStatsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner", + rpc_method_handlers, + ) + server.add_generic_rpc_handlers((generic_handler,))